/* =====================================================
   APEXLANDBASE — Master Stylesheet
   Luxury Real Estate | Gurugram
   ===================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Core Palette */
  --cream:        #FAF7F2;
  --cream-dark:   #F2EDE4;
  --white:        #FFFFFF;
  --gold:         #B8976A;
  --gold-light:   #D4B896;
  --gold-dark:    #8C6D45;
  --charcoal:     #2C2C2C;
  --charcoal-mid: #4A4A4A;
  --grey:         #9A9A9A;
  --grey-light:   #E8E4DC;

  /* Project Accent Colors (overridden per page via <style> on <body>) */
  --accent:       var(--gold);
  --accent-light: var(--gold-light);
  --accent-dark:  var(--gold-dark);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-pad:  80px 0;
  --container:    1160px;
  --radius:       4px;
  --radius-lg:    10px;

  /* Transitions */
  --ease:         0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.05em; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--dark  { background: var(--charcoal); color: var(--cream); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Divider --- */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 20px 0 28px;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background var(--ease), box-shadow var(--ease);
}

.nav.scrolled {
  background: rgba(250, 247, 242, 0.97);
  box-shadow: 0 1px 0 var(--grey-light);
  backdrop-filter: blur(10px);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color var(--ease);
}
.nav.scrolled .nav__logo { color: var(--charcoal); }

.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  transition: opacity var(--ease), color var(--ease);
}
.nav.scrolled .nav__links a { color: var(--charcoal-mid); }
.nav__links a:hover { opacity: 1; color: var(--accent) !important; }

.nav__cta {
  background: var(--accent);
  color: var(--white) !important;
  opacity: 1 !important;
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: background var(--ease) !important;
}
.nav__cta:hover { background: var(--accent-dark) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: background var(--ease);
}
.nav.scrolled .nav__hamburger span { background: var(--charcoal); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--charcoal);
  overflow: hidden;
}

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero__bg img.loaded { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 24, 16, 0.82) 0%,
    rgba(30, 24, 16, 0.30) 55%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 72px;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
}

.hero h1 {
  color: var(--white);
  font-weight: 300;
  margin-bottom: 6px;
  max-width: 700px;
}

.hero__sub {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 28px;
}

.hero__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero__meta-item {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.hero__meta-item strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
}

.btn--gold {
  background: var(--accent);
  color: var(--white);
}
.btn--gold:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--outline-dark {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn--outline-dark:hover { background: var(--accent); color: var(--white); }

.btn--wa {
  background: #25D366;
  color: var(--white);
}
.btn--wa:hover { background: #1ebe5d; transform: translateY(-1px); }

/* =====================================================
   OVERVIEW STRIP
   ===================================================== */
.overview-strip {
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
  padding: 36px 24px;
}

.overview-strip__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.overview-strip__item {
  flex: 1;
  min-width: 160px;
  padding: 0 28px;
  border-right: 1px solid var(--grey-light);
}
.overview-strip__item:first-child { padding-left: 0; }
.overview-strip__item:last-child  { border-right: none; }

.overview-strip__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}

.overview-strip__value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--charcoal);
}

/* =====================================================
   SECTION HEADINGS
   ===================================================== */
.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-header--center .divider { margin-left: auto; margin-right: auto; }

/* =====================================================
   GALLERY
   ===================================================== */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery__item {
  overflow: hidden;
  cursor: pointer;
}
.gallery__item:first-child { grid-row: 1 / 3; }

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.05); }

/* =====================================================
   FEATURES / HIGHLIGHTS
   ===================================================== */
.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow var(--ease), transform var(--ease);
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.feature-card h4 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--charcoal-mid); }

/* =====================================================
   PRICING TABLE
   ===================================================== */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.pricing-table th {
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 20px;
  text-align: left;
}

.pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--grey-light);
  font-size: 0.92rem;
  color: var(--charcoal-mid);
}

.pricing-table td:first-child {
  font-weight: 500;
  color: var(--charcoal);
}

