/* ==========================================================================
   SHAH ESTATE AND CONSTRUCTION - MASTER PRODUCTION STYLESHEET
   Company: SHAH ESTATE AND CONSTRUCTION
   Location: 158-7A SITE, Karachi, Pakistan
   Phones: 0313-2030460 | 0336-3250282 | 0324-8365323
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- 1. COLOR PALETTE & VARIABLES --- */
:root {
  --navy-950: #040810;
  --navy-900: #070D19;
  --navy-800: #0F192C;
  --navy-700: #17243B;
  --navy-600: #20314F;
  
  --gold-300: #FCEAB8;
  --gold-400: #E5C158;
  --gold-500: #D4AF37;
  --gold-600: #AA7C11;
  --gold-700: #886208;
  
  --whatsapp-green: #25D366;
  --whatsapp-hover: #128C7E;

  --gold-gradient: linear-gradient(135deg, #FCEAB8 0%, #D4AF37 50%, #AA7C11 100%);
  --navy-gradient: linear-gradient(135deg, #070D19 0%, #0F192C 60%, #17243B 100%);

  --bg-light: #F8FAFC;
  --bg-card-light: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #475569;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 15px rgba(7, 13, 25, 0.06);
  --shadow-md: 0 12px 32px rgba(7, 13, 25, 0.12);
  --shadow-lg: 0 24px 50px rgba(7, 13, 25, 0.22);
  --shadow-gold: 0 12px 35px rgba(212, 175, 55, 0.35);

  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. GLOBAL RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: clip;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 92%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- 3. BADGES & UTILITIES --- */
.badge-gold {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 30px;
  color: #FCEAB8;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.badge-green {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(37, 211, 102, 0.2);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 20px;
  color: #25D366;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* --- 4. BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 2rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gold-gradient);
  color: var(--navy-950);
  font-weight: 800;
  font-size: 1.05rem;
  border: 2px solid transparent;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background: var(--navy-800);
  color: var(--gold-300);
  border-color: var(--gold-500);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 2rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 1.05rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--gold-gradient);
  color: var(--navy-950);
  border-color: var(--gold-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 1.8rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-navy:hover {
  background: var(--gold-gradient);
  color: var(--navy-950);
  border-color: var(--gold-500);
  transform: translateY(-3px);
}

/* --- 5. NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 0;
  background: rgba(7, 13, 25, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  width: 100%;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  height: 60px;
}

.nav-brand svg {
  height: 60px;
  width: auto;
  max-width: 280px;
  transition: var(--transition);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-400);
  background: rgba(212, 175, 55, 0.14);
}

.mobile-toggle {
  display: none;
  background: rgba(212, 175, 55, 0.15);
  border: 2px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-300);
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

/* --- 6. HERO SECTIONS --- */
.hero {
  min-height: 80vh;
  padding: 4.5rem 0 3.5rem 0;
  background: linear-gradient(135deg, rgba(4, 8, 16, 0.94) 0%, rgba(15, 25, 44, 0.88) 100%),
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-page {
  background: linear-gradient(135deg, #040810 0%, #0F192C 100%);
  color: #FFFFFF;
  padding: 4.5rem 0 3.5rem 0;
  text-align: center;
  width: 100%;
}

.hero-page h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}

/* RESPONSIVE GRID LAYOUTS */
.grid-2-col, .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 1rem 0 1.2rem 0;
  letter-spacing: -1px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.2rem;
  max-width: 700px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  width: 100%;
}

.stat-item h3 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold-400);
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.hero-card {
  background: rgba(23, 36, 59, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  width: 100%;
}

/* --- 7. CARDS & CONTAINERS --- */
.card-navy {
  background: var(--navy-800);
  color: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.card-white {
  background: #FFFFFF;
  color: var(--text-dark);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: var(--shadow-md);
  width: 100%;
}

/* --- 8. PAGE SECTIONS --- */
.section {
  padding: 4.5rem 0;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy-800);
  margin: 0.6rem 0 1rem 0;
}

.section-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
}

/* --- 9. SERVICES CARDS --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
  width: 100%;
}

.service-card {
  background: var(--bg-card-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid rgba(15, 25, 44, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

/* --- 10. FORMS --- */
.form-box {
  background: var(--navy-800);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
  width: 100%;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  width: 100%;
}

.form-group {
  margin-bottom: 1.4rem;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.1rem;
  min-height: 48px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.14);
}

.form-control option {
  background: var(--navy-800);
  color: #FFFFFF;
}

.form-control-light {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

.form-control-light:focus {
  border-color: var(--gold-500) !important;
  background: #FFFFFF !important;
}

/* --- 11. FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 95px;
  left: 25px;
  right: auto;
  z-index: 9998;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}

.whatsapp-float:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.1) rotate(6deg);
}

/* --- 12. FOOTER --- */
.footer {
  background: var(--navy-950);
  color: #FFFFFF;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
  width: 100%;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-400);
  padding-left: 6px;
}

/* --- 13. MEDIA QUERIES (FULL MOBILE RESPONSIVENESS 320px - 992px) --- */
@media (max-width: 992px) {
  .grid-2-col, .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.2rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }
  .form-box {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex !important;
  }
  .nav-actions {
    display: none !important;
  }
  .nav-brand svg {
    height: 48px;
    max-width: 210px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem;
    border-bottom: 3px solid var(--gold-500);
    box-shadow: 0 20px 40px rgba(0,0,0,0.85);
    width: 100%;
  }
  .nav-links.active {
    display: flex !important;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    font-size: 1.15rem;
    padding: 0.8rem;
    background: rgba(255,255,255,0.06);
  }
  
  .hero {
    padding: 3rem 0 2.5rem 0;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary, .btn-navy {
    width: 100% !important;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.6rem !important;
    text-align: center;
  }
  .stat-item h3 {
    font-size: 1.6rem !important;
  }
  .stat-item p {
    font-size: 0.72rem !important;
  }

  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .form-box {
    padding: 1.4rem 1rem !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.4rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .whatsapp-float {
    bottom: 85px !important;
    left: 18px !important;
    right: auto !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 1.7rem !important;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95% !important;
    padding: 0 0.3rem !important;
  }
  .nav-brand svg {
    height: 40px;
    max-width: 180px;
  }
  .hero-card {
    padding: 1.2rem 0.9rem !important;
  }
}
