/* ============================================================
   MAX ESTATES SECTOR 59 — Design System & Styles
   A premium luxury real estate landing page.
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700&family=JetBrains+Mono:wght@300;400&display=swap');

/* --- Design Tokens --- */
:root {
  --primary: #ffffff;
  --primary-deep: #f4f4f4;
  --accent: #763300;
  --accent-light: #f47920;
  --accent-glow: rgba(118, 51, 0, 0.15);
  --surface: #ffffff;
  --surface-light: #ffede5;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --text: #212121;
  --text-dim: #655c59;
  --text-muted: #7f7667;
  --border: rgba(127, 118, 103, 0.2);
  --border-strong: rgba(127, 118, 103, 0.4);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --tshadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--primary-deep);
  overflow-x: hidden;
}

/* -- Environment layer (subtle moving grain background) -- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(118,51,0,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(255,237,229,0.5) 0%, transparent 60%);
  pointer-events: none;
  animation: envDrift 60s ease-in-out infinite alternate;
}

@keyframes envDrift {
  0% { opacity: 0.6; transform: scale(1) translate(0,0); }
  100% { opacity: 1; transform: scale(1.05) translate(-1%,1%); }
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: var(--primary-deep);
  padding: 8px 20px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus {
  top: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { max-width: 64ch; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
a:hover { color: var(--accent-light); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Utility --- */
.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.section-pad {
  padding: clamp(60px, 10vw, 120px) 0;
}
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--accent);
  border: none;
  margin: 20px 0 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  text-shadow: none;
  text-decoration: none;
}
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
  background: linear-gradient(135deg, var(--accent), #b8943f);
  color: #ffffff !important;
  text-decoration: none !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.3);
  color: #ffffff !important;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--accent-light);
}
.btn-outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

@media (pointer: coarse) {
  .btn { min-height: 44px; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.5s var(--ease-out);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 10px 0;
}
.navbar.scrolled .nav-logo-text { color: var(--text); }
.navbar.scrolled .nav-logo-sub { color: var(--text-muted); }
/* Nav links — dark & clearly legible on white background */
.navbar.scrolled .nav-links a:not(.btn) { color: var(--text); }
.navbar.scrolled .nav-links a:not(.btn):hover { color: var(--accent); }
.navbar.scrolled .mobile-toggle span { background: var(--text); }
/* CTA button — solid bronze/gold on scrolled white navbar */
.navbar.scrolled .nav-cta,
.navbar.scrolled .nav-cta:hover,
.navbar.scrolled .nav-cta:focus,
.navbar.scrolled .nav-cta:active {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
.navbar.scrolled .nav-cta:hover {
  background: #5d2800 !important;
  color: #ffffff !important;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.nav-logo-text span {
  color: #f47920; /* Bright orange for dark background */
}
.navbar.scrolled .nav-logo-text span {
  color: var(--accent); /* Bronze for light scrolled background */
}
.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a:not(.btn) {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease-out);
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--accent-light); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-cta,
.nav-cta:hover,
.nav-cta:focus,
.nav-cta:active,
.navbar .nav-cta,
.navbar .nav-cta:hover,
.navbar .nav-cta:focus,
.navbar .nav-cta:active,
.navbar.scrolled .nav-cta,
.navbar.scrolled .nav-cta:hover {
  padding: 10px 24px !important;
  font-size: 0.78rem !important;
  color: #ffffff !important;
  text-decoration: none !important;
}
.nav-cta::after,
.nav-cta:hover::after,
.navbar .nav-cta::after,
.navbar.scrolled .nav-cta::after {
  display: none !important;
  content: none !important;
}
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s var(--ease-out);
  border-radius: 1px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1.08); }
  100% { transform: scale(1.15); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.7) 100%),
    radial-gradient(ellipse 100% 80% at 30% 50%, rgba(0,0,0,0.6) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(90%, 1200px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
}
.hero-text {
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  color: #ffffff;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  margin-bottom: 20px;
  color: #ffffff;
}
.hero h1 em {
  font-style: italic;
  color: #f47920;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
  line-height: 1.6;
}
.hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 32px;
  color: #ffffff;
}
.hero-price .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero-price .value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-light);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Hero Lead Form (Glassmorphism) --- */
.hero-form-card {
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.hero-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}
.hero-form-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.hero-form-card .form-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(201,169,110,0.04);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.08);
}
.form-group input::placeholder {
  color: var(--text-muted);
}
/* --- Form Validation Error States --- */
.form-group input.input-error,
.form-group select.input-error {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.04);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}
.form-error {
  display: none;
  color: #e74c3c;
  font-size: 0.75rem;
  margin-top: 4px;
  padding-left: 2px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a978f' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-submit-btn {
  width: 100%;
  margin-top: 4px;
  padding: 14px;
  font-size: 0.85rem;
}
.form-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.form-trust svg {
  flex-shrink: 0;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-success.active {
  display: block;
}
.form-success .check-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #b8943f);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success h4 {
  color: var(--accent-light);
  margin-bottom: 8px;
}
.form-success p {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.form-fields.hidden {
  display: none;
}

/* ============================================================
   OVERVIEW SECTION
   ============================================================ */
.overview {
  position: relative;
  z-index: 1;
  background: var(--primary-deep);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.overview-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s var(--ease-out);
}
.overview-image:hover img {
  transform: scale(1.05);
}
.overview-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  pointer-events: none;
}
.overview-text h2 {
  margin-bottom: 20px;
}
.overview-text p {
  color: var(--text-dim);
  font-size: 1.02rem;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.stat-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}
