/* ARCILLA · CALIZA — self-hosted clone of the Framer landing page.
   Layout + type reverse-engineered section-by-section from the live site. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Gellix";
  src: url("../assets/fonts/Gellix-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gellix";
  src: url("../assets/fonts/Gellix-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --olive: #596644;
  --olive-dark: #4c583a;
  --ink: #5e5e5e;          /* headings + body — the site is monochrome gray on white */
  --ink-soft: #7a7a7a;
  --muted: #9a9a9a;
  --line: #e7e7e3;
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --radius: 14px;
  --maxw: 1440px;
  --pad: clamp(20px, 3vw, 40px);
  --gap: 14px;
  --font: "Gellix", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-weight: 400; font-size: 16px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul { margin: 0; padding: 0; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(60px, 8.5vw, 124px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }

/* Headings: the whole site uses Gellix Medium ~40px in gray. Understated. */
.h { font-weight: 500; color: var(--ink); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; letter-spacing: -0.005em; }
.h--center { text-align: center; }
.subhead { font-size: 14px; color: var(--ink); line-height: 1.7; }
/* small sub-section label (Community Amenities / The Residences live inside Key Features) */
.sublabel { font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.body { font-size: 16px; color: var(--ink); line-height: 1.7; }

/* ---------- Header ---------- */
/* Transparent floating nav — no background bar, matches original (fixed, ~40px from top) */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(24px, 3.6vh, 40px) var(--pad) 0; background: transparent;
}
.brand-mark .wordmark { height: 20px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--olive); color: #fff; font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: 999px; transition: transform .25s var(--ease), background .25s;
}
.btn-pill:hover { background: var(--olive-dark); transform: translateY(-1px); }
.lang-switch { display: flex; gap: 9px; font-size: 13px; }
.lang-switch a { color: var(--muted); transition: color .2s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { color: var(--ink); font-weight: 500; }

/* ---------- Hero ---------- */
.hero-head { padding: clamp(165px, 21vh, 232px) var(--pad) clamp(120px, 17vh, 210px); }
.hero-head h1 { font-weight: 500; color: var(--ink); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.25; letter-spacing: -0.01em; max-width: 520px; }

/* full-bleed media slideshow — original is 2:1 */
.slideshow { position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: #ddd; }
.slideshow--contained { border-radius: 0; }
.slideshow__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.slide.active { opacity: 1; }
.slide > img, .slide > video { width: 100%; height: 100%; object-fit: cover; }
.slideshow__nav { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 10px; z-index: 3; }
.ss-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.9); color: #333; font-size: 17px; display: grid; place-items: center;
  transition: background .2s, transform .2s; backdrop-filter: blur(4px);
}
.ss-btn:hover { background: #fff; transform: scale(1.05); }

/* ---------- Lead paragraphs (hero intro, floor-plan intro) — 30px/50px like reference ---------- */
.lead { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.667; font-weight: 400; color: var(--ink); max-width: 1040px; letter-spacing: -0.005em; }

/* sub-sections nested inside Key Features */
.subsection { margin-top: clamp(36px, 5vw, 72px); }

/* ---------- Editorial split rows ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.row--textleft .row__media { order: 2; }
.row__text .h { margin-bottom: 16px; }
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li { position: relative; padding: 12px 0 12px 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.media-fill { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 16/10; }

/* ---------- Image grids ---------- */
.mosaic { display: grid; gap: var(--gap); margin-top: var(--gap); }
.mosaic--3 { grid-template-columns: repeat(3, 1fr); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4/3; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: var(--gap); }
.trio img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); }

/* ---------- Full-bleed interior slideshow ---------- */
.fullbleed { width: 100%; margin-block: clamp(28px, 4vw, 56px) 0; }

/* ---------- Floor plans ----------
   Smaller centered plan, arrows visible directly below it (so it reads as a
   switchable slideshow), then the numbered legend at the bottom. */
