/* Javi Surf Lessons
   Palette sampled from the hero photo (a surfer walking the shore at sunset, Nosara,
   Costa Rica): dark sand for ink, ember and rust from the sky, the orange of the wet
   sand, and the sun's gold for booking. No white sections: the page stays in the sunset. */

:root {
  --salt: #FFFFFF;       /* page background */
  --foam: #FFF8F2;       /* photo strip, a breath warmer than the page */
  --pacific: #2A1810;    /* ink: dry sand at dusk */
  --swell: #B4441E;      /* secondary: rust sky, links */
  --softboard: #F7C548;  /* the sun, used only for booking */
  --softboard-deep: #D99A1E;
  --jungle: #8A3A18;     /* ember, the green (rainy) season */
  --ember: #723B1C;      /* upper sky */
  --sand: #6E5446;       /* muted text */
  --line: #F0DDD0;
  --burnt: #C2410C;      /* prices */
  --coral: #D8612B;      /* wet sand */
  --orange: #EF8A2C;
  --dune: #F0D3A4;       /* beach sand */
  --dune-deep: #E2BA80;

  --display: "Anybody", "Arial Narrow", sans-serif;
  --body: "Karla", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: clamp(2.25rem, 4.5vw, 3.25rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 36rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
::selection { background: var(--softboard); color: var(--pacific); }

body {
  margin: 0;
  background: var(--salt);
  color: var(--pacific);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--swell); text-underline-offset: 0.18em; }
a:hover { color: var(--pacific); }

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

h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.05; }

h2 {
  font-size: var(--step-3);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 110%; }

p { margin: 0 0 1em; max-width: var(--measure); }

/* --pad-y is also the room each section uses to fade in from the colour the one above ended on */
section { --pad-y: clamp(4rem, 9vw, 7.5rem); padding: var(--pad-y) var(--gutter); }
section > * { max-width: 72rem; margin-inline: auto; }

/* Buttons: the booking button is shaped like a softboard, with a stringer line */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 2rem;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}

.btn-board {
  position: relative;
  background: var(--softboard);
  color: var(--pacific);
  box-shadow: inset 0 -3px 0 var(--softboard-deep);
}
.btn-board::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 50%;
  height: 1px;
  background: rgba(42, 24, 16, 0.18);
  pointer-events: none;
}
.btn-board:hover { color: var(--pacific); background: #FAD46E; transform: translateY(-1px); }

/* The ghost button keeps a dusk backing so its text reads over the bright horizon */
.btn-ghost {
  color: var(--foam);
  background: rgba(42, 24, 16, 0.4);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}
.btn-ghost:hover { color: var(--pacific); background: var(--foam); }

.btn-small { min-height: 2.6rem; padding: 0 1.4rem; font-size: 1rem; }

/* Top bar */

/* The page sits to the left of the fixed menu rail */
:root { --rail: clamp(4.75rem, 6vw, 5.75rem); --teal: #34C6B4; --teal-ink: #0B2B28; }
body { padding-right: var(--rail); }

.topbar {
  position: fixed;
  inset: 0 var(--rail) auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  padding: 0.85rem var(--gutter) 1.6rem; /* room at the bottom for the little wave */
  color: var(--foam);
  transition: background-color 0.25s, color 0.25s;
}

/* The little wave and surfer along the bottom edge of the bar */
.topwave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 26px;
  overflow: visible;
  pointer-events: none;
}
.topbar.is-solid {
  background: var(--pacific);
}

.btn { white-space: nowrap; }

@media (max-width: 420px) {
  .topbar .btn-small { padding: 0 1rem; }
}

/* Hero: a framed slideshow over a blurred copy of the same photo, a vertical rail on
   the left, numbered tabs that fill while each photo shows, and a spec card per photo.
   Turquoise is the hero's accent, the sea against the sunset. */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 6.25rem var(--gutter) clamp(1.25rem, 3vw, 2.25rem);
  color: #FFFFFF;
  overflow: hidden;
  background: #1E120B;
}
.hero > * { max-width: none; margin: 0; }

