/* ==========================================================================
   Fairey Water Safety — Design System
   Deep navy/teal + off-white, pink accent used sparingly.
   Headlines: Fraunces (slab/serif, editorial confidence)
   Body: Inter (clean grotesk)
   ========================================================================== */

:root {
  /* ---- Color: core palette ---- */
  --navy-950: #0a1c2c;
  --navy-900: #0e2540;
  --navy-800: #123354;
  --navy-700: #1a4468;
  --navy-600: #245782;
  --off-white: #f6f3ec;
  --paper: #fbf9f4;
  --paper-dim: #efeae0;
  --ink: #101b26;
  --ink-soft: #3d4a56;
  --ink-faint: #5c6771;
  --line: rgba(16, 27, 38, 0.12);
  --line-on-dark: rgba(246, 243, 236, 0.16);

  /* ---- Color: accent ---- */
  --pink-500: #ee6fa0;
  --pink-600: #e1508a;
  --pink-400: #f394ba;
  /* Darker than pink-600 — reserved for text/icons set directly on light backgrounds, where pink-600 falls short of 4.5:1 */
  --pink-ink: #c22f6c;

  /* ---- Color: semantic ---- */
  --bg: var(--off-white);
  --surface: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --text-on-dark: var(--off-white);
  --text-on-dark-soft: rgba(246, 243, 236, 0.72);

  /* Accent text color: redefined to --pink-400 inside any dark/teal section
     so eyebrows, ghost links, and numbered labels stay readable regardless
     of which background they land on. */
  --accent-text: var(--pink-ink);
  /* Subtle border color for outline buttons: redefined alongside --accent-text
     inside dark/teal sections so borders stay visible against navy/teal. */
  --border-subtle: var(--line);
  /* Secondary/soft body text color: redefined inside dark/teal sections so
     ledes and body copy don't render as near-black text on navy. */
  --text-soft-current: var(--text-soft);

  /* ---- Type ---- */
  --font-head: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Layout ---- */
  --container: 1240px;
  --container-narrow: 860px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 4px;
  --radius-md: 8px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.45s;
  --dur-slow: 0.7s;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Clears the sticky header (and sticky services sub-nav, where present) when jumping to an anchor */
[id] { scroll-margin-top: 130px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }

/* Focus visibility — keyboard nav must remain clear despite custom controls */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--pink-600);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--pink-400); color: var(--navy-950); }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  /* Inherits color rather than hardcoding it, so headings automatically flip
     to the light color inside dark/teal sections instead of rendering as
     near-invisible dark-on-navy text. */
  color: inherit;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}

.h-display {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 480;
  font-variation-settings: "opsz" 40;
}

.h-xl { font-size: clamp(2.1rem, 3.6vw, 3.1rem); font-weight: 500; }
.h-lg { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 500; }
.h-md { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 600; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-soft-current);
  font-weight: 400;
}

.body-text { font-size: 1.05rem; color: var(--text-soft-current); }
.on-dark { color: var(--text-on-dark); --accent-text: var(--pink-400); --border-subtle: var(--line-on-dark); --text-soft-current: var(--text-on-dark-soft); }
.on-dark p { color: var(--text-soft-current); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-dark { background: var(--navy-950); color: var(--text-on-dark); --accent-text: var(--pink-400); --border-subtle: var(--line-on-dark); --text-soft-current: var(--text-on-dark-soft); }
.section-teal { background: var(--navy-700); color: var(--text-on-dark); --accent-text: var(--pink-400); --border-subtle: var(--line-on-dark); --text-soft-current: var(--text-on-dark-soft); }
.section-surface { background: var(--surface); }
/* For a section that would otherwise sit directly against another section of the
   same tone (surface-on-surface) with no visible seam between them. */
.section-alt { background: var(--bg); border-top: 1px solid var(--line); }

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 1.25rem); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn svg { width: 1em; height: 1em; transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--pink-500);
  color: var(--navy-950);
}
.btn--primary:hover { background: var(--pink-600); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(225, 80, 138, 0.55); }

.btn--outline {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px var(--border-subtle);
}
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px currentColor; transform: translateY(-2px); }

