/* ============================================================
   Nivasa Green City - Stylesheet
   Theme: Luxury gold + biophilic green
   ============================================================ */

:root {
  --green-900: #0c1a12;
  --green-800: #102417;
  --green-700: #163020;
  --green-600: #1d4a2e;
  --green-500: #2a6b41;
  --cream: #f7f4ec;
  --cream-2: #efe9dc;
  --ink: #1c2620;
  --muted: #5d6b62;
  --line: #e3ddcf;

  --gold-1: #c79a45;
  --gold-2: #f3e2a8;
  --gold-3: #b07e2a;
  --gold-grad: linear-gradient(135deg, #a76f23 0%, #d9b35a 38%, #f6ecc4 55%, #cf9e3f 78%, #a76f23 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(12, 26, 18, 0.4);
  --shadow-soft: 0 10px 30px -16px rgba(12, 26, 18, 0.3);
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: Georgia, "Times New Roman", "Iowan Old Style", Cambria, serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; font-size: 106.25%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html, body { max-width: 100%; overflow-x: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-3);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold-2); }

.section { padding: 92px 0; }

.section__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.2px;
  color: var(--green-800);
}
.section__title--light { color: #fff; }

.section__head { max-width: 720px; margin-bottom: 54px; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__sub { color: var(--muted); font-size: 1.18rem; margin-top: 16px; line-height: 1.65; }

.center { text-align: center; }

/* ---------- Focus visibility (keyboard accessibility) ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--pad-y) 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn--lg { --pad-y: 16px; padding-inline: 34px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--gold {
  background: var(--gold-grad);
  color: #3a2b06;
  box-shadow: 0 12px 26px -12px rgba(176, 126, 42, 0.7);
  background-size: 200% 200%;
}
.btn--gold:hover { transform: translateY(-2px); background-position: right center; box-shadow: 0 16px 34px -12px rgba(176, 126, 42, 0.85); }

.btn--outline {
  background: transparent;
  color: var(--green-700);
  border: 1.5px solid var(--gold-1);
}
.btn--outline:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }

.btn--outline-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}
.btn--outline-light:hover { background: #fff; color: var(--green-800); }

.btn--ghost { background: transparent; color: var(--cream); padding-inline: 14px; }

/* ---------- Visually-hidden (accessible names without visual change) ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Honeypot (spam trap) + form-note error state ---------- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note--err { color: #b00020; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--green-900);
  color: #cdbf9a;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar__rera { color: var(--gold-2); font-weight: 500; }
.topbar__contact a:hover { color: #fff; }
.topbar__sep { margin: 0 10px; opacity: 0.4; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.header.scrolled {
  background: rgba(247, 244, 236, 0.96);
  box-shadow: var(--shadow-soft);
  border-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 8px; }
.brand__logo { height: 46px; width: auto; max-width: 180px; object-fit: contain; border-radius: 0; }
.footer__brand img, .modal__head img { object-fit: contain; border-radius: 0; }
.brand__sub {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-600);
  letter-spacing: 0.06em;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-weight: 500;
  font-size: 1rem;
  color: var(--green-800);
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-grad);
  transition: width 0.3s var(--ease);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link--mobile-cta { display: none; }
.nav__close { display: none; }
.nav-backdrop { display: none; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.btn--phone { color: var(--green-800); border: 1.5px solid var(--line); border-radius: 999px; }
.btn--phone:hover { border-color: var(--gold-1); color: var(--gold-3); }

/* ---------- Hamburger ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--green-800);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--green-900);
  color: #fff;
  overflow: hidden;
}
/* Full elevation render shown completely as a banner (never cropped). */
.hero__bg { position: relative; display: block; width: 100%; }
.hero__bg img { width: 100%; height: auto; display: block; }
.hero__bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 28%; min-height: 70px; pointer-events: none;
  background: linear-gradient(to top, var(--green-900) 6%, rgba(12,26,18,0) 100%);
}
.hero__overlay { display: none; }
.hero__content { position: relative; z-index: 2; padding: 28px 0 72px; max-width: 820px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.82rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 600;
  padding: 8px 18px;
  border: 1px solid rgba(243, 226, 168, 0.4);
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0.4px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.hero__lead { margin-top: 22px; font-size: 1.18rem; max-width: 600px; color: rgba(255,255,255,0.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__stats {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--gold-2); line-height: 1; }
.hero__stats span { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-top: 6px; }

.hero__scroll {
  display: none;
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.6); border-radius: 16px; z-index: 2;
}
.hero__scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--gold-2); border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 24px; } }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.4; object-fit: cover; }
.about__media-badge {
  position: absolute; bottom: -22px; right: -10px;
  background: var(--gold-grad); color: #3a2b06;
  padding: 16px 26px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); text-align: center;
}
.about__media-badge strong { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1; }
.about__media-badge span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.about__text p { color: var(--muted); margin-bottom: 16px; font-size: 1.12rem; line-height: 1.7; }
.about__list { list-style: none; margin: 22px 0 28px; }
.about__list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--green-800); font-weight: 500; }
.about__list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 0 4px rgba(199,154,69,0.18);
}

