/*
Theme Name: Bruns River
Description: Brunswick River kayak tours for Go Sea Kayak Byron Bay.
Version: 1.0.0
Text Domain: bruns
*/

@font-face { font-family: "Unbounded"; src: url(fonts/unbounded.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --ink: #142a33;
  --deep: #0e4655;
  --night: #10233a;
  --shallow: #3fb8af;
  --shallow-soft: #e3f3f0;
  --sand: #f5ecdc;
  --sand-deep: #e8d8bb;
  --sun: #f39a3d;
  --dusk: #cf4f2c;
  --peach: #fbe6d3;
  --white: #fffdf8;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --u: 8px;
  --gap: calc(var(--u) * 3);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--dusk); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 calc(var(--u) * 2); letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
p { margin: 0 0 calc(var(--u) * 2); }
.quiet { opacity: .72; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* masthead */
.masthead { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid rgba(20,42,51,.08); }
.masthead-in { max-width: 1320px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: var(--gap); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: none; }
.brand-logo { width: 150px; height: auto; }
.brand-sub { font: 600 .82rem/1.25 var(--body); color: var(--deep); border-left: 2px solid var(--shallow); padding-left: 12px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: calc(var(--u) * 3); }
.nav-list { list-style: none; display: flex; gap: calc(var(--u) * 2.5); margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list .current-menu-item a { border-color: var(--sun); color: var(--ink); }
.nav-call { background: var(--deep); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 10px 14px; border-radius: 6px; white-space: nowrap; }
.nav-call:hover { background: var(--dusk); color: #fff; }
.nav-toggle { display: none; margin-left: auto; font: 600 1rem var(--body); background: none; border: 2px solid var(--ink); border-radius: 6px; padding: 8px 14px; color: var(--ink); min-height: 44px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; border-bottom: 1px solid rgba(20,42,51,.1); gap: 8px; }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(20,42,51,.08); }
  .nav-call { text-align: center; padding: 14px; margin-top: 8px; }
  .brand-logo { width: 120px; }
}

/* blocks baseline */
.entry-content > * { margin-top: 0; margin-bottom: 0; }
.wp-block-image { margin: 0; }
.wp-block-image img { width: 100%; }
.wp-block-columns { display: flex; gap: calc(var(--u) * 5); margin: 0; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) { .wp-block-columns { flex-direction: column; gap: calc(var(--u) * 3); } }
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: calc(var(--u) * 2); }
.wp-block-button__link { display: inline-block; font: 600 1rem/1.2 var(--body); text-decoration: none; padding: 14px 22px; border-radius: 6px; min-height: 48px; }
.is-solid .wp-block-button__link { background: var(--dusk); color: #fff; box-shadow: 0 3px 0 #8e3016; }
.is-solid .wp-block-button__link:hover { background: #b7401f; color: #fff; transform: translateY(1px); box-shadow: 0 2px 0 #8e3016; }
.is-quiet .wp-block-button__link { background: none; box-shadow: none; padding: 14px 2px; color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; border-radius: 0; }
.is-quiet .wp-block-button__link:hover { color: var(--dusk); }

.wp-block-group { position: relative; }
.intro, .pack, .voices, .getting, .notes, .faq, .why, .timeline, .prose, .form-wrap, .groups-band { padding: clamp(56px, 8vw, 112px) var(--gutter); }
.intro > *, .pack > *, .voices > *, .getting > *, .notes > *, .faq > *, .why > *, .timeline > *, .form-wrap > *, .groups-band > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

/* hero */
.hero { min-height: calc(100svh - 78px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; padding: clamp(40px, 7vh, 88px) var(--gutter) 0; isolation: isolate; }
.hero .hero-bg { position: absolute; inset: -12% 0 0; z-index: -2; }
.hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,35,58,.55) 0%, rgba(16,35,58,.12) 38%, rgba(16,35,58,0) 60%); pointer-events: none; }
.hero-copy { max-width: var(--wrap); width: 100%; margin: 0 auto; }
.hero-title { font-size: clamp(2.5rem, 7.2vw, 6.4rem); line-height: .98; max-width: 13ch; text-shadow: 0 2px 30px rgba(16,35,58,.35); margin-bottom: 20px; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 40ch; opacity: .95; text-shadow: 0 1px 12px rgba(16,35,58,.5); }
.tickets { max-width: var(--wrap); width: 100%; margin: clamp(32px, 10vh, 120px) auto 0; gap: 18px; align-items: stretch; position: relative; top: 44px; }
.ticket { height: 100%; padding: 26px 28px 22px 44px; border-radius: 10px; color: var(--ink); box-shadow: 0 18px 40px rgba(16,35,58,.28);
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 10.5px, #000 11px) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 50%, transparent 10.5px, #000 11px) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 10.5px, #000 11px) right / 51% 100% no-repeat; }
.ticket::before { content: ""; position: absolute; left: 22px; top: 18px; bottom: 18px; border-left: 2px dashed currentColor; opacity: .35; }
.ticket-day { background: var(--shallow); }
.ticket-dusk { background: linear-gradient(120deg, var(--sun), var(--dusk)); color: #fff; }
.ticket-when { font-weight: 600; margin-bottom: 6px; opacity: .85; }
.ticket-name { font-size: clamp(1.25rem, 2.2vw, 1.75rem); margin-bottom: 10px; }
.ticket-facts { font-size: 1.05rem; margin-bottom: 0; }
.ticket-facts strong { font-family: var(--display); font-size: 1.35rem; }
.ticket .wp-block-buttons { margin-top: 14px; }
.ticket-day .is-solid .wp-block-button__link { background: var(--night); box-shadow: 0 3px 0 #000; }
.ticket-dusk .is-solid .wp-block-button__link { background: var(--night); box-shadow: 0 3px 0 #000; }
.ticket-dusk .is-quiet .wp-block-button__link { color: #fff; }

/* intro */
.intro { background: var(--sand); padding-top: clamp(110px, 14vw, 170px); }
.intro-cols { align-items: center; }
.intro p { font-size: 1.15rem; max-width: 46ch; }
.tilt { box-shadow: 18px 18px 0 var(--shallow); }

/* route */
.route { background: var(--shallow-soft); padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(80px, 10vw, 140px); overflow: hidden; }
.route-title, .route-lead { max-width: var(--wrap); margin-left: auto; margin-right: auto; text-align: center; position: relative; z-index: 2; }
.route-lead { opacity: .72; margin-bottom: clamp(40px, 6vw, 72px); }
.route-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.route-svg .bank { fill: none; stroke: #bfe3dc; stroke-linecap: round; }
.route-svg .water { fill: none; stroke: #8fd3c8; stroke-linecap: round; }
.route-svg .wake { fill: none; stroke: var(--deep); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.route-svg .kayak { transition: none; }
.stop { position: relative; z-index: 1; width: min(44%, 500px); background: var(--white); border-radius: 10px; padding: 26px 28px; margin-bottom: clamp(40px, 7vw, 90px); box-shadow: 0 10px 30px rgba(14,70,85,.10); }
.stop:nth-of-type(odd) { margin-left: max(0px, calc(50% - 590px)); }
.stop:nth-of-type(even) { margin-left: auto; margin-right: max(0px, calc(50% - 590px)); }
.stop-mark { color: var(--dusk); font-weight: 600; margin-bottom: 6px; }
.stop .wp-block-image { margin-top: 16px; border-radius: 6px; overflow: hidden; }
.stop .wp-block-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.stop p:last-child { margin-bottom: 0; }
.js .stop { opacity: 0; transform: translateX(var(--from, -40px)); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .stop:nth-of-type(even) { --from: 40px; }
.js .stop.in { opacity: 1; transform: none; }
@media (max-width: 781px) {
  .route { padding-left: 16px; padding-right: 16px; }
  .stop, .stop:nth-of-type(odd), .stop:nth-of-type(even) { width: auto; margin-left: 44px; margin-right: 0; padding: 20px; }
  .js .stop, .js .stop:nth-of-type(even) { --from: 30px; }
}

/* tide */
.tide { background: var(--deep); color: #fff; text-align: center; padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(150px, 16vw, 220px); overflow: hidden; }
.tide > * { max-width: 680px; margin-left: auto; margin-right: auto; position: relative; z-index: 2; }
.tide p { font-size: 1.15rem; }
.tide .wp-block-buttons { justify-content: center; }
.tide .is-solid .wp-block-button__link { background: var(--sun); color: var(--night); box-shadow: 0 3px 0 #a85d14; }
.tide-title { font-size: clamp(2rem, 5vw, 3.6rem); }
.tide-water { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; z-index: 1; pointer-events: none; max-width: none !important; }
.tide-water svg { position: absolute; left: 0; width: 200%; height: 140px; animation: drift 14s linear infinite; }
.tide-water .w1 { fill: rgba(63,184,175,.35); top: 0; }
.tide-water .w2 { fill: rgba(63,184,175,.55); top: 26px; animation-duration: 9s; animation-direction: reverse; }
.tide-water .fill { position: absolute; left: 0; right: 0; top: 120px; bottom: 0; background: rgba(63,184,175,.55); }
.tide-scale { position: absolute; right: clamp(12px, 4vw, 60px); top: 18%; bottom: 14%; width: 46px; z-index: 2; border-left: 2px solid rgba(255,255,255,.4); font: 600 .78rem var(--body); color: rgba(255,255,255,.7); max-width: none !important; }
.tide-scale span { position: absolute; left: 8px; transform: translateY(-50%); }
.tide-scale span::before { content: ""; position: absolute; left: -16px; top: 50%; width: 10px; border-top: 2px solid rgba(255,255,255,.4); }
@keyframes drift { to { transform: translateX(-50%); } }

/* pack */
.pack { background: var(--sand); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--sand-deep); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--shallow); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 18px; width: 8px; height: 4px; border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: rotate(-45deg); }
.notes .ticks li, .faq .ticks li { border-color: rgba(20,42,51,.1); }

/* voices */
.voices { background: var(--white); }
.voices > h2 { text-align: center; margin-bottom: calc(var(--u) * 5); }
.wp-block-quote { margin: 0; padding: 0 0 0 26px; border-left: 4px solid var(--sun); }
.wp-block-quote p { font: 500 clamp(1.15rem, 2vw, 1.5rem)/1.35 var(--display); margin-bottom: 12px; }
.wp-block-quote cite { font-style: normal; font-weight: 600; opacity: .72; }
.voices > p { margin-top: calc(var(--u) * 5); text-align: center; }

/* groups band */
.groups-band { background: var(--peach); }
.groups-cols { align-items: center; }
.groups-band .wp-block-image img { border-radius: 10px; aspect-ratio: 5 / 4; object-fit: cover; }

/* getting there */
.getting { background: var(--sand); }
.getting-cols { align-items: center; }
.getting .wp-block-image img { border-radius: 10px; }

/* inner pages */
.page-banner { height: clamp(220px, 34vw, 420px); overflow: hidden; }
.page-banner img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.page-head { max-width: 900px; margin: -90px auto 0 !important; background: var(--white); border-radius: 12px; padding: clamp(28px, 4vw, 48px); box-shadow: 0 20px 50px rgba(14,70,85,.14); z-index: 2; }
.page-head.wide { max-width: var(--wrap); margin-top: clamp(24px, 5vw, 56px) !important; box-shadow: none; padding-left: var(--gutter); padding-right: var(--gutter); }
.page-head .facts { font-size: 1.1rem; }
.page-head .facts strong { font-family: var(--display); font-size: 1.3rem; color: var(--dusk); }
.head-cols { align-items: center; }
.prose { max-width: calc(68ch + 2 * var(--gutter)); margin: 0 auto !important; font-size: 1.12rem; }
@media (max-width: 781px) { .page-head { margin: -48px 16px 0 !important; } .page-head.wide { margin: 24px 0 0 !important; } }

.why { background: var(--shallow-soft); }
.why h3 { color: var(--deep); }

.timeline { background: var(--night); color: #fff; }
.timeline > h2, .timeline > p { max-width: 760px; }
.beat { max-width: 760px; display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0 18px; border-left: 2px solid rgba(255,255,255,.25); padding-left: 26px; position: relative; }
.beat::before { content: ""; position: absolute; left: -8px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--night); }
.beat p { margin: 0; }
.beat .time { font: 800 1.2rem/1.3 var(--display); color: var(--sun); }
@media (max-width: 520px) { .beat { grid-template-columns: 1fr; gap: 4px; } }

.faq > h2 { margin-bottom: calc(var(--u) * 3); }
.wp-block-details { max-width: var(--wrap); border-bottom: 1px solid rgba(20,42,51,.12); padding: 18px 0; margin: 0 auto; }
.wp-block-details summary { cursor: pointer; font: 500 1.12rem/1.3 var(--display); list-style: none; position: relative; padding-right: 40px; min-height: 28px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 6px; top: -4px; font-size: 1.6rem; color: var(--dusk); }
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details p { margin: 12px 0 0; max-width: 64ch; }

/* form */
.form-wrap { background: var(--sand); }
.group-form { max-width: 560px; }
.group-form form { display: grid; gap: 18px; }
.group-form label { display: grid; gap: 6px; font-weight: 600; }
.group-form input, .group-form select, .group-form textarea { font: 400 1rem var(--body); padding: 13px 14px; border: 1.5px solid #b9a98c; border-radius: 6px; background: var(--white); color: var(--ink); width: 100%; min-height: 48px; }
.group-form input:focus, .group-form select:focus, .group-form textarea:focus { outline: 3px solid var(--shallow); outline-offset: 1px; border-color: var(--deep); }
.group-form .touched:invalid { border-color: var(--dusk); }
.btn-solid { justify-self: start; font: 600 1rem var(--body); background: var(--dusk); color: #fff; border: 0; border-radius: 6px; padding: 15px 24px; box-shadow: 0 3px 0 #8e3016; cursor: pointer; min-height: 48px; }
.btn-solid:hover { background: #b7401f; }
.form-note { padding: 14px 16px; border-radius: 6px; font-weight: 600; }
.form-note.ok { background: #d5efe9; color: var(--deep); }
.form-note.err { background: #fbe0d8; color: #8e3016; }
.hp { position: absolute; left: -9999px; }

/* footer */
.foot { background: var(--night); color: rgba(255,255,255,.88); position: relative; margin-top: 60px; }
.foot-wave { position: absolute; top: -59px; left: 0; width: 100%; height: 60px; fill: var(--night); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 24px; display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--sun); }
.foot-title { font: 800 1.05rem var(--display); color: #fff; }
.foot-quiet { opacity: .7; font-size: .95rem; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.badges img { width: 92px; background: #fff; border-radius: 6px; padding: 4px; }
.foot-base { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 28px; font-size: .88rem; opacity: .55; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; gap: 28px; } }

/* hero on phones */
@media (max-width: 781px) {
  .hero { min-height: auto; padding-top: 48px; }
  .hero .hero-bg { inset: 0; }
  .hero .hero-bg img { object-position: 60% 50%; }
  .hero-copy { min-height: 46svh; }
  .tickets { top: 0; margin-top: 24px; padding-bottom: 24px; }
  .ticket { padding: 22px 22px 20px 40px; }
  .intro { padding-top: 64px; }
}
@media (min-width: 1500px) {
  .hero-title { font-size: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .stop { opacity: 1; transform: none; }
  .hero .hero-bg img, .page-banner img { transform: none !important; }
}

/* classic themes wrap group children; let grid and flex parents see them */
.hero > .wp-block-group__inner-container,
.beat > .wp-block-group__inner-container { display: contents; }
.timeline > .wp-block-group__inner-container > h2,
.timeline > .wp-block-group__inner-container > p { max-width: 760px; }
