/* schoolsurf.co.nz design system. Aotearoa Surf sub-brand.
   Palette and type extracted from the live brand kit (see assets-src/BRAND-TOKENS.md). */

:root {
  --moana: #00999C;        /* primary teal */
  --reef: #00696C;         /* deep teal, hover and gradients */
  --aqua: #6BC8C4;         /* light aqua accent */
  --foam: #E2F5F5;         /* pale tint for alternating sections */
  --sunset: #FFA366;       /* certificate and outcome highlights only */
  --ink: #232323;          /* headings */
  --body: #3F4A4A;         /* body text, AA on white */
  --mist: #E4EEEE;         /* hairlines and borders */
  --white: #FFFFFF;

  --font-display: "Raleway", "Segoe UI", system-ui, sans-serif;
  --font-label: "Poppins", "Segoe UI", system-ui, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 105, 108, 0.10);
  --pad-section: clamp(3.5rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
a { color: var(--reef); text-underline-offset: 3px; }
a:hover { color: var(--moana); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--moana); outline-offset: 2px; border-radius: 2px; }

/* The signature: a hand-drawn wave underline for section headings */
.wave-heading::after {
  content: "";
  display: block;
  width: 84px; height: 18px;
  margin-top: 0.45rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 84 18"><path d="M2 9 C 9 4, 16 4, 23 9 S 37 14, 44 9 S 58 4, 65 9 S 79 14, 82 9" fill="none" stroke="%236BC8C4" stroke-width="3.5" stroke-linecap="round"/></svg>') no-repeat center;
}
.center .wave-heading::after, .wave-heading.center::after { margin-inline: auto; }

/* The wave draws itself when the heading scrolls into view (JS adds .wave-anim/.in) */
.wave-anim::after {
  clip-path: inset(-4px 100% -4px 0);
  transition: clip-path 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.wave-anim.in::after { clip-path: inset(-4px 0 -4px 0); }

/* Living tide line: the top edge of every tinted section is water, drifting slowly */
.section.tint { position: relative; }
.section.tint::before {
  content: ""; position: absolute; top: -40px; left: 0; right: 0; height: 42px;
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 42" preserveAspectRatio="none"><path d="M0 26 C 240 6, 480 46, 720 26 S 1200 6, 1440 26 L 1440 42 L 0 42 Z" fill="%23E2F5F5"/></svg>') repeat-x;
  background-size: 1440px 42px;
  animation: tide-drift 55s linear infinite;
}
@keyframes tide-drift {
  from { background-position-x: 0; }
  to { background-position-x: 1440px; }
}

/* Hero entrance: content arrives in a quick staged sequence */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.hero-inner > * { animation: rise 1.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero-inner > :nth-child(2) { animation-delay: 0.35s; }
.hero-inner > :nth-child(3) { animation-delay: 0.7s; }
.hero-inner > :nth-child(4) { animation-delay: 1.05s; }

/* Hero photo breathes: slow, almost imperceptible drift */
@keyframes hero-drift {
  from { transform: scale(1.03); }
  to { transform: scale(1.1) translateX(-1.2%); }
}
.hero-media { animation: hero-drift 36s ease-in-out infinite alternate; }
video.hero-media { animation: none; opacity: 0.72; }

/* Eyebrow labels: the signage voice */
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moana);
  margin: 0 0 0.7rem;
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist);
}
.header-inner {
  display: flex; align-items: center; gap: 1.2rem;
  min-height: 76px;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo img { height: 56px; width: auto; }
.logo-sub {
  font-family: var(--font-label);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--reef); white-space: nowrap;
  border-left: 2px solid var(--aqua);
  padding-left: 0.6rem;
}
.site-header .wrap { max-width: 1360px; }
@media (max-width: 1360px) {
  .header-phone, .logo-sub { display: none; }
}
.site-nav { margin-left: auto; }
.nav-menu {
  display: flex; gap: 0.2rem; list-style: none; margin: 0; padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu a {
  display: block; padding: 0.55rem 0.7rem;
  font-size: 0.94rem; font-weight: 600; white-space: nowrap;
  color: var(--ink); text-decoration: none; border-radius: 8px;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--reef); background: var(--foam); }
.sub-toggle { display: none; }
.has-children > .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--mist); border-radius: 12px;
  box-shadow: var(--shadow); padding: 0.4rem; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.has-children:hover > .sub-menu,
.has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu a { font-weight: 500; font-size: 0.9rem; }
.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.header-phone {
  font-family: var(--font-label); font-weight: 600; font-size: 0.9rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav-toggle { display: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-label); font-weight: 600; font-size: 0.97rem;
  padding: 0.78rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.btn { transition: background 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 105, 108, 0.22); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--moana); color: #fff; }
