/* ============================================================
   Le Jardin Residence — Styles
   Tokens OKLCH (Forest / Sand / Brass) · Cormorant Garamond + Inter
   ============================================================ */

/* ========== TOKENS (primitives → semantic) ========== */
:root {
  /* Forest */
  --forest-50:  oklch(97% 0.012 140);
  --forest-100: oklch(93% 0.022 140);
  --forest-200: oklch(86% 0.035 140);
  --forest-300: oklch(75% 0.050 140);
  --forest-400: oklch(60% 0.062 140);
  --forest-500: oklch(48% 0.065 145);
  --forest-600: oklch(38% 0.060 148);
  --forest-700: oklch(30% 0.050 150);
  --forest-800: oklch(22% 0.038 150);
  --forest-900: oklch(15% 0.025 150);

  /* Sand */
  --sand-50:  oklch(98% 0.006 80);
  --sand-100: oklch(96% 0.010 80);
  --sand-200: oklch(92% 0.015 80);
  --sand-300: oklch(84% 0.020 80);
  --sand-400: oklch(72% 0.025 75);
  --sand-500: oklch(58% 0.025 70);
  --sand-600: oklch(45% 0.022 65);
  --sand-700: oklch(32% 0.018 60);
  --sand-800: oklch(22% 0.015 60);
  --sand-900: oklch(13% 0.010 60);

  /* Brass */
  --brass-100: oklch(93% 0.030 80);
  --brass-300: oklch(80% 0.065 80);
  --brass-500: oklch(66% 0.080 75);
  --brass-600: oklch(55% 0.075 70);
  --brass-700: oklch(42% 0.060 65);

  /* Neutrals */
  --white: oklch(99% 0.002 80);
  --off-white: oklch(97% 0.004 80);
  --ink: oklch(18% 0.015 150);
  --ink-soft: oklch(30% 0.018 150);

  /* States */
  --success: oklch(62% 0.12 145);
  --danger:  oklch(54% 0.17 25);

  /* Semantic */
  --color-bg: var(--sand-50);
  --color-bg-elevated: var(--white);
  --color-bg-subtle: var(--sand-100);
  --color-bg-inverse: var(--forest-800);
  --color-bg-inverse-deep: var(--forest-900);
  --color-bg-inverse-soft: var(--forest-700);

  --color-fg: var(--ink);
  --color-fg-soft: var(--sand-600);
  --color-fg-muted: var(--sand-500);
  --color-fg-inverse: var(--sand-50);
  --color-fg-inverse-soft: var(--forest-200);

  --color-border: var(--sand-200);
  --color-border-strong: var(--sand-300);
  --color-border-inverse: oklch(100% 0 0 / 0.12);

  --color-brand: var(--forest-700);
  --color-brand-hover: var(--forest-600);
  --color-accent: var(--brass-500);
  --color-accent-hover: var(--brass-600);

  --color-focus: var(--brass-500);
  --focus-ring: 0 0 0 3px oklch(66% 0.08 75 / 0.45);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-display-xl: clamp(3rem, 2rem + 5vw, 6rem);
  --text-display-lg: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
  --text-display-md: clamp(2rem, 1.6rem + 2vw, 3rem);
  --text-display-sm: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --text-xl: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-md: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  --lh-display: 1.05;
  --lh-heading: 1.15;
  --lh-body: 1.6;
  --lh-ui: 1.4;
  --lh-tight: 1.2;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-xwide: 0.18em;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 10rem;

  --section-y-mobile: var(--space-9);
  --section-y-desktop: var(--space-11);
  --container-px-mobile: var(--space-4);
  --container-px-desktop: var(--space-7);
  --container-max: 1280px;
  --container-narrow: 960px;

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 2px 4px -1px oklch(15% 0.025 150 / 0.06), 0 1px 2px -1px oklch(15% 0.025 150 / 0.04);
  --shadow-md: 0 8px 16px -4px oklch(15% 0.025 150 / 0.08), 0 2px 4px -2px oklch(15% 0.025 150 / 0.05);
  --shadow-lg: 0 20px 40px -12px oklch(15% 0.025 150 / 0.14), 0 4px 8px -4px oklch(15% 0.025 150 / 0.06);
  --shadow-image: 0 30px 60px -20px oklch(15% 0.025 150 / 0.30);

  /* Motion */
  --dur-fast: 150ms;
  --dur-normal: 250ms;
  --dur-moderate: 400ms;
  --dur-slow: 600ms;
  --dur-luxury: 800ms;

  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cinematic: cubic-bezier(0.8, 0, 0.2, 1);

  /* Gradients */
  --grad-hero-overlay: linear-gradient(180deg, oklch(22% 0.038 150 / 0) 0%, oklch(22% 0.038 150 / 0.45) 55%, oklch(15% 0.025 150 / 0.82) 100%);
  --grad-divider: linear-gradient(90deg, transparent 0%, oklch(66% 0.08 75 / 0.5) 50%, transparent 100%);

  /* Z */
  --z-content: 1;
  --z-elevated: 10;
  --z-overlay: 40;
  --z-modal: 50;
  --z-float: 45;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
}
em { font-style: italic; }

