/* =============================================================================
   RUA DA CRECHE — editorial luxury stylesheet
   A premium "flagship development" sub-brand built on Pontifex DNA:
   Cormorant Garamond (display serif) + Hanken Grotesk (body), forest/terracotta
   on warm cream — airy, full-bleed, hairline-ruled, slow-moving. Tokens in :root.
   ============================================================================= */

:root {
  /* ---- Pontifex brand palette ---- */
  --charcoal: #15171B;
  --ink: #1A1C20;
  --cream: #F5F1EA;
  --cream-deep: #EBE3D6;
  --warm-white: #FFFEFC;
  --forest: #2A2724;
  --forest-dark: #1B1916;
  --sage: #9A9183;
  --sage-light: #B8AFA0;
  --sand: #E9E1D4;
  --sand-dark: #D8CDBC;
  --line: #E2D9CB;            /* hairline colour */
  --slate: #2B2926;
  --slate-light: #5C574E;
  --muted: #8C857A;
  --terracotta: #8B2E26;
  --terracotta-light: #A23A31;
  --terracotta-dark: #651E18;
  --whatsapp: #25D366;

  /* ---- Typology accents (explorer board) ---- */
  --t0: #C2A079;
  --t1: #9A9183;
  --t2: #8B2E26;

  /* ---- Typefaces (swap these two lines to change all fonts) ---- */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;  /* elegant display serif */
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;     /* refined grotesque */

  --maxw: 1300px;
  --gutter: 40px;

  /* refined "expo-out" easing for slow, considered motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 4px 24px rgba(21,23,27,0.05);
  --shadow-md: 0 18px 50px rgba(21,23,27,0.09);
  --shadow-lg: 0 40px 90px rgba(21,23,27,0.16);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--slate);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--terracotta); color: #fff; }

h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 500; }
/* Cormorant runs lighter than DM Serif — give numerals & the wordmark more weight
   so they keep presence at small/medium sizes. */
.stat-num, .hero-badge strong, .range-values, .floor-head h4, .unit-tile .u-letter,
.unit-tile .u-price, .typ-body h3, .typ-price, .step-num, .detail-head .u-letter,
.detail-price .big, .wtp-val, table.units .tprice, .result-count strong,
.sec-num, .brand-mark { font-weight: 600; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--terracotta); outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 3000; background: var(--terracotta); color: #fff; padding: 12px 20px; font-weight: 600; }
.skip-link:focus { left: 12px; top: 12px; }

/* ----------------------------------------------------------------- Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 150px 0; position: relative; }
.section + .section { padding-top: 150px; }

/* Editorial section heading: number · hairline · uppercase label */
.sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.sec-num { font-family: var(--font-serif); font-size: 15px; color: var(--terracotta); letter-spacing: 1px; }
.sec-head .section-label { margin: 0; }
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--slate-light); }
.section-title { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -0.005em; color: var(--ink); }
.section-title em { font-style: italic; color: var(--terracotta); }
.section-intro { max-width: 600px; margin-top: 28px; font-size: 19px; line-height: 1.7; color: var(--slate-light); }
.center { text-align: center; }
.center .sec-head { justify-content: center; }
.center .sec-head::after { display: none; }
.center .sec-head::before { content: ""; width: 40px; height: 1px; background: var(--line); }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ----------------------------------------------------------------- Buttons */
.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: all 0.5s var(--ease); border: none; white-space: nowrap;
}
.btn-primary { background: var(--terracotta); color: #fff; padding: 19px 40px; }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 18px 36px; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--terracotta); padding: 10px 0; letter-spacing: 1.6px; position: relative; }
.btn-ghost::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 1px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.btn-ghost:hover::after { transform: scaleX(1); }
.btn-block { width: 100%; }
.btn-sm { padding: 13px 22px; font-size: 11px; }

/* ----------------------------------------------------------------- Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 30px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.5s var(--ease);
}
.nav.scrolled { background: rgba(250,246,241,0.85); backdrop-filter: blur(14px); padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; gap: 1px; text-decoration: none; line-height: 1; }
.brand-mark { font-family: var(--font-serif); font-size: 25px; color: var(--ink); letter-spacing: 0.2px; }
.brand-sub { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-link { font-size: 13px; font-weight: 500; color: var(--slate); text-decoration: none; letter-spacing: 0.4px; transition: color 0.4s var(--ease); position: relative; }
.nav-link:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.nav-link:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-link:hover { color: var(--terracotta); }
.nav-link.nav-cta { background: var(--terracotta); color: #fff; padding: 12px 22px; font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.nav-link.nav-cta:hover { background: var(--terracotta-dark); color: #fff; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); }
.lang-btn { background: transparent; border: none; padding: 8px 13px; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--muted); cursor: pointer; transition: all 0.4s var(--ease); }
.lang-btn.active { background: var(--forest); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; padding: 6px; }
.nav-toggle span { width: 28px; height: 1.5px; background: var(--ink); transition: all 0.4s var(--ease); }
.mobile-menu { display: none; }

/* ----------------------------------------------------------------- Hero (full-bleed editorial) */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; background: var(--cream); overflow: hidden; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 54vw; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.hero.in .hero-media img { transform: scale(1); }
/* soft cream wash so the headline column stays airy and legible */
.hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--cream) 0%, rgba(250,246,241,0.55) 22%, rgba(250,246,241,0) 48%); z-index: 1; }
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 620px; padding: 120px 0 60px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--forest); margin-bottom: 30px; }
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--forest); display: inline-block; }
.hero-title { font-size: clamp(64px, 10.5vw, 150px); line-height: 0.94; letter-spacing: -0.01em; color: var(--ink); font-weight: 600; }
.hero-title em { font-style: italic; color: var(--terracotta); }
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .ln > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero.in .hero-title .ln:nth-child(1) > span { transition-delay: 0.15s; transform: none; }
.hero.in .hero-title .ln:nth-child(2) > span { transition-delay: 0.30s; transform: none; }
.hero-fade { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero.in .hero-fade { opacity: 1; transform: none; }
.hero.in .hero-loc { transition-delay: 0.5s; }
.hero.in .hero-tagline { transition-delay: 0.6s; }
.hero.in .hero-btns { transition-delay: 0.7s; }
.hero.in .hero-trust { transition-delay: 0.8s; }
.hero-loc { margin-top: 30px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--slate-light); font-weight: 600; }
.hero-tagline { margin-top: 26px; font-size: 20px; line-height: 1.65; color: var(--slate); max-width: 470px; }
.hero-btns { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.hero-badge { position: absolute; bottom: 40px; right: calc(var(--gutter) + 78px); z-index: 3; background: var(--warm-white); padding: 22px 30px; box-shadow: var(--shadow-md); text-align: left; }
.hero-badge .lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: block; }
.hero-badge strong { font-family: var(--font-serif); font-size: 34px; color: var(--terracotta); display: block; line-height: 1.1; }
.hero-badge .sub { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--slate-light); }
.hero-scroll { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 44px; border: 1px solid var(--muted); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; }
.hero-scroll span { width: 3px; height: 8px; background: var(--terracotta); border-radius: 2px; animation: scrolldot 1.8s var(--ease-soft) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }

