/* ==========================================================================
   Banyak Surf Villas
   assets/css/site.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink:          #28313a;
  --ink-strong:   #101923;
  --ink-soft:     #5b626a;
  --accent:       #1b6c9f;
  --accent-dark:  #1b6c9f;
  --bg:           #f5f3ee;
  --white:        #ffffff;
  --line:         #dedbd4;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --header-h:     72px;
  --wrap:         1200px;
  --wrap-narrow:  820px;

  --radius:       0;
  --ocean: #101923;
  --ocean-soft: #172330;
  --on-ocean: #f7f5ef;
  --on-ocean-muted: #c4ccd1;
  --reef-texture: url("../img/textures/reef-midnight.jpg");
  --shadow-sm:    0 2px 10px rgba(0, 0, 0, .06);
  --shadow-md:    0 10px 40px rgba(0, 0, 0, .12);
  --shadow-lg:    0 24px 70px rgba(0, 0, 0, .22);

  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 56px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink-strong);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 .55em;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink-strong);
  color: #fff;
  padding: 12px 20px;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 48px, var(--wrap-narrow)); margin-inline: auto; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--grey { background: var(--bg); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.lede {
  font-size: 1.06rem;
  line-height: 1.85;
}

.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--ink-strong);
  background: var(--ink-strong);
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: none;
}
.btn--ghost { background: transparent; color: var(--ink-strong); }
.btn--ghost:hover { background: var(--ink-strong); border-color: var(--ink-strong); color: #fff; }
.btn--light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink-strong); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header__inner {
  width: min(100% - 40px, 1320px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.header__logo img { width: 44px; height: auto; }
.header__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.15;
  color: var(--ink-strong);
  letter-spacing: .01em;
}
.header__logo-text span { display: block; font-size: .62rem; font-family: var(--font-body); font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

.nav { margin-left: auto; }
.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--ink-strong); }

.header__cta { flex: 0 0 auto; padding: 12px 24px; font-size: .72rem; }

/* the in-menu CTA is for the mobile drawer only */
.nav__cta { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.5px;
  background: var(--ink-strong);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -.75px; }
.nav-toggle span::before { content: ""; left: 0; top: -7px; }
.nav-toggle span::after  { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d2536;
  margin-top: var(--header-h);
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,26,40,.42) 0%, rgba(6,26,40,.28) 45%, rgba(6,26,40,.66) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 120px 24px 96px;
  max-width: 900px;
}
.hero__eyebrow {
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(255,255,255,.86);
  margin: 0 0 22px;
}
.hero__title {
  color: #fff;
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  margin: 0 0 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
  line-height: 1.08;
}
.hero__sub {
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  font-weight: 400;
  color: rgba(255,255,255,.93);
  max-width: 620px;
  margin: 0 auto 34px;
  text-shadow: 0 1px 16px rgba(0,0,0,.35);
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.8);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,0));
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(.25); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1);   transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1);   transform-origin: bottom; opacity: 0; }
}

