/* Bellingham Freediving — site styles
   Palette and type follow the 2027 brand standards (Liet Unlimited).
   Brand colors: 5503C #94b7bb · 323C #005f61 · 309C #003b49 · 303C #002a3a · 5395C #081f2c
   Brand fonts are S&S Greyhound Two and Neue Plak (licensed); the site uses DM Sans. */
:root {
  --teal: #005f61;        /* PMS 323C — accents, links */
  --teal-deep: #003b49;   /* PMS 309C */
  --navy: #002a3a;        /* PMS 303C */
  --sage: #94b7bb;        /* PMS 5503C */
  --sage-soft: #d8e5e7;   /* 5503C at ~35% for tinted sections */
  --mist: #eaf1f1;        /* page background: 5503C at ~20% */
  --paper: #ffffff;
  --ink: #081f2c;         /* PMS 5395C — headings, footer */
  --text: #1d3542;        /* body copy */
  --muted: #4f6570;
  --line: rgba(8, 31, 44, 0.12);
  --field: #7d8f96;       /* form field borders — 3:1 against white and mist */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 10px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --font-display: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --track-label: .32em;   /* brand calls for wide tracking on secondary-font labels */
  --shadow: 0 1px 2px rgba(8,31,44,.04), 0 12px 32px -12px rgba(8,31,44,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  /* Native bounce and pull-to-refresh stay on. When the page bounces, the area
     revealed above it is mist and the area below the footer matches the footer. */
  background: linear-gradient(var(--mist) 50%, var(--ink) 50%);
  /* Nothing can push the page wider than the screen. `clip` (not `hidden`)
     keeps the sticky header working. */
  overflow-x: clip;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--mist);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration: underline; text-decoration-color: rgba(0,95,97,.4); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
::selection { background: var(--sage); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}
/* Primary brand font: page titles and section titles */
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h4 { font-size: clamp(1.2rem, 1.6vw, 1.35rem); line-height: 1.25; }
h5, .subhead { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink); margin: 1.8em 0 .4em; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 600; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* Hidden in place (not parked off-screen), so it never widens the page */
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(234,241,241, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(234,241,241, .92); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 96px; }
.logo { display: block; }
.logo img { height: 76px; width: auto; }
@media (max-width: 900px) { .logo img { height: 54px; } }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  padding: 8px 14px; transition: color .2s;
}
/* Current page: thin teal underline. Hover: the line draws in from the left. */
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover { color: var(--teal-deep); }
.nav a:hover::after { transform: scaleX(1); opacity: .45; }
.nav a[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.nav .ig::after { display: none; }
.nav .ig { display: inline-flex; padding: 9px; margin-left: 4px; }
.nav .ig svg { width: 18px; height: 18px; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 767px) {
  .site-header .container { min-height: 80px; }
  .menu-btn { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; background: var(--mist);
    flex-direction: column; justify-content: center; gap: 10px;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; padding: 6px 24px; }
  .nav a[aria-current="page"] { color: var(--teal); }
  .nav a::after { left: 24px; right: 24px; bottom: 0; }
  .nav .ig svg { width: 26px; height: 26px; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
  /* a blurred header would trap the fixed menu inside it */
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--mist); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6.5vw, 88px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--sage-soft); border-top: 0; }

/* ---------- Home: hero (headline, then two photos side by side) ---------- */
.hero-duo { padding: clamp(20px, 2.5vw, 36px) 0 0; }
.duo-text { margin-bottom: clamp(24px, 3vw, 40px); }
.duo-text h1 { margin: 0 0 18px; }
.duo-text p { font-size: clamp(1.15rem, 1.65vw, 1.5rem); line-height: 1.4; color: var(--muted); margin: 0; }
@media (min-width: 1024px) {
  /* Headline on one line, sized to span the photos' width (DM Sans: fits at ~5.45vw) */
  .duo-text h1 { white-space: nowrap; font-size: min(4.4rem, 5.45vw); }
  .duo-text p { white-space: nowrap; }
}
.duo-photos { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; }
.duo-photos img { width: 100%; height: clamp(320px, 42vw, 520px); object-fit: cover; border-radius: var(--radius-lg); }
.duo-photos > img { object-position: 30% 45%; }
/* Fins photo: zoomed in from the top so the fins stand at the same height as the
   diver on the left (trims extra water at the bottom). Wrapper clips the zoom. */