.btn-primary:hover { background: var(--reef); color: #fff; }
.btn-ghost { border-color: var(--moana); color: var(--reef); background: transparent; }
.btn-ghost:hover { background: var(--foam); }
.btn-light { background: #fff; color: var(--reef); }
.btn-light:hover { background: var(--foam); }

/* ============ Hero ============ */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(160deg, var(--reef), var(--moana) 70%, var(--aqua));
  overflow: hidden;
}
.hero.has-photo { background: var(--ink); }
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55;
}
.hero.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0, 65, 67, 0.78) 20%, rgba(0, 105, 108, 0.38) 60%, rgba(0, 153, 156, 0.12));
}
.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(4rem, 11vw, 8.5rem);
  max-width: 640px;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--aqua); }
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 34em; color: rgba(255,255,255,0.92); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* Proof strip under hero */
.proof-strip { background: var(--foam); border-bottom: 1px solid var(--mist); }
.proof-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 0.4rem 2.4rem;
  justify-content: center; padding-block: 0.95rem;
}
.proof-strip span {
  font-family: var(--font-label); font-size: 0.85rem; font-weight: 600; color: var(--reef);
}

/* ============ Sections ============ */
.section { padding-block: var(--pad-section); }
.section.tint { background: var(--foam); }
.section.dark { background: var(--reef); color: rgba(255,255,255,0.92); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ============ Cards ============ */
.card-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 105, 108, 0.14), 0 16px 36px rgba(0, 105, 108, 0.16);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 4px 12px rgba(0, 105, 108, 0.18), 0 24px 48px rgba(0, 105, 108, 0.24); }
/* Whole card is clickable via the stretched footer link; inline links stay above it */
.card { position: relative; }
.card .card-cta::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-body p a, .card-body ul a { position: relative; z-index: 2; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem 1.6rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.65rem; }
.card-body ul { margin: 0 0 1.2rem; padding: 0; list-style: none; font-size: 0.95rem; }
.card-body ul li { position: relative; padding-left: 1.15em; margin-bottom: 0.4rem; }
.card-body ul li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--aqua);
}
.card-body .card-cta {
  margin-top: auto; font-weight: 700; text-decoration: none; color: var(--reef);
  border-top: 1px solid var(--mist); padding-top: 1rem;
}
.card-body .card-cta::after { transition: margin-left 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.card-body .card-cta:hover::after { margin-left: 4px; }
.card-body .card-cta::after { content: " \2192"; }

/* ============ Safety pillars ============ */
.safety-pillars {
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.pillar {
  background: #fff; border-radius: var(--radius);
  border-top: 4px solid var(--moana);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
}
.pillar .pillar-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--foam); color: var(--reef);
  display: grid; place-items: center; margin-bottom: 0.9rem;
}
.pillar .pillar-icon svg { width: 30px; height: 30px; }
.pillar h3 { font-size: 1.05rem; }
.pillar p { font-size: 0.94rem; margin: 0; }

/* Ratio chips: facts as structure */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.chips li {
  font-family: var(--font-label); font-size: 0.86rem; font-weight: 600;
  background: #fff; border: 1.5px solid var(--aqua); color: var(--reef);
  border-radius: 999px; padding: 0.35rem 0.95rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.chips li:hover { border-color: var(--moana); transform: translateY(-1px); }
.section.dark .chips li { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }

/* ============ Itinerary timeline ============ */
.itinerary { list-style: none; margin: 1.5rem 0; padding: 0; max-width: 640px; }
.itinerary li {
  position: relative; padding: 0 0 1.4rem 2rem;
  border-left: 2px solid var(--aqua);
  margin-left: 0.4rem;
}
.itinerary li:last-child { border-left-color: transparent; padding-bottom: 0; }
.itinerary li::before {
  content: ""; position: absolute; left: -8px; top: 0.2em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--moana); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--aqua);
}
.itinerary time {
  display: block; font-family: var(--font-label);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--moana);
}
.itinerary strong { color: var(--ink); }
.itinerary p { margin: 0.15rem 0 0; font-size: 0.95rem; }

/* ============ Tables (curriculum, pricing) ============ */
.table-scroll { overflow-x: auto; margin-block: 1.5rem; }
.curriculum-table, .pricing-table {
  width: 100%; border-collapse: collapse; min-width: 560px;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); font-size: 0.95rem;
}
.curriculum-table th, .pricing-table th {
  font-family: var(--font-label); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--reef); color: #fff; text-align: left;
  padding: 0.85rem 1rem;
}
.curriculum-table td, .pricing-table td {
  padding: 0.9rem 1rem; border-top: 1px solid var(--mist); vertical-align: top;
}
.pricing-table .price {
  font-family: var(--font-label); font-weight: 700; font-size: 1.05rem; color: var(--reef);
  white-space: nowrap;
}

/* ============ Testimonials ============ */
.testimonial {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.7rem 1.6rem; position: relative;
}
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.02rem; color: var(--ink); }
.testimonial blockquote::before { content: "\201C"; color: var(--aqua); font-size: 2.6rem; line-height: 0; vertical-align: -0.35em; margin-right: 0.15rem; font-family: Georgia, serif; }
.testimonial cite {
  font-style: normal; font-family: var(--font-label);
  font-size: 0.85rem; font-weight: 600; color: var(--reef);
}
.testimonial cite span { display: block; font-weight: 400; color: var(--body); }

/* ============ FAQ ============ */
.faq { max-width: 760px; }
.faq details {
  background: #fff; border: 1px solid var(--mist); border-radius: 12px;
  margin-bottom: 0.7rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-weight: 700; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--moana);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--mist); }