/* Alpine cloak (gotcha F4) */
[x-cloak] { display: none !important; }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--color-brand);
  color: var(--color-fg-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* Honeypot */
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ========== UTILITIES ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px-mobile);
  padding-right: var(--container-px-mobile);
}
.container--narrow { max-width: var(--container-narrow); }

@media (min-width: 768px) {
  .container {
    padding-left: var(--container-px-desktop);
    padding-right: var(--container-px-desktop);
  }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-xwide);
  color: var(--brass-600);
  margin-bottom: var(--space-4);
}
.eyebrow--light { color: var(--brass-300); }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-elevated);
  transition: background var(--dur-moderate) var(--ease-out-expo), box-shadow var(--dur-moderate) var(--ease-out-expo);
  background: transparent;
}
.navbar--scrolled {
  background: oklch(98% 0.006 80 / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.navbar__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--white);
  transition: color var(--dur-moderate);
}
.navbar--scrolled .navbar__logo { color: var(--color-fg); }
.navbar__logo-text em { font-style: italic; font-weight: 300; }
.navbar__cta {
  color: var(--white);
  border-color: oklch(100% 0 0 / 0.4);
}
.navbar--scrolled .navbar__cta {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease-out-expo),
              background-color var(--dur-fast) var(--ease-out-expo),
              color var(--dur-fast) var(--ease-out-expo),
              box-shadow var(--dur-fast) var(--ease-out-expo);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: var(--shadow-md); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--primary-light {
  background: var(--sand-50);
  color: var(--forest-800);
}
.btn--primary-light:hover { background: var(--white); }

.btn--primary-dark {
  background: var(--forest-700);
  color: var(--sand-50);
}
.btn--primary-dark:hover { background: var(--forest-600); }

.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
  font-size: var(--text-sm);
  padding: 10px 20px;
  min-height: 40px;
}

.btn--link {
  background: transparent;
  color: var(--brass-600);
  padding: 0;
  min-height: 0;
  border: none;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--brass-300);
}
.btn--link:hover { transform: none; box-shadow: none; text-decoration-color: var(--brass-600); }

.btn--block { width: 100%; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* F9 */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  padding-bottom: var(--space-9);
  padding-top: var(--space-10);
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero-overlay);
}
.hero__content {
  position: relative;
  z-index: var(--z-content);
  max-width: 860px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-tight);
  color: var(--white);
  margin-bottom: var(--space-5);
}
.hero__title em {
  font-weight: 300;
  font-style: italic;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.45;
  color: var(--forest-100);
  margin-bottom: var(--space-4);
  max-width: 640px;
}
.hero__meta {
  font-size: var(--text-sm);
  color: var(--forest-200);
  margin-bottom: var(--space-7);
  max-width: 640px;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}
.hero__microcopy {
  font-size: var(--text-sm);
  color: var(--forest-200);
  max-width: 360px;
}
.hero__scroll {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--brass-300);
  animation: scrollPulse 2s var(--ease-cinematic) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (min-width: 768px) {
  .hero__cta { flex-direction: row; align-items: center; }
  .hero__microcopy { max-width: 280px; }
}

/* ========== SECTIONS ========== */
.section {
  padding-top: var(--section-y-mobile);
  padding-bottom: var(--section-y-mobile);
}
@media (min-width: 1024px) {
  .section {
    padding-top: var(--section-y-desktop);
    padding-bottom: var(--section-y-desktop);
  }
}
.section--light { background: var(--color-bg); color: var(--color-fg); }
.section--subtle { background: var(--color-bg-subtle); color: var(--color-fg); }
.section--dark { background: var(--forest-800); color: var(--color-fg-inverse); }
.section--forest { background: var(--forest-700); color: var(--color-fg-inverse); }
.section--forest-deep { background: var(--forest-900); color: var(--color-fg-inverse); }