.dive-crop { overflow: hidden; border-radius: var(--radius-lg); }
.duo-photos .dive-crop img { display: block; border-radius: 0; object-position: 55% center; transform: scale(1.3); transform-origin: 55% 0; }
@media (max-width: 900px) {
  .duo-photos { grid-template-columns: 1.4fr 1fr; gap: 8px; }
  .duo-photos img { height: clamp(200px, 55vw, 360px); border-radius: var(--radius); }
  .dive-crop { border-radius: var(--radius); }
  .duo-photos .dive-crop img { border-radius: 0; }
}

/* ---------- Home: courses ---------- */
.hero + .section { padding-top: clamp(36px, 4vw, 56px); }
.section-head {
  display: grid; grid-template-columns: 1fr; grid-template-areas: "title" "text";
  margin-bottom: 24px;
}
/* Courses: the Molchanovs logo sits at the right edge, centered on the heading and intro together.
   On phones it moves up to the heading line so the intro can use the full width.
   It stands in for the per-course badges. */
.section-head:has(.intro-row img) { grid-template-columns: 1fr auto; grid-template-areas: "title logo" "text logo"; column-gap: 32px; }
.section-head .intro-row img { align-self: center; justify-self: end; height: auto; }
@media (max-width: 700px) { .section-head:has(.intro-row img) { grid-template-areas: "title logo" "text text"; column-gap: 24px; } }
.section-head h2 { grid-area: title; margin: 0; }
.section-head .intro-row { display: contents; }
.section-head .intro-row p { grid-area: text; margin-top: 6px; }
.section-head .intro-row img { grid-area: logo; }
.section-head h2 { margin: 0; }
.intro-row p { font-size: 1.05rem; margin: 0; }
.intro-row img { width: 170px; }
@media (max-width: 700px) { .intro-row img { width: 120px; } }


/* Season notice with its own mailing-list signup. Spans the full row so its edges line up with
   the course cards below; text starts where the card text does. */
.notice {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px;
  background: transparent; border: 1px solid rgba(8, 31, 44, .22); border-radius: var(--radius);
  padding: 12px 12px 12px 24px; color: var(--ink);
  margin-bottom: 16px;
}
/* The sentence lines up with the middle of the email field (not the middle of the box), so it
   stays put when an error message adds a line under the field. */
.notice-text { margin: 14px 0 0; margin-top: calc((54px - 1lh) / 2); font-weight: 500; }
.notice-text strong { font-weight: 700; }
.notice-fields { display: grid; grid-template-columns: auto auto; gap: 0 8px; flex: 0 0 auto; }
.notice-fields input[type="email"] { grid-row: 1; grid-column: 1; }
.notice-fields .btn { grid-row: 1; grid-column: 2; }
.notice-fields .field-error { grid-row: 2; grid-column: 1 / -1; }
.notice input[type="email"] {
  width: 260px; font: inherit; font-size: 15.5px; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.notice input[type="email"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,95,97,.14); }