.faq .faq-a { padding: 1rem 1.3rem 1.2rem; overflow: hidden; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(120deg, var(--reef), var(--moana));
  color: #fff; text-align: center;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 40em; margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .cta-phone { color: #fff; font-family: var(--font-label); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.5); }

/* Certificate and outcome highlight: the only place sunset appears */
.outcome {
  border-left: 5px solid var(--sunset);
  background: #FFF7F0;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem; margin-block: 1.5rem;
}
.outcome strong { color: var(--ink); }

/* ============ Enquiry form ============ */
.enquiry-form { max-width: 680px; }
.enquiry-form .field { margin-bottom: 1.15rem; }
.enquiry-form label {
  display: block; font-family: var(--font-label);
  font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.3rem;
}
.enquiry-form .req { color: var(--sunset); }
.enquiry-form input[type="text"], .enquiry-form input[type="email"],
.enquiry-form input[type="tel"], .enquiry-form select, .enquiry-form textarea {
  width: 100%; padding: 0.7rem 0.9rem; font: inherit; color: var(--ink);
  border: 1.5px solid var(--mist); border-radius: 10px; background: #fff;
}
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus {
  border-color: var(--moana); outline: 2px solid var(--aqua); outline-offset: 0;
}
.enquiry-form .field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.enquiry-form fieldset {
  border: 1.5px solid var(--mist); border-radius: 10px;
  padding: 0.9rem 1rem; margin: 0 0 1.15rem;
}
.enquiry-form legend { font-family: var(--font-label); font-weight: 600; font-size: 0.9rem; padding-inline: 0.3rem; }
.enquiry-form .check { display: flex; align-items: flex-start; gap: 0.55rem; margin-bottom: 0.45rem; }
.enquiry-form .check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--moana); }
.enquiry-form .check label { font-weight: 500; margin: 0; }
.enquiry-form .error-msg { color: #B3261E; font-size: 0.85rem; margin-top: 0.25rem; display: none; }
.enquiry-form .invalid input, .enquiry-form .invalid textarea { border-color: #B3261E; }
.enquiry-form .invalid .error-msg { display: block; }
.hp-field { position: absolute; left: -9999px; }

/* ============ Click-to-play video facade ============ */
.video-facade {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 105, 108, 0.07), 0 14px 32px rgba(0, 105, 108, 0.12);
  cursor: pointer;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0, 153, 156, 0.92); color: #fff;
  display: grid; place-items: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.video-play svg { width: 38px; height: 38px; margin-left: 4px; }
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--reef); }

/* ============ Badge bar / footer ============ */
.badge-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.8rem;
  padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,0.15);
}
.badge-bar img { height: 52px; width: auto; filter: grayscale(0.1); background: #fff; border-radius: 8px; padding: 6px; }

.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); margin-top: var(--pad-section); font-size: 0.94rem; }
.footer-grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding-block: 3.2rem 1.6rem;
}
.footer-brand img { margin-bottom: 0.9rem; }
.footer-heading {
  font-family: var(--font-label); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua); margin-bottom: 0.8rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--aqua); }
.footer-contact a { color: var(--aqua); }
.footer-legal { padding-block: 1.2rem 1.8rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* Breadcrumbs */
.breadcrumbs { background: var(--foam); border-bottom: 1px solid var(--mist); font-size: 0.85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; margin: 0; padding: 0.6rem 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.3rem; color: var(--aqua); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Placeholder tokens awaiting Che's real figures: loudly visible, impossible to miss */
mark.confirm {
  background: #FFF3C4; color: #7A5900;
  font-family: var(--font-label); font-size: 0.85em; font-weight: 600;
  padding: 0.1em 0.45em; border-radius: 6px; border: 1px dashed #D9A800;
}

/* Two-column feature rows */
.split { display: grid; gap: 2.6rem; grid-template-columns: 1fr 1fr; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Scroll reveal (opt-in, disabled under reduced motion) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1), transform 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============ Responsive ============ */
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-left: auto;
    background: none; border: 1.5px solid var(--mist); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 20px; height: 2.5px;
    background: var(--ink); border-radius: 2px; position: relative;
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .site-nav { position: static; margin-left: auto; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--mist);
    padding: 0.6rem 1rem 1rem; box-shadow: var(--shadow);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .has-children { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .sub-toggle {
    display: grid; place-items: center; width: 42px; height: 42px;
    background: none; border: none; cursor: pointer;
  }
  .sub-toggle::after {
    content: ""; width: 9px; height: 9px;
    border-right: 2px solid var(--reef); border-bottom: 2px solid var(--reef);
    transform: rotate(45deg); transition: transform 0.15s ease;
  }
  .sub-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
  .has-children > .sub-menu {
    grid-column: 1 / -1;
    position: static; opacity: 1; visibility: hidden; transform: none;
    display: none; box-shadow: none; border: none; padding-left: 1rem;
  }
  .has-children.open > .sub-menu { display: block; visibility: visible; }
  .header-cta { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .enquiry-form .field-row { grid-template-columns: 1fr; }
}
