/* =========================================================
   Zeegolf — Concept 2 ("Lyndor"): cream & black editorial,
   Cormorant Garamond uppercase display, quiet grid.
   ========================================================= */

:root {
  --cream: #fbf8f1;
  --beige: #efe9dd;
  --black: #0c0c0c;
  --ink: #0c0c0c;
  --ink-soft: #3a3a3a;
  --ink-mute: #6f6a63;
  --line: rgba(12, 12, 12, 0.12);
  --line-light: rgba(255, 255, 255, 0.2);
  --wine: #7a2e22; /* balcony teak red */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1150px;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 15px; 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, h4, h5, p, ul, ol, li, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }
.wrap--narrow { width: min(580px, 100% - 2 * var(--pad)); }
.section { padding-block: clamp(80px, 9vw, 130px); }
.section--black { background: var(--black); color: #fff; }
.center { text-align: center; }

.display {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(48px, 7.4vw, 96px); line-height: .95; letter-spacing: .01em;
}
.display--center { text-align: center; }
.eyebrow { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.small { font-size: 14px; max-width: 320px; color: inherit; opacity: .85; }
.small--center { margin: 18px auto 0; text-align: center; max-width: 420px; }
.small em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; opacity: .6; }
.fineprint { margin-top: 26px; font-size: 12px; opacity: .55; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 500; font-size: 14px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); }
.btn--black { background: var(--black); color: #fff; }
.btn--black:hover { background: #262626; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 60; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 44px);
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: background .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled { background: rgba(251,248,241,.9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav.on-dark:not(.is-scrolled) { color: #fff; }
.nav__mark img { width: 34px; height: auto; }
.nav__menu, .nav__book { padding: 8px 0; position: relative; }
.nav__menu::after, .nav__book::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.nav__menu:hover::after, .nav__book:hover::after { transform: scaleX(1); transform-origin: left; }

.overlay {
  position: fixed; inset: 0; z-index: 70; background: var(--black); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; padding: 22px clamp(20px, 3vw, 44px) 40px;
  animation: fade .4s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.overlay__close { justify-self: end; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.overlay__links { display: grid; align-content: center; gap: 8px; text-align: center; }
.overlay__links a { font-family: var(--serif); font-size: clamp(36px, 6vw, 64px); text-transform: uppercase; line-height: 1.15; transition: opacity .25s; }
.overlay__links a:hover { opacity: .55; font-style: italic; }
.overlay__foot { display: flex; justify-content: space-between; font-size: 14px; opacity: .8; flex-wrap: wrap; gap: 10px; }

/* ---------- hero ---------- */
.hero { padding: 150px var(--pad) 0; text-align: center; }
.hero__title {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(64px, 11vw, 148px); line-height: .9; letter-spacing: .02em;
  animation: rise 1s cubic-bezier(.2,.7,.2,1) both;
}
.hero__tag { margin-top: 18px; font-size: 15px; animation: rise 1s .15s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__figure { width: min(940px, 100%); margin: 56px auto 0; aspect-ratio: 5 / 4; overflow: hidden; }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 22% center; transform: scale(1.04); transition: transform 2.5s ease; }
.hero__figure.is-visible img { transform: none; }

/* ---------- refined stays ---------- */
.stays__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 80px; align-items: start; }
.stays__img { grid-column: 2; grid-row: 1 / 3; aspect-ratio: 4 / 5; overflow: hidden; }
.stays__img img { width: 100%; height: 100%; object-fit: cover; }
.stays__text { display: grid; gap: 18px; max-width: 480px; font-size: 16px; color: var(--ink-soft); align-self: end; }

/* ---------- heritage ---------- */
.heritage { border-top: 1px solid var(--line); }
.heritage__head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.heritage__head .display { text-align: right; }
.timeline { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); }
.timeline li { padding: 30px 30px 40px 0; border-top: 1px solid var(--ink); display: grid; gap: 14px; align-content: start; }
.timeline li + li { padding-left: 30px; border-left: 1px solid var(--line); }
.timeline__num { font-family: var(--serif); font-size: 56px; line-height: 1; font-weight: 400; }
.timeline h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; }
.timeline p { color: var(--ink-soft); font-size: 15px; }

/* ---------- gallery ---------- */
.gallery { padding-bottom: clamp(80px, 9vw, 130px); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__grid figure { aspect-ratio: 1; overflow: hidden; }
.gallery__grid .gallery__wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.gallery__grid figure:hover img { transform: scale(1.04); }

/* ---------- residences ---------- */
.split-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.split-head .display { text-align: right; }
.cards { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease, opacity .5s; }
.card__img:hover img { transform: scale(1.04); }
.card__row { display: flex; justify-content: space-between; margin-top: 18px; font-size: 16px; }
.card__row h3 { font-weight: 500; font-size: 16px; }
.card__desc { margin-top: 10px; font-size: 14px; opacity: .7; }

/* ---------- amenities ---------- */
.amenities { padding-top: 0; }
.amen { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.amen li { padding: 48px 24px; text-align: center; display: grid; gap: 18px; justify-items: center; border-right: 1px solid var(--line-light); }
.amen li:nth-child(4n) { border-right: 0; }
.amen li:nth-child(n + 5) { border-top: 1px solid var(--line-light); }
.amen svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.amen p { font-size: 15px; max-width: 220px; }
.amenities .center { margin-top: 56px; }

/* ---------- stories marquee ---------- */
.stories { overflow: hidden; }
.marquee { margin-top: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 28px; }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: scroll 55s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.story { width: 440px; background: var(--beige); padding: 40px 36px; display: grid; gap: 22px; text-align: center; min-height: 300px; align-content: start; }
.stars { color: var(--wine); letter-spacing: .14em; font-size: 15px; }
.story p { font-size: 16px; line-height: 1.55; }
.story h4 { margin-top: auto; font-family: var(--serif); font-size: 24px; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.acc { display: grid; gap: 12px; }
.acc details { background: var(--black); color: #fff; border-radius: 12px; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font-size: 17px; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.acc details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.acc__body { padding: 0 22px 22px; font-size: 15px; opacity: .85; line-height: 1.6; }

/* ---------- book ---------- */
.book { background: var(--beige); }
.form { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field input, .field select {
  width: 100%; height: 52px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(12,12,12,.15);
  background: var(--cream); font: inherit; font-size: 15px; color: var(--ink); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .25s;
}
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230c0c0c' stroke-width='1.3'/></svg>"); background-repeat: no-repeat; background-position: right 18px center; }
.field select:invalid { color: #8a857c; }
.field input::placeholder { color: #8a857c; }
.field input:focus, .field select:focus { border-color: var(--ink); }
.field--date input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; }
.form .btn { width: 100%; height: 52px; }
.form__note { text-align: center; font-size: 13px; min-height: 1.4em; opacity: .7; }

/* ---------- footer ---------- */
.footer { background: var(--black); color: #fff; padding: clamp(70px, 8vw, 110px) 0 36px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 1px solid var(--line-light); padding-bottom: 40px; }
.footer__word { font-family: var(--serif); text-transform: uppercase; font-size: clamp(64px, 13vw, 190px); line-height: .82; letter-spacing: .02em; }
.footer__mark { width: 92px; opacity: .9; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 44px 0; font-size: 14px; }
.footer__cols h5 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 14px; font-weight: 500; }
.footer__cols p { opacity: .9; line-height: 1.9; }
.footer__cols a:hover { text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line-light); padding-top: 22px; font-size: 12px; opacity: .6; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stays__grid { grid-template-columns: 1fr; gap: 40px; }
  .stays__img { grid-column: 1; grid-row: auto; aspect-ratio: 4 / 5; max-width: 520px; }
  .heritage__head { grid-template-columns: 1fr; }
  .heritage__head .display { text-align: left; }
  .timeline { grid-template-columns: 1fr; margin-top: 50px; }
  .timeline li + li { padding-left: 0; border-left: 0; }
  .split-head { grid-template-columns: 1fr; }
  .split-head .display { text-align: left; order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .amen { grid-template-columns: 1fr 1fr; }
  .amen li:nth-child(2n) { border-right: 0; }
  .amen li:nth-child(n + 3) { border-top: 1px solid var(--line-light); }
  .faq__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero { padding-top: 120px; }
  .hero__figure { aspect-ratio: 4 / 5; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid .gallery__wide { aspect-ratio: 4 / 3; }
  .cards { grid-template-columns: 1fr; }
  .amen { grid-template-columns: 1fr; }
  .amen li { border-right: 0; }
  .amen li + li { border-top: 1px solid var(--line-light); }
  .story { width: 320px; padding: 30px 24px; }
  .form { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}
