/* =========================================================
   Zeegolf — Concept 3 ("Cali Villa"): black, cinematic,
   Lora serif headings, DM Sans body, sticky arch story.
   ========================================================= */

:root {
  --black: #000;
  --ink: #fff;
  --mute: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.18);
  --blue: #6fb3e0;   /* logo blue, softened */
  --serif: "Lora", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 3vw, 44px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, li, dl, dt, dd, figure, figcaption { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.1; }
section, footer, .collage, .ticker { max-width: var(--max); margin-inline: auto; }
.fineprint { font-size: 12px; color: var(--mute); margin-top: 18px; }

/* ---------- floating nav ---------- */
.fnav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 14px;
  background: rgba(20,20,20,.55); border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14px; font-weight: 400; transition: transform .4s ease, opacity .4s;
}
.fnav.is-hidden { transform: translate(-50%, -140%); opacity: 0; }
.fnav a { padding: 8px 12px; border-radius: 999px; transition: background .25s; }
.fnav a:hover { background: rgba(255,255,255,.1); }
.fnav__mark { padding: 6px 8px 6px 0 !important; display: flex; }
.fnav__mark img { width: 22px; height: auto; opacity: .9; }
.fnav__cta { background: #fff; color: #000; }
.fnav__cta:hover { background: #e8e8e8 !important; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; max-width: none; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; animation: heroZoom 6s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.2) 65%, #000 100%); }
.hero__text { position: absolute; inset-inline: var(--gutter); bottom: 18vh; z-index: 2; text-align: center; display: grid; gap: 18px; justify-items: center; }
.hero__text h1 { font-size: clamp(44px, 7vw, 98px); line-height: 1; animation: up 1.1s .2s cubic-bezier(.2,.7,.2,1) both; }
.hero__text p { max-width: 620px; font-size: clamp(15px, 1.4vw, 19px); color: rgba(255,255,255,.85); animation: up 1.1s .4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__line { position: absolute; left: 50%; bottom: 0; width: 1px; height: 14vh; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.5)); z-index: 2; }

/* ---------- collage ---------- */
.collage { position: relative; height: clamp(520px, 62vw, 820px); padding: 0 var(--gutter); }
.collage figure { position: absolute; overflow: hidden; will-change: transform; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__a { left: 14%; top: 4%; width: 34%; aspect-ratio: 4 / 5; }
.collage__b { right: 14%; top: 22%; width: 36%; aspect-ratio: 1; }

/* ---------- ticker ---------- */
.ticker { max-width: none; overflow: hidden; border-block: 1px solid var(--line); padding: 34px 0; margin-block: 40px 20px; }
.ticker__track { display: flex; gap: 90px; width: max-content; animation: tick 40s linear infinite; }
.ticker__track span { font-size: clamp(36px, 5vw, 72px); font-weight: 300; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }

@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sticky story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 80px var(--gutter) 40px; }
.story__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.arch { position: relative; width: min(440px, 100%); aspect-ratio: 3 / 4.2; border-radius: 999px; overflow: hidden; background: #111; }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 1.6s ease; }
.arch img.is-active { opacity: 1; transform: none; }
.story__blocks { display: grid; gap: 10vh; padding-block: 25vh 20vh; }
.story__block { max-width: 460px; display: grid; gap: 22px; transition: opacity .6s; }
.story__block h2 { font-size: clamp(34px, 3.6vw, 52px); }
.story__block p { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,.85); }
.story__block:not(.is-active) { opacity: .45; }

/* ---------- rooms slider ---------- */
.rooms { padding: 60px var(--gutter) 40px; }
.rooms__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.rooms__ctrl { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); }
.rooms__ctrl button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; transition: .25s; }
.rooms__ctrl button:hover { background: #fff; color: #000; }
.rooms__ctrl span { margin-right: 8px; min-width: 40px; }
.slider { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 8.4; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 34px 44px;
  display: flex; justify-content: space-between; align-items: end;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.6));
  font-family: var(--serif); font-size: clamp(18px, 2vw, 26px);
}
.slide figcaption span:last-child { font-family: var(--sans); font-size: 15px; color: rgba(255,255,255,.85); }

