/* ==========================================================================
   Prestige Marine Trimmers - mockup stylesheet
   Implements 03-design/design-system.md exactly.
   Sharp corners (radius 0), Sattler navy + canvas-tan, twin-needle seam motif.
   ========================================================================== */

/* ---- 1. Tokens (:root) --------------------------------------------------- */
:root {
  /* Fonts */
  --font-display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Asap", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Fluid display sizes */
  --fs-display: clamp(2.25rem, 1.4rem + 4.2vw, 4.0rem);
  --fs-h1:      clamp(2.0rem, 1.45rem + 2.6vw, 3.0rem);
  --fs-h2:      clamp(1.625rem, 1.3rem + 1.6vw, 2.25rem);
  --fs-h3:      clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  --fs-h4:      clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --fs-h5: 1rem;
  --fs-h6: 0.875rem;
  --fs-lead:    clamp(1.0625rem, 1.0rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-overline: 0.8125rem;

  /* Grounds */
  --bg: #F4F2EC;
  --surface: #FFFFFF;
  --surface-warm: #EAE3D6;
  --ground-dark: #16243A;
  --ground-darker: #0E1828;

  /* Ink */
  --ink: #10151E;
  --ink-on-dark: #F4F2EC;
  --muted: #5A6472;
  --muted-on-dark: #AEB7C4;

  /* Accent (canvas-tan) */
  --accent: #C2956A;
  --accent-hover: #AD8157;
  --accent-ink: #8A5E33;

  /* Lines & structure */
  --line: #D8D2C4;
  --line-strong: #B9B2A2;
  --line-on-dark: #2C3A52;
  --steel: #6E7886;

  /* Feedback */
  --ok: #2E6E4E;
  --warn: #9A6212;
  --error: #B23A2E;
  --focus-ring: #C2956A;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --section-y: clamp(3rem, 2rem + 4vw, 6rem);

  /* Layout */
  --container: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --radius: 0;
  --tap-min: 44px;

  /* Elevation / lines */
  --shadow-header: 0 1px 0 var(--line), 0 2px 6px rgba(16,21,30,.10);
  --border-hair: 1px solid var(--line);
  --border-strong: 2px solid var(--ink);

  /* Motion */
  --ease: cubic-bezier(.2,.6,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --dur-fast: 120ms;
  --dur: 180ms;
}

/* ---- 2. Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-radius: var(--radius); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 var(--fs-body)/1.65 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--space-3);
  line-height: 1.06;
}
h1 { font-size: var(--fs-h1); line-height: 1.02; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.12; letter-spacing: .005em; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.18; letter-spacing: .01em; }

p { max-width: 68ch; margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--fs-lead); line-height: 1.6; max-width: 60ch; }

a {
  color: var(--accent-ink);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent-hover); }
strong { font-weight: 600; }

/* ---- 3. Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: var(--container-wide); }

/* Large desktop (1440+): grow gutters, denser category grid */
@media (min-width: 1440px) {
  :root { --gutter: 2.5rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}

.section { padding-block: var(--section-y); }
.section--warm { background: var(--surface-warm); }
.section--dark { background: var(--ground-dark); color: var(--ink-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--ink-on-dark); }
.section--dark p { color: var(--muted-on-dark); }

.section__head { max-width: 70ch; margin-bottom: var(--space-6); }
.section__kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: var(--fs-overline);
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.section__kicker::before { content: ""; width: 28px; border-top: 2px solid var(--accent); }
.section--dark .section__kicker { color: var(--accent); }

.overline {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: var(--fs-overline);
  color: var(--accent-ink);
}
.section--dark .overline, .hero__eyebrow { color: var(--accent); }

.muted { color: var(--muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* ---- 4. The twin-needle seam motif -------------------------------------- */
.seam {
  height: 0;
  border: 0;
  border-top: 2px solid var(--accent);
  position: relative;
  margin: 0;
}
.seam::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 3px;
  border-top: 1px dashed var(--accent);
  opacity: .7;
}
.seam--light { border-top-color: var(--line-strong); }
.seam--light::after { border-top-color: var(--accent); opacity: 1; }

.stitch-corner { position: relative; }
.stitch-corner::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

/* ---- 5. Skip link & focus ------------------------------------------------ */
.skip-link {
  position: absolute;
  left: var(--space-3); top: -4rem;
  background: var(--accent);
  color: var(--ink);
  padding: var(--space-2) var(--space-4);
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-3); color: var(--ink); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- 6. Header / navigation --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground-dark);
  color: var(--ink-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  transition: box-shadow var(--dur) var(--ease), min-height var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] { box-shadow: var(--shadow-header); }

.header-top {
  display: none;
}
@media (min-width: 1080px) {
  .header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-4);
    padding-block: var(--space-2);
    border-bottom: 1px solid var(--line-on-dark);
    font-size: var(--fs-small);
  }
  .header-top .meta { color: var(--muted-on-dark); }
}

.header-call {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
}
.header-call:hover { color: var(--accent-hover); }

.header-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 72px;
  position: relative;
  transition: min-height var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] .header-bar { min-height: 60px; }

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .01em;
  color: var(--ink-on-dark);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.brand:hover { color: var(--ink-on-dark); }
