/* ==========================================================================
   Laze Adventure and Leisure — site styles
   Layout: one long page. A wide river photo opens it, a "trip card" of the
   real tour facts overlaps the photo's bottom edge, and one deep-green band
   (tours + booking) carries the only job that matters: getting on the water.
   Colours come from the fleet: kayak yellow, mangrove green, wordmark navy.
   ========================================================================== */

:root {
  /* Colour tokens (light) */
  --bg: #f3f6f0;          /* paper with a green cast */
  --surface: #ffffff;
  --ink: #12241f;         /* mangrove shadow */
  --muted: #52645d;
  --line: #d3dcd1;
  --river: #113a33;       /* deep band */
  --river-2: #0c2c27;
  --on-river: #eef4ec;
  --on-river-muted: #a9c2b7;
  --sun: #f7b90f;         /* kayak yellow */
  --on-sun: #1a2238;      /* wordmark navy */
  --coral: #c93c22;       /* life jacket, used for errors only */
  --ok: #1d7a4d;
  --field: #ffffff;
  --photo-ink: #ffffff;   /* text set on photographs (same in both themes) */
  --shadow: 0 18px 40px -22px rgba(10, 40, 34, 0.45);

  /* Type tokens */
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Scale */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.7rem, 1.4rem + 6vw, 5.6rem);

  --wrap: 72rem;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1513;
    --surface: #14211e;
    --ink: #e7efe8;
    --muted: #9cb0a7;
    --line: #263933;
    --river: #12322c;
    --river-2: #0d2622;
    --on-river: #eef4ec;
    --on-river-muted: #a9c2b7;
    --sun: #f7b90f;
    --on-sun: #1a2238;
    --coral: #f0745a;
    --ok: #5ccb93;
    --field: #0f1b18;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1513;
  --surface: #14211e;
  --ink: #e7efe8;
  --muted: #9cb0a7;
  --line: #263933;
  --river: #12322c;
  --river-2: #0d2622;
  --on-river: #eef4ec;
  --on-river-muted: #a9c2b7;
  --sun: #f7b90f;
  --on-sun: #1a2238;
  --coral: #f0745a;
  --ok: #5ccb93;
  --field: #0f1b18;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { /* paints the phone status-bar band behind the sticky header */
  content: ""; position: fixed; inset: 0 0 auto; z-index: 30;
  height: env(safe-area-inset-top, 0px); background: var(--bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-2); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.eyebrow {
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 38rem; }
.section-head { display: grid; gap: 0.9rem; margin-bottom: clamp(1.75rem, 1rem + 3vw, 3rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-sun { background: var(--sun); color: var(--on-sun); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-wide { width: 100%; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: grid; text-decoration: none; margin-right: auto; }
.brand-mark { font: 800 1.6rem/1 var(--display); letter-spacing: 0.3em; margin-right: -0.3em; }
.brand-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav .btn { min-height: 2.6rem; padding-block: 0.5rem; }
.nav-toggle {
  display: none; width: 2.75rem; height: 2.75rem; border-radius: 999px;
  border: 2px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 1.3rem; height: 1.3rem; margin: auto; display: block; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.8rem 0; border-top: 1px solid var(--line); }
  .nav .btn { margin-top: 0.75rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--photo-ink); background: var(--river-2); }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero::after { /* scrim so the headline stays legible over the sky */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8, 30, 26, 0.82) 0%, rgba(8, 30, 26, 0.55) 42%, rgba(8, 30, 26, 0.05) 78%),
              linear-gradient(0deg, rgba(8, 30, 26, 0.55), rgba(8, 30, 26, 0) 45%);
}
.hero .wrap { padding-block: clamp(4rem, 2rem + 9vw, 8.5rem) clamp(7rem, 5rem + 8vw, 11rem); display: grid; gap: 1.4rem; }
.hero .eyebrow { color: var(--sun); }
.hero h1 { font-size: var(--step-4); font-weight: 800; max-width: 11ch; line-height: 0.95; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero-lede { font-size: var(--step-1); max-width: 31rem; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }

/* Trip card: the tour's real numbers, overlapping the photo */
.tripcard-wrap { position: relative; z-index: 2; margin-top: clamp(-5rem, -3rem - 4vw, -3.5rem); }
.tripcard {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  margin: 0; padding: 0; overflow: hidden;
}
.tripcard div { padding: 1.3rem 1.4rem; border-left: 1px solid var(--line); min-width: 0; }
.tripcard div:first-child { border-left: 0; }
.tripcard dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tripcard dd { margin: 0.25rem 0 0; font: 700 var(--step-2)/1.1 var(--display); letter-spacing: -0.02em; }
.tripcard dd small { display: block; font: 500 0.9rem/1.35 var(--body); letter-spacing: 0; color: var(--muted); margin-top: 0.3rem; }
@media (max-width: 760px) {
  .tripcard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tripcard div { padding: 1rem 1.1rem; }
  .tripcard div:nth-child(odd) { border-left: 0; }
  .tripcard div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center; }
.about-copy { display: grid; gap: 1.15rem; }
.about-copy p { max-width: 34rem; }
.about-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.about-list li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.6rem; align-items: start; }
.about-list svg { width: 1.4rem; height: 1.4rem; color: var(--ok); margin-top: 0.15rem; }
.about-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; align-items: stretch; }
.about-photos img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tours + booking (deep band) ---------- */
.band { background: var(--river); color: var(--on-river); }
.band .eyebrow { color: var(--sun); }
.band .lede { color: var(--on-river-muted); }
.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tour {
  display: grid; grid-template-rows: auto 1fr; background: var(--river-2);
  border-radius: var(--radius); overflow: hidden; min-width: 0;
}
.tour-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tour-body { display: grid; gap: 0.9rem; padding: 1.4rem; align-content: start; grid-template-rows: auto auto auto 1fr auto; }
.tour-tagline { color: var(--on-river-muted); }
.tour-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.tour-meta li { font-size: 0.85rem; font-weight: 600; padding: 0.3rem 0.7rem; border: 1px solid rgba(238, 244, 236, 0.28); border-radius: 999px; }
.tour-highlights { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; color: var(--on-river-muted); font-size: 0.98rem; }
.tour-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.9rem; padding-top: 0.6rem; border-top: 1px solid rgba(238, 244, 236, 0.16); }
.price { font: 800 var(--step-2)/1 var(--display); font-variant-numeric: tabular-nums; }
.price small { display: block; font: 500 0.82rem/1.4 var(--body); color: var(--on-river-muted); margin-top: 0.3rem; }
.tour-group { background: transparent; border: 1px dashed rgba(238, 244, 236, 0.4); grid-template-rows: 1fr; }
@media (max-width: 980px) { .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tour-grid { grid-template-columns: minmax(0, 1fr); } }

