/* Surf In Plett. Light grey page, near black ink, logo teal accent,
   square buttons with a hard shadow (after surfing.academy), and one swell through it all. */
:root {
  --bg: #EDEDED;
  --white: #FFFFFF;
  --ink: #17191A;
  --ink-soft: #3A3F42;
  --teal: #1B9AA0;
  --teal-dark: #0C5F64;
  --teal-light: #8ADCDC;
  --ocean: #0B2229;
  --overlay: rgba(23, 25, 26, 0.55);
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Manrope", system-ui, sans-serif;
  --pad: clamp(20px, 4.4vw, 64px);
  --max: 1440px;
  --header: 76px;
  --shadow: 5px 5px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2 { margin: 0; font-weight: 400; }
strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
[id] { scroll-margin-top: var(--header); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* ---------- buttons: square, black border, hard shadow ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 12px 26px; font-family: var(--display); font-stretch: 100%; font-weight: 700;
  font-size: 1.125rem; letter-spacing: 0.02em; text-transform: lowercase; text-decoration: none;
  color: var(--ink); background: var(--teal); border: 2px solid var(--ink); border-radius: 0;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); background: var(--teal-light); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn-light { background: var(--white); }
.btn-light:hover { background: var(--bg); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 1rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }
.actions { display: flex; flex-wrap: wrap; gap: 18px 20px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad); color: var(--white);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-solid { background: rgba(237, 237, 237, 0.94); color: var(--ink); box-shadow: 0 1px 0 rgba(23, 25, 26, 0.12); backdrop-filter: blur(10px); }
.brand { display: block; background: var(--white); padding: 7px 10px; line-height: 0; border: 2px solid var(--ink); }
.brand img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; font-weight: 700; font-size: 1.0625rem; }
.site-nav a:not(.btn) { text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.25s ease; }
.site-nav a:not(.btn):hover { background-size: 100% 2px; }
.site-header:not(.is-solid) .site-nav a:not(.btn) { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.menu-toggle { display: none; }

/* phone menu */
.menu { position: fixed; inset: 0; z-index: 55; background: var(--ocean); color: var(--white); padding: calc(var(--header) + 24px) var(--pad) 32px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.1; text-decoration: none; }
.menu-foot a { font-size: 1.25rem; font-weight: 700; color: var(--teal-light); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ocean); color: var(--white); isolation: isolate; }
.hero-photo { position: absolute; inset: -6% 0 -6% 0; z-index: -3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(to top, rgba(23,25,26,0.86) 0%, rgba(23,25,26,0.5) 38%, rgba(23,25,26,0.08) 70%, rgba(23,25,26,0.3) 100%); }
.hero-foam { position: absolute; left: 0; bottom: 14%; width: 200%; height: 22%; z-index: -1; pointer-events: none; animation: foam 38s linear infinite; }
.foam { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.foam.f2 { stroke: rgba(138, 220, 220, 0.4); }
.foam.f3 { stroke: rgba(255, 255, 255, 0.18); }
@keyframes foam { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-copy { position: relative; padding-top: calc(var(--header) + 40px); padding-bottom: clamp(110px, 15vh, 170px); }
.hero-label { font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; margin-bottom: 18px; color: var(--white); }
.swell { font-family: var(--text); font-weight: 400; font-size: clamp(3.6rem, 11.5vw, 11.5rem); line-height: 0.92; letter-spacing: -0.035em; margin-bottom: 28px; }
.swell .line { display: block; white-space: nowrap; }
.swell strong { font-weight: 800; }
.swell .ch { display: inline-block; will-change: transform; }
.hero-sub { max-width: 40ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 500; margin-bottom: 34px; color: #F2F4F4; }
.hero .btn-light { color: var(--ink); }
.hero-shore { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(46px, 7vw, 110px); fill: var(--teal); z-index: 1; will-change: transform; }

/* ---------- moving strip (the reference's carousel, real facts only) ---------- */
.strip { background: var(--teal); color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; position: relative; z-index: 2; }
.strip-track { display: flex; width: max-content; animation: strip 42s linear infinite; }
.strip span { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.5rem); padding: 14px 0; white-space: nowrap; }
.strip span::after { content: "\2726"; display: inline-block; margin: 0 28px; font-size: 0.7em; vertical-align: 0.15em; }
@keyframes strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- headings in the reference's voice ---------- */
.lead-heading { font-size: clamp(2rem, 4.2vw, 3.9rem); line-height: 1.08; letter-spacing: -0.025em; max-width: 22ch; text-wrap: balance; }
.intro { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(56px, 7vw, 96px); }
.intro .lead-heading { max-width: 26ch; }

/* ---------- offer panels, stacking ---------- */
.panel { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: var(--ocean); isolation: isolate; border-top: 2px solid var(--ink); }
.panel[id] { scroll-margin-top: 0; }
.panel-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
#lessons .panel-photo { object-position: 50% 60%; }
#rentals .panel-photo { object-position: 55% 50%; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(23,25,26,0.88) 0%, rgba(23,25,26,0.55) 40%, rgba(23,25,26,0.1) 75%); }
.panel-copy { padding-top: calc(var(--header) + 32px); padding-bottom: clamp(48px, 8vh, 96px); }
.panel-label { font-weight: 700; margin-bottom: 14px; }
.panel h2 { font-size: clamp(2.4rem, 5.6vw, 5.4rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; margin-bottom: 26px; text-wrap: balance; }
.facts { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.facts li { font-weight: 700; font-size: 1rem; padding: 7px 14px; border: 2px solid rgba(255,255,255,0.9); background: rgba(23,25,26,0.35); }

/* ---------- time on the water (signature) ---------- */
.time { position: relative; z-index: 3; background: var(--bg); border-top: 2px solid var(--ink); padding: clamp(80px, 10vw, 140px) 0; }
.meter { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; }
.meter-row { display: grid; grid-template-columns: minmax(170px, 15rem) minmax(120px, 11rem) 1fr; grid-template-areas: "name num line" "name num note"; column-gap: clamp(20px, 3vw, 48px); align-items: center; padding: 26px 0; border-top: 2px solid var(--ink); }
.meter-row:last-child { border-bottom: 2px solid var(--ink); }
.meter-name { grid-area: name; font-weight: 800; font-size: 1.2rem; }
.meter-num { grid-area: num; font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: clamp(3.4rem, 6.4vw, 6rem); line-height: 0.9; letter-spacing: -0.01em; color: var(--ink); }
.meter-line { grid-area: line; width: 100%; height: 44px; overflow: visible; }
.meter-bg, .meter-fg { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.meter-bg { stroke: rgba(23, 25, 26, 0.18); stroke-width: 2; }
.meter-fg { stroke: var(--teal); stroke-width: 7; stroke-dasharray: calc(var(--pct) * 1) 200; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1); }
.js .meter-row:not(.in) .meter-fg { stroke-dashoffset: calc(var(--pct) * 1); }
.meter-row:nth-child(2) .meter-fg { transition-delay: 0.15s; }
.meter-row:nth-child(3) .meter-fg { transition-delay: 0.3s; }
.meter-note { grid-area: note; font-size: 0.98rem; color: var(--ink-soft); padding-top: 4px; }
.time-note { margin: 28px 0 0; font-weight: 700; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(170px, 15rem) 1fr; column-gap: clamp(20px, 3vw, 48px); padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); border-top: 2px solid var(--ink); }
.about-label { font-weight: 700; font-size: 1.2rem; padding-top: 0.6em; }
.about-text { font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1.22; letter-spacing: -0.02em; max-width: 30ch; margin: 0; }

/* ---------- find us ---------- */
.find { background: var(--white); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: clamp(80px, 10vw, 140px) 0; }
.find-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.find-address { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.04; margin: 34px 0 24px; }
.find-copy p:not(.find-address) { max-width: 46ch; color: var(--ink-soft); }
.find-copy .actions { margin-top: 30px; }
.map-frame { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: var(--bg); aspect-ratio: 4 / 3.4; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }

/* ---------- contact and close ---------- */
.contact { background: var(--ocean); color: var(--white); padding: clamp(90px, 11vw, 160px) 0; }
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.close-title { font-size: clamp(3.2rem, 8vw, 8rem); line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 28px; }
.contact-copy p { max-width: 44ch; font-size: 1.125rem; color: #E6ECEC; margin-bottom: 34px; }
.contact .btn-light { color: var(--ink); }
.contact .btn { box-shadow: 5px 5px 0 var(--teal-light); border-color: var(--teal-light); }
.contact .btn:hover { box-shadow: 2px 2px 0 var(--teal-light); }
.wa-form { background: var(--bg); color: var(--ink); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--teal); padding: clamp(24px, 3vw, 40px); display: grid; gap: 6px; }
.form-title { font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
.wa-form label { font-weight: 700; font-size: 0.95rem; margin-top: 10px; }
.wa-form input, .wa-form select { width: 100%; min-height: 50px; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 0; padding: 10px 12px; }
.wa-form input:focus-visible, .wa-form select:focus-visible { outline-offset: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wa-form .btn { margin-top: 22px; justify-self: start; box-shadow: var(--shadow); border-color: var(--ink); }
.wa-form .btn:hover { box-shadow: 2px 2px 0 var(--ink); }
.form-note { font-size: 0.92rem; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #E9EDEE; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.plate { display: inline-block; background: var(--white); padding: 8px 12px; line-height: 0; }
.plate img { height: 34px; width: auto; }
.footer-label { font-weight: 800; color: var(--teal-light); margin-bottom: 8px; }
.site-footer a { color: #FFFFFF; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--teal-light); }
.footer-small { margin-top: 48px; font-size: 0.9rem; color: #B9C1C3; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- wide screens: push the surfer right of the headline ---------- */
@media (min-width: 901px) {
  .hero-photo { right: -40%; }
  .swell { font-size: clamp(3.6rem, 10vw, 10.5rem); }
}

/* ---------- laptop ---------- */
@media (max-height: 760px) and (min-width: 901px) {
  .swell { font-size: clamp(3.6rem, 9.4vw, 9rem); }
  .panel h2 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); margin-bottom: 20px; }
  .panel-copy { padding-bottom: 44px; }
  .panel-label { margin-bottom: 8px; }
  .facts { margin-bottom: 26px; }
}

/* ---------- tablet and phone ---------- */
@media (max-width: 900px) {
  :root { --header: 68px; }
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; font: 700 1rem var(--text); color: var(--ink); background: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; position: relative; z-index: 70; }
  .menu-toggle[aria-expanded="true"] { background: var(--teal); }
  .brand img { height: 26px; }
  .hero-copy { padding-bottom: clamp(90px, 14vh, 130px); }
  .hero-photo { inset: 0 0 34% 0; }
  .hero-photo img { object-position: 40% 50%; }
  .hero::before { background: linear-gradient(to top, var(--ocean) 0%, var(--ocean) 34%, rgba(11,34,41,0.6) 46%, rgba(11,34,41,0.05) 62%, rgba(11,34,41,0.3) 100%); }
  .swell { font-size: clamp(3.4rem, 17vw, 7rem); letter-spacing: -0.04em; }
  .hero-foam { bottom: 22%; height: 16%; }
  .meter-row { grid-template-columns: 1fr auto; grid-template-areas: "name num" "line line" "note note"; row-gap: 10px; }
  .meter-num { font-size: clamp(3rem, 15vw, 4.2rem); text-align: right; }
  .about { grid-template-columns: 1fr; row-gap: 18px; }
  .about-label { padding-top: 0; }
  .find-grid, .contact-grid { grid-template-columns: 1fr; }
  .map-frame { aspect-ratio: 1 / 1; box-shadow: 6px 6px 0 var(--ink); margin-right: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .actions .btn { flex: 1 1 100%; }
  .hero-sub { font-size: 1.05rem; }
  .panel h2 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .facts li { font-size: 0.95rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .wa-form { box-shadow: 6px 6px 0 var(--teal); margin-right: 6px; }
  .wa-form .btn { justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .strip span::after { margin: 0 18px; }
}

/* ---------- reduced motion: complete and still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img, .hero-foam, .strip-track { animation: none; }
  .hero-photo img { transform: scale(1.04); }
  .strip-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .strip-track span:nth-child(n+9) { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .meter-row:not(.in) .meter-fg, .meter-fg { stroke-dashoffset: 0; transition: none; }
  .btn, .site-header { transition: none; }
}