/* ----------------------------------------------------------------- Stat strip (light, hairline-ruled) */
.stats { background: var(--cream-deep); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.stat { text-align: center; padding: 8px 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 48px); line-height: 1; color: var(--ink); }
.stat-label { margin-top: 12px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* ----------------------------------------------------------------- Story */
.story-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 90px; align-items: center; }
.story-media { aspect-ratio: 3/4; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story-media:hover img { transform: scale(1.04); }
.story p { margin-top: 24px; font-size: 18px; line-height: 1.8; color: var(--slate-light); }
.story blockquote { margin-top: 36px; padding-left: 26px; border-left: 2px solid var(--terracotta); font-family: var(--font-serif); font-size: 26px; font-style: italic; color: var(--forest); line-height: 1.4; }

/* ----------------------------------------------------------------- Cinematic band (Tagus aerial) */
.cine { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ink); }
.cine-media { position: absolute; inset: 0; }
.cine-video { width: 100%; height: 100%; object-fit: cover; }
.cine-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,26,0.5) 0%, rgba(20,22,26,0.34) 45%, rgba(20,22,26,0.62) 100%); }
.cine-inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.cine-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--sage-light); margin-bottom: 26px; }
.cine-quote { font-family: var(--font-serif); font-weight: 500; font-size: clamp(34px, 5vw, 64px); line-height: 1.1; color: var(--warm-white); letter-spacing: -0.005em; max-width: 16ch; margin: 0 auto; }
.cine-quote em { font-style: italic; color: var(--terracotta-light); }
.cine-sub { margin-top: 26px; font-size: 16px; letter-spacing: 1px; color: rgba(255,255,255,0.82); }
@media (prefers-reduced-motion: reduce) { .cine-video { animation: none !important; } }