.brand span { color: var(--accent); }

.nav {
  margin-left: auto;
  display: flex;
  gap: var(--space-1);
  align-items: center;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 var(--space-3);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-on-dark);
  text-decoration: none;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--space-3); right: var(--space-3);
  bottom: 12px;
  border-top: 2px solid var(--accent);
}
.nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: var(--space-3); right: var(--space-3);
  bottom: 9px;
  border-top: 1px dashed var(--accent);
  opacity: .7;
}
.nav .nav-cta { margin-left: var(--space-2); }

.menu-toggle {
  display: none;
  width: var(--tap-min);
  height: var(--tap-min);
  background: transparent;
  border: 1px solid var(--line-on-dark);
  color: var(--ink-on-dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle .bars { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.menu-toggle .bars::before,
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }

@media (max-width: 1079px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav[data-open="true"] {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--ground-dark);
    border-top: 1px solid var(--line-on-dark);
    border-bottom: 1px solid var(--line-on-dark);
    padding: var(--space-2) var(--gutter) var(--space-4);
    box-shadow: var(--shadow-header);
    margin: 0;
  }
  .nav[data-open="true"] a {
    width: 100%;
    min-height: var(--tap-min);
    border-bottom: 1px solid var(--line-on-dark);
    padding-inline: 0;
  }
  .nav[data-open="true"] a[aria-current="page"]::after { left: 0; right: auto; width: 28px; bottom: 12px; }
  .nav[data-open="true"] a[aria-current="page"]::before { left: 0; right: auto; width: 28px; bottom: 9px; }
  .nav[data-open="true"] .mobile-call {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line-on-dark);
  }
  .nav[data-open="true"] .nav-cta {
    margin: var(--space-3) 0 0;
    justify-content: center;
  }
}
.mobile-call { display: none; }
@media (max-width: 1079px) { .nav[data-open="true"] .mobile-call { display: inline-flex; } }