/* Page hero (interior pages) */
.pagehero {
  position: relative;
  margin-top: var(--header-h);
  min-height: min(56vh, 460px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0d2536;
}
.pagehero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pagehero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,26,40,.28), rgba(6,26,40,.74));
}
.pagehero__inner { position: relative; z-index: 2; padding-bottom: clamp(34px, 5vw, 62px); color: #fff; }
.pagehero__title { color: #fff; margin: 0 0 12px; font-size: clamp(2.1rem, 5.4vw, 3.5rem); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.pagehero__sub { max-width: 620px; color: rgba(255,255,255,.92); font-weight: 400; margin: 0; text-shadow: 0 1px 14px rgba(0,0,0,.3); }
.pagehero__eyebrow { color: rgba(255,255,255,.8); }

/* --------------------------------------------------------------------------
   7. Alternating feature rows
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.feature + .feature { margin-top: clamp(56px, 8vw, 110px); }
.feature--flip .feature__media { order: 2; }

.feature__media { position: relative; }
.feature__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.feature__body h2 { margin-bottom: .5em; }

/* --------------------------------------------------------------------------
   8. Intro card (homepage)
   -------------------------------------------------------------------------- */
.introcard {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: clamp(34px, 5vw, 62px);
  margin-top: clamp(-90px, -7vw, -50px);
  position: relative;
  z-index: 3;
  text-align: center;
  border-radius: var(--radius);
}

.quote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 26px;
  margin: 0;
  max-width: 720px;
}
.quote p { font-size: 1.06rem; font-style: italic; font-weight: 400; color: var(--ink); }
.quote footer { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }

/* --------------------------------------------------------------------------
   9. Stat strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats__item { background: var(--white); padding: 28px 20px; text-align: center; }
.stats__num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--ink-strong); line-height: 1; margin-bottom: 8px; }
.stats__label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   10. Wave index (sticky sub-nav on the surf page)
   -------------------------------------------------------------------------- */
.waveindex {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.waveindex__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.waveindex__list::-webkit-scrollbar { display: none; }
.waveindex__link {
  display: block;
  white-space: nowrap;
  padding: 16px 16px;
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.waveindex__link:hover { color: var(--ink-strong); }
.waveindex__link.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

/* --------------------------------------------------------------------------
   11. Wave sections
   -------------------------------------------------------------------------- */
.wave { padding: clamp(52px, 7vw, 92px) 0; border-top: 1px solid var(--line); }
.wave:first-of-type { border-top: 0; }

.wave__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
  margin-bottom: clamp(26px, 3.5vw, 44px);
}

.wave__num {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.wave__title { margin: 0 0 .45em; }
.wave__desc { font-weight: 400; }

.wave__stats {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.wave__stat {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.wave__stat dt {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.wave__stat dd { margin: 0; font-size: .95rem; color: var(--ink-strong); font-weight: 400; }

.meter { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.meter__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
  border: 1px solid #d3d3d3;
}
.meter__dot.is-on { background: var(--accent); border-color: var(--accent); }
.meter__value { font-size: .84rem; color: var(--ink-soft); margin-left: 6px; }

.tag {
  display: inline-block;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  font-weight: 500;
  background: #eef5fa;
  color: var(--accent-dark);
}
.tag--beginner { background: #eaf6ef; color: #2f7d4f; }
.tag--intermediate { background: #eef5fa; color: #1b6c9f; }
.tag--advanced { background: #fdf1e7; color: #b45c17; }
.tag--expert { background: #fbeceb; color: #b3352c; }

/* --------------------------------------------------------------------------
   12. Gallery (mosaic + lightbox)
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  margin: 0;
  background: #e9e9e9;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  display: block;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.32));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery__item:hover img { transform: scale(1.055); }
.gallery__item:hover::after { opacity: 1; }

/* first tile is the hero of the set: fills a 2x2 block exactly */
.gallery__item--lead {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
}

/* small sets stay tidy */
.gallery--3col { grid-template-columns: repeat(3, 1fr); }
.gallery--sm { grid-template-columns: repeat(2, 1fr); }
.gallery--sm .gallery__item--lead { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; height: auto; }
.gallery--one { grid-template-columns: 1fr; }
.gallery--one .gallery__item--lead { grid-column: span 1; grid-row: span 1; aspect-ratio: 16 / 9; height: auto; }

.gallery__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 32, 42, .62);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .02em;
  transition: background .3s var(--ease);
}
.gallery__item:hover .gallery__more { background: rgba(20, 32, 42, .74); }

/* Masonry-ish villa gallery */
.gallery--masonry { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; }
.gallery--masonry .gallery__item { aspect-ratio: auto; height: 100%; }
.gallery--masonry .g-tall { grid-row: span 2; }
.gallery--masonry .g-wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 18, 24, .96);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.lightbox.is-open { display: flex; }
.lightbox.is-visible { opacity: 1; }

.lightbox__figure {
  margin: 0;
  max-width: min(94vw, 1500px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__caption {
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
  backdrop-filter: blur(6px);
}
.lightbox__btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
.lightbox__btn:active { transform: translateY(-50%) scale(.94); }
.lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lightbox__prev { left: clamp(10px, 3vw, 34px); }
.lightbox__next { right: clamp(10px, 3vw, 34px); }

.lightbox__close {
  position: absolute;
  top: clamp(12px, 2.4vw, 26px);
  right: clamp(12px, 2.4vw, 26px);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .22s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,.18); }
.lightbox__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.lightbox__count {
  position: absolute;
  top: clamp(16px, 2.6vw, 30px);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.72);
  font-size: .76rem;
  letter-spacing: .18em;
  font-variant-numeric: tabular-nums;
}

.lightbox__thumbs {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  padding: 14px clamp(12px, 3vw, 30px);
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.5));
}
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumb {
  flex: 0 0 auto;
  width: 74px; height: 50px;
  padding: 0; border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  opacity: .42;
  transition: opacity .22s var(--ease), box-shadow .22s var(--ease);
  background: #222;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: .8; }
.lightbox__thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }

/* Click-to-play video (YouTube or a local file) */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d2536;
  border-radius: var(--radius);
}
.player__btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: none;
  cursor: pointer;
}
.player__btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.player__btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,26,40,.06) 40%, rgba(6,26,40,.55));
}
.player__btn:hover img { transform: scale(1.03); }
.player__play {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 2;
  width: 78px; height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink-strong);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.player__play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