/* ---------- Configurations ---------- */
.configs { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
/* Intrinsically mobile-first: up to 2-3 cols on wider screens, exactly 1 col on phones.
   minmax(min(100%,280px),1fr) collapses to a single column once the track no longer fits. */
.configs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 30px; max-width: 940px; margin-inline: auto; }
.config-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}
.config-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.config-card--featured { background: var(--green-800); color: #fff; }

.config-card__media {
  position: relative; cursor: zoom-in; background: #f4f1e8;
  border-bottom: 4px solid transparent; border-image: var(--gold-grad) 1;
  aspect-ratio: 16 / 11; overflow: hidden;
}
.config-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.5s var(--ease); }
.config-card__media:hover img { transform: scale(1.04); }
.config-card__tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: #3a2b06; background: var(--gold-grad);
  padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-soft);
}
.config-card__body { padding: 26px 30px 30px; }
.config-card h3 { font-family: var(--font-head); font-size: 2.1rem; color: var(--green-800); margin-bottom: 18px; }
.config-card--featured h3 { color: #fff; }
.config-card__specs {
  list-style: none; display: flex; gap: 10px; margin-bottom: 24px;
}
.config-card__specs li {
  flex: 1; text-align: center; padding: 12px 6px;
  background: var(--cream); border-radius: var(--radius-sm);
}
.config-card--featured .config-card__specs li { background: rgba(255,255,255,0.07); }
.config-card__specs strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-3); line-height: 1.1; }
.config-card--featured .config-card__specs strong { color: var(--gold-2); }
.config-card__specs span { font-size: 0.85rem; color: var(--muted); }
.config-card--featured .config-card__specs span { color: rgba(255,255,255,0.7); }
.configs__cta { margin-top: 46px; }
.amenities__cta { margin-top: 58px; }
.gallery__cta { margin-top: 48px; }
.faq__cta { margin-top: 42px; }