.section__title {
  font-size: var(--text-display-md);
  color: var(--color-fg);
  margin-bottom: var(--space-5);
  max-width: 28ch;
}
.section__title--light { color: var(--color-fg-inverse); }
.section__title--center { margin-left: auto; margin-right: auto; text-align: center; }

.section__title em { font-style: italic; font-weight: 300; }

.section__lead {
  font-size: var(--text-lg);
  color: var(--color-fg-soft);
  max-width: 56ch;
  margin-bottom: var(--space-7);
}
.section__lead--light { color: var(--forest-100); }
.section__lead--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ========== NUMBERS GRID ========== */
.numbers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-7);
}
@media (min-width: 768px) {
  .numbers-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
}
.number-card {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
}
.number-card__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4rem, 2rem + 8vw, 7rem);
  line-height: 0.9;
  color: var(--forest-700);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}
.number-card__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-fg-soft);
  max-width: 28ch;
}

/* ========== PILLARS ========== */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  margin-top: var(--space-7);
}
@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-7); }
}
.pillar {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.pillar__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-display-md);
  color: var(--brass-500);
  margin-bottom: var(--space-3);
  line-height: 1;
}
.pillar__title {
  font-size: var(--text-display-sm);
  color: var(--color-fg);
  margin-bottom: var(--space-3);
}
.pillar__body {
  color: var(--color-fg-soft);
  max-width: 44ch;
}

/* ========== ROOFTOP ========== */
.rooftop { position: relative; }
.rooftop__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: var(--space-7);
  overflow: hidden;
  border-radius: var(--radius-md);
}
.rooftop__hero img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-luxury) var(--ease-cinematic);
}
.rooftop__hero:hover img { transform: scale(1.03); }
.rooftop__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
.rooftop__text { max-width: 52ch; }
.rooftop__side {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-image);
}
.rooftop__side img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1024px) {
  .rooftop__hero { aspect-ratio: 21 / 9; }
  .rooftop__grid { grid-template-columns: 1.2fr 1fr; gap: var(--space-8); }
}

/* ========== SPLIT SECTION ========== */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 1024px) {
  .split-section { grid-template-columns: 1.1fr 1fr; gap: var(--space-9); }
}
.split-section--reverse .split-section__media { order: -1; }
@media (min-width: 1024px) {
  .split-section--reverse .split-section__media { order: initial; }
  .split-section--reverse .split-section__text { order: 2; }
}

.split-section__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-image);
}
.split-section__media img { width: 100%; height: 100%; object-fit: cover; }

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
}
.feature-list li {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-fg-soft);
  font-size: var(--text-md);
  position: relative;
  padding-left: var(--space-5);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 1px;
  background: var(--brass-500);
}
.feature-list li:last-child { border-bottom: 1px solid var(--color-border); }

/* ========== ARCHITECT / VIDEO ========== */
.architect { text-align: center; }
.architect__video {
  margin: var(--space-8) auto var(--space-5);
  max-width: 960px;
}
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}
.video-placeholder img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-luxury) var(--ease-cinematic);
}
.video-placeholder:hover img { transform: scale(1.03); }
.video-placeholder__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: var(--radius-full);
  background: var(--brass-500);
  color: var(--forest-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out-expo), background var(--dur-fast);
}
.video-placeholder__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--brass-300);
}
.video-placeholder__play svg { margin-left: 4px; }
.architect__caption {
  font-style: italic;
  color: var(--color-fg-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}
.architect__cta { margin-top: var(--space-6); }

/* ========== GALLERY (masonry-ish) ========== */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}
@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    grid-auto-flow: dense;
  }
}
.gallery__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--sand-200);
}
.gallery__item--tall { aspect-ratio: 3 / 4; }
.gallery__item--square { aspect-ratio: 1 / 1; }
@media (min-width: 1024px) {
  .gallery__item--tall { grid-row: span 2; aspect-ratio: 3 / 4; }
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-luxury) var(--ease-cinematic);
}
.gallery__item:hover img { transform: scale(1.05); }