/* Blurred, enlarged copy of the current photo fills the space around the frame */
.hero-backdrop { position: absolute; inset: 0; }
/* The bottom of the hero melts into the sea colour that "The lesson" starts with */
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(to bottom, rgba(30, 18, 11, 0), #1E120B);
}
.hero-backdrop i {
  position: absolute;
  inset: -40px;
  background: center / cover no-repeat;
  filter: blur(22px) brightness(0.5) saturate(1.15);
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-backdrop i.is-on { opacity: 1; }

/* Rail: the site's menu, fixed to the right edge on every screen size */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 12;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  overflow-y: auto;
  scrollbar-width: none;
  background: linear-gradient(180deg, #0B403D 0%, #0A3331 35%, #082624 70%, #06181A 100%);
  box-shadow: -1px 0 0 rgba(255, 230, 210, 0.08);
}
/* The name sits on a softboard in the same gold as "Jacó": pointed nose up, rounded tail, a fin */
.rail-brand {
  position: relative;
  display: grid;
  place-items: center;
  width: 70%;
  margin-top: 0.9rem;
  padding: 2.6rem 0 2.2rem;
  border-radius: 50% 50% 44% 44% / 26% 26% 11% 11%;
  background: var(--softboard);
  box-shadow: inset -4px 0 0 var(--softboard-deep), inset 0 -4px 0 var(--softboard-deep);
  color: var(--pacific);
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.rail-brand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 10px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: var(--softboard-deep);
}
.rail-brand span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.rail-brand:hover { color: var(--pacific); background: #FAD46E; transform: translateY(-2px); }

/* The board floats in a patch of sea: it bobs, and site.js drops ripple rings around it */
.rail-water {
  position: relative;
  isolation: isolate;
  width: 100%;
  display: grid;
  justify-items: center;
  padding: 0.9rem 0 3rem;
  margin-bottom: -1.5rem; /* the fade overlaps the gap, so the menu icons do not move */
  flex-shrink: 0; /* on short screens the rail scrolls instead of squeezing (and clipping) the board */
  overflow: hidden;
}
/* the water lives on its own layer so only it fades into the rail, not the board */
.rail-water::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 30% at 35% 22%, rgba(255, 240, 200, 0.16), transparent 70%),
    repeating-linear-gradient(170deg, transparent 0 13px, rgba(200, 255, 245, 0.07) 13px 15px),
    linear-gradient(180deg, #0E5A55 0%, #0B403D 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.rail-water .rail-brand {
  width: 60%;
  margin-top: 0;
  z-index: 1;
  filter: drop-shadow(0 6px 5px rgba(0, 25, 24, 0.45));
  animation: board-bob 3.2s ease-in-out infinite;
}
@keyframes board-bob {
  0%, 100% { translate: 0 0; rotate: -2deg; }
  50% { translate: 0 5px; rotate: 2deg; }
}
.rail-ripple {
  position: absolute;
  z-index: 0;
  border: 2.5px solid rgba(235, 255, 252, 0.95);
  box-shadow: 0 0 6px rgba(160, 255, 240, 0.35);
  border-radius: 50%;
  pointer-events: none;
  animation: ripple-out 2.2s ease-out forwards;
}
@keyframes ripple-out {
  from { transform: translate(-50%, -50%) scale(0.3); opacity: 0.95; }
  to { transform: translate(-50%, -50%) scale(3, 1.9); opacity: 0; }
}
.rail-nav { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 0.5rem; }
.rail-nav a, .rail-place {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  color: #F3E6DC;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.rail-nav a:hover { color: var(--teal); }
.rail svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail-place { margin: 0; font-weight: 600; }
/* WhatsApp: the one button in the rail, in WhatsApp green so it reads as "message us" */
.rail-wa {
  margin-top: auto;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: #F3E6DC;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.rail-wa-dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18), 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rail-wa .rail-wa-dot svg { width: 28px; height: 28px; color: #fff; stroke-width: 1.8; }
.rail-wa .fill { fill: currentColor; stroke: none; }
.rail-wa:hover .rail-wa-dot, .rail-wa:focus-visible .rail-wa-dot { transform: translateY(-2px) scale(1.06); box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.25), 0 8px 18px rgba(0, 0, 0, 0.4); }
.rail-wa:hover { color: #25D366; }
.rail-place svg { width: 20px; height: 20px; color: var(--teal); }

/* Frame */
.frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem 2rem;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; animation: drift-in 8s ease-out both; }
@keyframes drift-in { from { transform: scale(1.06); } to { transform: scale(1); } }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-mirror { transform: scaleX(-1); } /* the sun sits clear of the headline */
/* Shade the left for the copy and the bottom for the tabs */
.slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 12, 8, 0.72) 0%, rgba(20, 12, 8, 0.35) 45%, rgba(20, 12, 8, 0.05) 75%),
    linear-gradient(to top, rgba(20, 12, 8, 0.8) 0%, rgba(20, 12, 8, 0) 38%),
    radial-gradient(ellipse 45% 50% at 100% 85%, rgba(20, 12, 8, 0.75), rgba(20, 12, 8, 0)); /* behind the spec card */
}
.spec dd, .spec dt { text-shadow: 0 2px 14px rgba(20, 12, 8, 0.6); }

