/* ════════════════════════════════════════════════════════════════
   Sunvillas · Hua Hin Blue Lagoon — V15 design system
   Editorial, photo-led, measured. Audience: long-stay guests 50–70.
   Signature device: "the measure line" — distances and lengths are
   this property's story (1.25 km lagoon · 8 min beach · 15 min town).
   ════════════════════════════════════════════════════════════════ */

:root {
  --lagoon:      #0B4F60;
  --lagoon-deep: #073845;
  --night:       #041E25;
  --cream:       #FBF7EE;
  --cream-warm:  #F6EFE1;
  --sand:        #EFE6D4;
  --sand-deep:   #E3D5BC;
  --water:       #E9F1EF;   /* cool wash — the lagoon against the sand */
  --water-deep:  #D9E8E4;
  --gold:        #B89552;
  --gold-deep:   #94733A;
  --ink:         #22201C;
  --ink-soft:    #55504A;
  --line:        rgba(11, 79, 96, 0.14);
  --line-gold:   rgba(184, 149, 82, 0.35);
  --shadow-soft: 0 18px 50px rgba(7, 56, 69, 0.10);
  --shadow-deep: 0 30px 80px rgba(4, 30, 37, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;                 /* deliberately generous — readers 50–70 */
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--lagoon-deep);
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin-bottom: 0.4em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.01em; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.25em; color: var(--ink-soft); max-width: 68ch; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--ink); max-width: 56ch; }
em.accent { font-style: italic; color: var(--gold-deep); font-family: var(--serif); font-size: 1.06em; }
strong { color: var(--ink); font-weight: 600; }

a { color: var(--lagoon); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
a:hover { border-bottom-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--lagoon-deep); color: var(--cream); padding: 0.8rem 1.4rem;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: "— "; color: var(--gold); opacity: 0.65; }

section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 247, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 10px 34px rgba(7, 45, 55, 0.12); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.05rem 0; transition: padding 0.3s; }
.site-header.scrolled .nav { padding: 0.6rem 0; }
.brand { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; color: var(--lagoon-deep); border: 0; letter-spacing: -0.01em; white-space: nowrap; }
.brand em { font-style: normal; color: var(--gold); }
.nav-links { display: none; gap: clamp(1.2rem, 2.4vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-size: 0.95rem; border: 0; position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--lagoon); }

.btn {
  display: inline-block;
  background: var(--lagoon-deep); color: var(--cream);
  padding: 1rem 1.7rem; border: 1px solid var(--lagoon-deep); border-radius: 1px;
  font-family: var(--sans); font-size: 0.83rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn:hover { background: var(--lagoon); border-color: var(--lagoon); color: var(--cream); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7, 56, 69, 0.28); }