.notice .btn { padding: 13px 26px; white-space: nowrap; } /* same size as the footer "Sign up" button */
.notice .form-status { flex-basis: 100%; margin: 0 0 4px; font-weight: 500; color: var(--teal-deep); }
.notice .form-status:empty { display: none; }
/* Form errors: a short message in the status line and a red outline on the field */
.form-status.is-error, .notice .form-status.is-error { color: #b3261e; }
.newsletter .form-status.is-error { color: #ffb4a9; }
.field-error { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: #b3261e; text-align: left; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b3261e !important; box-shadow: 0 0 0 3px rgba(179,38,30,.14) !important; }
.newsletter input[aria-invalid="true"] { box-shadow: none !important; }
.newsletter:has(input[aria-invalid="true"]) { border-color: #ffb4a9; }
.notice .form-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  .notice { flex-direction: column; align-items: stretch; padding: 18px 24px 20px; }
  .notice-text { margin-top: 0; }
  .notice-fields { grid-template-columns: 1fr; gap: 8px; }
  .notice-fields .btn { grid-row: 3; grid-column: 1; }
  .notice-fields .field-error { margin: -2px 0 2px; }
  .notice input[type="email"] { width: 100%; font-size: 16px; } /* 16px stops iPhones zooming in on focus */
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.course-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
/* Scales with the window so the longest title ("Discover Freediving") stays on one line in three columns */
.course-card h3 { font-size: min(1.3rem, calc((100vw - 256px) / 44.5)); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: .35em; }
.course-card .meta {
  font-size: .95rem; font-weight: 500; color: var(--text);
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.course-card p:last-child { margin: 0; color: var(--muted); font-size: .97rem; }
/* Links out to the Molchanovs course page; the card itself is not a link, so it doesn't read as a booking button */
.course-more { align-self: flex-start; margin-top: 18px; font-size: .95rem; font-weight: 600; color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.course-more:hover { color: var(--teal-deep); text-decoration-thickness: 2px; }
/* Small "leaves the site" arrow on outbound links: kept out of the underline (inline-block
   isn't underlined by its parent), a touch smaller and lighter than the link text. */
.ext { display: inline-block; margin-left: .3em; font-size: .8em; font-weight: 400; opacity: .7; text-decoration: none; transform: translateY(-.05em); }
/* Title, price, description and link rows line up across the three cards */
@supports (grid-template-rows: subgrid) {
  .course-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; grid-template-columns: 1fr; row-gap: 0; align-content: start; }
  .course-card > div { display: contents; }
  .course-card h3 { grid-row: 1; align-self: end; margin-bottom: .1em; }
  .course-card .meta { grid-row: 2; padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
  .course-card p:last-child { grid-row: 3; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
  .course-card .course-more { grid-row: 4; justify-self: start; align-self: end; }
}
/* One column below 1000px: three columns would squeeze the titles too small */
@media (max-width: 999px) { .cards { grid-template-columns: 1fr; } .course-card h3 { font-size: clamp(1.2rem, 1.6vw, 1.35rem); } }

/* Accordion */
.accordion { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; }
.accordion details { border-top: 1px solid var(--line); }
@media (max-width: 767px) { .accordion { grid-template-columns: 1fr; } .accordion details + details { border-top: 0; } .accordion details:first-child { border-top: 1px solid var(--line); } }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink); line-height: 1.2;
  transition: color .2s;
}
.accordion summary:hover { color: var(--teal-deep); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 13px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 13px no-repeat;
  transition: transform .3s, background-color .3s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background-color: var(--paper); }
.accordion .panel { padding: 0 0 24px; }
.accordion ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.accordion li { padding: 6px 0 6px 22px; position: relative; }
.accordion li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1.5px; background: var(--teal); }

/* Home: coaching + lost item, each paired with a photo to its right.
   Two rows on desktop and tablets. On phones the two cards stack and the two photos
   share one row below them. Photos fill their tile, so nothing is left empty. */
.tiles { display: grid; grid-template-columns: 2.4fr 1fr; grid-auto-rows: minmax(220px, auto); gap: 16px; }
.panel-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px, 3.5vw, 44px); }
.tiles .panel-card { display: flex; flex-direction: column; justify-content: center; }
.panel-card h2, .panel-card h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: .6em; }
.panel-card p:last-child { margin-bottom: 0; }
.photo-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.photo-tile-ring img { object-position: 50% 38%; }
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 12px; }
  .tiles .panel-card { grid-column: 1 / -1; }
  .photo-tile { order: 1; aspect-ratio: 1; border-radius: var(--radius); }
}

/* ---------- Reviews ---------- */
.reviews { padding: 0 0 clamp(56px, 6vw, 80px); background: var(--sage-soft); }
.section.tint:has(+ .reviews) { padding-bottom: clamp(48px, 5.5vw, 80px); }

