:root {
  /* Brand */
  --navy: #073763;
  --navy-2: #0d4d86;
  --navy-ink: #ffffff;
  --accent: #1fafbf;
  --accent-strong: #12717c;
  --accent-soft: #e2f4f6;
  --accent-line: #a5dfe6;
  --accent-ink: #ffffff;
  --tint: #d7f4ff;

  /* Neutrals */
  --ground: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f5f8fb;
  --line: #dbe3ec;
  --line-strong: #b9c7d6;
  --ink: #2e2e2e;
  --ink-2: #55636f;
  --ink-3: #7d8b98;

  /* Semantic */
  --profit: #b23a1f;
  --profit-soft: #fbe7e1;
  --warn: #8a5a00;
  --warn-soft: #fbefd6;
  --ok: #1c6b4b;
  --ok-soft: #ddf0e7;

  /* Elevation */
  --shadow-1: 0 0 8px rgba(7, 55, 99, .14);
  --shadow-2: 0 3px 7px rgba(7, 55, 99, .16);
  --shadow-3: 0 1px 2px rgba(7, 55, 99, .08), 0 12px 32px -14px rgba(7, 55, 99, .34);

  /* Type */
  --font-display: "Montserrat Alternates", "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-figure: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --step--1: .75rem;   /* 12px  labels, hints */
  --step-0: .9375rem;  /* 15px  interface */
  --step-1: 1rem;      /* 16px  body */
  --step-2: 1.125rem;  /* 18px  subtitle, totals */
  --step-3: 1.4375rem; /* 23px  item name */
  --step-4: 1.8125rem; /* 29px  section title */
  --step-5: 2.25rem;   /* 36px  page title, key figures */
  --lh-text: 1.5;
  --lh-head: 1.2;

  /* Geometry */
  --r-sm: 6px;
  --r-md: 8px;
  --r-pill: 999px;
  --gutter: 20px;
  --measure: 1080px;
  --shell: 1280px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Brand */
    --navy: #0a4275;
    --navy-2: #12598f;
    --navy-ink: #eaf3fb;
    --accent: #3fc9d8;
    --accent-strong: #6fdcea;
    --accent-soft: #0c3b45;
    --accent-line: #1c5f6c;
    --accent-ink: #04222a;
    --tint: #0b2f45;

    /* Neutrals */
    --ground: #051a2b;
    --surface: #08243b;
    --surface-2: #0d2f4c;
    --line: #16405f;
    --line-strong: #24587c;
    --ink: #e6eef6;
    --ink-2: #a8bccd;
    --ink-3: #7d94a8;

    /* Semantic */
    --profit: #ff8a66;
    --profit-soft: #3a1d14;
    --warn: #e0b25c;
    --warn-soft: #33270f;
    --ok: #5fd3a2;
    --ok-soft: #0d3327;

    /* Elevation */
    --shadow-1: 0 0 8px rgba(0, 0, 0, .45);
    --shadow-2: 0 3px 7px rgba(0, 0, 0, .5);
    --shadow-3: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .8);
  }
}

:root[data-theme="dark"] {
  /* Brand */
  --navy: #0a4275;
  --navy-2: #12598f;
  --navy-ink: #eaf3fb;
  --accent: #3fc9d8;
  --accent-strong: #6fdcea;
  --accent-soft: #0c3b45;
  --accent-line: #1c5f6c;
  --accent-ink: #04222a;
  --tint: #0b2f45;

  /* Neutrals */
  --ground: #051a2b;
  --surface: #08243b;
  --surface-2: #0d2f4c;
  --line: #16405f;
  --line-strong: #24587c;
  --ink: #e6eef6;
  --ink-2: #a8bccd;
  --ink-3: #7d94a8;

  /* Semantic */
  --profit: #ff8a66;
  --profit-soft: #3a1d14;
  --warn: #e0b25c;
  --warn-soft: #33270f;
  --ok: #5fd3a2;
  --ok-soft: #0d3327;

  /* Elevation */
  --shadow-1: 0 0 8px rgba(0, 0, 0, .45);
  --shadow-2: 0 3px 7px rgba(0, 0, 0, .5);
  --shadow-3: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .8);
}

/* ==================================================================
   Captain's Marine — site stylesheet
   Shared by every marketing page. The three intake forms and the
   admin tools stay single-file on purpose; see CLAUDE.md.
   ================================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-1);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-head);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--accent-strong); }

:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--accent-strong); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- header band ---------- */