.player__btn:hover .player__play { transform: scale(1.08); background: #fff; }
.player__label {
  position: absolute;
  right: 22px; bottom: 18px; /* right side: the wave clips have titles burned in bottom-left */
  z-index: 2;
  color: #fff;
  font-size: 14px;
  letter-spacing: .01em;
  font-weight: 500;
}
.player__label span { opacity: .75; margin-left: 10px; font-weight: 400; }
.player iframe,
.player video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
}

/* Homepage film */
.film {
  max-width: 1000px;
  margin-inline: auto;
}

/* Wave clips sit under each wave's gallery */
.wave__videos { display: grid; gap: 10px; margin-top: 10px; }
.wave__videos--2 { grid-template-columns: 1fr 1fr; }

/* --------------------------------------------------------------------------
   13. Cards / includes list
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); }
.card { background: var(--white); }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card__body { padding-top: 20px; }
.card__title { font-size: 1.28rem; margin-bottom: .4em; }

.includes { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.include {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 34px);
  padding: clamp(24px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.include__icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #eef5fa;
  color: var(--accent-dark);
  flex: 0 0 auto;
}
.include__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.include__title { font-size: 1.24rem; margin-bottom: .35em; }
.include__note {
  margin-top: 12px;
  font-size: .88rem;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 12px 16px;
  border-left: 2px solid var(--line);
  border-radius: var(--radius);
}

/* Journey steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 0; }
.step__num {
  counter-increment: step;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__title { font-family: var(--font-display); font-weight: 700; color: var(--ink-strong); font-size: 1.06rem; margin-bottom: 2px; display: block; }
.step__meta { font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; display: block; }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(34px, 5vw, 74px); align-items: start; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .96rem;
  font-weight: 400;
  color: var(--ink-strong);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35,137,201,.12);
}
.field textarea { min-height: 148px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.notice {
  background: #eef5fa;
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: .92rem;
  margin-bottom: 30px;
}

.infolist { list-style: none; margin: 0; padding: 0; }
.infolist li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.infolist li:first-child { padding-top: 0; }
.infolist dt,
.infolist .infolist__label {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 4px;
}
.infolist__value { font-size: 1rem; color: var(--ink-strong); }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: #0d2536;
  color: #fff;
  text-align: center;
  padding: clamp(64px, 9vw, 118px) 0;
}
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,28,44,.6), rgba(8,28,44,.78)); }
.cta__inner { position: relative; z-index: 2; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); font-weight: 400; max-width: 560px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer { background: linear-gradient(90deg, rgba(16,25,35,.4), rgba(16,25,35,.65)), var(--reef-texture) center / cover, var(--ocean); color: rgba(255,255,255,.72); padding: clamp(48px, 6vw, 76px) 0 30px; font-size: .92rem; }
.footer a { color: rgba(255,255,255,.86); }
.footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 40px;
}
.footer__title {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  margin: 0 0 16px;
  font-family: var(--font-body);
}
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer__brand img { width: 52px; }
.footer__brand-name { font-family: var(--font-display); font-size: 1.15rem; color: #fff; font-weight: 700; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 10px; }

.social { display: flex; gap: 12px; }
.social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center;
  transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* --------------------------------------------------------------------------
   17. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
.reveal.is-ready { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery--masonry { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 165px; }
  .wave__head { grid-template-columns: 1fr; gap: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(255,255,255,.985);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(100%);
    transition: transform .34s var(--ease);
    margin: 0;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 18px 26px 40px; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { display: block; padding: 18px 0; font-size: 1.3rem; }
  .nav__link::after { display: none; }
  .nav__cta { display: block; margin-top: 26px; border-bottom: 0 !important; }
  .nav__cta .btn { width: 100%; justify-content: center; }

  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature--flip .feature__media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .introcard { margin-top: -34px; }
  .gallery, .gallery--sm, .gallery--3col { grid-template-columns: repeat(2, 1fr); }
  .gallery--masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item--lead { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }
  .wave__stat { grid-template-columns: 116px 1fr; gap: 12px; }
  .wave__videos--2 { grid-template-columns: 1fr; }
  .player__play { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .lightbox__thumbs { display: none; }
  .lightbox__figure { max-height: 90vh; }
  .lightbox__img { max-height: 74vh; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: calc(100% - 34px); }
  .include { grid-template-columns: 1fr; gap: 14px; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .lightbox__btn { width: 44px; height: 44px; }
  .wave__stat { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .nav, .lightbox, .hero__scroll, .waveindex { display: none !important; }
  body { color: #000; }
}

/* Responsive sources retain the existing image layout. */
picture { display: contents; }
@media (max-width: 860px) {
  .nav { visibility: hidden; }
  .nav.is-open { visibility: visible; }
}