/* Five yellow stars, drawn from one SVG repeated */
.stars {
  --s: 20px;
  display: inline-block; width: calc(var(--s) * 5); height: var(--s); margin: 0; vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fbbc04' d='M12 1.8l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.9l-6.4 3.5 1.4-7.1-5.3-5 7.2-.9z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x;
}
.stars-lg { --s: 26px; }

.reviews-head { display: table; cursor: pointer; margin: 0 auto clamp(24px, 3vw, 36px); text-align: center; color: inherit; text-decoration: none; border-radius: var(--radius); }
.reviews-head:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }
.reviews-head h2 { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.4rem, 2.2vw, 1.7rem); margin: 0 0 6px; }
.reviews-head h2 svg { width: 1.15em; height: 1.15em; }
.reviews-score { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; }
.reviews-score strong { font-size: 1.7rem; color: var(--ink); line-height: 1; }
.reviews-count { color: var(--muted); font-size: .95rem; }

/* Carousel: a sideways-scrolling row of equal-height cards that snaps to each card.
   Three across on desktop, two on tablets, one (with the next peeking in) on phones. */
.review-carousel { position: relative; }
.review-track {
  --gap: 16px; --per: 3;
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; border-radius: var(--radius-lg);
}
.review-track::-webkit-scrollbar { display: none; }
.review-track:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.review {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius-lg); padding: 26px 26px 24px;
}
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review-avatar { display: block; position: relative; flex: 0 0 48px; width: 48px; height: 48px; }
.review-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-avatar svg { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; padding: 2px; background: #fff; border-radius: 50%; }
.review-name { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.25; }
.review-name a { color: inherit; text-decoration: none; }
.review-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.review-date { margin: 2px 0 0; font-size: .875rem; color: var(--muted); }
.review .stars { margin-bottom: 10px; }
.review-text { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.review-more {
  display: none; align-self: flex-start; margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.review-more:hover { color: var(--teal-deep); }
.review.has-more .review-more { display: block; }

.rc-arrow {
  position: absolute; top: 50%; z-index: 1; width: 44px; height: 44px; margin-top: -40px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--paper); color: var(--teal-deep); box-shadow: 0 2px 10px rgba(8,31,44,.16);
  transition: opacity .2s, background .2s, color .2s;
}
.rc-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rc-arrow:hover { background: var(--teal); color: #fff; }
.rc-arrow:disabled { opacity: 0; pointer-events: none; }
.rc-prev { left: -22px; }
.rc-next { right: -22px; }
.rc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; min-height: 8px; }
.rc-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(8,31,44,.22); cursor: pointer; transition: background .2s, transform .2s; }
.rc-dots button.active { background: var(--teal-deep); transform: scale(1.25); }

/* Full review popup */
.review-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 32px; border: 0;
  border-radius: var(--radius-lg); background: var(--paper); color: var(--text); box-shadow: 0 20px 60px rgba(8,31,44,.3);
}
.review-dialog::backdrop { background: rgba(0,42,58,.55); }
.review-dialog .review-text { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.review-dialog .review-photo { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-top: 18px; }
.review-dialog .review-source { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--teal); }
.review-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
}
.review-close:hover { background: var(--mist); color: var(--ink); }
.review-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 1080px) { .rc-prev { left: -12px; } .rc-next { right: -12px; } }
@media (max-width: 900px) { .review-track { --per: 2; } }
@media (max-width: 640px) {
  .review-track { --per: 1; --gap: 12px; grid-auto-columns: 86%; }
  .review { padding: 22px 22px 20px; }
  .rc-arrow, .rc-dots { display: none; }
  .review-dialog { padding: 28px 22px 24px; }
}

/* Page titles on inner pages */
.section h1 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); line-height: 1; }