.floorplans { margin-top: clamp(24px, 3vw, 40px); }
.fp-stage { position: relative; max-width: 840px; margin-inline: auto; }
.fp-plan { display: none; }
.fp-plan.active { display: block; position: relative; }
.fp-plan img { width: 100%; aspect-ratio: 2000 / 1451; object-fit: contain; border-radius: var(--radius); background: var(--bg-soft); }
.fp-badge {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.94);
  color: var(--olive); font-size: 11px; font-weight: 500; display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.22); pointer-events: none;
}
.plan-nav { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 22px; }
.plan-nav .counter { font-size: 13px; color: var(--muted); min-width: 34px; text-align: center; }
.plan-nav .ss-btn { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.plan-nav .ss-btn:hover { background: var(--olive); color: #fff; border-color: var(--olive); }
.fp-legends { max-width: 840px; margin: 30px auto 0; }
.fp-legend { display: none; list-style: none; counter-reset: leg; columns: 3; column-gap: 32px; }
.fp-legend.active { display: block; }
.fp-legend li { counter-increment: leg; padding: 6px 0; font-size: 13px; color: var(--ink); display: flex; gap: 8px; line-height: 1.35; break-inside: avoid; }
.fp-legend li::before { content: counter(leg) "."; color: var(--ink-soft); min-width: 16px; }

/* ---------- Location mosaic ---------- */
.loc-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: var(--gap); margin-top: clamp(24px, 3vw, 40px); }
.loc-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.loc-mosaic .cell { border-radius: var(--radius); display: flex; flex-direction: column; justify-content: center; }
.loc-mosaic .cell h4 { color: var(--olive); font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.loc-mosaic .cell p { font-size: 14px; color: var(--ink); line-height: 1.55; }
.loc-mosaic .w2 { grid-column: span 2; }
.loc-mosaic .h2 { grid-row: span 2; }
.loc-map { grid-column: span 2; grid-row: span 2; border: 0; border-radius: var(--radius); width: 100%; height: 100%; filter: grayscale(0.55) contrast(1.02); }

/* ---------- Tech specs ---------- */
.specs { columns: 3; column-gap: 44px; margin-top: clamp(28px, 3vw, 44px); }
.spec { break-inside: avoid; margin-bottom: 26px; }
.spec h4 { font-weight: 500; color: var(--ink); font-size: 14px; margin-bottom: 7px; }
.spec p { font-size: 13px; line-height: 1.62; color: var(--ink-soft); text-align: justify; }
.specs-note { margin-top: 24px; font-size: 11.5px; color: var(--muted); max-width: 92ch; line-height: 1.6; text-align: justify; }

/* ---------- Wordmark divider (GRAY, matches original) ---------- */
.wordmark-block { text-align: center; padding-block: clamp(56px, 9vw, 120px); }
.wordmark-block img { height: clamp(52px, 8vw, 104px); width: auto; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact { background: var(--olive); color: #fff; padding-block: clamp(52px, 7vw, 96px) clamp(72px, 10vw, 130px); }
.contact__head { max-width: 520px; }
.contact__title { font-weight: 500; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.25; }
.contact__sub { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,0.8); }
.contact__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.ccard {
  position: relative; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 22px; min-height: 210px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.ccard:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }
.ccard__label { font-size: 15px; font-weight: 500; line-height: 1.35; }
.ccard__value { font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 3px; overflow-wrap: anywhere; }
.ccard__arrow { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; font-size: 14px; }

/* ---------- Footer (minimal, like original) ---------- */
.site-footer { padding: 26px var(--pad); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ---------- Cookie consent (GDPR) ---------- */
.cookie-banner {
  position: fixed; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  width: min(360px, calc(100vw - 32px));
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18); padding: 22px 22px 20px;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.cookie-banner.show { transform: none; opacity: 1; pointer-events: auto; }
.cookie-banner h4 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.cookie-banner p { font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.cookie-banner a { color: var(--olive); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-actions button {
  flex: 1; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); transition: all .2s var(--ease);
}
.cookie-accept { background: var(--olive); color: #fff; border-color: var(--olive); }
.cookie-accept:hover { background: var(--olive-dark); }
.cookie-decline { background: #fff; color: var(--ink); }
.cookie-decline:hover { background: var(--bg-soft); }

/* ---------- Reveal (visible by default; animated only when JS active) ---------- */
html.js .reveal, html.js .stagger-item {
  opacity: 0; transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
html.js .reveal.in, html.js .stagger-item.in { opacity: 1; transform: none; }
/* images/media rise in with a subtle settle */
html.js .stagger-item img, html.js .reveal > img { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .stagger-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; }
  .row--textleft .row__media { order: 0; }
  .fp-legend { columns: 2; }
  .specs { columns: 2; }
  .loc-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .loc-map { grid-column: span 2; }
}
@media (max-width: 560px) {
  .specs { columns: 1; }
  .fp-legend { columns: 1; }
  .mosaic--3 { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr 1fr; }
  .contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slideshow { aspect-ratio: 4 / 5; }
  .loc-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .loc-mosaic .w2 { grid-column: span 2; }
  .nav-right { gap: 12px; }
}