.site-header { background: var(--navy); color: var(--navy-ink); }
.site-header .inner {
  max-width: var(--shell); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 18px 26px; flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 0; text-decoration: none; color: inherit; }
.brand b {
  font-family: var(--font-display); font-weight: 900; font-size: var(--step-3);
  letter-spacing: -.01em; color: var(--navy-ink);
}
.brand i { font-style: normal; font-family: var(--font-display); font-weight: 900; font-size: var(--step-3); color: var(--accent); }

.site-nav { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-nav a {
  color: var(--navy-ink); text-decoration: none;
  font-size: var(--step-0); font-weight: 600; padding: 6px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; font-family: var(--font-text); font-size: var(--step-1); font-weight: 600;
  line-height: 1.15; padding: 12px 32px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-line); }
.btn-bright { background: var(--accent); color: var(--navy); }
.btn-bright:hover { background: var(--accent-line); }
.btn-ghost { background: transparent; color: var(--accent-strong); border-color: var(--accent-line); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-onnavy { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-onnavy:hover { background: var(--accent); color: var(--navy); }
.btn-sm { font-size: var(--step-0); padding: 9px 20px; }

.more { color: var(--accent-strong); text-decoration: none; font-weight: 600; font-size: var(--step-0); }
.more:hover { text-decoration: underline; }
.more::after { content: " \203A"; }

/* ---------- hero ---------- */

.hero { position: relative; background: var(--navy); color: var(--navy-ink); overflow: hidden; }
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero .inner {
  position: relative; max-width: var(--shell); margin: 0 auto;
  padding: 108px var(--gutter) 96px; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  /* carries the type on the left, leaves the right third of the photo untouched */
  background:
    linear-gradient(to right, rgba(7, 55, 99, .92) 0%, rgba(7, 55, 99, .58) 38%, rgba(7, 55, 99, 0) 70%),
    linear-gradient(to top, rgba(7, 55, 99, .45) 0%, rgba(7, 55, 99, 0) 45%);
}
.hero .inner { z-index: 1; }
.hero h1 { font-size: var(--step-5); font-weight: 700; max-width: 17ch; }
.hero p { font-size: var(--step-2); max-width: 46ch; color: color-mix(in srgb, var(--navy-ink) 92%, transparent); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.pagehead { background: linear-gradient(to right, var(--tint), var(--surface)); color: var(--ink); border-bottom: 1px solid var(--accent-line); }
.pagehead .inner { max-width: var(--shell); margin: 0 auto; padding: 56px var(--gutter) 48px; }
.pagehead h1 { font-size: var(--step-5); font-weight: 700; color: var(--navy); }
.pagehead p { margin-top: 12px; max-width: 62ch; font-size: var(--step-2); color: var(--ink-2); }
.pagehead .eyebrow { color: var(--accent-strong) !important; }

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.alt { background: linear-gradient(to right, var(--tint), var(--surface)); }

.eyebrow {
  font-family: var(--font-text); text-transform: uppercase; letter-spacing: .12em;
  font-size: var(--step--1); font-weight: 700; color: var(--accent-strong); margin-bottom: 8px;
}
.section h2 { font-size: var(--step-4); font-weight: 300; color: var(--accent-strong); }
.section > .wrap > p.lede, .section-lede { margin-top: 12px; max-width: 68ch; color: var(--ink-2); font-size: var(--step-2); }

.prose { display: grid; gap: 16px; max-width: 68ch; margin-top: 20px; color: var(--ink-2); }
.prose h3 { font-size: var(--step-3); font-weight: 700; color: var(--ink); margin-top: 12px; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 22px; margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-2);
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { width: 100%; height: 190px; object-fit: cover; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: var(--step-3); font-weight: 700; color: var(--accent-strong); }
.card .sub { font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); color: var(--accent-strong); }
.card p { color: var(--ink-2); font-size: var(--step-0); }
.card .more { margin-top: auto; padding-top: 10px; }

/* ---------- split rows: media one side, content the other ---------- */

.split {
  display: grid; gap: 40px 48px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.split > figure { margin: 0; }
.split img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-md); box-shadow: var(--shadow-2);
}
.split .content { min-width: 0; }
.split h2 { font-size: var(--step-4); font-weight: 700; color: var(--accent-strong); }
.split h3 {
  font-family: var(--font-display); font-size: var(--step-3); font-weight: 700;
  color: var(--accent-strong); margin-top: 26px;
}
.split p { margin-top: 12px; color: var(--ink-2); max-width: 58ch; }
.split .btn { margin-top: 20px; }

/* aqua ticks, the way the live site marks its highlights */
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink); font-size: var(--step-1); }
.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px;
  background: var(--accent); border-radius: 3px;
  -webkit-mask: no-repeat center/12px url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 8.5l4 4 8-9" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  mask: no-repeat center/12px url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 8.5l4 4 8-9" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- pill ---------- */