/* ========== LOCATION ========== */
.location-list {
  margin-top: var(--space-5);
}
.location-list dt {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--brass-600);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.location-list dt:first-child { margin-top: 0; }
.location-list dd {
  font-size: var(--text-md);
  color: var(--color-fg-soft);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

/* ========== SCARCITY ========== */
.scarcity { text-align: center; }
.scarcity__counter {
  margin: var(--space-7) 0 var(--space-5);
  padding: var(--space-6);
  border-top: 1px solid var(--color-border-inverse);
  border-bottom: 1px solid var(--color-border-inverse);
}
.scarcity__fraction { display: block; }
.scarcity__fraction strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4rem, 2rem + 6vw, 6rem);
  line-height: 1;
  color: var(--brass-300);
  letter-spacing: var(--tracking-tight);
}
.scarcity__fraction span {
  display: block;
  margin-top: var(--space-3);
  color: var(--forest-200);
  font-size: var(--text-md);
}
.scarcity__kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--sand-50);
  max-width: 46ch;
  margin: 0 auto var(--space-7);
  line-height: 1.35;
}
.scarcity__cta { margin-top: var(--space-5); }

/* ========== FAQ ========== */
.faq {
  margin-top: var(--space-7);
  border-top: 1px solid var(--color-border);
}
.faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-fg);
  cursor: pointer;
  list-style: none;
  padding: var(--space-2) 0;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brass-500);
  font-weight: 300;
  transition: transform var(--dur-moderate) var(--ease-out-expo);
  flex-shrink: 0;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
  padding-top: var(--space-3);
  max-width: 64ch;
}
.faq__a p {
  color: var(--color-fg-soft);
  font-size: var(--text-md);
}

/* ========== FORM CTA ========== */
.form-cta { text-align: center; }
.form-wrapper { margin-top: var(--space-7); }
.form-wrapper--center { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }

.form-iframe {
  width: 100%;
  min-height: 520px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--white);
}
.form-microcopy {
  font-size: var(--text-sm);
  color: var(--forest-200);
}

/* Native form */
.native-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 480px;
  margin: var(--space-7) auto 0;
  text-align: left;
}
.native-form__row { display: flex; flex-direction: column; gap: var(--space-2); }
.native-form label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--forest-200);
}
.native-form input {
  height: 52px;
  padding: 14px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--forest-600);
  background: var(--sand-50);
  color: var(--ink);
  font-size: 16px; /* evita zoom iOS */
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.native-form input:focus {
  outline: none;
  border-color: var(--brass-500);
  box-shadow: var(--focus-ring);
}
.form-success {
  color: var(--success);
  background: oklch(62% 0.12 145 / 0.12);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  text-align: center;
}
.form-error {
  color: oklch(78% 0.12 25);
  background: oklch(54% 0.17 25 / 0.18);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--forest-900);
  color: var(--forest-200);
  padding-top: var(--space-9);
  padding-bottom: var(--space-5);
  font-size: var(--text-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border-inverse);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); }
}
.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-display-sm);
  color: var(--sand-50);
  margin-bottom: var(--space-3);
}
.footer__logo em { font-style: italic; font-weight: 300; }
.footer__tag { color: var(--forest-300); max-width: 30ch; }
.footer__h {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--brass-300);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.footer__col p { margin-bottom: var(--space-2); }
.footer__col a { color: var(--sand-50); transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--brass-300); }

.footer__base {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--forest-300);
}
.footer__legal { display: flex; gap: var(--space-5); }
.footer__legal a { color: var(--forest-200); }
.footer__legal a:hover { color: var(--brass-300); }

@media (min-width: 768px) {
  .footer__base { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(15% 0.025 150 / 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--sand-100);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--dur-fast);
}
.modal__close:hover { background: var(--sand-200); }
.modal__title {
  font-size: var(--text-display-sm);
  padding: var(--space-6) var(--space-6) var(--space-3);
}
.modal__iframe {
  flex: 1;
  min-height: 500px;
  border: none;
  width: 100%;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: var(--z-float);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px oklch(60% 0.15 145 / 0.4);
  transition: transform var(--dur-fast) var(--ease-out-expo), box-shadow var(--dur-fast);
  animation: whatsappPulse 5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px oklch(60% 0.15 145 / 0.5);
}
.whatsapp-float__label {
  position: absolute;
  right: 70px;
  background: var(--forest-900);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast);
}
.whatsapp-float:hover .whatsapp-float__label { opacity: 1; }

@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 16px; right: 16px;
    width: 56px; height: 56px;
  }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .whatsapp-float__label { display: none; }
}

/* ========== REVEAL ON SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-luxury) var(--ease-cinematic),
              transform var(--dur-luxury) var(--ease-cinematic);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== REDUCED MOTION (F6) ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__scroll-line { animation: none; opacity: 0.6; transform: scaleY(0.7); }
  .whatsapp-float { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