.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--accent-light);
  line-height: 1.2;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   CONFIGURATIONS SECTION
   ============================================================ */
.configs {
  position: relative;
  z-index: 1;
  background: var(--surface);
}
.configs-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}
.configs-header p {
  margin-inline: auto;
  color: var(--text-dim);
}
.configs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.config-card {
  background: var(--primary-deep);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
}
.config-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.config-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(201,169,110,0.06) 0%, var(--primary-deep) 40%);
}
.config-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--accent);
  color: var(--primary-deep);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 40px;
  line-height: 1;
  top: 24px;
  right: -32px;
  transform: rotate(45deg);
}
.config-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.config-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.config-card h3 {
  margin-bottom: 4px;
}
.config-size {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.config-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 4px;
}
.config-price-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.config-features {
  list-style: none;
  margin-bottom: 24px;
}
.config-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.config-features li:last-child { border-bottom: none; }
.config-features li svg {
  flex-shrink: 0;
  color: var(--accent);
}
.config-card .btn {
  width: 100%;
}

/* ============================================================
   AMENITIES
   ============================================================ */
.amenities {
  position: relative;
  z-index: 1;
  background: var(--primary-deep);
}
.amenities-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}
.amenities-header p {
  margin-inline: auto;
  color: var(--text-dim);
}
.amenities-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.amenity-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.5s var(--ease-out);
}
.amenity-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.amenity-card.large {
  grid-column: span 2;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.amenity-card.large::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15,15,26,0.9) 100%);
}
.amenity-card.large > * {
  position: relative;
  z-index: 1;
}
.amenity-card.large h3 {
  color: #ffffff;
}
.amenity-card.large p {
  color: rgba(255, 255, 255, 0.9);
}
.amenity-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  transition: all 0.3s var(--ease-out);
}
.amenity-card:hover .amenity-icon {
  background: rgba(201,169,110,0.2);
  border-color: var(--accent);
}
.amenity-card h4 {
  margin-bottom: 6px;
  color: var(--text);
}
.amenity-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================================================
   LOCATION
   ============================================================ */
.location {
  position: relative;
  z-index: 1;
  background: var(--surface);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.location-text h2 {
  margin-bottom: 16px;
}
.location-text > p {
  color: var(--text-dim);
  margin-bottom: 32px;
}
.location-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.loc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--primary-deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s var(--ease-out);
}
.loc-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.loc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.loc-info h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.loc-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.location-map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 480px;
  background: var(--primary-deep);
  display: flex;
}
.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
  filter: brightness(0.92) contrast(1.04);
  transition: filter 0.4s var(--ease-out);
}
.location-map:hover iframe {
  filter: brightness(1) contrast(1);
}
.map-directions-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 15, 26, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.map-directions-btn:hover {
  background: var(--gold);
  color: #0f0f1a;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.45);
}

/* ============================================================
   DEVELOPER TRUST
   ============================================================ */
.trust {
  position: relative;
  z-index: 1;
  background: var(--primary-deep);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.4s var(--ease-out);
}
.trust-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
}
.trust-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.trust-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================================================
   CTA FORM SECTION
   ============================================================ */