/* 19. Film-led homepage and wave previews */
::selection { background: var(--accent); color: var(--white); }
html { scrollbar-color: var(--ink-soft) var(--bg); }
input, textarea { caret-color: var(--accent); }
h1, h2, h3 { text-wrap: balance; }
.hero--cinema { min-height: min(88svh, 860px); }
.hero--cinema::after { background: rgba(6, 26, 40, .48); }
.hero--cinema .hero__inner { width: min(100% - 48px, 1200px); max-width: none; padding: 100px 0; text-align: left; }
.hero--cinema .hero__title { font-size: clamp(3.2rem, 6.7vw, 6rem); letter-spacing: -.035em; line-height: 1.02; max-width: 12ch; text-shadow: none; margin-bottom: 32px; }
.hero--cinema .hero__sub { margin: 0 0 32px; max-width: 540px; font-size: 18px; line-height: 1.6; color: white; text-shadow: none; }
.hero--cinema .hero__actions { justify-content: flex-start; align-items: center; gap: 28px; }
.hero__film { color: white; text-decoration: none; text-underline-offset: 6px; font-size: 16px; padding-block: 12px; }
.hero__film:hover { color: white; text-decoration-thickness: 2px; }
.hero__video { opacity: 0; transition: opacity .5s ease; }
.hero__video.is-playing { opacity: 1; }
.wave-preview-heading, .reviews__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; }
.wave-preview-heading a { text-decoration: none; text-underline-offset: 5px; }
.wave-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.wave-preview__image { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-strong); }
.wave-preview__image img, .wave-preview__image video { width: 100%; height: 100%; object-fit: cover; }
.wave-preview__image video { position: absolute; inset: 0; opacity: 0; }
.wave-preview__image video.is-playing { opacity: 1; }
.wave-preview__caption { padding-top: 20px; }
.wave-preview__caption h3 { font-size: 25px; }
.wave-preview__caption h3 a { color: var(--ink-strong); }
.wave-preview__caption p { font-size: 15px; line-height: 1.6; }
.preview-toggle { font: 500 14px var(--font-body); border: 0; background: var(--bg); color: var(--ink-strong); padding: 10px 16px; min-height: 44px; cursor: pointer; }
.preview-toggle:hover, .preview-toggle[aria-pressed="true"] { background: var(--ink-strong); color: white; }
.forecast-link { margin-top: 32px; max-width: 70ch; font-size: 15px; }
.forecast-link a { text-decoration: none; text-underline-offset: 4px; }
.reviews { background: var(--bg); }
.reviews__heading p { font-size: 15px; line-height: 1.5; }
.reviews__checked { margin-top: 32px; font-size: 14px; }
.reviews__quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.reviews__quotes blockquote { margin: 0; }
.reviews__quotes blockquote p { font: 400 clamp(1.3rem, 2.4vw, 2rem)/1.4 var(--font-display); color: var(--ink-strong); }
.reviews__quotes footer { font-size: 14px; }
/* Readable inherited controls and typography; the logo colours stay unchanged. */
.btn { font-size: 14px; text-transform: none; letter-spacing: .01em; border-radius: 0; }
.header__logo-text span { font-size: 13px; letter-spacing: .015em; text-transform: none; }
.stats__label { font-size: 14px; letter-spacing: 0; text-transform: none; }
.footer__title { font-size: 16px; text-transform: none; letter-spacing: 0; }
.footer__bottom { border: 0; font-size: 14px; }
.footer__bottom p { color: rgba(255,255,255,.85); }
.feature__media img, .introcard { box-shadow: none; }
.introcard { background: var(--bg); }
.nav__list li { border: 0; }
.pagehero__title, .pagehero__sub, .cta h2 { text-shadow: none; }
@media (max-width: 860px) {
 .hero--cinema .hero__inner { padding: 72px 0 100px; }
 .wave-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .reviews__quotes { gap: 28px; }
}
@media (max-width: 560px) {
 .hero--cinema { min-height: calc(100svh - var(--header-h)); }
 .hero--cinema .hero__title { font-size: clamp(3rem, 13vw, 4rem); }
 .hero--cinema .hero__sub { font-size: 18px; }
 .hero--cinema .hero__actions { gap: 16px; }
 .wave-previews { grid-template-columns: 1fr; gap: 36px; }
 .wave-preview { display: grid; grid-template-columns: 45% 1fr; gap: 20px; align-items: center; }
 .wave-preview__caption { padding: 0; }
 .wave-preview__caption h3 { font-size: 23px; }
 .wave-preview__caption p { font-size: 14px; }
 .wave-preview-heading, .reviews__heading { display: block; }
 .reviews__quotes { grid-template-columns: 1fr; gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
 .hero__video, .wave-preview__image video { transition: none; }
}

/* Enquiries and direct WhatsApp contact. */
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
button:disabled { opacity: .65; cursor: wait; }
/* Fixed WhatsApp action. Opens a draft; it never sends a message. */
.whatsapp-float {
 display: inline-flex; align-items: center; justify-content: center;
 position: fixed; z-index: 70; width: 60px; height: 60px;
 right: max(24px, env(safe-area-inset-right));
 bottom: calc(24px + env(safe-area-inset-bottom));
 border-radius: 50%; background: #25d366; border: 2px solid #fff;
 box-shadow: 0 4px 18px rgba(0,0,0,.24); text-decoration: none;
 transition: background .18s, box-shadow .18s;
}
.whatsapp-float img { display: block; width: 32px; height: 32px; }
.whatsapp-float:hover { background: #1fbd59; box-shadow: 0 5px 22px rgba(0,0,0,.32); }
.whatsapp-float:focus-visible { outline: 3px solid #101923; outline-offset: 4px; }
body:has(.whatsapp-float) .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
body:has(dialog[open], .nav.is-open, .lightbox.is-open) .whatsapp-float { display: none; }
@media (max-width: 760px) {
 .whatsapp-float { width: 56px; height: 56px; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
 body:has(input:focus, textarea:focus, select:focus) .whatsapp-float { display: none; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float { transition: none; } }
@media print { .whatsapp-float { display: none; } }

.header__whatsapp { display: none; }

/* Flat, clear actions shared by the site and photo library. */
.btn { min-height: 44px; justify-content: center; text-align: center; }
.btn--light { background: var(--on-ocean); color: var(--ocean); border-color: var(--on-ocean); }
.btn--light:hover { background: #dce3eb; border-color: #dce3eb; color: var(--ocean); }
.footer a:hover, .nav__link:hover { opacity: .75; }
.footer :focus-visible { outline-color: var(--on-ocean); }