.hero-copy { position: relative; z-index: 2; grid-column: 1; grid-row: 2; align-self: center; }

.hero-title { font-weight: 900; line-height: 0.88; letter-spacing: -0.02em; }
.hero-line { display: block; }
.hero-line:first-child { font-size: clamp(1.6rem, 3.6vw, 3rem); font-stretch: 110%; }
.hero-place {
  font-size: clamp(4rem, 11vw, 8.75rem);
  font-stretch: 150%;
  white-space: nowrap;
  margin-top: 0.06em;
  color: var(--softboard);
  animation: stretch 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
@keyframes stretch { from { font-stretch: 50%; } to { font-stretch: 150%; } }

.hero-lede { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }

/* Spec card: label with a turquoise rule, value in display caps */
.spec { position: relative; z-index: 2; grid-column: 2; grid-row: 2; align-self: end; margin: 0; display: grid; gap: 1.1rem; text-align: right; }
.spec dt {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #F3E6DC;
}
.spec dt::before { content: ""; width: 2.5rem; height: 2px; background: var(--teal); }
.spec dd {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 120%;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.05;
  text-transform: uppercase;
}

/* Arrows */
.arrows { position: relative; z-index: 2; grid-column: 2; grid-row: 1; display: flex; gap: 0.5rem; justify-self: end; }
.arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(20, 12, 8, 0.35);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.arrow:hover { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Tabs: a bar per photo that fills while it shows */
.tabs { position: relative; z-index: 2; grid-column: 1 / -1; grid-row: 3; min-height: 37px; /* site.js adds the tabs; keep their space so the hero does not jump */ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); }
.tab {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.85rem 0 0.25rem;
  border: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  background: none;
  color: #F3E6DC;
  font: 600 0.85rem var(--body);
  text-align: left;
  cursor: pointer;
}
.tab b { font-family: var(--display); font-size: 1.05rem; font-weight: 800; color: #FFFFFF; }
.tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  height: 2px;
  width: 0;
  background: var(--teal);
}
.tab.is-active { color: #FFFFFF; }
.tab.is-active::before { width: 100%; transition: width var(--dur, 7s) linear; }
.tab.is-paused::before { transition: none; }
.tab:hover { color: #FFFFFF; }

/* The surfer in the top bar turns to face the way they ride */
.surfer-body { transition: transform 0.35s ease-out; }
.surfer-body.is-left { transform: scaleX(-1); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-inline: 0; padding-bottom: 0; }
  .frame { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto auto; padding: 1.25rem var(--gutter) 1.5rem; }
  .hero-copy { grid-column: 1 / -1; align-self: end; }
  .spec { grid-column: 1 / -1; grid-row: 3; text-align: left; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec dt { justify-content: flex-start; }
  .spec dt::before { display: none; }
  .tabs { grid-row: 4; }
  .tab span { display: none; }
  .slides::after { background: linear-gradient(to bottom, rgba(20, 12, 8, 0.55) 0%, rgba(20, 12, 8, 0.45) 40%, rgba(20, 12, 8, 0.85) 100%); }
}

/* The lesson: the sea at sunset, carrying on from the hero photo.
   A gold glow where the sun's reflection would fall, faint ripple lines, and the
   browns of the photo deepening toward "When to come", which starts at #2A1810. */

.lesson {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  color: #FFF3E8;
  background:
    radial-gradient(ellipse 55% 45% at 68% 0%, rgba(247, 197, 72, 0.2), rgba(247, 197, 72, 0) 70%),
    repeating-linear-gradient(to bottom, rgba(255, 190, 120, 0.025) 0 1px, rgba(255, 190, 120, 0) 1px 34px),
    linear-gradient(to bottom, #1E120B 0%, #2E1A12 40%, #3C281F 100%);
}
.lesson h2 { margin-bottom: 1.5rem; }
.lesson h3 { margin: 2.25rem 0 1rem; color: var(--softboard); }
.lesson p, .lesson li { color: #EAD6C8; }

.checklist { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.checklist li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2.25rem;
  border-top: 1px solid rgba(255, 230, 210, 0.18);
}
.checklist li:last-child { border-bottom: 1px solid rgba(255, 230, 210, 0.18); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 1.1rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--softboard);
  box-shadow: inset 0 -2px 0 var(--softboard-deep);
}

.lesson-photo { margin: 0; }
.lesson-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.5rem 1.5rem 1.5rem 0.25rem;
}

.lesson-photo img { box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7); }

.lesson-flip {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding-top: 0;
  background:
    radial-gradient(ellipse 50% 40% at 25% 30%, rgba(239, 138, 44, 0.12), rgba(239, 138, 44, 0) 70%),
    repeating-linear-gradient(to bottom, rgba(255, 190, 120, 0.025) 0 1px, rgba(255, 190, 120, 0) 1px 34px),
    linear-gradient(to bottom, #3C281F 0%, #2A1810 100%);
}
.lesson-flip .lesson-photo img { aspect-ratio: 4 / 3; border-radius: 1.5rem 1.5rem 0.25rem 1.5rem; }

@media (max-width: 820px) {
  .lesson, .lesson-flip { grid-template-columns: 1fr; }
  .lesson-photo { order: -1; }
  .lesson-photo img { aspect-ratio: 4 / 3; }
}

/* Season: dusk sky */

.season {
  background: linear-gradient(to bottom, #2A1810 0%, var(--ember) 60%, #A54120 100%);
  color: var(--salt);
}
.season-head { display: grid; gap: 1rem; margin-bottom: 3rem; }
.season-head p { color: #FBE3D2; }

.months {
  list-style: none;
  margin: 0 auto 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
}
.months li {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(5rem, 14vw, 9rem);
  padding-bottom: 0.6rem;
  border-radius: 999px 999px 6px 6px;
  font-weight: 700;
  font-size: var(--step--1);
}
.months .dry { background: var(--softboard); color: var(--pacific); }
.months .green { background: var(--jungle); color: #FFF8F2; height: clamp(3.5rem, 9vw, 6rem); align-self: end; }
.months { align-items: end; }

@media (max-width: 560px) {
  .months span { writing-mode: vertical-rl; transform: rotate(180deg); }
  .months li { padding-bottom: 0.5rem; font-size: 0.8rem; }
}

.season-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 5vw, 4rem);
}
.season-key h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 1.25rem; }
.season-key p { color: #FBE3D2; }
.swatch { flex: none; width: 0.9rem; height: 0.9rem; border-radius: 50%; }
.swatch-dry { background: var(--softboard); }
.swatch-green { background: var(--jungle); box-shadow: 0 0 0 2px rgba(255, 243, 232, 0.75); }

@media (max-width: 700px) {
  .season-key { grid-template-columns: 1fr; }
}

/* Prices */

/* From the rust at the bottom of "When to come" down into the dusk */
.prices {
  padding-top: calc(var(--pad-y) * 1.6);
  background: linear-gradient(to bottom,
    #A54120 0,
    #8A3A18 calc(var(--pad-y) * 0.6),
    #5A2C17 calc(var(--pad-y) * 1.3),
    #3A2014 100%);
  color: #FFF3E8;
}
.prices h2 { margin-bottom: 0.75rem; }
.prices-note { color: #EAD6C8; margin-bottom: 2.5rem; }

.price-list { list-style: none; padding: 0; margin: 0 auto 2.5rem; }
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 2px solid rgba(255, 230, 210, 0.3);
}
.price-row:last-child { border-bottom: 2px solid rgba(255, 230, 210, 0.3); }
.price-name h3 { margin-bottom: 0.35rem; }
.price-name p { margin: 0; color: #EAD6C8; }

.price-amount {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 140%;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--softboard);
}
.price-amount .cur { font-size: 0.45em; vertical-align: 0.9em; margin-right: 0.08em; }

/* Photos */

.photos { color: #FFF3E8; background: linear-gradient(to bottom, #3A2014 0, #2E1A10 100%); }
.photos-head { margin-bottom: 2.5rem; }
.photos-head h2 { margin-bottom: 0.75rem; }
.photos-head p { color: #EAD6C8; }

/* The sea: photos drift across on layered waves. Without JS (or with reduced motion)
   it is a plain strip you scroll by hand. */
.photos { padding-bottom: 0; }
.photos .sea {
  --shot-h: clamp(11rem, 22vw, 17rem);
  position: relative;
  max-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding: 1.5rem 0 calc(var(--shot-h) * 0.42);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.sea.is-drifting { overflow: hidden; }

.sea-back, .sea-front { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.sea-back { height: 62%; background: linear-gradient(to bottom, transparent 0 18%, #C9622E 18%, #7A3A1E 60%, #3C281F 100%); }
.sea-front { z-index: 2; height: 34%; }

.sea-back i, .sea-front i {
  position: absolute;
  left: 0;
  width: calc(100% + var(--tile));
  background-repeat: repeat-x;
  background-size: var(--tile) 100%;
  animation: drift var(--speed) linear infinite;
}
@keyframes drift { to { transform: translateX(calc(-1 * var(--tile))); } }

/* Far swell: pale, long, slow */
.sea-back i:nth-child(1) {
  --tile: 640px; --speed: 34s;
  top: 0; height: 30%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'%3E%3Cpath fill='%23F2A65A' d='M0 60C100 20 200 20 300 60S500 100 600 60V120H0Z'/%3E%3Cpath fill='none' stroke='%23FFFFFF' stroke-opacity='.6' stroke-width='4' d='M0 60C100 20 200 20 300 60S500 100 600 60'/%3E%3C/svg%3E");
}
/* Mid swell */
.sea-back i:nth-child(2) {
  --tile: 480px; --speed: 24s;
  top: 14%; height: 34%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'%3E%3Cpath fill='%23D8743A' d='M0 64C120 24 180 24 300 64S480 104 600 64V120H0Z'/%3E%3Cpath fill='none' stroke='%23FFFFFF' stroke-opacity='.55' stroke-width='4' d='M0 64C120 24 180 24 300 64S480 104 600 64'/%3E%3C/svg%3E");
}
/* Front wave, in front of the photos, with a foam crest */
.sea-front i {
  --tile: 720px; --speed: 16s;
  bottom: 0; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%235A2E1C'/%3E%3Cstop offset='1' stop-color='%232A1810'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 44C110 8 190 8 300 44S490 80 600 44V120H0Z'/%3E%3Cpath fill='none' stroke='%23FFD9A8' stroke-opacity='.9' stroke-width='5' stroke-linecap='round' d='M0 44C110 8 190 8 300 44S490 80 600 44'/%3E%3C/svg%3E");
}

.gallery {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding-inline: var(--gutter);
  touch-action: pan-y;
  will-change: transform;
}
.sea.is-drifting .gallery { cursor: grab; }

.shot {
  position: relative;
  flex: none;
  height: var(--shot-h);
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--line);
  box-shadow: 0 18px 30px -18px rgba(42, 24, 16, 0.55);
}
.shot img { -webkit-user-drag: none; user-select: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.shot span {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(42, 24, 16, 0.85);
  color: var(--foam);
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
}
.shot:hover img { transform: scale(1.04); }

.viewer {
  max-width: min(92vw, 1100px);
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: var(--pacific);
  overflow: visible;
}
.viewer::backdrop { background: rgba(42, 24, 16, 0.88); }
.viewer img { max-height: 82vh; width: auto; border-radius: 0.75rem; }
.viewer form { position: absolute; top: -3.25rem; right: 0; }
.viewer-close {
  min-height: 2.5rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--foam);
  color: var(--pacific);
  font: 700 1rem var(--body);
  cursor: pointer;
}

/* FAQ */

/* Out of the dark sea at the bottom of the photos, staying in the dusk */
.faq {
  padding-top: calc(var(--pad-y) * 1.6);
  background: linear-gradient(to bottom,
    #2A1810 0,
    #3A2014 50%,
    #2A1810 100%);
  color: #FFF3E8;
}
.faq a { color: var(--softboard); }
.faq a:hover { color: #FAD46E; }
.faq h2 { margin-bottom: 2rem; }
.faq-list { max-width: 48rem; margin-inline: 0; }
.faq-list { margin-left: max(0px, calc((100% - 72rem) / 2)); }

details { border-top: 1px solid rgba(255, 230, 210, 0.2); }
details:last-child { border-bottom: 1px solid rgba(255, 230, 210, 0.2); }

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #FFF3E8;
  color: var(--pacific);
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); background: var(--softboard); color: var(--pacific); }
details p { padding-bottom: 1.25rem; color: #EAD6C8; }

/* Contact: the last of the sunset, just before the sand */

/* Rises out of the dark FAQ above and settles into sand colour before the dune of the footer */
.contact {
  padding-top: calc(var(--pad-y) * 1.4);
  padding-bottom: calc(var(--pad-y) * 1.4);
  background:
    linear-gradient(to bottom, #2A1810 0, rgba(42, 24, 16, 0) calc(var(--pad-y) * 1.2)),
    linear-gradient(to top, #E8C48E 0, rgba(232, 196, 142, 0) calc(var(--pad-y) * 1.2)),
    linear-gradient(160deg, #F9B451 0%, var(--orange) 55%, #E06A24 100%);
}
.contact h2 { font-size: clamp(3rem, 9vw, 6.5rem); font-stretch: 150%; max-width: none; margin-bottom: 1rem; }
.contact-lede { margin-bottom: 2.5rem; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0 auto;
}
.contact-list div { border-top: 2px solid var(--pacific); padding-top: 0.75rem; }
.contact-list dt { font-weight: 700; font-size: var(--step--1); margin-bottom: 0.25rem; }
.contact-list dd { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.contact-list a { color: var(--pacific); font-weight: 600; }
.contact-list a:hover { text-decoration-thickness: 2px; }

@media (max-width: 640px) {
  .contact-list { grid-template-columns: 1fr; }
}

/* Footer: the beach. Real sand (assets/img/sand.webp from sand.jpg, Unsplash, Julfo) cut into a dune edge
   that rises into the sunset */

.footer {
  --edge: clamp(28px, 5vw, 64px);
  --sand: url("../img/sand.webp");
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--edge));
  padding: calc(3rem + var(--edge)) var(--gutter) 3rem;
  color: #3E2A1C;
  font-size: 1rem;
  /* multiply a sunset gold over the photo so the sand reads warm, not grey */
  background:
    linear-gradient(to bottom, rgba(255, 236, 205, 0.28), rgba(255, 236, 205, 0.12)),
    linear-gradient(to bottom, #F8D59A, #F1C482),
    var(--sand) center / cover,
    var(--dune);
  background-blend-mode: normal, multiply, normal, normal;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 52C180 22 360 14 560 34S940 74 1160 46S1360 20 1440 30V80H0Z'/%3E%3C/svg%3E") top / 100% var(--edge) no-repeat,
    linear-gradient(#000, #000) bottom / 100% calc(100% - var(--edge) + 1px) no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 52C180 22 360 14 560 34S940 74 1160 46S1360 20 1440 30V80H0Z'/%3E%3C/svg%3E") top / 100% var(--edge) no-repeat,
    linear-gradient(#000, #000) bottom / 100% calc(100% - var(--edge) + 1px) no-repeat;
}
.footer p { margin: 0 0 0.35rem; }
.footer-brand {
  color: var(--pacific);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 130%;
  font-size: 1.25rem;
}
/* white alone washes out on the sand, so the credit sits on a dark pill */
.footer-small {
  display: inline-block;
  margin-top: 1.5rem !important;
  padding: 0.6rem 1.1rem;
  border-radius: 1.1rem; /* still reads as a pill on one line, and stays tidy when it wraps on phones */
  background: rgba(42, 24, 16, 0.88);
  color: #FFFFFF;
  font-size: var(--step--1);
  font-weight: 600;
}
.footer-small a { color: var(--softboard); font-weight: 800; text-decoration-thickness: 2px; }
.footer-small a:hover { color: #FFFFFF; }

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

/* Phones: the rail stays, as a thin column with smaller icons and labels */
@media (max-width: 640px) {
  :root { --rail: 3.6rem; }
  .rail { gap: 1.1rem; }
  .rail-brand { width: 74%; padding: 1.9rem 0 1.6rem; }
  .rail-brand span { font-size: 0.95rem; }
  .rail-nav { gap: 1.05rem; }
  .rail svg { width: 22px; height: 22px; }
  .rail-nav a, .rail-place { font-size: 0.69rem; letter-spacing: 0; } /* 11px floor */
  .rail-place svg { width: 18px; height: 18px; }
  .rail-wa { font-size: 0.69rem; letter-spacing: 0; }
  .rail-wa-dot { width: 40px; height: 40px; }
  .rail-wa .rail-wa-dot svg { width: 24px; height: 24px; }
  .footer { --sand: url("../img/sand-800.webp"); }
}
/* Short screens (phones with the browser bar, laptops): tighten the rail so the whole menu fits */
@media (max-height: 860px) {
  .rail { gap: 0.8rem; padding-bottom: 0.8rem; }
  .rail-water { padding-bottom: 2.2rem; }
  .rail-brand { padding-block: 1.7rem 1.4rem; }
  .rail-nav { gap: 1rem; }
}
@media (max-height: 720px) {
  .rail-brand { padding-block: 1.2rem 1rem; }
  .rail-nav { gap: 0.6rem; }
}
@media (max-height: 720px) and (min-width: 641px) {
  .rail-brand span { font-size: 1.1rem; }
}
@media (max-height: 580px) {
  .rail-place { display: none; } /* very short screens: the location label gives way so WhatsApp stays visible */
}