/* ---------- Amenities ---------- */
.amenities { background: var(--green-800); color: #fff; }
.amenities .section__title { color: #fff; }
.amenities .eyebrow { color: var(--gold-2); }
.amenities .section__sub { color: rgba(255,255,255,0.72); }

.amenity-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-bottom: 64px;
}
.amenity {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.amenity:hover { transform: translateY(-4px); background: rgba(243,226,168,0.07); border-color: rgba(243,226,168,0.35); }
.amenity img { width: 46px; height: 46px; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.amenity span { font-weight: 500; font-size: 1.08rem; }

.amenity-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.amenity-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.amenity-block h3 { font-family: var(--font-head); font-size: 1.7rem; color: var(--gold-2); margin-bottom: 22px; }
.amenity-block ul { list-style: none; columns: 2; column-gap: 26px; }
.amenity-block li { position: relative; padding-left: 22px; margin-bottom: 12px; color: rgba(255,255,255,0.85); break-inside: avoid; font-size: 1.04rem; }
.amenity-block li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-1); font-size: 0.75rem; top: 3px; }
.clubfloor { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.clubfloor:last-child { border-bottom: 0; }
.clubfloor h4 { color: var(--gold-2); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.clubfloor p { color: rgba(255,255,255,0.82); font-size: 1.04rem; }

/* ---------- Floor Plans ---------- */
.floorplans { background: var(--cream); }
.floorplan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 44px; }
.floorplan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-soft); cursor: zoom-in;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.floorplan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.floorplan img { border-radius: var(--radius-sm); background: #fafafa; }
.floorplan figcaption { margin-top: 14px; text-align: center; font-weight: 600; color: var(--green-700); font-size: 1.08rem; }

/* ---------- Gallery ---------- */
.gallery { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 16px;
}
.g-item {
  overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; position: relative;
  box-shadow: var(--shadow-soft);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.g-item::after {
  content: "⤢"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(12,26,18,0.45); color: var(--gold-2); font-size: 1.6rem;
  opacity: 0; transition: opacity 0.3s;
}
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after { opacity: 1; }
.g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(6) { grid-column: span 2; }

/* ---------- Location ---------- */
.location { background: var(--cream); }
.conn-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 54px; }
.conn-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(170deg, var(--green-700) 0%, var(--green-900) 100%);
  border: 1px solid rgba(243, 226, 168, 0.14);
  border-radius: var(--radius);
  padding: 30px 20px 26px;
  color: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  box-shadow: var(--shadow-soft);
}
.conn-card:hover { transform: translateY(-6px); border-color: rgba(243, 226, 168, 0.45); box-shadow: var(--shadow); }
.conn-card img {
  width: 40px; height: 40px; object-fit: contain;
  padding: 17px; box-sizing: content-box;
  background: radial-gradient(circle at 50% 35%, rgba(243,226,168,0.18), rgba(243,226,168,0.05));
  border: 1px solid rgba(243, 226, 168, 0.3);
  border-radius: 50%; margin-bottom: 18px;
}
.conn-card h3 { font-size: 1.14rem; color: var(--gold-2); margin-bottom: 10px; font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
.conn-card p { font-size: 0.98rem; color: rgba(255,255,255,0.72); line-height: 1.55; }

.location__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: var(--gold-grad);
  border-radius: var(--radius);
  padding: 40px 44px;
}
.location__cta h3 { font-family: var(--font-head); font-size: 1.9rem; color: #3a2b06; }
.location__cta p { color: #5b451a; max-width: 560px; margin-top: 8px; }
.location__cta .btn--gold { background: var(--green-800); color: #fff; box-shadow: none; }
.location__cta .btn--gold:hover { background: var(--green-900); }

/* ---------- Video bands (full-screen autoplay Shorts) ---------- */
.videoshow {
  background:
    radial-gradient(95% 55% at 50% -8%, rgba(199,154,69,0.20), transparent 55%),
    linear-gradient(180deg, var(--green-800) 0%, var(--green-900) 72%);
}
.vidbands { display: flex; gap: clamp(14px, 3vw, 40px); }
.vidband {
  position: relative;
  flex: 1 1 0; min-width: 0;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.vidband__player {
  position: relative; z-index: 2;
  height: min(92svh, 46vw * 16 / 9);
  aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.08);
}
.vidband__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vidband__cap {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  padding: 22px 20px 44px; text-align: center; color: #fff; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}
.vidband__cap .eyebrow { margin-bottom: 4px; }
.vidband__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.7rem); text-shadow: 0 2px 12px rgba(0,0,0,0.55); }

.vidband__bigplay {
  position: absolute; inset: 0; z-index: 4; margin: auto;
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding-left: 4px;
  background: rgba(0,0,0,0.42); border: 2px solid rgba(255,255,255,0.85); color: #fff;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.vidband__bigplay:hover { transform: scale(1.08); background: rgba(0,0,0,0.6); }
.vidband.is-playing .vidband__bigplay { display: none; }

.vidband__ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; flex-direction: column; gap: 10px;
  padding: 46px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.vidband:hover .vidband__ui, .vidband.show-ui .vidband__ui { opacity: 1; }
.vidband__mute { align-self: flex-end; }
.vidband__bottom { display: flex; align-items: center; gap: 12px; }
.vidband__btn {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.16); color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.vidband__btn:hover { background: rgba(255,255,255,0.32); transform: scale(1.06); }
.vidband__mute .ic-on, .vidband__play .ic-pause { display: none; }
.vidband__mute[aria-pressed="true"] .ic-on { display: block; }
.vidband__mute[aria-pressed="true"] .ic-off { display: none; }
.vidband.is-playing .vidband__play .ic-pause { display: block; }
.vidband.is-playing .vidband__play .ic-play { display: none; }
.vidband__progress { position: relative; flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.28); cursor: pointer; }
.vidband__played { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--gold-2); }

.vidband-cta { background: transparent; padding: 40px 0 56px; }
.btn--dark { background: var(--green-800); color: #fff; box-shadow: 0 12px 26px -14px rgba(0,0,0,0.6); }
.btn--dark:hover { background: var(--green-900); transform: translateY(-2px); }

/* ---------- Why Invest ---------- */
.invest {
  background:
    linear-gradient(rgba(10,20,14,0.93), rgba(10,20,14,0.95)),
    url("../images/nivasa-green-city-gallery-1.webp") center/cover fixed;
  color: #fff;
}
.invest .eyebrow { color: var(--gold-2); }
.invest__sub { color: rgba(255,255,255,0.78); }
.invest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.invest-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.invest-card:hover { transform: translateY(-6px); border-color: var(--gold-1); background: rgba(243,226,168,0.06); }
.invest-card__time {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
  color: #3a2b06; background: var(--gold-grad);
  padding: 4px 16px; border-radius: 999px; margin-bottom: 16px;
}
.invest-card h3 { font-size: 1.35rem; color: #fff; margin-bottom: 8px; font-weight: 600; font-family: var(--font-head); }
.invest-card p { color: rgba(255,255,255,0.75); font-size: 1.02rem; line-height: 1.6; }
.invest__cta { margin-top: 46px; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq__inner { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: box-shadow 0.3s, border-color 0.3s;
}
.faq-item[open] { box-shadow: var(--shadow-soft); border-color: var(--gold-1); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  font-weight: 600; color: var(--green-800); font-size: 1.18rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--gold-3); font-weight: 400;
  transition: transform 0.3s var(--ease); line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 26px 24px; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }

/* ---------- Contact ---------- */
.contact {
  background:
    linear-gradient(rgba(10,20,14,0.92), rgba(10,20,14,0.94)),
    url("../images/nivasa-green-city-lifestyle.webp") center/cover fixed;
  color: #fff;
}
.contact__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.contact__lead { color: rgba(255,255,255,0.8); margin-bottom: 30px; font-size: 1.08rem; }
.contact__details { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.contact__details li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: rgba(243,226,168,0.12); border: 1px solid rgba(243,226,168,0.3);
  display: grid; place-items: center; font-size: 1.1rem;
}
.contact__details strong { display: block; color: var(--gold-2); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 3px; }
.contact__details div { color: rgba(255,255,255,0.88); }
.contact__details a:hover { color: var(--gold-2); }

.contact__form {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 40px 38px;
  box-shadow: var(--shadow);
}
.contact__form h3 { font-family: var(--font-head); font-size: 1.8rem; color: var(--green-800); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.contact__form input, .contact__form select, .contact__form textarea,
.modal__form input, .modal__form select {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); transition: border-color 0.25s, box-shadow 0.25s;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus,
.modal__form input:focus, .modal__form select:focus {
  outline: none; border-color: var(--gold-1); box-shadow: 0 0 0 3px rgba(199,154,69,0.18); background: #fff;
}
.form-note { color: var(--green-600); font-weight: 600; margin-top: 14px; text-align: center; }
.form-fineprint { font-size: 0.85rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(255,255,255,0.7); padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__brand img { height: 40px; margin-bottom: 18px; }
.footer__brand p { font-size: 0.95rem; line-height: 1.7; }
.footer__rera { display: inline-block; margin-top: 16px; color: var(--gold-2); font-size: 0.82rem; letter-spacing: 0.08em; }
.footer__socials { margin-top: 22px; }
.footer__socials-label { display: block; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.64); margin-bottom: 9px; }
.footer__social { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.82); font-size: 0.92rem; transition: color 0.25s, transform 0.25s; }
.footer__social svg { flex-shrink: 0; }
.footer__social:hover { color: var(--gold-2); transform: translateY(-1px); }
.footer__col h3 { color: #fff; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 18px; font-weight: 600; }
.footer__col a { display: block; padding: 6px 0; font-size: 0.95rem; transition: color 0.25s, padding-left 0.25s; }
.footer__col a:hover { color: var(--gold-2); padding-left: 6px; }
.footer__addr { font-size: 0.92rem; margin-top: 10px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; font-size: 0.85rem; }
.footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__legal { line-height: 2.4; }
.footer__legal a { display: inline-block; padding: 8px 6px; }
.footer__legal a:hover { color: var(--gold-2); }
.footer__disclaimer { font-size: 0.85rem; color: rgba(255,255,255,0.66); padding-bottom: 30px; line-height: 1.6; }

/* ---------- Floating ---------- */
.float {
  position: fixed; z-index: 90; right: 22px; bottom: 22px;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,0.5);
  transition: transform 0.3s var(--ease);
}
.float:hover { transform: scale(1.08); }
.float--wa { background: #25d366; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Mobile sticky CTA bar (Call · WhatsApp · Enquire) ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none;                         /* shown only on mobile (see media query) */
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1px;
  background: rgba(255,255,255,0.14);
  box-shadow: 0 -10px 26px -12px rgba(0,0,0,0.55);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta.show { transform: translateY(0); }
.mcta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 11px 6px 12px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.02em;
  color: #fff;
}
.mcta svg { display: block; }
.mcta--call { background: var(--green-800); }
.mcta--wa { background: #25d366; }
.mcta--enquire { background: var(--gold-grad); color: #3a2b06; }
.mcta--enquire:active, .mcta--wa:active, .mcta--call:active { filter: brightness(0.94); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,16,11,0.7); backdrop-filter: blur(4px); animation: fade 0.3s; }
.modal__dialog {
  position: relative; background: var(--cream); border-radius: var(--radius);
  width: min(440px, 100%); padding: 38px 36px; box-shadow: var(--shadow);
  animation: pop 0.35s var(--ease);
  border-top: 5px solid transparent; border-image: var(--gold-grad) 1;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
.modal__close {
  position: absolute; top: 8px; right: 8px; background: transparent; border: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal__close:hover { color: var(--green-800); }
.modal__head { text-align: center; margin-bottom: 22px; }
.modal__head img { height: 38px; margin: 0 auto 14px; }
.modal__head h3 { font-family: var(--font-head); font-size: 1.7rem; color: var(--green-800); }
.modal__head p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.modal__form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(6,12,8,0.94); padding: 30px; }
.lightbox.open { display: flex; animation: fade 0.3s; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; cursor: pointer; border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.8rem; display: grid; place-items: center;
  transition: background 0.25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(243,226,168,0.3); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Subtle column-wise stagger so grid items cascade in (capped, no perf cost). */
.amenity-grid .amenity:nth-child(3n+2), .invest-grid .invest-card:nth-child(3n+2) { transition-delay: 0.07s; }
.amenity-grid .amenity:nth-child(3n),   .invest-grid .invest-card:nth-child(3n)   { transition-delay: 0.14s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .conn-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .invest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 68px 0; }
  .about__grid, .amenity-detail, .contact__grid { grid-template-columns: 1fr; }
  .about__grid { gap: 50px; }
  /* Keep the badge inside the image bounds once the About grid stacks, so it
     never hangs into the gap above the following text block. */
  .about__media-badge { right: 16px; bottom: 14px; }

  /* Reserve space for the fixed mobile sticky CTA bar so it never overlays
     the footer (copyright, legal links, disclaimer). */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* Video bands: stack full-screen on mobile (one per screen); player uses more width; pad bottom so the sticky CTA bar never covers the controls. */
  .vidbands { display: block; }
  .vidband { padding-bottom: 64px; }
  .vidband__player { height: min(82svh, 94vw * 16 / 9); }

  /* Mobile sticky CTA bar replaces the round WhatsApp bubble */
  .mobile-cta { display: grid; }
  .float--wa { display: none; }

  /* Disable backdrop-filter on mobile so the fixed nav drawer is positioned
     relative to the viewport (filters create a containing block otherwise). */
  .header, .header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* Mobile nav */
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(82%, 340px); max-width: 100vw;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 4px; background: var(--cream); padding: 100px 30px 40px;
    transform: translateX(100%); transition: transform 0.4s var(--ease), visibility 0.4s;
    box-shadow: var(--shadow); z-index: 99;
    visibility: hidden; overflow-y: auto;
  }
  .nav.open { transform: translateX(0); visibility: visible; }

  .nav__close {
    display: grid; place-items: center;
    position: absolute; top: 16px; right: 18px;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--green-800); color: #fff; border: 0;
    font-size: 1.8rem; line-height: 1; cursor: pointer;
    transition: background 0.25s, transform 0.25s;
  }
  .nav__close:hover { background: var(--green-900); transform: rotate(90deg); }

  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 98;
    background: rgba(8, 16, 11, 0.55); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; }

  .nav__link { font-size: 1.1rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__link--mobile-cta { display: block; }
  .nav-toggle { display: flex; }
  .btn--phone span { display: none; }
  .header__inner { gap: 10px; }
  .header__actions { gap: 8px; }
  .brand__sub { display: none; }
}

@media (max-width: 480px) {
  .header__actions .btn--gold { display: none; }
  .brand__logo { height: 40px; }
}

@media (max-width: 600px) {
  .topbar__contact a:last-child { display: none; }
  .topbar__sep { display: none; }
  .hero__content { padding: 24px 0 48px; }
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero__lead { font-size: 1.05rem; }
  .hero__stats { gap: 16px 26px; margin-top: 28px; padding-top: 22px; }
  .hero__stats strong { font-size: 1.4rem; }
  .amenity-grid { grid-template-columns: 1fr; }
  .amenity-block ul { columns: 1; }
  .conn-grid { grid-template-columns: 1fr 1fr; }
  .invest-grid { grid-template-columns: 1fr; }
  .invest, .contact { background-attachment: scroll; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: clamp(200px, 56vw, 280px); }
  .g-item:nth-child(1), .g-item:nth-child(6) { grid-column: auto; grid-row: auto; }
  .floorplan-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .location__cta { padding: 30px 24px; text-align: center; justify-content: center; }
  .location__cta .btn { width: 100%; }
  .conn-grid { gap: 14px; }
  .contact__form, .modal__dialog { padding: 28px 24px; }
}

@media (max-width: 480px) {
  /* Connectivity cards are full content cards (icon + heading + paragraph), not
     tiny stat pairs, so stack them one-up on phones to avoid cramped wrapping. */
  .conn-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