/* ---------- location ---------- */
.location { padding: 80px var(--gutter) 40px; }
.location__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.maplink { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute); transition: color .25s; }
.maplink:hover { color: #fff; }
.map { margin-top: 30px; }
.map__svg { width: 100%; height: auto; display: block; }
.map__wall { stroke: rgba(143,181,201,.45); stroke-width: 2; }
.map__roads path { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.4; stroke-linecap: round; }
.map__pt circle:first-child { fill: none; stroke: rgba(255,255,255,.8); stroke-width: 1.4; }
.map__pt circle:last-of-type { fill: #fff; }
.map__pt text { fill: rgba(255,255,255,.8); font-size: 14px; font-family: var(--sans); }
.map__home circle:nth-child(2) { fill: none; stroke: var(--blue); stroke-width: 1.6; }
.map__home circle:nth-child(3) { fill: #fff; }
.map__home .pulse { fill: rgba(111,179,224,.18); stroke: none; transform-origin: 640px 300px; animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.map__home text { fill: #fff; font-family: var(--serif); font-size: 20px; }
.map__note { fill: rgba(255,255,255,.35); font-size: 12px; font-family: var(--sans); text-anchor: end; }
.location__text { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; margin-top: 40px; align-items: start; }
.location__text .big { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; }
.location__text .side { font-size: 14px; color: var(--mute); padding-top: 6px; }

/* ---------- overview ---------- */
.overview { padding: 80px var(--gutter) 60px; }
.specs { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 60px; }
.specs div { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dd { font-weight: 400; }
.overview h3 { margin-top: 70px; font-size: clamp(26px, 2.6vw, 34px); }
.amenlist { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 60px; }
.amenlist li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* ---------- full bleed ---------- */
.bleed { position: relative; max-width: none; margin-top: 40px; height: clamp(420px, 62vw, 820px); overflow: hidden; }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: var(--gutter); bottom: 40px; display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 24px 10px 10px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); font-size: 14px; transition: .3s;
}
.play:hover { background: #fff; color: #000; }
.play__icon { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 12px; }
.play:hover .play__icon { background: #000; color: #fff; }

/* ---------- FAQ ---------- */
.faq { padding: 100px var(--gutter) 80px; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; margin-top: 50px; }
.faq__tabs { display: grid; gap: 10px; align-content: start; }
.faq__tabs button { text-align: left; font-size: 28px; font-weight: 300; color: var(--mute); transition: color .25s; }
.faq__tabs button[aria-selected="true"] { color: #fff; }
.faq__panel { display: none; }
.faq__panel.is-active { display: block; animation: fadeIn .4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 50px 20px 0; position: relative; font-size: 16px; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1px; background: #fff; transition: transform .3s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 0 22px; color: rgba(255,255,255,.8); font-size: 15px; max-width: 620px; }

/* ---------- strip ---------- */
.strip { max-width: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strip button { aspect-ratio: 1; overflow: hidden; padding: 0; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease, opacity .4s; }
.strip button:hover img { transform: scale(1.04); opacity: .85; }

/* ---------- footer ---------- */
.footer { padding: 100px var(--gutter) 40px; }
.footer h2 { font-size: clamp(44px, 6.6vw, 96px); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-block: 24px; border-block: 1px solid var(--line); font-size: 15px; }
.footer__mail { display: inline-flex; align-items: center; gap: 10px; }
.footer__ota { display: flex; gap: 22px; }
.footer__ota a:hover, .footer__mail:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 50px 0; }
.footer__addr { font-size: 20px; line-height: 1.4; display: grid; gap: 22px; align-content: start; padding-right: 40px; border-right: 1px solid var(--line); }
.footer__tel { font-size: 16px; color: var(--mute); }
.footer__blurb { font-size: 14px; color: var(--mute); max-width: 520px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
.footer__bottom nav { display: flex; gap: 18px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: grid; place-items: center; padding: 60px; animation: fadeIn .3s; }
.lightbox figure { max-width: 1200px; width: 100%; display: grid; gap: 14px; justify-items: center; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { font-size: 14px; color: var(--mute); }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; display: grid; place-items: center; transition: .25s; }
.lightbox button:hover { background: #fff; color: #000; }
.lightbox__close { top: 20px; right: 20px; font-size: 26px !important; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .hero__img, .map__home .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .fnav a:not(.fnav__cta):not(.fnav__mark) { display: none; }
  .fnav { gap: 8px; padding: 6px 8px 6px 14px; }
  .story { grid-template-columns: 1fr; gap: 30px; padding-top: 50px; }
  .story__sticky { position: static; height: auto; }
  .arch { width: min(320px, 80%); aspect-ratio: 3 / 3.6; }
  .story__blocks { padding-block: 20px 0; gap: 60px; }
  .story__block:not(.is-active) { opacity: 1; }
  .location__text { grid-template-columns: 1fr; gap: 24px; }
  .specs, .amenlist { grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .faq__grid { grid-template-columns: 1fr; gap: 30px; }
  .faq__tabs { display: flex; gap: 22px; flex-wrap: wrap; }
  .faq__tabs button { font-size: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__addr { border-right: 0; padding-right: 0; }
  .collage__a { left: 4%; width: 46%; } .collage__b { right: 4%; width: 48%; top: 30%; }
  .lightbox { padding: 70px 16px; }
}
@media (max-width: 600px) {
  .hero__text { bottom: 14vh; }
  .collage { height: 120vw; }
  .collage__a { top: 0; width: 60%; left: 0; } .collage__b { top: 45%; width: 62%; right: 0; }
  .slide { aspect-ratio: 4 / 5; }
  .slide figcaption { padding: 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .specs, .amenlist { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .map { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .map::-webkit-scrollbar { display: none; }
  .map__svg { min-width: 760px; }
  .map::after { content: "swipe to explore"; display: block; margin-top: 8px; font-size: 12px; color: var(--mute); }
}