.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: var(--cream); }

.price-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 20px;
}

/* =====================================================
   LEAD FORM
   ===================================================== */
.lead-form-section {
  background: var(--charcoal);
  padding: 80px 24px;
}

.lead-form-section h2 { color: var(--cream); }
.lead-form-section .eyebrow { color: var(--accent-light); }

.lead-form {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 560px;
}

.lead-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group--full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--ease);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,151,106,0.15);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--charcoal-mid);
  margin-top: 14px;
  line-height: 1.5;
}

/* =====================================================
   ABOUT CHANNEL PARTNER
   ===================================================== */
.about-strip {
  background: linear-gradient(135deg, var(--charcoal) 0%, #3a3228 100%);
  padding: 60px 24px;
  color: var(--cream);
}

.about-strip__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-strip__text { flex: 1; }
.about-strip__text h3 { color: var(--white); margin-bottom: 12px; }
.about-strip__text p  { color: rgba(255,255,255,0.7); font-size: 0.92rem; }

.about-strip__badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.about-strip__badge {
  text-align: center;
  padding: 20px 28px;
  border: 1px solid rgba(184,151,106,0.4);
  border-radius: var(--radius-lg);
}
.about-strip__badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.about-strip__badge-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: #1a1714;
  color: rgba(255,255,255,0.55);
  padding: 60px 24px 28px;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
}
.footer__logo span { color: var(--accent); }

.footer__desc { font-size: 0.85rem; line-height: 1.7; }

.footer__heading {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--ease);
}
.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__rera {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
}

/* =====================================================
   FLOATING WHATSAPP
   ===================================================== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 999;
  transition: transform var(--ease), box-shadow var(--ease);
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* =====================================================
   STICKY BOTTOM BAR (MOBILE)
   ===================================================== */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--grey-light);
  padding: 12px 16px;
  z-index: 998;
  gap: 10px;
}
.sticky-bar .btn { flex: 1; justify-content: center; font-size: 0.72rem; padding: 12px; }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--charcoal-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-card__author {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--charcoal);
}
.testimonial-card__author span {
  display: block;
  color: var(--grey);
  font-weight: 300;
  font-size: 0.78rem;
  margin-top: 2px;
}

/* =====================================================
   LOCATION MAP PLACEHOLDER
   ===================================================== */
.map-embed {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-light);
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.9rem;
}
.map-embed iframe {
  width: 100%; height: 100%; border: 0;
}

/* =====================================================
   LIGHTBOX OVERLAY
   ===================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox__close {
  position: absolute;
  top: 20px; right: 28px;
  color: white; font-size: 2rem;
  cursor: pointer; line-height: 1;
}

/* =====================================================
   BROCHURE DOWNLOAD MODAL
   ===================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 440px;
  width: 100%;
  position: relative;
}

.modal-box h3 { margin-bottom: 6px; }
.modal-box p  { font-size: 0.9rem; color: var(--charcoal-mid); margin-bottom: 24px; }

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer;
  color: var(--grey);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center  { text-align: center; }
.text-gold    { color: var(--accent); }
.text-muted   { color: var(--grey); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  :root { --section-pad: 56px 0; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery__item:first-child { grid-row: auto; }

  .about-strip__inner { flex-direction: column; gap: 32px; }

  .footer__top { grid-template-columns: 1fr; gap: 32px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .overview-strip__inner { gap: 0; }
  .overview-strip__item {
    flex: 1 1 45%;
    padding: 16px 16px;
    border-right: none;
    border-bottom: 1px solid var(--grey-light);
  }

  .lead-form { padding: 28px 20px; }
  .lead-form__grid { grid-template-columns: 1fr; }

  .sticky-bar { display: flex; }
  body { padding-bottom: 76px; }
  .wa-float { bottom: 100px; }

  .hero { height: 100svh; }
}

@media (max-width: 540px) {
  .hero__meta { gap: 20px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .modal-box { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