.btn--ghost {
  color: var(--accent-text);
  padding-inline: 0;
  font-weight: 600;
  border-bottom: 1.5px solid transparent;
  border-radius: 0;
  padding-bottom: 0.15rem;
}
.btn--ghost:hover { border-color: currentColor; }

/* ==========================================================================
   Site header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(10,28,44,0.35); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-950);
  flex-shrink: 0;
}

.brand__mark { height: 34px; width: auto; display: block; flex-shrink: 0; }
.brand__text { display: none; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.brand__sub { font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); display: block; }

@media (min-width: 640px) {
  .brand__text { display: flex; }
}

.nav-primary { display: none; align-items: center; gap: clamp(1.1rem, 2vw, 1.75rem); }

.nav-primary a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.3rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--pink-600);
  transition: right var(--dur-med) var(--ease-out-soft);
}
.nav-primary a:hover { color: var(--navy-950); }
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after { right: 0; }
.nav-primary a[aria-current="page"] { color: var(--navy-950); }

.nav-dropdown { position: relative; }
.nav-dropdown__trigger { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-dropdown__chevron { width: 13px; height: 13px; transition: transform var(--dur-fast) var(--ease); }
.nav-dropdown:hover .nav-dropdown__chevron,
.nav-dropdown:focus-within .nav-dropdown__chevron { transform: rotate(180deg); }

.nav-dropdown__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  margin-top: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -24px rgba(10, 28, 44, 0.3);
  padding: 0.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.15rem;
  min-width: 460px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 200;
}
/* Invisible hover bridge: the margin-top above creates a gap between the
   trigger and the panel. Without this, moving the cursor diagonally from
   the trigger toward the panel crosses a dead zone that isn't part of either
   element's hoverable box, closing the dropdown before the click can land. */
.nav-dropdown__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.9rem;
  height: 0.9rem;
}
.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__panel--narrow {
  grid-template-columns: 1fr;
  min-width: 200px;
}
.nav-dropdown__panel a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-dropdown__panel a:hover, .nav-dropdown__panel a:focus-visible { background: var(--off-white); color: var(--navy-950); }
.nav-dropdown__panel a.nav-dropdown__all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 0.3rem;
  padding-top: 0.85rem;
  color: var(--pink-ink);
  font-weight: 600;
}

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-actions .btn { padding: 0.7rem 1.4rem; font-size: 0.86rem; }
.header-actions a.tel { display: none; font-size: 0.88rem; font-weight: 600; color: var(--navy-900); }

.nav-toggle {
  width: 40px; height: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--navy-950); transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* This block must come after the base .nav-primary/.header-actions/.nav-toggle rules above —
   equal-specificity selectors resolve by source order, so declaring it earlier silently loses. */
@media (min-width: 980px) {
  .nav-primary { display: flex; }
  .header-actions a.tel { display: inline; }
  .nav-toggle { display: none; }
}

.nav-mobile {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out-soft);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-mobile.is-open { grid-template-rows: 1fr; }
.nav-mobile__inner { overflow: hidden; }
.nav-mobile ul { display: flex; flex-direction: column; padding: 0.5rem var(--gutter) 1.6rem; }
.nav-mobile a { display: block; padding: 0.85rem 0; font-size: 1.15rem; font-family: var(--font-head); border-bottom: 1px solid var(--line); }
.nav-mobile__contact { padding-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }

.nav-mobile__group > a { border-bottom: 1px solid var(--line); }
.nav-mobile__sublist { padding: 0 0 0.5rem 1rem; }
.nav-mobile__sublist a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.55rem 0;
  border-bottom: none;
}

@media (min-width: 980px) { .nav-mobile { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--navy-950);
  color: var(--text-on-dark);
  --accent-text: var(--pink-400);
  --border-subtle: var(--line-on-dark);
  --text-soft-current: var(--text-on-dark-soft);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.72;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,28,44,0.28) 0%, rgba(10,28,44,0.68) 70%, var(--navy-950) 100%),
    linear-gradient(100deg, rgba(10,28,44,0.7) 0%, rgba(10,28,44,0.26) 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(4.5rem, 12vw, 9rem) clamp(3.5rem, 8vw, 6rem);
}

/* Match the text measure used elsewhere (page-header h1/lede) instead of
   capping the whole hero block at a narrower width than the rest of the site. */
