/* TIDEHOUR — shared styles */
:root {
  --abyss: #031821;
  --ink: #062a33;
  --lagoon: #36c5c0;
  --foam: #e9fbf8;
  --sand: #f4ede1;
  --coral: #ff6f59;
  --sun: #f2b65a;
  --mute: #9fb7bb;
  --line: rgba(233, 251, 248, .18);
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--abyss); color: var(--foam); font: 400 16px/1.55 var(--sans); overflow-x: hidden; }
body.light { background: var(--sand); color: var(--ink); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--abyss); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lagoon); margin: 0 0 14px; }
body.light .k { color: #0d6f70; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(40px, 6.2vw, 104px); line-height: .95; }
h2 em, h1 em { font-style: italic; }
h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; max-width: 34em; color: rgba(233, 251, 248, .86); }
body.light .lede, .sand .lede { color: #23474f; }
.sand .btn-ghost { color: var(--ink); border-color: rgba(6, 42, 51, .4); }
.sand .btn-ghost:hover { background: rgba(6, 42, 51, .07); }
.sand .k { color: #0d6f70; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid currentColor; background: none; text-decoration: none; font-weight: 500; font-size: 15px; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); border-color: var(--coral); color: #1d0a06; }
.btn-coral:hover { background: #ff8a77; }
.btn-foam { background: var(--foam); border-color: var(--foam); color: var(--abyss); }
.btn-ghost { color: var(--foam); border-color: rgba(233, 251, 248, .5); }
.btn-ghost:hover { background: rgba(233, 251, 248, .12); }
body.light .btn-ghost { color: var(--ink); border-color: rgba(6, 42, 51, .4); }
.btn[hidden] { display: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gut); transition: background .4s, padding .4s; }
.top.solid { background: rgba(3, 24, 33, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; }
body.light .top { color: var(--foam); }
.logo { font-family: var(--serif); font-size: 24px; letter-spacing: .26em; text-decoration: none; text-transform: uppercase; display: inline-flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.logo small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; opacity: .7; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-size: 14.5px; opacity: .88; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; border-color: currentColor; }
.top .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid rgba(233, 251, 248, .5); border-radius: 999px; min-height: 42px; padding: 0 16px; cursor: pointer; }
@media (max-width: 980px) {
  .nav { display: none; position: fixed; inset: 64px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 0; background: var(--abyss); border: 1px solid var(--line); border-radius: 14px; padding: 10px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .top .btn-book { display: none; }
  .logo small { display: none; }
}

/* media helpers */
.media { position: relative; overflow: hidden; background: #0a2a33; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; right: 10px; bottom: 8px; margin: 0; font: 500 10.5px/1.2 var(--mono); letter-spacing: .06em; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); z-index: 3; pointer-events: none; }

/* reveal on scroll: visible by default; site.js adds .rv-wait only to below-the-fold elements it observes */
.rv { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.rv-wait { opacity: 0; transform: translateY(28px); }
.rm .rv.rv-wait { opacity: 1; transform: none; }

/* footer */
.ft { position: relative; padding: 0 0 40px; background: var(--abyss); color: var(--foam); overflow: hidden; }
.ft-media { position: relative; height: clamp(320px, 52vw, 640px); }
.ft-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 24, 33, 0) 30%, var(--abyss) 98%); }
.ft-word { position: absolute; left: 0; right: 0; bottom: -0.16em; z-index: 2; margin: 0; text-align: center; font-family: var(--serif); font-size: clamp(64px, 17vw, 300px); letter-spacing: .1em; line-height: 1; text-transform: uppercase; color: var(--foam); mix-blend-mode: overlay; pointer-events: none; }
.ft-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.ft h4 { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lagoon); margin: 0 0 16px; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { margin: 0 0 9px; }
.ft a { text-decoration: none; opacity: .86; }
.ft a:hover { opacity: 1; text-decoration: underline; }
.ft-note { grid-column: 1 / -1; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.ft-note p { margin: 0 0 6px; }
@media (max-width: 860px) { .ft-in { grid-template-columns: 1fr 1fr; } }

/* inner page hero */
.phero { position: relative; min-height: 72svh; display: flex; align-items: flex-end; padding: 140px 0 56px; overflow: hidden; color: var(--foam); }
.phero .media { position: absolute; inset: 0; }
.phero .media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 24, 33, .25), rgba(3, 24, 33, .1) 40%, rgba(3, 24, 33, .78)); }
.phero .wrap { position: relative; z-index: 2; width: 100%; }
.phero h1 { font-size: clamp(48px, 8.4vw, 140px); line-height: .92; }
.phero .lede { margin-top: 20px; }
.crumbs { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; opacity: .85; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field legend { font: 500 11.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #3b5d64; }
.dark .field label, .dark .field legend { color: var(--mute); }
.field input, .field select, .field textarea { min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(6, 42, 51, .28); background: #fffdf9; color: var(--ink); font-size: 16px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid #0d6f70; outline-offset: 1px; }
.field .err { color: #b3261e; font-size: 13.5px; min-height: 1em; margin: 0; }
.field [aria-invalid="true"] { border-color: #b3261e; }