/* ---- 7. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 var(--space-5);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 0;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }
.btn-primary:active { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

.btn-secondary { background: transparent; color: var(--ink-on-dark); border-color: var(--muted-on-dark); }
.btn-secondary:hover { background: var(--ink-on-dark); color: var(--ground-dark); border-color: var(--ink-on-dark); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.link-arrow {
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
  display: inline-flex;
  gap: var(--space-2);
  min-height: var(--tap-min);
  align-items: center;
}
.link-arrow .arrow { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: .18em; }
.link-arrow:hover .arrow { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--accent); }

/* ---- 8. Hero ------------------------------------------------------------- */
.hero {
  background: var(--ground-dark);
  color: var(--ink-on-dark);
}
.hero .container {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  padding-block: var(--section-y);
}
@media (min-width: 1080px) {
  .hero .container { grid-template-columns: 1.05fr 1fr; align-items: center; }
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: var(--fs-overline);
  color: var(--accent);
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.hero__eyebrow::before { content: ""; width: 28px; border-top: 2px solid var(--accent); }
.hero__title {
  font-size: var(--fs-display);
  line-height: .98;
  letter-spacing: -.005em;
  margin-bottom: var(--space-4);
  color: var(--ink-on-dark);
  max-width: 16ch;
}
.hero__title .tan { color: var(--accent); }
.hero__sub {
  font-size: var(--fs-lead);
  color: var(--muted-on-dark);
  max-width: 50ch;
  margin-bottom: var(--space-5);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__media { position: relative; }
.hero__media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 11;
}
.hero__media::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 1;
}
.hero__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(14,24,40,.88) 0%, rgba(14,24,40,0) 100%);
  color: var(--ink-on-dark);
  font-size: var(--fs-small);
  padding: var(--space-5) var(--space-3) var(--space-3);
  margin: 0;
}

/* compact page hero (inner pages) */
.page-hero {
  background: var(--ground-dark);
  color: var(--ink-on-dark);
  padding-block: var(--section-y);
}
.page-hero .overline { color: var(--accent); display: inline-flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.page-hero .overline::before { content: ""; width: 28px; border-top: 2px solid var(--accent); }
.page-hero h1 { color: var(--ink-on-dark); max-width: 18ch; }
.page-hero .lead { color: var(--muted-on-dark); }

/* breadcrumb */
.crumbs { font-size: var(--fs-small); color: var(--muted-on-dark); margin-bottom: var(--space-4); }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--muted-on-dark); padding-inline: var(--space-2); }

/* ---- 9. Trust strip ------------------------------------------------------ */
.trust-strip {
  background: var(--ground-darker);
  color: var(--ink-on-dark);
  border-top: 1px solid var(--line-on-dark);
}
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0;
  display: grid;
  gap: var(--space-3) var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .trust-strip ul { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1080px) { .trust-strip ul { grid-template-columns: repeat(4,1fr); } }
.trust-strip li {
  font-weight: 500;
  padding-left: var(--space-4);
  position: relative;
  font-size: var(--fs-small);
}
.trust-strip li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 10px; height: 10px;
  border: 2px solid var(--accent);
  border-top: 0; border-right: 0;
  transform: rotate(-45deg);
}

/* ---- 10. Service cards --------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .card-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1080px) { .card-grid--4 { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 1080px) { .card-grid--3 { grid-template-columns: repeat(3,1fr); } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--accent);
  position: relative;
  transition: border-color var(--dur) var(--ease-out);
}
.service-card::after {
  content: "";
  position: absolute;
  top: 2px; left: 0; right: 0;
  border-top: 1px dashed var(--accent);
  opacity: .7;
}
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.service-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.12;
  margin: 0;
}
.service-card__text { color: var(--muted); font-size: var(--fs-small); flex: 1; margin: 0; }
.service-card:hover { border-color: var(--steel); }
.service-card:hover img { filter: brightness(1.03); }
.service-card:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---- 11. Category cards (Gallery) --------------------------------------- */
.category-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) { .category-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1080px) { .category-grid { grid-template-columns: repeat(2,1fr); } }

.category-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink-on-dark);
  overflow: hidden;
  border: 1px solid var(--line);
}
.category-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform var(--dur) var(--ease-out);
}
.category-card__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(14,24,40,.92) 0%, rgba(14,24,40,.55) 70%, rgba(14,24,40,0) 100%);
  padding: var(--space-5) var(--space-4) var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h4);
  color: var(--ink-on-dark);
}
.category-card__label small { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small); color: var(--muted-on-dark); margin-top: var(--space-1); }
.category-card__label::before {
  content: "";
  display: block;
  width: 28px;
  border-top: 2px solid var(--accent);
  margin-bottom: var(--space-2);
}
.category-card:hover img { transform: scale(1.03); }
.category-card:hover { color: var(--ink-on-dark); }
.category-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }

/* ---- 12. Gallery thumbnails (figure grid) -------------------------------- */
.gallery-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1280px) { .gallery-grid { grid-template-columns: repeat(4,1fr); } }

.tile {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tile figcaption {
  padding: var(--space-3);
  font-size: var(--fs-small);
  color: var(--muted);
  border-top: 2px solid var(--accent);
  position: relative;
}
.tile figcaption::after {
  content: "";
  position: absolute;
  top: 2px; left: 0; right: 0;
  border-top: 1px dashed var(--accent);
  opacity: .7;
}

/* ---- 13. Carpet swatches ------------------------------------------------- */
.swatch-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) { .swatch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .swatch-grid { grid-template-columns: repeat(5, 1fr); } }
.swatch { margin: 0; border: 1px solid var(--line); background: var(--surface); }
.swatch img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.swatch figcaption { padding: var(--space-2) var(--space-3); font-size: var(--fs-xs); color: var(--muted); }

/* ---- 14. Service list (definition-style) -------------------------------- */
.service-list {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .service-list { grid-template-columns: repeat(3, 1fr); } }
.service-list__group { border-top: 2px solid var(--accent); padding-top: var(--space-4); position: relative; }
.service-list__group::after {
  content: ""; position: absolute; top: 2px; left: 0; right: 0;
  border-top: 1px dashed var(--accent); opacity: .7;
}
.service-list__group h3 { margin-bottom: var(--space-3); }
.service-list__group ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.service-list__group li {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--fs-body);
}
.service-list__group li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 9px; height: 9px;
  border: 2px solid var(--accent);
  border-top: 0; border-right: 0;
  transform: rotate(-45deg);
}

/* ---- 15. Split section (text + image) ----------------------------------- */
.split {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1080px) { .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; } }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--line); }
.split__media::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 1;
}

/* ---- 16. Feature band (Defence credential) ------------------------------ */
.feature-band {
  background: var(--ground-dark);
  color: var(--ink-on-dark);
  padding-block: var(--section-y);
}
.feature-band .container {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1080px) { .feature-band .container { grid-template-columns: 1fr 1fr; } }
.feature-band h2 { font-size: var(--fs-h2); color: var(--ink-on-dark); }
.feature-band p { color: var(--muted-on-dark); font-size: var(--fs-lead); }
.feature-band .overline { color: var(--accent); display: inline-flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.feature-band .overline::before { content: ""; width: 28px; border-top: 2px solid var(--accent); }
.feature-band__media { position: relative; }
.feature-band__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; display: block; }
.feature-band__media::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 1;
}

/* ---- 17. Proof row (boats we trim) -------------------------------------- */
.proof-list {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-5);
}
@media (min-width: 768px) { .proof-list { grid-template-columns: repeat(2,1fr); } }
.proof-list li {
  padding-left: var(--space-4);
  position: relative;
  border-left: 2px solid var(--line);
  padding-block: var(--space-1);
}
.proof-list li b { font-family: var(--font-display); font-weight: 600; color: var(--ink); display: block; font-size: var(--fs-h4); }
.proof-list li span { color: var(--muted); font-size: var(--fs-small); }
.section--dark .proof-list li { border-left-color: var(--line-on-dark); }
.section--dark .proof-list li b { color: var(--ink-on-dark); }
.section--dark .proof-list li span { color: var(--muted-on-dark); }

/* ---- 18. Materials / accreditation strip -------------------------------- */
.accred-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.accred-logos img {
  height: 44px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border: 1px solid var(--line);
}
.materials-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.materials-tags li {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: var(--fs-small);
  border: 1px solid var(--line-strong);
  padding: var(--space-1) var(--space-3);
  color: var(--ink);
}
.section--dark .materials-tags li { border-color: var(--line-on-dark); color: var(--ink-on-dark); }