.hero h1 { margin-block: 1.1rem 1.3rem; max-width: 680px; }
.hero .lede { max-width: 620px; }

.hero__contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-on-dark);
  display: grid;
  gap: 0.9rem;
  font-size: 0.92rem;
}

@media (min-width: 640px) {
  .hero__contact { grid-template-columns: repeat(3, auto); gap: 2.5rem; }
}

.hero__contact div { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text-on-dark-soft); }
.hero__contact strong { display: block; color: var(--text-on-dark); font-weight: 500; }
.hero__contact svg { flex-shrink: 0; margin-top: 0.2rem; width: 16px; height: 16px; color: var(--pink-400); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }

/* ==========================================================================
   Page header (non-home pages)
   ========================================================================== */

.page-header {
  background: var(--navy-950);
  color: var(--text-on-dark);
  --accent-text: var(--pink-400);
  --border-subtle: var(--line-on-dark);
  --text-soft-current: var(--text-on-dark-soft);
  padding-block: clamp(4rem, 9vw, 6.5rem) clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238,111,160,0.16), transparent 70%);
}

.page-header h1 { margin-top: 0.9rem; max-width: 680px; }
.page-header .lede { margin-top: 1.1rem; max-width: 620px; }

.breadcrumbs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-on-dark-soft);
  margin-bottom: 1.75rem;
}
.breadcrumbs a { color: var(--text-on-dark-soft); transition: color var(--dur-fast) var(--ease); }
.breadcrumbs a:hover { color: var(--pink-400); }
.breadcrumbs__current { color: var(--text-on-dark); font-weight: 500; }
.breadcrumbs__sep { opacity: 0.45; }

/* ==========================================================================
   Numbered motif (process / commitments)
   ========================================================================== */

.numbered-list { display: flex; flex-direction: column; }

/* Static numbered card style (About commitments) */
.numbered-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 1.75rem;
  padding-block: 2.2rem;
}
.numbered-card__index {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--pink-ink);
  line-height: 1;
  font-variation-settings: "opsz" 40;
}
.numbered-card h3 { margin-bottom: 0.6rem; }
.numbered-card p { color: var(--text-soft); }

/* Accordion (Our Process) */
.accordion-item { border-top: 1px solid var(--line-on-dark); }
.accordion-item:last-child { border-bottom: 1px solid var(--line-on-dark); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.9rem;
  text-align: left;
}

.accordion-trigger__index {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--pink-400);
  font-weight: 500;
  width: 2.6ch;
  flex-shrink: 0;
}

.accordion-trigger__title {
  flex: 1;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
  color: var(--text-on-dark);
}

.accordion-trigger__icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.accordion-trigger__icon::before, .accordion-trigger__icon::after {
  content: "";
  position: absolute;
  background: var(--text-on-dark);
  transition: transform var(--dur-med) var(--ease-out-soft), opacity var(--dur-fast) var(--ease);
}
.accordion-trigger__icon::before { width: 12px; height: 1.5px; }
.accordion-trigger__icon::after { width: 1.5px; height: 12px; }

.accordion-item[data-open="true"] .accordion-trigger__icon { background: var(--pink-500); border-color: var(--pink-500); }
.accordion-item[data-open="true"] .accordion-trigger__icon::before,
.accordion-item[data-open="true"] .accordion-trigger__icon::after { background: var(--navy-950); }
.accordion-item[data-open="true"] .accordion-trigger__icon::after { transform: rotate(90deg); opacity: 0; }

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out-soft);
}
.accordion-item[data-open="true"] .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel__inner { overflow: hidden; }

.accordion-panel__content {
  padding-bottom: 2.4rem;
  display: grid;
  gap: 2rem;
  max-width: 900px;
}
@media (min-width: 760px) {
  .accordion-panel__content { grid-template-columns: 1.1fr 1fr; padding-left: calc(2.6ch + 1.5rem); }
}

/* FAQ variant: same accordion mechanics, no numbered index, single-column answer. */
.faq-list .accordion-trigger { gap: 1.25rem; }
.faq-list .accordion-panel__content { display: block; max-width: 720px; padding-left: 0; }
.faq-list .accordion-panel__content p { color: var(--text-on-dark-soft); line-height: 1.6; }