.cta-section {
  position: relative;
  z-index: 1;
  background: var(--surface);
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(201,169,110,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(201,169,110,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-text h2 {
  margin-bottom: 16px;
}
.cta-text p {
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.8;
}
.cta-benefits {
  list-style: none;
}
.cta-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 8px 0;
}
.cta-benefits li svg {
  flex-shrink: 0;
  color: var(--accent);
}

.cta-form-card {
  background: var(--primary-deep);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.cta-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}
.cta-form-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.cta-form-card .form-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--primary-deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #212121 !important;
}
.footer-brand .nav-logo-text span {
  color: #763300 !important;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-brand-address {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 6px !important;
}
.footer-brand-address strong {
  color: #333;
}
.footer-brand-landmarks {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.7;
  margin-bottom: 0 !important;
}
.footer-landmark-icon {
  vertical-align: -1px;
  margin-right: 4px;
}
.footer-enquiry-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.6;
}
.footer-enquire-btn {
  padding: 10px 20px !important;
  font-size: 0.82rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #ffffff !important;
}
.footer-partner-name {
  margin-bottom: 10px;
}
.footer-partner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--text) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.footer-partner-link:hover {
  color: var(--accent) !important;
}
.footer-partner-link svg {
  stroke: var(--accent);
}
.footer-contact-list {
  list-style: none;
  margin-bottom: 16px;
  padding: 0;
}
.footer-contact-list li {
  margin-bottom: 8px;
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dim) !important;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.footer-contact-link:hover {
  color: var(--accent) !important;
}
.footer-contact-link svg {
  stroke: var(--accent);
  flex-shrink: 0;
}
.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a:not(.btn) {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease-out);
}
.footer-links a:not(.btn):hover {
  color: var(--accent-light);
}
.footer-links .btn {
  color: #ffffff !important;
}
.footer-links .btn svg {
  stroke: #ffffff !important;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-rera {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 100%;
}
.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.footer-legal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.footer-legal-bar .footer-copyright {
  margin-top: 0;
}
.footer-legal-link {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s var(--ease-out);
}
.footer-legal-link:hover {
  color: var(--accent-light);
}

/* ============================================================
   FLOATING CTA (Mobile)
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(15,15,26,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: none;
  gap: 8px;
}
.floating-cta .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.78rem;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.in {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.in {
  opacity: 1;
  transform: translateX(0);
}
.stagger > .reveal {
  transition-delay: calc(var(--i, 0) * 100ms);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-bg img {
    animation: none;
    transform: scale(1.02);
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-form-card {
    max-width: 420px;
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badge {
    margin-inline: auto;
  }
  .overview-grid,
  .location-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .configs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }

  /* Mobile menu */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15,15,26,0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    min-height: 0;
    padding: 100px 0 40px;
  }
  .hero-content {
    padding-top: 20px;
  }
  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  .configs-grid {
    grid-template-columns: 1fr;
  }
  .amenities-showcase {
    grid-template-columns: 1fr;
  }
  .amenity-card.large {
    grid-column: span 1;
  }
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 16px 12px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .floating-cta {
    display: flex;
  }
  body {
    padding-bottom: 64px;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  .hero-price .value {
    font-size: 1.3rem;
  }
  .container {
    width: 92%;
  }
}

/* -- Grain overlay (subtle) -- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* -- Paused animations when tab is hidden -- */
body.paused *, body.paused *::before, body.paused *::after {
  animation-play-state: paused !important;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-dialog {
  background: var(--surface-light);
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid var(--border-light);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text);
}

@media (max-width: 768px) {
  .modal-dialog {
    padding: 32px 24px;
    width: calc(100% - 32px);
  }
}

.modal-overlay .cta-form-card::before {
  display: none;
}

/* --- Utilities for removed inline styles --- */
.delay-0 { --i: 0; }
.delay-1 { --i: 1; }
.delay-2 { --i: 2; }
.delay-3 { --i: 3; }
.delay-4 { --i: 4; }
.delay-5 { --i: 5; }
.delay-6 { --i: 6; }
.mb-52 { margin-bottom: 52px; }
.modal-cta-card-style { width: 100%; border: none; background: transparent; padding: 0; }
.bg-interior-living { background-image: url('../images/interior-living.jpg'); }

/* ============================================================
   LEGAL & PRIVACY POLICY PAGES
   ============================================================ */
.legal-wrapper {
  min-height: 100vh;
  padding: 120px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.legal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.legal-header h1 {
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.legal-section {
  margin-bottom: 28px;
}
.legal-section h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 600;
}
.legal-section p,
.legal-section li {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-section ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-highlight-box {
  background: rgba(118, 51, 0, 0.04);
  border-left: 4px solid var(--accent);
  padding: 18px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}
.legal-highlight-box p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
}
.legal-highlight-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.legal-highlight-link:hover {
  opacity: 0.85;
}
.legal-contact-box {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}
.legal-contact-box h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text);
}
.legal-contact-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.legal-contact-link:hover {
  opacity: 0.85;
}
.legal-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}
@media (max-width: 768px) {
  .legal-card {
    padding: 24px 20px;
  }
  .legal-header h1 {
    font-size: 1.7rem;
  }
}