/* ---------- Two-column content pages (about, contact) ---------- */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.split > img, .photo-stack img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow); }
.photo-stack { display: grid; gap: 16px; }
.photo-stack img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo-stack img:first-child { object-position: 60% 50%; }
@media (min-width: 768px) {
  /* The two photos share the text column's height exactly, so they end with the last paragraph */
  .about-split { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
  .about-split .photo-stack { display: flex; flex-direction: column; gap: 12px; }
  .about-split .photo-stack img { flex: 1 1 0; min-height: 0; height: 100%; aspect-ratio: auto; }
  .about-split > div > p:last-child { margin-bottom: 0; }
}
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } }
/* Contact page has no photo for now: one column at a comfortable form width */
.split-solo { grid-template-columns: minmax(0, 680px); }
/* About on phones: the whale photo sits right under the title, the other photo after the text */
@media (max-width: 767px) {
  .about-split { display: flex; flex-direction: column; gap: 0; }
  .about-split > div, .about-split .photo-stack { display: contents; }
  .about-split h1 { order: 0; }
  .about-split .photo-stack img:first-child { order: 1; margin: 4px 0 28px; }
  .about-split > div > p { order: 2; }
  .about-split .photo-stack img:last-child { order: 3; margin-top: 12px; }
}
/* Photo starts level with the first paragraph under the page title
   (title: 1.08 line-height + 0.5em margin = 1.58 × title size) */
@media (min-width: 768px) { .split > img, .split > .photo-stack { margin-top: calc(clamp(2.2rem, 3.8vw, 3.2rem) * 1.58 + 8px); } }

/* ---------- Community ---------- */
/* Header uses the same title size, top spacing and text size as About and Contact */
.community-hero { padding-bottom: 0; }
.community-hero > .container > p { margin-bottom: 0; }
.community-photo img { width: 100%; height: clamp(240px, 38vw, 460px); object-fit: cover; object-position: center 62%; border-radius: var(--radius-lg); }
.community-hero + .community-group { padding-top: clamp(40px, 5vw, 64px); border-top: 0; }
.community-group h2 { margin-bottom: 20px; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cc-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cc-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .cc-grid, .cc-grid-3 { grid-template-columns: 1fr; } }
/* Brand and logo panels: light background, no wave texture */
.cc-brand::before, .cc-logo::before { display: none; }
.cc-brand svg { width: 72px; height: 72px; stroke: none; fill: currentColor; }
.cc-facebook { background: #eef3fe; color: #0866ff; }
.cc-whatsapp { background: #eafaf0; color: #25d366; }
.cc-logo { background: #fff; border-bottom: 1px solid var(--line); }
.cc-logo { display: flex; align-items: center; justify-content: center; padding: 22px; }
.cc-logo img { max-height: 100%; max-width: 72%; width: auto; height: auto; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cc-logo img.wide { max-width: 80%; }
.cc-logo-dark { background: var(--teal-deep); border-bottom: 0; }
.cc-grid-3 .cc-visual { aspect-ratio: 16 / 9; }

.cc {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.cc:hover { border-color: var(--teal); }
.cc-visual { position: relative; aspect-ratio: 16 / 7; display: grid; place-items: center; overflow: hidden; }
.cc-visual svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
/* soft wave texture behind each icon */
.cc-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12c15-8 30-8 45 0s30 8 45 0 30-8 45 0' fill='none' stroke='%23ffffff' stroke-width='1.5' opacity='.55'/%3E%3C/svg%3E");
  background-size: 120px 24px;
}
.cc-art { background: linear-gradient(135deg, #a5654a, #84503a); color: #fff; }
.cc-camera { background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; }
.cc-handle { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-size: 13px; font-weight: 600; letter-spacing: .02em; opacity: .9; }
.cc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.cc-label { font-size: .72rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--teal-deep); margin: 0 0 8px; }
.cc h3 { font-size: clamp(1.2rem, 1.6vw, 1.35rem); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 8px; }
.cc h3 a { color: var(--ink); text-decoration: none; }
.cc h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.cc-body > p:not(.cc-label) { color: var(--muted); margin: 0 0 16px; }
.cc-link { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--teal-deep); }
.cc:hover h3 a { color: var(--teal-deep); }

/* ---------- Page not found ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.btn-ghost:hover { background: var(--teal); color: #fff; box-shadow: inset 0 0 0 1.5px var(--teal); }

/* ---------- Locations ---------- */
.location-row {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}
.location-row > div { padding: clamp(4px, 1.5vw, 16px); }
.location + .location { margin-top: 16px; }
.location-row h2 { font-size: clamp(1.4rem, 2vw, 1.7rem); margin-top: .3em; }
.location-row h2 + p { color: var(--text); }
.locations-intro { margin-bottom: 1.6em; max-width: 62ch; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--teal-deep); background: rgba(0,95,97,.1); border-radius: 999px; padding: .25em .75em; margin-bottom: .3em; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--sage-soft); filter: grayscale(.35) contrast(1.02); }
@media (max-width: 767px) { .location-row { grid-template-columns: 1fr; } }

/* ---------- Long-form pages (gear guide, community) ---------- */
/* Gear guide and other long text pages use the full content width, same as every other page */
.prose h1 { margin-bottom: .6em; }

.prose h2 { font-size: clamp(1.4rem, 2vw, 1.7rem); margin-top: 1.6em; padding-top: 1em; border-top: 1px solid var(--line); }

/* ---------- Forms ---------- */
.split form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px); margin: 24px 0 8px;
}
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label, fieldset legend { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 8px; letter-spacing: .01em; }
fieldset legend { font-size: .74rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; margin-bottom: 16px; }
.field .req { color: var(--muted); font-weight: 400; margin-left: 4px; }
fieldset { border: 0; margin: 0; padding: 0; }
.split form input, .split form textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.split form input:focus, .split form textarea:focus { outline: none; border-color: var(--teal); background: var(--paper); box-shadow: 0 0 0 4px rgba(0,95,97,.14); }
.split form textarea { min-height: 140px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 15px 30px; border: 0; border-radius: var(--radius-sm); background: var(--ink); color: var(--mist);
  cursor: pointer; text-decoration: none; transition: background .25s, transform .25s;
}
.btn:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 14px 0 0; font-size: 14px; color: var(--teal-deep); font-weight: 500; }
.form-status:empty { display: none; }