.accordion-panel__quote {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
  color: var(--pink-400);
  font-style: italic;
  line-height: 1.4;
}

.accordion-panel__list, .dot-list { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-panel__list li, .dot-list li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.96rem;
  color: var(--text-soft-current);
  line-height: 1.5;
}
.accordion-panel__list li::before, .dot-list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.55rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--pink-500);
}

/* ==========================================================================
   Cards / feature blocks
   ========================================================================== */

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 1px 0 var(--line);
}

.stat-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row--3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .stat-row--3 { grid-template-columns: repeat(3, 1fr); } }
.stat { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.stat__num { font-family: var(--font-head); font-size: clamp(2rem, 3vw, 2.6rem); color: var(--navy-900); font-weight: 500; }
.stat__label { font-size: 0.86rem; color: var(--text-soft); margin-top: 0.35rem; }

.service-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 1px 0 var(--line);
  transition: transform var(--dur-med) var(--ease-out-soft), box-shadow var(--dur-med) var(--ease-out-soft);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(10,28,44,0.25); }
.service-card__title {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.55; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 500;
  color: inherit;
  transition: box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.pill:hover { background: rgba(238, 111, 160, 0.08); box-shadow: inset 0 0 0 1.5px var(--pink-500); }
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-text);
  flex-shrink: 0;
}

/* ==========================================================================
   Services page
   ========================================================================== */

.services-subnav {
  position: sticky;
  top: 73px;
  z-index: 90;
  background: rgba(251, 249, 244, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.services-subnav__track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.75rem;
  scrollbar-width: none;
}
.services-subnav__track::-webkit-scrollbar { display: none; }
.services-subnav__track a {
  flex-shrink: 0;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.services-subnav__track a:hover { background: var(--off-white); color: var(--navy-950); }
.services-subnav__track a.is-active { background: var(--navy-950); color: var(--off-white); box-shadow: none; }

.service-block__head {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.service-block__num {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 500;
  color: var(--accent-text);
  flex-shrink: 0;
  line-height: 1;
}
.service-block__body { max-width: 820px; }
@media (min-width: 760px) {
  .service-block__body { padding-left: calc(2.1rem + 1.1rem); }
}
.service-block__quote {
  font-family: var(--font-head);
  font-weight: 450;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.35;
  font-variation-settings: "opsz" 40;
  margin-bottom: 1.1rem;
}
.service-block__body .dot-list { margin-top: 1.1rem; }
.service-block__meta { margin-top: 1.1rem; font-size: 0.92rem; color: var(--text-soft-current); }
.service-block__meta strong { color: inherit; font-weight: 600; }

.service-subblock {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-subtle);
}
.service-subblock h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }

/* Service block split layout — pairs each specialism's text with a photo
   instead of leaving the right half of the section empty. The image sticks
   in the viewport while the (often long) text column scrolls past it. */
.service-block__split { align-items: start; }
.service-block__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
@media (min-width: 900px) {
  .service-block__media { position: sticky; top: 140px; }
}
.service-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(238, 111, 160, 0.12);
  color: var(--pink-ink);
  font-size: 0.82rem;
  font-weight: 600;
}
.on-dark .trust-badge, .section-dark .trust-badge, .section-teal .trust-badge, .site-footer .trust-badge, .page-header .trust-badge, .hero .trust-badge {
  background: rgba(246, 243, 236, 0.1);
  color: var(--pink-400);
}
.trust-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

.wordmark-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0;
}
.wordmark-row span {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: inherit;
  padding-inline: 1rem;
  position: relative;
}
.wordmark-row span:first-child { padding-left: 0; }
.wordmark-row span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-text);
}

/* ==========================================================================
   Logo grid (partners)
   ========================================================================== */

/* Plain flex-wrap grid — no tile backgrounds, no dividing lines. Fixed item
   widths (rather than percentage flex-basis) let rows wrap naturally at any
   count, and justify-content:center centers each row — including a partial
   last row — without leaving empty trailing space. */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
}

.logo-grid__item {
  flex: 0 0 auto;
  width: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) { .logo-grid__item { width: 160px; } }
@media (min-width: 900px) { .logo-grid__item { width: 190px; } }

