/* Burleigh Beach Escape — production stylesheet
   Mobile-first, no framework, no external requests, no web fonts (the serif stack is local). */

:root{
  --ink:#14262c;
  --ink-soft:#4a5f66;
  --sand:#f8f3ea;
  --sand-2:#efe7d8;
  --sea:#2f6b70;
  --sea-dark:#1d4d52;
  --brass:#8a6425;   /* 4.83:1 on the sand background, 5.34:1 on white — eyebrows and dt are small text, so 4.5:1 is the floor */
  --line:rgba(20,38,44,.12);
  --white:#fff;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --radius:14px;
  --shadow:0 10px 30px rgba(20,38,44,.10);
  --maxw:1080px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--sand);color:var(--ink);
  font-family:var(--sans);font-size:17px;line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
picture{display:block}
a{color:var(--sea-dark);text-decoration-color:rgba(47,107,112,.4);text-underline-offset:3px}
a:hover{color:var(--sea)}
h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.15;margin:0 0 .4em;letter-spacing:-.01em}
h1{font-size:clamp(2rem,7vw,3.6rem)}
h2{font-size:clamp(1.5rem,4.6vw,2.35rem)}
h3{font-size:1.18rem}
p{margin:0 0 1em}
.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 20px}
/* Anchor targets clear the 62px sticky header. Without this, jumping to #book puts the
   section's eyebrow underneath the header — visible in the phone screenshot as a half-hidden
   "ENQUIRE". */
main [id],section[id]{scroll-margin-top:78px}

/* NO content-visibility on sections or gallery tiles. Measured with anchor-test.py, which waits
   for smooth-scroll to settle: with it on, #book landed 282 px short and the footer's
   "Availability" link 4,110 px short, because every section above the target keeps its
   contain-intrinsic-size estimate until it is rendered — and an offscreen section never is, so
   the error accumulates and never corrects. The ~290 ms of TBT is not worth a booking CTA that
   scrolls to the wrong place. */
.section{padding:clamp(40px,7vw,76px) 0}
.eyebrow{
  font-family:var(--sans);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--brass);margin:0 0 .8em;font-weight:600;
}
.lede{font-size:1.08rem;color:var(--ink-soft);max-width:56ch}
.muted{color:var(--ink-soft)}
.small{font-size:.84rem}

/* ---------- accessibility ---------- */
.skip{
  position:absolute;left:-9999px;top:0;z-index:300;
  background:var(--ink);color:#fff;padding:12px 18px;border-radius:0 0 10px 0;text-decoration:none;
}
.skip:focus{left:0;color:#fff}
:focus-visible{outline:3px solid var(--brass);outline-offset:2px;border-radius:4px}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(248,243,234,.97);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px;flex-wrap:nowrap}
.brand{font-family:var(--serif);font-size:1.02rem;letter-spacing:.02em;text-decoration:none;color:var(--ink);line-height:1.1;display:inline-flex;flex-direction:column;justify-content:center;min-height:44px;min-width:0}
/* Under 480px the header CTA is dropped: the hero's own "Check availability" sits immediately
   below it, and at this width the two of them forced the button onto a second line with dead
   space beside it. One obvious action beats two identical ones. */