/* ---------- Footer / newsletter ---------- */
.site-footer { background: var(--ink); color: rgba(242,245,245,.75); padding: clamp(56px, 7vw, 88px) 0 32px; text-align: center; }
/* Layered swells form the footer's top edge: a soft teal swell behind the dark one,
   like layers of water where the page meets the sea. */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(36px, 4.4vw, 64px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 34 C180 16 340 46 540 32 C740 18 880 10 1080 26 C1250 40 1360 38 1440 30 V70 H0 Z' fill='%23005f61' fill-opacity='.55'/%3E%3Cpath d='M0 46 C200 30 360 58 560 46 C760 34 900 28 1100 40 C1260 50 1370 52 1440 44 V70 H0 Z' fill='%23081f2c'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.site-footer h2 { color: var(--mist); font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: .35em; }
.site-footer p { max-width: 72ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.newsletter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 480px; margin: 28px auto 0; padding: 6px;
  border: 1px solid rgba(242,245,245,.45); border-radius: var(--radius-sm); background: rgba(242,245,245,.05);
  transition: border-color .2s;
}
.newsletter:focus-within { border-color: var(--sage); }
.newsletter input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--mist);
  background: transparent; border: 0; padding: 12px 20px; outline: none;
}
.newsletter input::placeholder { color: rgba(242,245,245,.5); }
.newsletter .btn { background: var(--mist); color: var(--ink); padding: 13px 26px; }
.newsletter .btn:hover { background: var(--sage); color: var(--ink); }
.newsletter .form-status { color: var(--sage); margin: 6px 0 4px; }
.newsletter .form-status a { color: var(--mist); text-decoration: underline; text-underline-offset: 2px; }
.copyright { margin: clamp(44px, 5vw, 64px) auto 0 !important; padding-top: 24px; border-top: 1px solid rgba(242,245,245,.12); font-size: 13px; color: rgba(242,245,245,.5); max-width: none !important; }
/* iPhones zoom the page in when a field under 16px gets focus, and stay zoomed
   (the page then slides sideways and past the footer). 16px prevents that. */
@media (max-width: 767px) {
  .split form input, .split form textarea, .newsletter input { font-size: 16px; }
}
@media (max-width: 480px) {
  .newsletter { border-radius: var(--radius); flex-direction: column; padding: 8px; }
  .newsletter input { text-align: center; }
}

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