.pill {
  align-self: flex-start;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--r-pill); margin-bottom: 4px;
}

/* ---------- highlights ---------- */

.facts { display: grid; gap: 10px; margin-top: 20px; padding: 0; list-style: none; }
.facts li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); font-size: var(--step-0); }
.facts li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.spec-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; margin-top: 28px;
}
.spec-strip div { background: var(--surface); padding: 14px 16px; }
.spec-strip dt { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.spec-strip dd { margin: 4px 0 0; font-family: var(--font-figure); font-variant-numeric: tabular-nums; font-size: var(--step-2); color: var(--ink); }

/* ---------- gallery ---------- */

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--r-md); }

/* ---------- faq ---------- */

.faq { margin-top: 28px; border-top: 1px solid var(--line); max-width: 74ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 16px 34px 16px 0; position: relative;
  font-weight: 600; color: var(--ink); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 13px;
  font-size: var(--step-3); font-weight: 400; color: var(--accent-strong); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--accent-strong); }
.faq .answer { padding: 0 34px 18px 0; color: var(--ink-2); font-size: var(--step-0); }

/* ---------- testimonials ---------- */

.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-md); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px;
}
.quote-card blockquote { margin: 0; color: var(--ink-2); font-size: var(--step-0); }
.quote-card footer { font-size: var(--step--1); color: var(--ink-3); }
.quote-card footer b { display: block; color: var(--ink); font-size: var(--step-0); font-weight: 700; }

/* ---------- forms ---------- */

.enquiry { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: 26px 26px 28px; margin-top: 28px; }
.fieldgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-2);
}
.field .req { color: var(--profit); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-text); font-size: var(--step-1); color: var(--ink);
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r-sm);
  padding: 10px 11px; min-height: 42px; outline: none;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input[type="date"], .field input[type="number"] { font-family: var(--font-figure); font-variant-numeric: tabular-nums; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { font-size: var(--step--1); color: var(--ink-3); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.form-note { font-size: var(--step--1); color: var(--ink-3); margin-top: 14px; max-width: 62ch; }

.notice {
  display: flex; gap: 10px; background: var(--warn-soft); color: var(--warn);
  border-left: 3px solid currentColor; padding: 12px 14px;
  font-size: var(--step-0); border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-top: 20px;
}
.notice b { font-weight: 700; }

/* ---------- cta band ---------- */

.cta-band { background: var(--navy); color: var(--navy-ink); }
.cta-band .inner {
  max-width: var(--measure); margin: 0 auto; padding: 56px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
}
.cta-band h2 { font-size: var(--step-4); font-weight: 300; color: var(--accent); }
.cta-band p { margin-top: 8px; max-width: 52ch; color: color-mix(in srgb, var(--navy-ink) 82%, transparent); }

/* ---------- footer ---------- */

.site-footer { background: var(--navy); color: color-mix(in srgb, var(--navy-ink) 76%, transparent); border-top: 1px solid var(--navy-2); }
.site-footer .inner {
  max-width: var(--shell); margin: 0 auto; padding: 48px var(--gutter) 34px;
  display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.site-footer h3 {
  font-family: var(--font-text); font-size: var(--step--1); text-transform: uppercase;
  letter-spacing: .12em; font-weight: 700; color: var(--accent); margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; font-size: var(--step-0); }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal {
  max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter) 34px;
  font-size: var(--step--1); color: color-mix(in srgb, var(--navy-ink) 58%, transparent);
}

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink); color: var(--ground); padding: 10px 18px; border-radius: var(--r-sm);
  font-size: var(--step-0); box-shadow: var(--shadow-3); max-width: 90vw; z-index: 30;
}
.toast[hidden] { display: none; }

@media (max-width: 760px) {
  .site-header .inner { gap: 10px 16px; }
  .site-nav { margin-left: 0; width: 100%; gap: 4px 16px; }
  .hero .inner { padding: 72px var(--gutter) 56px; min-height: 300px; }
  .section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media print {
  .site-header, .site-nav, .cta-band, .toast, .site-footer { display: none; }
  body { background: #fff; }
  .hero img.bg, .hero::after { display: none; }
}