/* ----------------------------------------------------------------- Location */
.location { background: var(--warm-white); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.loc-map { position: relative; aspect-ratio: 4/3; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.loc-map img, .loc-map iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
/* On touch, a live map iframe traps page scroll — disable its pointer events and
   let the "Open in Google Maps" button handle interaction. Re-enable on real cursors. */
.loc-map iframe { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .loc-map iframe { pointer-events: auto; } }
.loc-map-link { position: absolute; left: 12px; top: 12px; background: var(--warm-white); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 10px 15px; text-decoration: none; box-shadow: var(--shadow-md); transition: all 0.4s var(--ease); z-index: 2; }
.loc-map-link:hover { background: var(--terracotta); color: #fff; }
.loc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); }
.loc-card { background: var(--warm-white); padding: 28px; }
.loc-card .ic { font-family: var(--font-serif); font-size: 30px; color: var(--terracotta); line-height: 1; }
.loc-card h4 { margin-top: 14px; font-size: 16px; color: var(--ink); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.2px; }
.loc-card p { margin-top: 8px; font-size: 14px; color: var(--slate-light); line-height: 1.6; }

/* ================================================================= EXPLORER */
.explorer { background: var(--cream); }
.explorer-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.explorer-head .sec-head { justify-content: center; }
.explorer-head .sec-head::after { display: none; }
.explorer-head .sec-head::before { content: ""; width: 40px; height: 1px; background: var(--line); }
.explorer-head .section-intro { margin-left: auto; margin-right: auto; }

.explorer-panel { background: var(--warm-white); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.controls { padding: 40px 44px; border-bottom: 1px solid var(--line); }
.controls-row { display: flex; flex-wrap: wrap; gap: 40px 50px; align-items: flex-end; }
.control-group { flex: 1 1 240px; min-width: 220px; }
.control-group > label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* Dual range slider */
.range-wrap { position: relative; height: 38px; }
.range-track { position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: var(--sand-dark); }
.range-fill { position: absolute; top: 16px; height: 2px; background: var(--terracotta); }
.range-wrap input[type=range] { position: absolute; top: 8px; left: 0; width: 100%; margin: 0; height: 20px; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.range-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--warm-white); border: 1.5px solid var(--terracotta); box-shadow: var(--shadow-sm); cursor: pointer; pointer-events: auto; transition: transform 0.3s var(--ease); }
.range-wrap input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-wrap input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--warm-white); border: 1.5px solid var(--terracotta); box-shadow: var(--shadow-sm); cursor: pointer; pointer-events: auto; }
.range-values { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-serif); font-size: 18px; color: var(--ink); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: transparent; border: 1px solid var(--line); color: var(--slate); padding: 11px 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.4px; cursor: pointer; transition: all 0.4s var(--ease); }
.chip:hover { border-color: var(--forest); }
.chip.active { background: var(--forest); border-color: var(--forest); color: #fff; }

.controls-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 44px; border-bottom: 1px solid var(--line); }
.result-count { font-size: 15px; color: var(--slate-light); }
.result-count strong { font-family: var(--font-serif); font-size: 24px; color: var(--terracotta); }
.view-toggle { display: inline-flex; border: 1px solid var(--line); }
.view-btn { background: transparent; border: none; padding: 10px 18px; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: all 0.4s var(--ease); }
.view-btn.active { background: var(--ink); color: var(--cream); }

/* Availability board */
.board { padding: 44px; }
.legend { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 34px; font-size: 12px; letter-spacing: 0.5px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--slate-light); text-transform: uppercase; font-weight: 600; font-size: 11px; letter-spacing: 1px; }
.legend i { width: 12px; height: 12px; display: inline-block; }
.floor { margin-bottom: 38px; }
.floor:last-child { margin-bottom: 0; }
.floor-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.floor-head h4 { font-family: var(--font-serif); font-size: 24px; color: var(--ink); }
.floor-head .line { flex: 1; height: 1px; background: var(--line); }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }

.unit-tile { position: relative; text-align: left; background: var(--warm-white); border: 1px solid var(--line); padding: 20px; cursor: pointer; transition: all 0.5s var(--ease); display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.unit-tile::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--sage); transform: scaleX(1); transform-origin: left; }
.unit-tile.t-T0::before { background: var(--t0); }
.unit-tile.t-T1::before { background: var(--t1); }
.unit-tile.t-T2::before { background: var(--t2); }
.unit-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.unit-tile.dimmed { opacity: 0.3; filter: grayscale(0.6); }
.unit-tile.selected { box-shadow: 0 0 0 1.5px var(--terracotta); border-color: var(--terracotta); }
.unit-tile .u-id { display: flex; align-items: center; gap: 11px; padding-right: 38px; }
.unit-tile .u-letter { font-family: var(--font-serif); font-size: 30px; color: var(--ink); line-height: 1; }
.u-type { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; padding: 4px 9px; color: #fff; }
.u-type.t-T0 { background: var(--t0); }
.u-type.t-T1 { background: var(--t1); }
.u-type.t-T2 { background: var(--t2); }
.unit-tile .u-area { font-size: 13px; color: var(--slate-light); }
.unit-tile .u-terrace { font-size: 11px; font-weight: 600; color: var(--forest); letter-spacing: 0.3px; text-transform: uppercase; }
.unit-tile .u-price { font-family: var(--font-serif); font-size: 22px; color: var(--terracotta); margin-top: auto; line-height: 1.2; }
.unit-tile .u-price small { font-family: var(--font-body); font-size: 11px; color: var(--muted); font-weight: 500; }
.unit-tile .u-heart { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.4s var(--ease); padding: 0; }
.unit-tile .u-heart:hover { border-color: var(--terracotta); transform: scale(1.1); }
.unit-tile .u-heart svg { width: 15px; height: 15px; stroke: var(--terracotta); fill: none; }
.unit-tile.selected .u-heart svg { fill: var(--terracotta); }
.unit-tile .u-gate { font-size: 12px; font-weight: 600; color: var(--forest); margin-top: auto; letter-spacing: 0.5px; }
.board-empty { text-align: center; padding: 60px 20px; color: var(--slate-light); font-size: 16px; }

/* Table view */
.table-wrap { padding: 14px 44px 44px; overflow-x: auto; }
table.units { width: 100%; border-collapse: collapse; font-size: 14px; }
table.units th { text-align: left; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--ink); white-space: nowrap; font-weight: 600; }
table.units td { padding: 16px; border-bottom: 1px solid var(--line); }
table.units tr.dimmed { opacity: 0.4; }
table.units tr:hover td { background: var(--cream); }
table.units .tprice { font-family: var(--font-serif); font-size: 17px; color: var(--terracotta); }
.badge-terrace { font-size: 11px; font-weight: 600; color: var(--forest); background: rgba(61,90,62,0.09); padding: 3px 9px; letter-spacing: 0.3px; }