.booking { margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.panel { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 0.8rem + 2vw, 2.2rem); min-width: 0; }
.panel h3 { margin-bottom: 0.4rem; }
.panel-note { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.4rem; }
.summary { position: sticky; top: 5.5rem; display: grid; gap: 1rem; }
.summary dl { margin: 0; display: grid; gap: 0.6rem; }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.98rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { padding-top: 0.9rem; border-top: 1px solid var(--line); align-items: baseline; }
.summary .total dd { font: 800 var(--step-2)/1 var(--display); }
.secure { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.secure svg { width: 1.3rem; height: 1.3rem; margin-top: 0.1rem; }
@media (max-width: 900px) { .booking { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.92rem; font-weight: 700; padding: 0; }
.field .hint { font-size: 0.84rem; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.85rem;
  font: 500 1rem/1.4 var(--body); color: var(--ink);
  background: var(--field); border: 1.5px solid var(--line); border-radius: 10px;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--ink); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--coral); }
.error { color: var(--coral); font-size: 0.86rem; font-weight: 600; min-height: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.slots { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.slots label {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.1rem;
  border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  font-weight: 700; font-variant-numeric: tabular-nums; background: var(--field);
}
.slots input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.slots input:checked + span { color: var(--on-sun); }
.slots label:has(input:checked) { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }
.slots label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.stepper { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; gap: 0.4rem; }
.stepper button { min-height: 3rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--field); color: var(--ink); font: 700 1.3rem/1 var(--body); cursor: pointer; }
.stepper input { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.7rem; align-items: start; font-size: 0.95rem; }
.check input { width: 1.35rem; height: 1.35rem; min-height: 0; margin-top: 0.15rem; accent-color: var(--river); }
.form-actions { display: grid; gap: 0.8rem; margin-top: 0.4rem; }
.notice { border-radius: 10px; padding: 0.9rem 1rem; font-size: 0.95rem; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 0.7rem; }
.notice.is-error { border-color: var(--coral); }
.notice strong { font-weight: 700; }
.notice pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 500 0.88rem/1.5 var(--body); color: var(--muted); max-height: 11rem; overflow: auto; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Gallery ---------- */
.gallery { columns: 4 15rem; column-gap: 0.9rem; }
.gallery button {
  display: block; width: 100%; margin: 0 0 0.9rem; padding: 0; border: 0; background: var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; break-inside: avoid; position: relative;
}
.gallery img { width: 100%; transition: transform 0.5s ease; }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 0.6rem; } .gallery button { margin-bottom: 0.6rem; border-radius: 10px; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--photo-ink); }
.lightbox::backdrop { background: rgba(5, 16, 14, 0.94); }
.lightbox-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 0.75rem; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox figure { margin: 0; min-height: 0; display: grid; place-items: center; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; min-height: 0; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lightbox-caption { font-size: 0.95rem; min-width: 0; }
.lightbox-controls { display: flex; gap: 0.5rem; flex: none; }
.lightbox-controls button { width: 3rem; height: 3rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.5); background: transparent; color: var(--photo-ink); cursor: pointer; font-size: 1.2rem; }
.lightbox-controls button:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 1rem + 4vw, 4rem); align-items: start; }
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; gap: 0.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.contact-list .k { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-list .v { font-size: var(--step-1); font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.contact-list .v a { text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-list .sub { font-size: 0.92rem; color: var(--muted); }
.contact .panel { border: 1px solid var(--line); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--river-2); color: var(--on-river-muted); font-size: 0.95rem; }
.site-footer .wrap { padding-block: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; justify-content: space-between; }
.site-footer .brand-mark, .site-footer a { color: var(--on-river); }
.site-footer .brand-sub { color: var(--on-river-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; z-index: 15;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 3.5rem; height: 3.5rem; border-radius: 999px; display: grid; place-items: center;
  background: var(--sun); color: var(--on-sun); box-shadow: var(--shadow);
}
.wa-float svg { width: 1.7rem; height: 1.7rem; }

/* ---------- Status / policy / admin pages ---------- */
.page-narrow { max-width: 44rem; }
.status-card { display: grid; gap: 1.2rem; border: 1px solid var(--line); }
.status-badge { justify-self: start; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--line); }
.status-badge.is-confirmed { background: var(--ok); color: var(--surface); }
.status-badge.is-failed { background: var(--coral); color: var(--surface); }
.prose { display: grid; gap: 1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.5rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.draft-flag { border: 2px dashed var(--coral); border-radius: 10px; padding: 0.9rem 1rem; font-weight: 600; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