.btn.ghost { background: transparent; color: var(--lagoon-deep); border-color: rgba(11, 79, 96, 0.45); }
.btn.ghost:hover { background: var(--lagoon-deep); color: var(--cream); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn.gold:hover { background: var(--cream); border-color: var(--cream); color: var(--lagoon-deep); }
.btn.on-dark { background: var(--cream); border-color: var(--cream); color: var(--lagoon-deep); }
.btn.on-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn.ghost-light { background: transparent; color: var(--cream); border-color: rgba(251, 247, 238, 0.6); }
.btn.ghost-light:hover { background: var(--cream); color: var(--lagoon-deep); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: 1px solid rgba(11, 79, 96, 0.3); border-radius: 1px; cursor: pointer;
  color: var(--lagoon-deep);
}
.nav-toggle svg { width: 20px; height: 16px; display: block; }
.nav-toggle[aria-expanded="true"] { background: var(--lagoon-deep); color: var(--cream); }
.nav .btn { display: none; }

@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav .btn { display: inline-block; padding: 0.8rem 1.4rem; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.85rem 0; font-size: 1.15rem; font-family: var(--serif); color: var(--lagoon-deep); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 1.25rem; width: 100%; text-align: center; }
@media (min-width: 980px) { .mobile-nav { display: none !important; } }

/* ── Full hero (homepage) ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(580px, 94svh, 940px);
  display: flex; align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 30, 37, 0.55) 0%, rgba(4, 30, 37, 0.05) 30%, rgba(4, 30, 37, 0) 45%),
    linear-gradient(5deg, rgba(4, 30, 37, 0.78) 0%, rgba(4, 30, 37, 0.30) 42%, rgba(4, 30, 37, 0) 68%);
}
.hero-content { position: relative; width: 100%; padding-top: 9rem; padding-bottom: clamp(4.5rem, 9vh, 7.5rem); }
.hero-eyebrow {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.34em;
  color: #E8CD90; margin-bottom: 1.6rem;
  text-shadow: 0 1px 14px rgba(4, 22, 28, 0.9);
}
.hero h1 { color: var(--cream); max-width: 15ch; text-shadow: 0 2px 44px rgba(4, 22, 28, 0.45); }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero-sub { color: rgba(251, 247, 238, 0.9); font-size: clamp(1.08rem, 1.5vw, 1.25rem); font-weight: 300; max-width: 46ch; margin: 1.4rem 0 2.4rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* staggered rise on load */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.hero-content > * { animation: rise 1s cubic-bezier(0.22, 0.68, 0.28, 1) both; }
.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.hero-content > *:nth-child(4) { animation-delay: 0.6s; }

/* ── THE MEASURE LINE (signature) ─────────────────────────────── */
.measure-strip {
  position: relative; z-index: 5;
  background: var(--cream);
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-soft);
}
.measure-strip .wrap {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.measure-item {
  position: relative;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.measure-item::before {                 /* tick */
  content: ""; position: absolute; left: 0; top: 1.7rem;
  width: 1px; height: 2.4rem; background: var(--gold);
}
.measure-item .m-value { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--lagoon-deep); line-height: 1.05; }
.measure-item .m-value small { font-size: 0.52em; letter-spacing: 0.1em; color: var(--gold-deep); }
.measure-item .m-label { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink-soft); margin-top: 0.3rem; }
@media (min-width: 780px) {
  .measure-strip .wrap { grid-template-columns: repeat(4, 1fr); gap: 0 2rem; }
  .measure-item { border-bottom: 0; padding: 1.9rem 0 1.9rem 1.6rem; }
}

/* standalone measure divider between sections */
.measure-rule {
  display: flex; align-items: center; gap: 1.1rem;
  margin: 0 auto; max-width: 420px; padding: 0 1.5rem;
  color: var(--gold-deep);
}
.measure-rule::before, .measure-rule::after { content: ""; flex: 1; height: 1px; background: var(--line-gold); }
.measure-rule svg { width: 26px; height: 26px; opacity: 0.75; flex: none; }

/* the distance ladder (getting-around) */
.ladder { position: relative; margin: 3rem 0 1rem; padding-left: 2rem; max-width: 720px; }
.ladder::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold), var(--line-gold)); }
.ladder-stop { position: relative; padding: 0 0 2.4rem; }
.ladder-stop:last-child { padding-bottom: 0; }
.ladder-stop::before {
  content: ""; position: absolute; left: calc(-2rem - 5px); top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--gold);
}
.ladder-stop .l-dist { font-family: var(--serif); font-size: 1.65rem; color: var(--lagoon-deep); line-height: 1.1; }
.ladder-stop .l-place { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold-deep); margin: 0.2rem 0 0.4rem; }
.ladder-stop p { margin: 0; font-size: 0.98rem; }

/* ── Page hero (interior pages) ───────────────────────────────── */
.page-hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(360px, 52svh, 560px);
  color: var(--cream);
  overflow: hidden;
}
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-scrim {
  background:
    linear-gradient(180deg, rgba(4, 30, 37, 0.5) 0%, rgba(4, 30, 37, 0) 38%),
    linear-gradient(4deg, rgba(4, 30, 37, 0.82) 0%, rgba(4, 30, 37, 0.28) 55%, rgba(4, 30, 37, 0.02) 80%);
}
.page-hero .wrap { position: relative; width: 100%; padding-top: 7rem; padding-bottom: clamp(2.5rem, 5vh, 4rem); }
.page-hero h1 { color: var(--cream); max-width: 18ch; font-size: clamp(2.4rem, 5vw, 4.2rem); text-shadow: 0 2px 36px rgba(4, 22, 28, 0.5); }
.page-hero .lede { color: rgba(251, 247, 238, 0.92); }
.page-hero .crumb { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.26em; color: #E8CD90; margin-bottom: 1.2rem; text-shadow: 0 1px 12px rgba(4, 22, 28, 0.8); }
.page-hero.plain { background: var(--lagoon-deep); min-height: 0; }
.page-hero.plain .wrap { padding-top: clamp(5.5rem, 10vh, 8rem); }

/* ── Editorial split ──────────────────────────────────────────── */
.split { display: grid; gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.split .split-media { position: relative; }
.split .split-media img { width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow-deep); }
.split .split-media figcaption, .caption {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); margin-top: 1rem;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.media-right .split-media { order: 2; }
  .split-media.tall img { aspect-ratio: 4 / 4.6; }
}

