/* Modern Construction Professional Theme - Luxury */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&display=swap');

/* CSS Variables - Luxury Palette */
:root {
  --primary-navy: #0f2a4f;
  --secondary-brown: #6b3a15;

  /* Metallic gold accents */
  --gold-1: #f6d365; /* light gold */
  --gold-2: #d4a017; /* main gold */
  --gold-3: #b8860b; /* deep gold */

  /* Legacy accent-orange still used by existing styles */
  --accent-orange: var(--gold-2);

  --bg-primary: #070b14;
  --bg-secondary: rgba(255, 255, 255, 0.04);

  --text-dark: rgba(255, 255, 255, 0.92);
  --text-medium: rgba(255, 255, 255, 0.72);
  --text-light: rgba(255, 255, 255, 0.56);

  --success-green: #10b981;

  --border-radius: 16px;

  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 22px 70px rgba(0, 0, 0, 0.38);

  --gold-glow: 0 0 0 1px rgba(212, 160, 23, 0.35), 0 0 28px rgba(212, 160, 23, 0.22);

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-primary);
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--text-medium); }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e40af 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
  background: var(--primary-navy);
  color: white;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(7, 11, 20, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(212, 160, 23, 0.12);
}


.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(212, 160, 23, 0.4));
}

.logo span {
  color: var(--accent-orange);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(248,250,252,0.12) 100%), url('civil works.jpg') center/cover;
  background-attachment: fixed;
  text-align: center;
  color: #D4A017;
  padding-top: 80px;
  position: relative;
}

/* Luxury global logo background (applies to every page) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* avoid negative stacking issues */
  background-image: url('ttpslogo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 620px auto;

  /* Luxury treatment */
  opacity: 0.14; /* stronger (B) */
  filter: grayscale(100%) contrast(125%) brightness(105%) blur(0.25px);
}

/* Ensure page content is above the background layer */
body {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  body::before {
    background-size: 360px auto;
    opacity: 0.11;
  }
}

/* Smooth premium background vignette */
body::after {
  content: '';
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 30%, rgba(212,160,23,0.10) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.92) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 70%);
  border-radius: 0;
}


.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 58, 138, 0.9);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: white;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.9), 0 0 40px rgba(212,160,23,0.6);
  font-weight: 700;
  color: #D4A017 !important;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 1;
  text-shadow: 0 2px 15px rgba(0,0,0,0.9);
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #E8C547 !important;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--secondary-brown));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-medium);
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

/* Cards Grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Premium glass card base (used by many components) */
.card,
.why-card,
.value-card,
.service-card,
.project-card,
.detailed-card,
.civil-card,
.property-card,
.maintenance-card,
.benefit-card,
.category-card,
.vision-card,
.mission-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.035) 100%
  );
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(212, 160, 23, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card {
  padding: 2rem;
}

.card:hover,
.why-card:hover,
.value-card:hover,
.service-card:hover,
.project-card:hover,
.detailed-card:hover,
.civil-card:hover,
.property-card:hover,
.maintenance-card:hover,
.benefit-card:hover,
.category-card:hover,
.vision-card:hover,
.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), var(--gold-glow);
}

.card-icon,
.why-icon,
.value-icon,
.service-icon,
.project-icon,
.detailed-icon,
.civil-icon,
.property-icon,
.maintenance-icon,
.benefit-number,
.category-icon,
.value-icon-large,
.commitment-icon,
.stat-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(212,160,23,0.9) 0%, rgba(107,58,21,0.95) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.95);
  font-size: 1.5rem;
  border: 1px solid rgba(255,255,255,0.12);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Lists */
.value-list,
.featured-list {
  list-style: none;
  margin-top: 1.25rem;
}

.value-list li,
.featured-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-medium);
  margin: 0.65rem 0;
}

.value-list i,
.featured-list i {
  color: var(--gold-2);
  margin-top: 0.15rem;
}


/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.stat {
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-orange), var(--secondary-brown));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  color: var(--text-medium);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-form {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Footer */
footer {
  background: linear-gradient(180deg, rgba(15,42,79,0.95) 0%, rgba(7,11,20,1) 100%);
  color: white;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(212, 160, 23, 0.18);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  inset: -60px -40px auto -40px;
  height: 160px;
  background: radial-gradient(circle at 50% 0%, rgba(212,160,23,0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

footer .container {
  position: relative;
  z-index: 1;
}



.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* Page Headers */
.page-header {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  text-align: center;
  padding-top: 80px;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* Responsive */
/* Tablet Styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    min-height: 50px;
  }
  
  .contact-grid,
  .form-row,
  .about-grid,
  .vision-grid,
  .featured-grid,
  .value-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .grid-4,
  .services-grid,
  .projects-grid,
  .values-grid,
  .why-grid,
  .benefits-grid,
  .categories-grid,
  .property-grid,
  .maintenance-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.5rem !important;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .page-header {
    min-height: 50vh;
    padding-top: 80px;
  }
  
  .hero,
  .page-header {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80vw;
    max-width: 300px;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger span {
    width: 28px;
    height: 3px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.75rem !important; }
  
  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.1;
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .card,
  .service-card,
  .project-card {
    padding: 1.25rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .nav-menu {
    width: 90vw;
    padding: 4rem 1.5rem 2rem;
    right: -100%;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.875rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.75rem !important;
  }
  
  .logo {
    font-size: 1.5rem;
  }
}

/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1.5rem; }

/* Global Image Handling for Mobile */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Footer links hover polish */
.footer-links a:hover {
  color: var(--gold-2);
  text-shadow: 0 0 18px rgba(212,160,23,0.25);
}

/* Hero Stats */
.hero-stats {

  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-orange), var(--secondary-brown));
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  color: var(--text-medium);
  font-weight: 500;
  margin-top: 0.5rem;
}