.logo-grid__item img {
  max-width: 100%;
  max-height: 92px;
  width: auto;
  object-fit: contain;
  transition: transform var(--dur-med) var(--ease-out-soft);
}
.logo-grid__item:hover img {
  transform: scale(1.08);
}

/* One-off: for a partner logo whose only available artwork is a white/reversed mark,
   give it its own dark badge so it stays visible against the plain grid. */
.logo-grid__item--dark {
  background: var(--navy-900);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
}
.logo-grid__item--dark img { max-height: 64px; }
.logo-grid__item--dark:hover img { transform: scale(1.08); }

.category-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.category-label__num { font-family: var(--font-head); color: var(--pink-ink); font-size: 1.05rem; }
.category-label h3 { font-size: 1.1rem; }

/* ==========================================================================
   Quote section
   ========================================================================== */

.quote-section {
  position: relative;
  background: var(--navy-950);
  color: var(--text-on-dark);
  overflow: hidden;
}
.quote-section__media { position: absolute; inset: 0; }
.quote-section__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.46; }
.quote-section__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,28,44,0.56), rgba(10,28,44,0.78));
}
.quote-section__content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(4.5rem, 10vw, 7rem);
}
.quote-section blockquote, .quote-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 450;
  line-height: 1.25;
  font-variation-settings: "opsz" 40;
  color: inherit;
}
.quote-section cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-400);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .form-grid--2col { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-900); }
.field--full { grid-column: 1 / -1; }

.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(20, 64, 95, 0.12);
}
.field textarea { resize: vertical; min-height: 140px; }

.form-note { font-size: 0.82rem; color: var(--ink-faint); }
.form-status { font-size: 0.92rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); display: none; }
.form-status.is-visible { display: block; }
.form-status--success { background: #e5f3e6; color: #1f5c26; }
.form-status--error { background: #fbe6e6; color: #7a1f1f; }

/* ==========================================================================
   Map
   ========================================================================== */

.map-embed {
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  filter: grayscale(0.25) contrast(1.05);
}
@media (min-width: 760px) { .map-embed { aspect-ratio: 21 / 9; } }

/* ==========================================================================
   Sticky mobile CTA
   ========================================================================== */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: flex;
  gap: 1px;
  background: var(--line);
  box-shadow: 0 -10px 28px -14px rgba(10, 28, 44, 0.35);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 760px) { .sticky-cta { display: none; } }

.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.sticky-cta a svg { width: 16px; height: 16px; flex-shrink: 0; }
.sticky-cta__call { background: var(--navy-950); color: var(--off-white); }
.sticky-cta__quote { background: var(--pink-500); color: var(--navy-950); }

/* Keeps the fixed bar from covering the last bit of page content on mobile. */
body.has-sticky-cta { padding-bottom: 58px; }
@media (min-width: 760px) { body.has-sticky-cta { padding-bottom: 0; } }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: var(--text-on-dark-soft);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  /* Always divided from whatever precedes it, regardless of that section's tone. */
  border-top: 1px solid var(--line-on-dark);
}

.footer-grid {
  display: grid;
  gap: 2.75rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-on-dark);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-brand img { width: min(200px, 100%); height: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 320px; font-size: 0.92rem; line-height: 1.6; }

.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-dark); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col .stack { gap: 0.75rem; font-size: 0.93rem; }
.footer-col a:hover { color: var(--pink-400); }

.footer-col address { font-style: normal; }

.social-row { display: flex; gap: 0.75rem; margin-top: 1.3rem; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.social-row a:hover { background: var(--pink-500); border-color: var(--pink-500); color: var(--navy-950); transform: translateY(-2px); }
.social-row svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: var(--pink-400); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out-soft), transform 0.8s var(--ease-out-soft);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Misc utilities
   ========================================================================== */

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.nowrap { white-space: nowrap; display: block; }
.mt-lg { margin-top: clamp(2.5rem, 5vw, 4rem); }
/* For the paragraph/list/button directly under a heading — mt-lg is for
   spacing between distinct blocks, not between a heading and its own copy. */
.mt-sm { margin-top: 0.9rem; }
.max-w-content { max-width: 680px; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 0; }
.divider--dark { background: var(--line-on-dark); }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--pink-500); color: var(--navy-950);
  padding: 0.8rem 1.2rem; z-index: 1000; font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 0.9rem; }