/* ── Cards ────────────────────────────────────────────────────── */
.cards { display: grid; gap: 2.2rem; margin-top: 3rem; }
@media (min-width: 800px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c2 { grid-template-columns: repeat(2, 1fr); } .cards.c4 { grid-template-columns: repeat(4, 1fr); } }
.card { transition: transform 0.35s ease; }
.card .card-media { overflow: hidden; margin-bottom: 1.2rem; position: relative; }
.card .card-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.6s ease; }
.card:hover { transform: translateY(-6px); }
.card:hover .card-media img { transform: scale(1.045); }
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.98rem; margin: 0; }

/* plain info card (no photo) */
.info-card { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 1.8rem; }
.info-card h4 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.4rem; }
.info-card .price { color: var(--gold-deep); font-weight: 600; font-size: 0.95rem; margin-top: 0.6rem; }
.info-card p { font-size: 0.95rem; margin: 0; }
.info-card .meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.7rem; letter-spacing: 0.02em; }

/* ── Bands ────────────────────────────────────────────────────── */
.band { background: var(--lagoon-deep); color: var(--cream); }
.band h2, .band h3, .band h4 { color: var(--cream); }
.band p { color: rgba(251, 247, 238, 0.82); }
.band .eyebrow { color: var(--gold); }
.band a:not(.btn) { color: #E8CD90; }
.band-night { background: var(--night); }
.band-water { background: var(--water); }
.band-sand { background: var(--sand); }
.band-cream-warm { background: var(--cream-warm); }

/* stats within dark band */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2.6rem; padding-top: 2.4rem; border-top: 1px solid rgba(251, 247, 238, 0.18); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .n { font-family: var(--serif); font-size: clamp(2.1rem, 3.4vw, 3rem); color: var(--cream); line-height: 1; }
.stat .n small { font-size: 0.45em; letter-spacing: 0.12em; color: var(--gold); }
.stat .l { font-size: 0.85rem; color: rgba(251, 247, 238, 0.72); margin-top: 0.5rem; line-height: 1.5; }
.band-light .stats { border-top-color: var(--line-gold); }
.band-light .stat .n { color: var(--lagoon-deep); }
.band-light .stat .l { color: var(--ink-soft); }

/* full-bleed breaker image */
.breaker { position: relative; height: clamp(340px, 62vh, 620px); overflow: hidden; }
.breaker img { width: 100%; height: 100%; object-fit: cover; }
.breaker .breaker-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3.5rem clamp(1.25rem, 4vw, 2.5rem) 1.6rem;
  background: linear-gradient(180deg, rgba(4, 30, 37, 0), rgba(4, 30, 37, 0.66));
  color: rgba(251, 247, 238, 0.94);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.6rem);
  text-align: center;
}