/* ----------------------------------------------------------------- Selection tray */
.tray { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100; transform: translateY(110%); transition: transform 0.6s var(--ease); background: var(--ink); color: var(--cream); box-shadow: 0 -16px 50px rgba(0,0,0,0.25); }
.tray.open { transform: translateY(0); }
.tray-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tray-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage-light); }
.tray-items { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.tray-chip { background: rgba(255,255,255,0.08); padding: 7px 10px 7px 13px; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; }
.tray-chip button { background: none; border: none; color: var(--sage-light); cursor: pointer; font-size: 16px; line-height: 1; }
.tray-chip button:hover { color: #fff; }

/* ----------------------------------------------------------------- Typology cards */
.typ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.typ-card { background: var(--warm-white); border: 1px solid var(--line); transition: all 0.6s var(--ease); display: flex; flex-direction: column; }
.typ-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.typ-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.typ-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.typ-card:hover .typ-thumb img { transform: scale(1.05); }
.typ-body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.typ-body h3 { font-size: 38px; color: var(--ink); line-height: 1; }
.typ-meta { margin: 12px 0 18px; font-size: 14px; color: var(--slate-light); letter-spacing: 0.3px; }
.typ-price { font-family: var(--font-serif); font-size: 27px; color: var(--terracotta); }
.typ-price small { font-family: var(--font-body); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.typ-body .btn-ghost { margin-top: 22px; align-self: flex-start; }

/* ----------------------------------------------------------------- Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
.gallery-item { overflow: hidden; cursor: pointer; position: relative; background: var(--sand); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(21,23,27,0.35)); opacity: 0; transition: opacity 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

/* ----------------------------------------------------------------- Journey */
.journey { background: var(--forest); color: var(--cream); }
.journey .section-title { color: var(--warm-white); }
.journey .section-label { color: var(--sage-light); }
.journey .sec-num { color: var(--terracotta-light); }
.journey .sec-head::after { background: rgba(255,255,255,0.18); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 50px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.14); }
.step { background: var(--forest); padding: 40px 36px; transition: background 0.5s var(--ease); }
.step:hover { background: var(--forest-dark); }
.step-num { font-family: var(--font-serif); font-size: 52px; color: var(--terracotta-light); line-height: 1; }
.step h4 { margin-top: 18px; font-size: 20px; color: var(--warm-white); font-family: var(--font-body); font-weight: 600; }
.step p { margin-top: 12px; font-size: 15px; color: var(--sage-light); line-height: 1.6; }
.pay-note { margin-top: 36px; font-size: 13px; color: var(--sage-light); letter-spacing: 0.5px; }

/* ----------------------------------------------------------------- Register form */
.register { background: var(--warm-white); }
.reg-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
.reg-pitch .early { display: inline-block; background: rgba(196,89,59,0.08); color: var(--terracotta-dark); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 16px; margin-bottom: 26px; }
.reg-pitch p { margin-top: 22px; font-size: 18px; line-height: 1.7; color: var(--slate-light); }
.form { background: var(--cream); padding: 44px; border: 1px solid var(--line); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--slate); margin-bottom: 9px; }
.field input, .field select, .field textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--line); background: var(--warm-white); font-family: inherit; font-size: 15px; color: var(--ink); transition: border-color 0.4s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: none; }
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-hint { font-size: 13px; color: var(--slate-light); margin-top: 4px; }
.form-success { display: none; text-align: center; padding: 40px; }
.form-success.show { display: block; }
.form-success .ic { width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%; background: var(--forest); display: flex; align-items: center; justify-content: center; }
.form-success .ic svg { stroke: #fff; width: 32px; height: 32px; fill: none; }
.form-success h3 { font-size: 32px; color: var(--ink); }
.form-success p { margin-top: 12px; color: var(--slate-light); }

/* ----------------------------------------------------------------- FAQ */
.faq-list { max-width: 860px; margin: 50px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 30px 44px 30px 0; font-size: 19px; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; letter-spacing: 0.2px; transition: color 0.4s var(--ease); }
.faq-q:hover { color: var(--terracotta); }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--terracotta); transition: transform 0.4s var(--ease); }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a-inner { padding: 0 0 30px; color: var(--slate-light); font-size: 16px; line-height: 1.7; max-width: 680px; }

/* ----------------------------------------------------------------- Footer */
.footer { background: var(--ink); color: var(--sage-light); padding: 90px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
.footer .brand-mark { color: var(--cream); font-size: 30px; }
.footer .brand-sub { color: var(--terracotta-light); }
.footer-blurb { margin-top: 22px; font-size: 14px; max-width: 340px; line-height: 1.7; }
.footer h5 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage); margin-bottom: 20px; }
.footer a { display: block; color: var(--sage-light); text-decoration: none; font-size: 14px; margin-bottom: 12px; transition: color 0.4s var(--ease); }
.footer a:hover { color: var(--terracotta-light); }
.footer-contact p { font-size: 14px; margin-bottom: 12px; line-height: 1.6; }
.footer-bottom { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--sage); letter-spacing: 0.3px; }