/* ---- 19. Quote / testimonial block -------------------------------------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: var(--space-5);
}
.quote__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.25;
  color: var(--ink);
}
.quote__cite { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--muted); font-style: normal; }
.quote__cite b { color: var(--ink); font-weight: 600; }

/* ---- 20. CTA band -------------------------------------------------------- */
.cta-band {
  background: var(--ground-dark);
  color: var(--ink-on-dark);
  padding-block: var(--section-y);
}
.cta-band h2 { color: var(--ink-on-dark); }
.cta-band p { color: var(--muted-on-dark); }
.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-5);
}
.cta-band .phone-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
}
.cta-band .phone-line:hover { color: var(--accent-hover); }

/* ---- 21. Forms ----------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 0 var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-small); color: var(--ink); }
.field label .req { color: var(--error); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0 var(--space-3);
  min-height: var(--tap-min);
  width: 100%;
}
.field select { padding-block: var(--space-2); }
.field textarea { min-height: 8rem; padding-block: var(--space-3); resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
fieldset { border: 1px solid var(--line); padding: var(--space-4); border-radius: 0; margin: 0 0 var(--space-4); }
legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h4);
  padding-inline: var(--space-2);
}
.form-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.form-note { font-size: var(--fs-small); color: var(--muted); margin-top: var(--space-3); }

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: var(--space-5);
  position: relative;
}
.form-panel::after {
  content: ""; position: absolute; top: 2px; left: 0; right: 0;
  border-top: 1px dashed var(--accent); opacity: .7;
}

/* ---- 22. Contact details / info card ------------------------------------ */
.info-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 1080px) { .info-grid { grid-template-columns: 1fr 1.2fr; } }
.info-block { margin-bottom: var(--space-5); }
.info-block h3 { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.info-block p { margin: 0; }
.info-block a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.info-block a:hover { text-decoration: underline; }
.info-block .big-call {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--accent-ink);
}
.note-line { font-size: var(--fs-small); color: var(--muted); }

.map-frame { border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 10; display: block; }

/* ---- 23. Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--ground-dark);
  color: var(--muted-on-dark);
  padding-top: var(--space-7);
}
.site-footer .container {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .site-footer .container { grid-template-columns: 1.4fr 1fr 1.6fr; } }
.site-footer h2 { font-size: var(--fs-h4); color: var(--ink-on-dark); margin-bottom: var(--space-3); }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink-on-dark); margin-bottom: var(--space-3); }
.footer-brand span { color: var(--accent); }
.site-footer p { color: var(--muted-on-dark); margin-bottom: var(--space-3); max-width: 40ch; }
.footer-nav { list-style: none; }
.site-footer a {
  color: var(--muted-on-dark);
  text-decoration: none;
  display: inline-flex;
  min-height: var(--tap-min);
  align-items: center;
}
.site-footer a:hover { color: var(--accent); }
.footer-call {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.footer-call:hover { color: var(--accent-hover); }
.footer-contact-line { color: var(--muted-on-dark); }
.footer-contact-line a { display: inline-flex; min-height: auto; color: var(--accent); }
.footer-base {
  border-top: 1px solid var(--line-on-dark);
  margin-top: var(--space-6);
  padding-block: var(--space-4);
  font-size: var(--fs-xs);
}
.footer-base .container { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: space-between; }
.footer-base p { margin: 0; max-width: none; }

/* ---- 24. Scroll reveal (user-agnostic, JS-driven) ----------------------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---- 26. Print ----------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav, .menu-toggle, .hero__media, .header-top,
  .skip-link, .nav-cta, .map-frame, .cta-band .actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
  .container { max-width: none; }
  .section { padding-block: 1rem; }
}

/* ---- 27. Small utility --------------------------------------------------- */
.stack > * + * { margin-top: var(--space-4); }
.flow > * + * { margin-top: var(--space-3); }
.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;
}