/* ── Gallery + lightbox ───────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin-top: 3rem; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
.gallery button {
  padding: 0; border: 0; background: none; cursor: zoom-in; display: block;
  overflow: hidden; position: relative;
}
.gallery button img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.55s ease, filter 0.55s ease; }
.gallery button:hover img { transform: scale(1.05); filter: brightness(1.05); }
.gallery button .g-label {
  position: absolute; left: 0; bottom: 0; right: 0;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(251, 247, 238, 0.95); text-align: left;
  padding: 2rem 1rem 0.8rem;
  background: linear-gradient(180deg, rgba(4, 30, 37, 0), rgba(4, 30, 37, 0.62));
  opacity: 0; transition: opacity 0.35s;
}
.gallery button:hover .g-label, .gallery button:focus-visible .g-label { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  background: rgba(4, 22, 28, 0.93);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; box-shadow: var(--shadow-deep); }
.lightbox .lb-caption { position: absolute; bottom: 1.6rem; left: 0; right: 0; text-align: center; color: rgba(251, 247, 238, 0.85); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.lightbox .lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(251, 247, 238, 0.1); color: var(--cream);
  border: 1px solid rgba(251, 247, 238, 0.35); border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: background 0.25s;
}
.lightbox .lb-btn:hover { background: rgba(251, 247, 238, 0.25); }
.lightbox .lb-prev { left: clamp(0.6rem, 2vw, 2rem); }
.lightbox .lb-next { right: clamp(0.6rem, 2vw, 2rem); }
.lightbox .lb-close { position: absolute; top: 1.2rem; right: 1.2rem; transform: none; }

/* ── Pricing ──────────────────────────────────────────────────── */
.price-table { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.7rem 0; border-bottom: 1px solid var(--line);
}
.price-row .p-label strong { font-family: var(--serif); font-size: 1.45rem; color: var(--lagoon-deep); display: block; font-weight: 500; }
.price-row .p-label span { font-size: 0.92rem; color: var(--ink-soft); }
.price-row .p-price { font-family: var(--serif); font-size: 1.75rem; color: var(--lagoon-deep); white-space: nowrap; }
.price-row .p-price small { font-size: 0.55em; color: var(--ink-soft); letter-spacing: 0.03em; }

.note-box {
  background: var(--cream-warm); border-left: 3px solid var(--gold);
  padding: 1.4rem 1.6rem; margin: 1.8rem 0; font-size: 0.97rem; color: var(--ink);
}
.note-box.on-sand { background: var(--cream); }

/* ── Tables ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-top: 2rem; }
table.clean { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
table.clean th, table.clean td { text-align: left; padding: 0.95rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.clean thead th { font-family: var(--sans); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-deep); border-bottom: 2px solid var(--line-gold); }
table.clean tbody th { font-weight: 600; color: var(--lagoon-deep); width: 32%; }
table.clean .price { color: var(--gold-deep); font-weight: 600; white-space: nowrap; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--lagoon-deep);
  cursor: pointer; list-style: none; position: relative;
  padding: 1.35rem 2.6rem 1.35rem 0;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.6rem; font-family: var(--sans); font-weight: 300;
  transition: transform 0.25s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--gold-deep); }
.faq-item p { margin: 0 0 1.4rem; max-width: 66ch; }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.faq-item[open] p { animation: faqReveal 0.35s ease; }
.faq-cat { margin-top: 3.2rem; }
.faq-cat:first-child { margin-top: 0; }
.faq-cat h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

/* ── Forms ────────────────────────────────────────────────────── */
form.inquiry { background: #fff; padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid var(--line); border-top: 2px solid var(--gold); box-shadow: var(--shadow-soft); }
form.inquiry label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; letter-spacing: 0.06em; }
form.inquiry input, form.inquiry textarea, form.inquiry select {
  width: 100%; padding: 0.85rem 0.9rem;
  border: 1px solid var(--line); border-radius: 1px; background: var(--cream);
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  margin-bottom: 1.15rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
form.inquiry input:focus, form.inquiry textarea:focus, form.inquiry select:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 149, 82, 0.18);
}
form.inquiry textarea { min-height: 110px; resize: vertical; }
form.inquiry .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
form.inquiry button { width: 100%; margin-top: 0.4rem; }
@media (max-width: 560px) { form.inquiry .form-row { grid-template-columns: 1fr; gap: 0; } }

/* contact methods */
.methods { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.methods li { display: flex; gap: 1.1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.methods .m-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--water); color: var(--lagoon); font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
}
.methods strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold-deep); font-weight: 600; margin-bottom: 0.15rem; }
.methods .m-value { font-size: 1.12rem; color: var(--lagoon-deep); font-family: var(--serif); }
.methods .m-hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.15rem; }