/* ----------------------------------------------------------------- WhatsApp */
.wa-btn { position: fixed; bottom: 28px; right: 28px; z-index: 900; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37,211,102,0.4); transition: all 0.4s var(--ease); text-decoration: none; }
.wa-btn:hover { transform: scale(1.08); }
.wa-btn svg { width: 32px; height: 32px; fill: #fff; }

/* ----------------------------------------------------------------- Overlays */
.overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(21,23,27,0.55); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity 0.4s var(--ease); }
.overlay.open { display: flex; opacity: 1; }
.modal { background: var(--warm-white); max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; transform: translateY(20px); transition: transform 0.5s var(--ease); }
.overlay.open .modal { transform: none; }
.modal-wide { max-width: 800px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); border: none; font-size: 20px; color: var(--slate); cursor: pointer; z-index: 2; transition: all 0.4s var(--ease); }
.modal-close:hover { background: var(--terracotta); color: #fff; }
.modal-pad { padding: 44px; }
.modal h3 { font-size: 34px; color: var(--ink); }

/* Unit detail modal */
.detail-media { aspect-ratio: 16/10; background: var(--sand); overflow: hidden; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.detail-head .u-letter { font-family: var(--font-serif); font-size: 46px; color: var(--ink); line-height: 1; }
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 28px 0; }
.detail-specs .spec { border-left: 1px solid var(--line); padding-left: 14px; }
.detail-specs .spec span { display: block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.detail-specs .spec strong { font-size: 18px; color: var(--ink); font-weight: 600; }
.detail-price { display: flex; align-items: baseline; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.detail-price .big { font-family: var(--font-serif); font-size: 42px; color: var(--terracotta); }
.detail-price .perm { font-size: 14px; color: var(--slate-light); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Willingness-to-pay control */
.wtp { margin-top: 18px; padding: 22px; background: var(--cream); border: 1px solid var(--line); }
.wtp label { display: block; font-size: 14px; font-weight: 600; color: var(--forest); margin-bottom: 4px; }
.wtp .wtp-sub { font-size: 13px; color: var(--slate-light); margin-bottom: 14px; }
.wtp input[type=range] { width: 100%; accent-color: var(--terracotta); }
.wtp .wtp-val { text-align: center; font-family: var(--font-serif); font-size: 28px; color: var(--terracotta); margin-top: 10px; }

/* ----------------------------------------------------------------- Reveal animation */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ================================================================= Responsive */
@media (max-width: 1024px) {
  .hero-media { width: 46vw; }
  .hero-inner { max-width: 52%; }
  .story-grid, .loc-grid, .reg-grid { grid-template-columns: 1fr; gap: 50px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 0; }
  .stat:nth-child(4) { border-left: none; }
  .typ-grid, .steps { grid-template-columns: 1fr; }
  .steps { gap: 1px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 110px 0; }
}
@media (max-width: 768px) {
  :root { --gutter: 22px; }
  .nav { padding: 18px var(--gutter); }
  .nav.scrolled { padding: 14px var(--gutter); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: none; position: fixed; inset: 0; z-index: 1500; background: var(--cream); flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-size: 26px; font-family: var(--font-serif); color: var(--ink); text-decoration: none; }
  .mobile-menu .lang-toggle { margin-top: 12px; }
  .mobile-close { position: absolute; top: 22px; right: 22px; background: none; border: none; font-size: 34px; color: var(--slate); cursor: pointer; }

  /* Hero → full-bleed background with cream scrim, text overlaid */
  .hero { display: block; }
  .hero-media { position: absolute; inset: 0; width: 100%; }
  .hero-media::before { background: linear-gradient(180deg, rgba(250,246,241,0.6) 0%, rgba(250,246,241,0.2) 35%, rgba(250,246,241,0.75) 75%, var(--cream) 100%); }
  .hero-inner { max-width: 100%; padding: 118px 0 80px; }
  .hero-title { font-size: clamp(56px, 18vw, 92px); }
  .hero-badge { position: static; margin-top: 30px; display: inline-block; }
  .hero-scroll { display: none; }

  .section { padding: 80px 0; }
  .section-title { font-size: clamp(34px, 9vw, 48px); }
  .controls { padding: 28px 24px; }
  .controls-foot, .board, .table-wrap { padding-left: 24px; padding-right: 24px; }
  .controls-row { gap: 28px; }
  .control-group { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .detail-specs { grid-template-columns: 1fr; }
  .modal-pad { padding: 30px; }
  .story-grid, .loc-grid, .reg-grid { gap: 40px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(5) { border-left: none; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item.wide, .gallery-item.tall { grid-column: auto; grid-row: auto; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn-primary, .hero-btns .btn-outline { width: 100%; }
  .loc-cards { grid-template-columns: 1fr; }
}

/* Brochure download link (register section) */
.brochure-dl{display:inline-block;border:1px solid var(--gold);color:var(--gold);font-weight:600;font-size:13px;letter-spacing:1.2px;text-transform:uppercase;padding:12px 22px;text-decoration:none;transition:background .25s var(--ease-soft),color .25s var(--ease-soft);cursor:pointer;}
.brochure-dl:hover{background:var(--gold);color:#fff;}
.footer-nav a[data-brochure-dl]{text-transform:none;letter-spacing:0;border:none;padding:0;font-weight:inherit;font-size:inherit;color:inherit;display:block;}
.footer-nav a[data-brochure-dl]:hover{background:none;color:inherit;text-decoration:underline;}