@media(max-width:479px){.site-header .btn--sm{display:none}}
.brand span{display:block;font-family:var(--sans);font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--brass);margin-top:3px}
.nav{display:none;gap:22px;font-size:.9rem;flex-wrap:wrap}
.nav a{text-decoration:none;color:var(--ink-soft);padding:6px 0;min-height:44px;display:inline-flex;align-items:center}
.nav a:hover{color:var(--ink)}
@media(min-width:820px){.nav{display:flex}}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  font-family:var(--sans);font-size:.95rem;font-weight:600;letter-spacing:.01em;
  padding:13px 22px;border-radius:999px;border:1px solid transparent;
  background:var(--sea-dark);color:#fff;text-decoration:none;cursor:pointer;
  min-height:46px;transition:transform .12s ease,background .2s ease;
}
.btn:hover{background:var(--sea);color:#fff}
.btn:active{transform:translateY(1px)}
.btn--ghost{background:transparent;color:var(--ink);border-color:rgba(20,38,44,.25)}
.btn--ghost:hover{background:rgba(20,38,44,.05);color:var(--ink)}
.btn--sm{padding:10px 16px;font-size:.85rem;min-height:44px}
.btn--wide{width:100%}
.btn[disabled]{opacity:.55;cursor:not-allowed}

/* ---------- hero ---------- */
.hero{position:relative;color:#fff;overflow:hidden;background:#22383d}
.hero picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.92}
.hero::after{
  content:"";position:absolute;inset:0;
  /* deeper than the demo's scrim: the hero is a bright sky-and-towers shot, and white type sat
     over the pale buildings at 390px. Legibility beats a slightly lighter photograph. */
  background:linear-gradient(180deg,rgba(12,26,31,.45) 0%,rgba(12,26,31,.55) 40%,rgba(12,26,31,.88) 100%);
}
/* padding-BLOCK only: a `padding` shorthand here silently killed .wrap's 20px gutter, which is
   why the hero text sat flush to the screen edge while the header and sections below it were
   inset. Vertical rhythm in this rule, horizontal insets from .wrap. */
.hero .inner{position:relative;z-index:2;padding-block:clamp(64px,13vw,132px) clamp(28px,6vw,44px)}
.hero p{max-width:46ch;color:rgba(255,255,255,.94);font-size:1.02rem;text-shadow:0 1px 4px rgba(0,0,0,.5)}
/* the hero CTA is white-on-teal rather than teal-on-dark: against a darkened photograph the
   dark button had less pull than the outlined secondary beside it. */
.hero-actions .btn:not(.btn--ghost){background:#fff;color:var(--sea-dark);border-color:#fff}
.hero-actions .btn:not(.btn--ghost):hover{background:#f2e9da;color:var(--sea-dark)}
.hero h1{color:#fff;max-width:15ch;text-shadow:0 2px 6px rgba(0,0,0,.45),0 6px 30px rgba(0,0,0,.35)}
.hero .kicker{
  display:inline-block;font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);
  padding:6px 12px;border-radius:999px;margin-bottom:18px;backdrop-filter:blur(4px);
}
.hero .facts{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 26px;padding:0;list-style:none}
.hero .facts li{
  font-size:.82rem;padding:7px 13px;border-radius:999px;
  background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero .btn--ghost{color:#fff;border-color:rgba(255,255,255,.45)}
.hero .btn--ghost:hover{background:rgba(255,255,255,.12);color:#fff}

/* ---------- gallery ---------- */
.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:26px}
.gallery .g{padding:0;border:0;background:#e7dfd1;cursor:zoom-in;border-radius:10px;overflow:hidden;position:relative}
.gallery img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3;transition:transform .4s ease}
.gallery .g:hover img{transform:scale(1.03)}
@media(min-width:760px){.gallery{grid-template-columns:repeat(4,1fr);gap:10px}}
.gallery--loose{margin-top:30px}

.lightbox{
  position:fixed;inset:0;z-index:200;background:rgba(9,20,24,.94);
  display:none;align-items:center;justify-content:center;padding:20px;
}
.lightbox.is-open{display:flex}
.lightbox img{max-width:100%;max-height:86vh;border-radius:8px;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.lightbox .close{
  position:absolute;top:16px;right:16px;background:rgba(255,255,255,.14);color:#fff;
  border:1px solid rgba(255,255,255,.3);border-radius:50%;width:48px;height:48px;font-size:1.3rem;cursor:pointer;
}

/* ---------- cards / grids ---------- */
.grid{display:grid;gap:22px}
.grid>*{min-width:0}
@media(min-width:720px){.grid--2{grid-template-columns:1fr 1fr}.grid--3{grid-template-columns:repeat(3,1fr)}}
.card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:24px;box-shadow:var(--shadow);
}
.card h3{margin-bottom:.35em}
.card p:last-child{margin-bottom:0}

.feature-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
@media(min-width:640px){.feature-list{grid-template-columns:1fr 1fr}}
.feature-list li{display:flex;gap:12px;align-items:flex-start;font-size:.96rem}
.feature-list .ico{
  flex:0 0 30px;height:30px;border-radius:9px;background:var(--sand-2);
  display:grid;place-items:center;font-size:.95rem;
}

.facts-row{display:flex;flex-wrap:wrap;gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 0 28px}
.facts-row div{flex:1 1 140px;padding:18px 8px 18px 0}
.facts-row dt{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--brass);margin-bottom:4px}
.facts-row dd{margin:0;font-family:var(--serif);font-size:1.15rem}

/* ---------- reviews ---------- */
.review{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:26px;position:relative}
.review .stars{color:var(--brass);letter-spacing:.15em;font-size:.9rem;margin-bottom:10px}
.review blockquote{margin:0 0 14px;font-family:var(--serif);font-size:1.1rem;line-height:1.5}
.review cite{font-style:normal;font-size:.82rem;color:var(--ink-soft)}
.review .src{font-size:.72rem;color:var(--ink-soft);opacity:.85}

/* ---------- booking ---------- */
.book{background:var(--sea-dark);color:#f7f1e6}
.book h2{color:#fff}
.book .eyebrow{color:#e2c795}
.book .lede{color:rgba(255,255,255,.82)}
.book a{color:#f0d9ac}
.book-note{color:rgba(255,255,255,.72);font-size:.9rem;max-width:48ch}
.book .included{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:8px;font-size:.94rem;color:rgba(255,255,255,.85)}
.book .included li{padding-left:24px;position:relative}
.book .included li::before{content:"✓";position:absolute;left:0;color:#e2c795}

.book-card{background:#fff;color:var(--ink);border-radius:18px;padding:24px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.book-card label{display:block;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--brass);margin:14px 0 6px;font-weight:600}
.book-card input,.book-card select,.book-card textarea{
  width:100%;padding:12px 13px;font:inherit;font-size:.95rem;border:1px solid rgba(20,38,44,.22);
  border-radius:10px;background:#fff;color:var(--ink);min-height:46px;min-width:0;max-width:100%;
}
.book-card textarea{min-height:84px;resize:vertical}
.book-card input:focus,.book-card select:focus,.book-card textarea:focus{
  border-color:var(--sea);outline:2px solid rgba(47,107,112,.25);outline-offset:0;
}
.book-card .two{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
.book-card .two>*{min-width:0}
@media(max-width:430px){.book-card .two{grid-template-columns:1fr}}
.quote{margin-top:16px;border-top:1px dashed var(--line);padding-top:14px;font-size:.93rem}
.quote:empty{display:none;border:0;padding:0;margin:0}
.quote strong{display:block;margin-bottom:4px}
.err{color:#a33a25;font-size:.86rem;margin-top:10px}
.err:empty{display:none}
.hp{position:absolute;left:-9999px;height:1px;overflow:hidden}

/* ---------- prose pages ---------- */
.prose-wrap{max-width:780px}
.prose-wrap h2{margin-top:1.5em;font-size:clamp(1.25rem,3.4vw,1.6rem)}
.prose-wrap h2:first-of-type{margin-top:1.1em}
.prose-wrap ul,.prose-wrap ol{padding-left:22px;margin:0 0 1.1em}
.prose-wrap li{margin-bottom:.5em}
.prose-wrap > p:first-of-type{margin-top:0}
.plain{list-style:none;padding-left:0!important}
.plain li{padding-left:26px;position:relative}
.plain li::before{content:"·";position:absolute;left:8px;color:var(--brass);font-weight:700}

.notice{
  border-left:3px solid var(--brass);background:var(--white);
  padding:16px 18px;border-radius:0 10px 10px 0;font-size:.94rem;margin:24px 0;
}
.notice p:last-child{margin-bottom:0}
.notice--warn{border-left-color:#a33a25;background:#fdf1ee}

/* ---------- misc ---------- */
.split{display:grid;gap:34px;align-items:center}
@media(min-width:820px){.split{grid-template-columns:1fr 1fr;gap:48px}.split--flip>*:first-child{order:2}}
.photo{border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.photo img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.times{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.times li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:.95rem}
.times li span:last-child{color:var(--ink-soft);white-space:nowrap}
@media(max-width:520px){
  .times li{flex-direction:column;gap:2px}
  .times li span:last-child{white-space:normal}
}
.callout{border-left:3px solid var(--brass);background:var(--white);padding:16px 18px;border-radius:0 10px 10px 0;font-size:.94rem}
.callout p:last-child{margin-bottom:0}

/* ---------- footer ---------- */
.site-footer{background:var(--ink);color:rgba(255,255,255,.72);padding:48px 0 40px;font-size:.88rem}
.site-footer a{color:rgba(255,255,255,.85);display:inline-flex;align-items:center;min-height:44px}
.site-footer .cols{display:grid;gap:26px}
@media(min-width:700px){.site-footer .cols{grid-template-columns:1.4fr 1fr 1fr 1fr}}
.site-footer h4{font-family:var(--serif);color:#fff;font-size:1rem;margin:0 0 10px;font-weight:600}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:2px}
.site-footer .small{font-size:.8rem;opacity:.75}
.site-footer .legal{
  margin-top:32px;padding-top:20px;border-top:1px solid rgba(255,255,255,.14);
  font-size:.78rem;display:flex;flex-wrap:wrap;gap:10px 22px;justify-content:space-between
}
.site-footer .legal span{min-width:0;overflow-wrap:break-word}
@media(max-width:520px){.site-footer .legal{justify-content:flex-start}.site-footer .legal span{flex:1 1 100%}}

@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{
  .site-header,.book,.site-footer,.hero-actions,.gallery,.skip,.lightbox{display:none!important}
  body{background:#fff;font-size:12pt}
  .card,.photo{box-shadow:none}
  .prose-wrap{max-width:none}
}
