/* Sustainable Charters, single-page site. Mobile-first, no framework.
   Palette: Gulf navy, mangrove teal, seafoam, sand, sunset coral. */
:root {
  --navy: #0b3954;
  --navy-deep: #072a3f;
  --teal: #0e7c7b;
  --teal-dark: #0a5f5e;
  --seafoam: #e3f2ef;
  --sand: #f7f1e3;
  --coral: #c8553d;
  --coral-light: #f28f6b;
  --ink: #1d2b36;
  --muted: #4a5b68;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 57, 84, .12);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: #fff; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--coral-light); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
p { margin: 0 0 1em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--teal-dark); margin-bottom: .5rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Placeholders: yellow so nothing unfinished slips through */
.ph { background: #fff3b0; color: #5a4300; border: 1px dashed #c9a400; border-radius: 4px; padding: 0 .3em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; font-weight: 600; }
.draft-banner { background: #fff3b0; color: #5a4300; text-align: center; font-size: .9rem; padding: .45rem 1rem; border-bottom: 1px solid #e6cf5c; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid #e4ecef; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); }
.header-nav { display: flex; align-items: center; gap: 1.2rem; }
.header-nav .links { display: none; gap: 1.2rem; }
.header-nav .links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.header-nav .links a:hover { color: var(--teal-dark); }
@media (min-width: 760px) { .header-nav .links { display: flex; } }

/* Buttons */
.btn { display: inline-block; background: var(--coral); color: #fff; text-decoration: none; font: inherit; font-weight: 700; padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--coral); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #a9442f; border-color: #a9442f; color: #fff; transform: translateY(-1px); }
.btn-sm { padding: .5rem 1rem; font-size: .95rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Hero: image now, looping video later (same .hero-bg class) */
.hero { position: relative; min-height: clamp(460px, 78svh, 760px); display: grid; align-items: end; color: #fff; background: var(--navy); overflow: hidden; }
.hero-bg, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,42,63,.15) 0%, rgba(7,42,63,.1) 35%, rgba(7,42,63,.78) 100%); }
.hero-content { position: relative; z-index: 1; padding: 3rem 0 3.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 8vw, 4.4rem); margin-bottom: .2em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero .tagline { font-size: clamp(1.15rem, 3vw, 1.5rem); color: #eef8f6; margin-bottom: 1.5rem; text-shadow: 0 1px 10px rgba(0,0,0,.4); max-width: 640px; }
.status-pill { display: inline-block; background: rgba(7,42,63,.55); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .3rem .9rem; font-size: .88rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .hero-content { padding-bottom: 5rem; } }

/* Sections */
section { padding: 3.5rem 0; }
@media (min-width: 900px) { section { padding: 4.5rem 0; } }
.section-sand { background: var(--sand); }
.section-seafoam { background: var(--seafoam); }
.intro p { font-size: 1.2rem; color: var(--ink); }
.pills { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.pills li { background: var(--seafoam); color: var(--teal-dark); font-weight: 600; font-size: .95rem; padding: .45rem 1rem; border-radius: 999px; }

/* Gallery */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
.gallery .tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #cfe3e1; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a.tile:hover img { transform: scale(1.04); }
.gallery .tile.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery .tile.tall { grid-row: span 2; aspect-ratio: auto; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
  .gallery .tile, .gallery .tile.wide { aspect-ratio: auto; }
  .gallery .tile.wide { grid-column: span 2; grid-row: span 2; }
  .gallery .tile.tall { grid-row: span 2; }
}
@media (min-width: 1000px) { .gallery { grid-auto-rows: 250px; } }
.video-slot { display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--teal-dark); background: repeating-linear-gradient(45deg, #e3f2ef, #e3f2ef 14px, #d3ebe6 14px, #d3ebe6 28px); border: 2px dashed var(--teal); box-shadow: none !important; }
.video-slot svg { width: 44px; height: 44px; margin: 0 auto .4rem; color: var(--teal); }
.video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Lightbox (native <dialog>) */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 22, 33, .9); }
.lightbox img { width: auto; height: auto; max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); margin: 0 auto; }
.lightbox .lb-bar { display: flex; justify-content: center; gap: .6rem; margin-top: .8rem; }
.lightbox button { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: .5rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.28); }

/* Booking */
.booking-calendar { margin: 2rem 0 0; min-height: 360px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.booking-calendar.is-placeholder { display: grid; place-items: center; text-align: center; padding: 2rem 1.25rem; border: 3px dashed var(--teal); box-shadow: none; background: repeating-linear-gradient(45deg, #ffffff, #ffffff 16px, #f1f8f6 16px, #f1f8f6 32px); }
.booking-calendar.is-placeholder svg { width: 64px; height: 64px; color: var(--teal); margin: 0 auto 1rem; }
.booking-calendar.is-placeholder h3 { font-size: 1.4rem; }
.booking-calendar.is-placeholder p { color: var(--muted); max-width: 520px; margin-inline: auto; }
.or-divider { display: flex; align-items: center; gap: 1rem; margin: 3rem 0 1.5rem; color: var(--muted); font-weight: 600; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: #c9d8dc; }

/* Form */
.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; border: 1px solid #e8eef0; }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .form { padding: 2rem; } .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--navy); }
.hint { font-size: .88rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .75rem .85rem; border: 1.5px solid #b7c8cf; border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(14,124,123,.25); outline-offset: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.req { color: var(--coral); }
.hidden-field { display: none; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9dde3; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font: 700 .95rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }
.site-footer .ph { background: #3d3510; color: #ffe680; border-color: #8a7400; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #7fd1c3; }

/* Simple utility pages (thanks / 404) */
.simple-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%); color: #fff; }
.simple-page h1 { color: #fff; font-size: clamp(2rem, 6vw, 3rem); }
.simple-page p { color: #dff1ee; font-size: 1.15rem; }

/* --- v2 layout tweaks --- */
.show-sm { display: inline; } .hide-sm { display: none; }
@media (min-width: 560px) { .show-sm { display: none; } .hide-sm { display: inline; } }
.hero h1 { max-width: 7.5em; }
@media (min-width: 900px) {
  .hero::after { background: linear-gradient(90deg, rgba(7,42,63,.72) 0%, rgba(7,42,63,.35) 38%, rgba(7,42,63,0) 60%), linear-gradient(180deg, rgba(7,42,63,0) 55%, rgba(7,42,63,.55) 100%); }
}
/* Photo grid: 4 columns x 2 rows on desktop */
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
  .gallery .tile.wide { grid-column: span 2; grid-row: span 2; }
  .gallery .tile.tall { grid-row: span 2; }
}
@media (min-width: 1000px) { .gallery { grid-auto-rows: 240px; } }
.video-grid { display: grid; gap: .75rem; margin-top: .75rem; }
.video-grid .tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.video-grid video { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 600px) { .video-grid { grid-template-columns: 1fr 1fr; } }
/* Mobile hero: taller, text kept low so it doesn't cover the kids on the bow */
@media (max-width: 559px) {
  .hero { min-height: 86svh; }
  .hero .status-pill { display: none; }
  .hero-content { padding-bottom: 2.25rem; }
  .hero h1 { margin-bottom: .1em; }
  .hero .tagline { margin-bottom: 1.1rem; }
}

/* Rates (Book a Trip) */
.rates { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 560px) { .rates { grid-template-columns: 1fr 1fr; } }
.rate { background: var(--seafoam); border-radius: var(--radius); padding: 1.3rem 1.4rem; text-align: center; border: 1px solid #cfe6e1; }
.rate h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.rate .price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--teal-dark); margin: 0 0 .3rem; line-height: 1.1; }
.rate .rate-detail { margin: 0; font-size: .95rem; color: var(--muted); }
.rates { max-width: 640px; margin-inline: auto; }
.rate { display: flex; flex-direction: column; justify-content: center; }

/* Published version: calendar hidden until a widget is chosen */
.booking-note { margin: 1.75rem auto 1.25rem; font-size: 1.1rem; color: var(--ink); font-weight: 500; }
