/* Hanalei Beach Club — phone-first landing page */
:root {
  --sand: #f4eee4;
  --cream: #fbf8f3;
  --paper: #fffdf8;
  --ink: #1b221b;
  --ink-soft: #3d4a3d;
  --muted: #5b675b;
  --jungle: #1a3d32;
  --jungle-deep: #0f2a22;
  --leaf: #2f6b4f;
  --ocean: #1e5a5a;
  --mist: #8cc4ba;
  --sunset: #c56a3a;
  --gold: #c4a265;
  --sand-gold: #e8d6b0;
  --line: rgba(27, 34, 27, 0.12);
  --shadow: 0 12px 40px rgba(15, 42, 34, 0.18);
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --pad: clamp(1.15rem, 4.6vw, 2rem);
  --max: 72rem;
  --radius: 1.1rem;
  --header-h: 3.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--jungle);
  color: var(--cream);
  padding: 0.6rem 1rem;
  min-height: 44px;
  z-index: 100;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
}
.skip:focus { top: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.4rem var(--pad);
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--jungle-deep);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
}
.wordmark img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.wordmark-text strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.wordmark-text span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 1.1rem;
  background: var(--jungle);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
}
.header-book:hover { background: var(--jungle-deep); }

/* Hero */
.hero {
  position: relative;
  color: var(--cream);
  min-height: 86svh;
  display: flex;
  align-items: flex-end;
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero-media { z-index: 0; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 42, 34, 0.15) 0%, rgba(15, 42, 34, 0.12) 40%, rgba(15, 42, 34, 0.82) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 2.2rem var(--pad) 2.6rem;
  max-width: 42rem;
}
.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-gold);
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 10vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero .lede {
  margin: 0 0 1.15rem;
  font-size: 1.15rem;
  max-width: 28rem;
  color: rgba(251, 248, 243, 0.92);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}
.hero-stats li {
  padding: 0 0.9rem 0 0;
  margin: 0 0.9rem 0 0;
  border-right: 1px solid rgba(232, 214, 176, 0.35);
  font-variant-numeric: lining-nums;
  font-size: 0.98rem;
}
.hero-stats li:last-child { border: 0; margin-right: 0; padding-right: 0; }
.hero-stats strong { font-weight: 700; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 44px;
  padding: 0.7rem 1.5rem;
  background: var(--sand-gold);
  color: var(--jungle-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 999px;
  border: 0;
}
.btn-primary:hover { background: #f0e2c2; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 44px;
  padding: 0.7rem 1.2rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }

/* Sections */
main { padding-bottom: 5.5rem; }
.section {
  padding: 3rem var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 6vw, 2.7rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--jungle-deep);
}
.section p { margin: 0 0 1rem; color: var(--ink-soft); }
.section p:last-child { margin-bottom: 0; }
.kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 600;
}
.note {
  font-size: 1rem;
  color: var(--muted);
}
.split {
  display: grid;
  gap: 1.4rem;
}
.split picture, .split img { border-radius: var(--radius); width: 100%; }
.caption {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.gallery figure { margin: 0; }
.gallery img, .gallery picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.85rem;
  aspect-ratio: 4 / 3;
}
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 16 / 10; }
.gallery figcaption {
  position: absolute;
  left: 0.7rem;
  bottom: 0.55rem;
  margin: 0;
  color: #fff;
  font-size: 0.8rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  pointer-events: none;
}
.gallery figure { position: relative; }

/* Lists */
.facts, .gear, .rooms {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}
.facts li, .gear li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.facts li:last-child, .gear li:last-child { border-bottom: 1px solid var(--line); }
.facts .mark, .gear .mark {
  flex: 0 0 auto;
  width: 1.4rem;
  color: var(--leaf);
  font-weight: 700;
  line-height: 1.4;
}
.rooms {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.room {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
  border: 1px solid var(--line);
}
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room h3 {
  margin: 0;
  padding: 0.85rem 1rem 0.15rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}
.room p { padding: 0 1rem 1rem; margin: 0; font-size: 1rem; }

.nearby-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}
.nearby-grid figure { margin: 0; }
.nearby-grid img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.cta-band {
  margin: 0 var(--pad) 2rem;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  background: var(--jungle);
  color: var(--cream);
  border-radius: 1.35rem;
  padding: 2rem 1.35rem;
  text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(251, 248, 243, 0.86); margin-bottom: 1.25rem; }

footer {
  padding: 2.2rem var(--pad) 7.5rem;
  background: var(--jungle-deep);
  color: rgba(251, 248, 243, 0.82);
  font-size: 0.98rem;
}
footer .brand {
  font-family: var(--font-serif);
  color: var(--cream);
  font-size: 1.45rem;
  margin: 0 0 0.25rem;
}
footer p { margin: 0 0 0.65rem; }
footer a { color: var(--sand-gold); }
.regs { font-size: 0.88rem; color: rgba(251, 248, 243, 0.65); }

/* Fixed book bar */
.book-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.7rem var(--pad) calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 42, 34, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(232, 214, 176, 0.16);
}
.book-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  min-width: 44px;
  background: var(--sand-gold);
  color: var(--jungle-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 999px;
}
.book-bar a:hover { background: #f0e2c2; }
.book-bar .hint {
  display: block;
  text-align: center;
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(251, 248, 243, 0.72);
}

@media (min-width: 700px) {
  .split { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .split.reverse { grid-template-columns: 0.9fr 1.1fr; }
  .split.reverse .copy { order: -1; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .nearby-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr 1fr; gap: 0.7rem; }
  .gallery .wide { grid-column: auto; }
  .gallery .wide:first-child { grid-column: 1 / 3; }
  .gallery .wide:first-child img { aspect-ratio: 16 / 10; height: 100%; }
  .hero { min-height: 92svh; }
  .cta-band { padding: 3rem 2.5rem; }
}

@media (min-width: 1024px) {
  .hero-copy { padding-left: 4rem; padding-bottom: 3.5rem; }
  .rooms { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