/* ── Unit grid (apartments) ───────────────────────────────────── */
.units-grid { display: grid; gap: 1.4rem; margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .units-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .units-grid { grid-template-columns: repeat(3, 1fr); } }
.unit-card {
  background: #fff; border: 1px solid var(--line); padding: 1.7rem;
  position: relative; transition: transform 0.3s, box-shadow 0.3s;
}
.unit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.unit-card .code { font-family: var(--serif); font-size: 1.9rem; color: var(--lagoon-deep); line-height: 1; }
.unit-card .badge {
  display: inline-block; margin: 0.7rem 0 0.9rem; padding: 0.28rem 0.7rem;
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
}
.unit-card .badge.access { background: var(--water-deep); color: var(--lagoon-deep); }
.unit-card .badge.view { background: var(--sand); color: var(--gold-deep); }
.unit-card p { font-size: 0.94rem; margin-bottom: 1rem; }
.unit-card .meta { font-size: 0.8rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 0.9rem; }
.unit-card.featured { border-top: 2px solid var(--gold); background: linear-gradient(180deg, #fff, var(--cream-warm)); }
.unit-photo-btn {
  margin-top: 1rem; padding: 0.5rem 0.95rem; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer;
  background: transparent; color: var(--lagoon-deep); border: 1px solid var(--line-gold);
  transition: background 0.2s, color 0.2s;
}
.unit-photo-btn:hover { background: var(--lagoon-deep); color: var(--cream); }
.unit-shot { margin: 1.1rem 0 0; }
.unit-shot img { width: 100%; height: auto; display: block; box-shadow: var(--shadow-soft); }
.unit-shot figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* feature list */
.feature-grid { display: grid; gap: 2rem 2.6rem; margin-top: 2.6rem; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature h4 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.35rem; }
.feature h4::before { content: "— "; color: var(--gold); }
.feature p { font-size: 0.95rem; margin: 0; }

/* ── CTA block ────────────────────────────────────────────────── */
.cta-block { background: var(--lagoon); color: var(--cream); text-align: center; }
.cta-block h2 { color: var(--cream); max-width: 24ch; margin: 0 auto 1rem; }
.cta-block p { color: rgba(251, 247, 238, 0.85); max-width: 56ch; margin: 0 auto 2.2rem; }

/* ── Footer ───────────────────────────────────────────────────── */
footer.site-footer { background: var(--night); color: rgba(251, 247, 238, 0.72); padding: 4rem 0 2rem; font-size: 0.92rem; }
.site-footer p { color: rgba(251, 247, 238, 0.72); }
.site-footer a { color: rgba(251, 247, 238, 0.85); border: 0; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; margin-bottom: 2.8rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1.3fr; } }
.footer-brand { font-family: var(--serif); color: var(--cream); font-size: 1.35rem; margin-bottom: 0.6rem; }
.footer-brand em { font-style: normal; color: var(--gold); }
.site-footer h5 { color: var(--cream); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; margin: 0 0 1.1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.footer-bottom {
  border-top: 1px solid rgba(251, 247, 238, 0.14); padding-top: 1.6rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: rgba(251, 247, 238, 0.45);
}

/* ── Reveal on scroll ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s ease-out, transform 0.85s ease-out; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* ── Story (editorial prose) ──────────────────────────────────── */
.story-prose p { font-size: 1.1rem; line-height: 1.78; color: var(--ink); }
.drop-cap::first-letter {
  font-family: var(--serif); font-size: 4.4rem; font-weight: 600; font-style: italic;
  float: left; line-height: 0.85; margin: 0.12em 0.55rem 0 0; color: var(--lagoon-deep);
}

/* ── Guest guide specifics ────────────────────────────────────── */
.quick-bar { background: var(--night); color: var(--cream); padding: 1.4rem 0; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2rem; margin: 0; }
@media (min-width: 800px) { .quick-grid { grid-template-columns: repeat(5, 1fr); } }
.quick-grid dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 0.2rem; }
.quick-grid dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--cream); }
.toc-grid { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-top: 1.6rem; counter-reset: toc; }
@media (min-width: 720px) { .toc-grid { grid-template-columns: repeat(2, 1fr); } }
.toc-grid a {
  counter-increment: toc; position: relative;
  padding: 0.9rem 1rem 0.9rem 3.2rem; background: #fff; border: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.12rem; color: var(--lagoon-deep);
  transition: border-color 0.25s, transform 0.25s;
}
.toc-grid a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--gold-deep);
}
.toc-grid a:hover { border-color: var(--gold); transform: translateX(4px); }
.guide-section { padding: clamp(2.6rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.guide-section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.guide-section h3 { font-size: 1.25rem; margin-top: 2rem; }
.tip-list { padding-left: 1.2rem; }
.tip-list li { margin-bottom: 0.8rem; }

/* ── Motion & a11y guards ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content > *, .faq-item[open] p { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card .card-media img, .gallery button img, .unit-card, .btn { transition: none; }
}
