/* =========================================================
   COASO Risk Partners — site stylesheet
   Colors and fonts are defined once below in :root.
   Contrast notes (WCAG AA: 4.5:1 for text, 3:1 for large text):
     white on --green 5.3:1, on --green-hover 7.0:1, on --green-deep 8.0:1, on --footer-bg 9.9:1, on --banner-blue 6.8:1
     --green on white 5.3:1, on --green-tint 4.9:1, on --blue-tint 4.8:1
     --green-deep on white 8.0:1, on --green-tint 7.4:1, on --blue-tint 7.3:1
     --text on white 14.6:1, on either tint 13.3:1 or better; --slate on white 7.6:1, on either tint 6.9:1 or better
     --text-on-dark on --footer-bg 8.3:1
     Photo banners: a light green-to-blue tint over the whole photo, plus a soft green shade
       only behind the text block (fading out above, below and to either side). White text
       measures 4.5:1 or better and headings 3:1 or better (large text) over the lightest
       pixel behind each line of text, without counting the text shadow.
     --gold is decorative only (logo, lines, small accents); never text
   ========================================================= */
:root {
  --green: #1E7A52;         /* primary green: buttons, links, active menu underline, icons */
  --green-hover: #186643;   /* button hover: a slightly deeper green */
  --green-deep: #145C3D;    /* headings, menu text and labels on light backgrounds */
  --footer-bg: #0F4D33;     /* footer */
  --banner-blue: #1F5F8C;   /* blue end of the banner gradients (white text 6.8:1) */
  --photo-tint-green: rgba(46, 139, 94, 0.30);      /* light tint over the whole photo: mid-green on the left... */
  --photo-tint-mid: rgba(58, 154, 106, 0.22);
  --photo-tint-blue: rgba(150, 198, 235, 0.16);     /* ...to a soft light blue on the right */
  --photo-text-shade: rgba(18, 82, 55, 0.74);       /* behind intro text only (WCAG AA 4.5:1); keep at 0.74 or more */
  --photo-heading-shade: rgba(18, 82, 55, 0.60);    /* where only the heading reaches (large text, 3:1); keep at 0.60 or more */
  --green-tint: #EEF8F1;    /* very light green section backgrounds, top bar */
  --blue-tint: #EEF5FC;     /* very light blue section backgrounds */
  --border-green: #CFEBDA;  /* soft borders and dividers */
  --border-blue: #D6E8F7;
  --slate: #475569;         /* secondary text */
  --white: #FFFFFF;
  --gold: #C9A227;          /* sparing accent: logo, thin lines, hover underline */

  --text: #1E293B;
  --text-muted: var(--slate);
  --text-on-dark: #E2EEE7;
  --border: var(--border-green);
  --heading: var(--green-deep);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1180px;
  --shadow-sm: 0 1px 2px rgba(20, 92, 61, 0.06);
  --shadow: 0 1px 3px rgba(20, 92, 61, 0.06), 0 8px 24px rgba(20, 92, 61, 0.08);
  --shadow-lg: 0 4px 8px rgba(20, 92, 61, 0.06), 0 16px 40px rgba(20, 92, 61, 0.14);
  --header-h: 120px;       /* sticky header height; 104px on phones (see below) */
}
@media (max-width: 480px) { :root { --header-h: 104px; } }

[hidden] { display: none !important; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.08rem; }

/* Body text stays left-aligned (never justified), with a readable line length of about 65-75 characters */
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; text-wrap: pretty; }

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-deep); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.page-hero :focus-visible,
.cta-band :focus-visible,
.band-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 520px) { .container { padding: 0 1rem; } }

.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;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--green);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Top bar (phone and email, above the header) ---------- */
.top-bar {
  background: var(--green-tint);
  color: var(--green-deep);
  box-shadow: inset 0 -1px 0 var(--border-green);  /* divider drawn inside, so the bar keeps its height */
  font-size: 0.875rem;
  line-height: 1.4;
}
.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem 1.75rem;
  min-height: 38px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 500;
}
.top-bar a:hover { color: var(--green-deep); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.top-bar svg { width: 15px; height: 15px; flex: none; }
.top-bar-item { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; }
@media (max-width: 520px) {
  .top-bar-inner { justify-content: center; gap: 0.25rem 1.25rem; }
  .top-bar { font-size: 0.82rem; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-green);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
/* Home page: the header stays solid white over the hero photo (nothing shows through).
   main.js adds .is-solid once the page scrolls past the hero (or the menu opens), which adds the shadow. */
.site-header.header-over-hero { background: var(--white); }
.site-header.header-over-hero.is-solid,
.no-js .site-header.header-over-hero { background: var(--white); box-shadow: 0 4px 16px rgba(20, 92, 61, 0.12); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}
/* Header seal: 104px (88px on phones up to 480px wide), vertically centred in the header */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.site-header .brand:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 50%; }
.brand .seal { display: block; flex: none; width: 104px; height: 104px; }
@media (max-width: 480px) {
  .brand .seal { width: 88px; height: 88px; }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-deep);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block;
  position: relative;
  padding: 0.5rem 0.8rem;
  color: var(--green-deep);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.2rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav a:hover { color: var(--green-deep); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--green-deep); }
.primary-nav .nav-cta { margin-left: 0.75rem; }
.primary-nav .nav-cta a {
  background: var(--green);
  color: var(--white);
  padding: 0.6rem 1.15rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
.primary-nav .nav-cta a::after { display: none; }
.primary-nav .nav-cta a:hover { background: var(--green-hover); color: var(--white); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-green);
    box-shadow: 0 16px 32px rgba(20, 92, 61, 0.14);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }
  .primary-nav li { border-bottom: 1px solid var(--border-green); }
  .primary-nav li.nav-cta { border-bottom: 0; }
  .primary-nav a { padding: 0.9rem 0.25rem; font-size: 1.05rem; }
  .primary-nav a::after { left: 0.25rem; right: auto; width: 2.5rem; bottom: 0.45rem; }
  .primary-nav .nav-cta { margin: 1rem 0 0; }
  .primary-nav .nav-cta a { text-align: center; padding: 0.85rem 1rem; }
}
.primary-nav { margin-left: auto; }
@media (min-width: 961px) { .primary-nav a { white-space: nowrap; } }
/* Narrow desktops: tighten the menu so it fits on one line */
@media (min-width: 961px) and (max-width: 1179px) {
  .header-inner { gap: 0.75rem; }
  .primary-nav ul { gap: 0; }
  .primary-nav a { padding: 0.5rem 0.5rem; font-size: 0.92rem; }
  .primary-nav a::after { left: 0.5rem; right: 0.5rem; }
  .primary-nav .nav-cta { margin-left: 0.35rem; }
  .primary-nav .nav-cta a { padding: 0.55rem 0.8rem; }
}

/* Without JavaScript, always show the menu */
.no-js .nav-toggle { display: none; }
@media (max-width: 960px) {
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: 0.5rem; }
  .no-js .primary-nav { display: block; position: static; box-shadow: none; border: 0; width: 100%; }
  .no-js .primary-nav ul { padding: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 2px 8px rgba(20, 92, 61, 0.25); }
.btn-primary:hover { background: var(--green-hover); color: var(--white); }
.btn-outline { border-color: var(--green); color: var(--green-deep); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-light { background: var(--white); color: var(--green-deep); }
.btn-light:hover { background: var(--green-tint); color: var(--green-deep); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.85); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--green-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.9rem;
}
.hero .eyebrow,
.page-hero .eyebrow,
.band-dark .eyebrow,
.pillar-header .eyebrow,
.cta-band .eyebrow { color: var(--white); }

/* ---------- Hero and page banners ---------- */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 55%, var(--banner-blue) 100%);
}
/* Photo layer: <picture class="hero-media"> fills the section behind the text */
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-media img { object-fit: cover; object-position: center; }
/* Very light enhancement so the photos read clearly through the overlay */
.hero-media img { filter: brightness(1.05) contrast(1.05); }
/* Overlay, in two layers:
   ::before  a light mid-green to soft-blue tint over the whole photo.
   ::after   a soft green shade only behind the text block. It starts just left of the text
             (the text's left edge is max(24px, 50% - 566px)), stays strongest behind the
             intro text (about 780px wide), lighter where only the heading reaches, then fades
             out; the mask fades it out above and below the text (the banner's top and bottom
             padding), so the photo shows clearly around the text. */
.hero::before,
.page-hero-photo::before,
.hero::after,
.page-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero::before,
.page-hero-photo::before {
  background: linear-gradient(90deg, var(--photo-tint-green) 0%, var(--photo-tint-mid) 45%, var(--photo-tint-blue) 100%);
}
.hero::after,
.page-hero-photo::after {
  --text-left: max(24px, 50% - 566px);
  background: linear-gradient(90deg,
    rgba(18, 82, 55, 0) calc(var(--text-left) - 72px),
    var(--photo-text-shade) calc(var(--text-left) - 8px),
    var(--photo-text-shade) calc(var(--text-left) + 780px),
    var(--photo-heading-shade) calc(var(--text-left) + 800px),
    var(--photo-heading-shade) calc(var(--text-left) + 925px),
    rgba(18, 82, 55, 0) calc(var(--text-left) + 1010px));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 85px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 85px, #000 calc(100% - 80px), transparent 100%);
}
/* Soft shadow under all text on photos */
.hero h1, .hero p, .hero .eyebrow,
.page-hero-photo h1, .page-hero-photo p, .page-hero-photo .eyebrow { text-shadow: 0 1px 2px rgba(8, 40, 26, 0.45), 0 2px 12px rgba(8, 40, 26, 0.35); }
.hero .eyebrow,
.page-hero .eyebrow { color: var(--white); }

.hero { padding: 7.5rem 0 7rem; }
/* Home: pull the hero up under the see-through header */
html:not(.no-js) .hero-under-header {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(7.5rem + var(--header-h));
}
.hero h1 { color: var(--white); max-width: 22ch; margin-bottom: 0.5em; }
.hero .lead { font-size: 1.2rem; max-width: 62ch; color: var(--white); line-height: 1.7; }
.hero .btn-primary { box-shadow: 0 4px 14px rgba(8, 40, 26, 0.35); }

.page-hero { padding: 4.5rem 0 4rem; }
.page-hero-photo { padding: 6rem 0 5.5rem; }
.page-hero h1 { color: var(--white); margin-bottom: 0.4em; max-width: 26ch; }
.page-hero p { max-width: 68ch; font-size: 1.12rem; margin: 0; }
.page-hero a { color: var(--white); }

/* ---------- Photos beside content ---------- */
.split-media { align-items: center; }
.media-frame {
  position: relative;
  margin: 0;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  background: var(--blue-tint);
  border-radius: var(--radius);
  z-index: 0;
}
.band-tint .media-frame::before,
.band-muted .media-frame::before { background: var(--white); }
.media-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-bottom: 3px solid var(--gold);
}
.media-frame.ratio-4x3 img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .media-frame { margin-right: 1.25rem; }
}
.service-line-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
.service-line-intro .service-line-header { margin-bottom: 0; }
@media (max-width: 860px) {
  .service-line-intro { grid-template-columns: 1fr; gap: 2rem; }
  .service-line-intro .media-frame { max-width: 560px; }
}

/* ---------- Value pillars (under home hero) ---------- */
.value-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.value-strip ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.value-strip li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0;
  padding: 1.75rem 1.5rem;
}
.value-strip li + li { border-left: 1px solid var(--border); }
/* Desktop: the first and last pillars line up with the content edges above and below */
@media (min-width: 861px) {
  .value-strip li:first-child { padding-left: 0; }
  .value-strip li:last-child { padding-right: 0; }
}
.value-strip .icon { margin: 0; flex: none; }
.value-strip h2 { font-size: 1.05rem; margin: 0 0 0.2em; letter-spacing: -0.01em; }
.value-strip p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 860px) {
  .value-strip ul { grid-template-columns: 1fr; }
  .value-strip li { padding: 1.25rem 0; }
  .value-strip li + li { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-tight { padding: 2rem 0; }
/* Section backgrounds alternate white (.section), very light green (.band-tint) and very light blue (.band-muted) */
.band-muted { background: var(--blue-tint); --border: var(--border-blue); }
.band-tint { background: var(--green-tint); }
/* Services: the second green service line turns light blue, so the page alternates white, green, white, blue */
.service-line.band-tint ~ .service-line.band-tint { background: var(--blue-tint); --border: var(--border-blue); }
.band-dark { background: var(--footer-bg); color: var(--text-on-dark); }
.band-dark h2, .band-dark h3 { color: var(--white); }
.section-header { max-width: 740px; margin-bottom: 3rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.band-dark .section-header p { color: var(--text-on-dark); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3.75rem 0; }
  .hero { padding: 5rem 0 4.5rem; }
  html:not(.no-js) .hero-under-header { padding-top: calc(5rem + var(--header-h)); }
  .page-hero { padding: 3.5rem 0 3rem; }
  .page-hero-photo { padding: 4.5rem 0 4rem; }
}

/* Phones: a shorter banner with the photo shown clearly on top (very light green-to-blue tint)
   and the headline and text below it on the green-to-blue banner background.
   Tablets and desktops keep the photo behind the text (rules above). */
@media (max-width: 640px) {
  .hero,
  .page-hero-photo,
  html:not(.no-js) .hero-under-header { margin-top: 0; padding: 0 0 2.25rem; }
  .hero::before,
  .page-hero-photo::before,
  .hero::after,
  .page-hero-photo::after { display: none; }
  .hero-media {
    position: relative;
    display: block;
    z-index: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 2;
    max-height: 200px;
    margin-bottom: 1.5rem;
    overflow: hidden;
  }
  .hero-media img { z-index: 0; }
  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(30, 122, 82, 0.15), rgba(31, 95, 140, 0.15));
  }
  .hero h1, .hero p, .hero .eyebrow,
  .page-hero-photo h1, .page-hero-photo p, .page-hero-photo .eyebrow { text-shadow: none; }
  /* The banner background is green here, so the main button switches to white to stand out */
  .hero .btn-primary { background: var(--white); color: var(--green-deep); }
  .hero .btn-primary:hover { background: var(--green-tint); color: var(--green-deep); }
  /* The home header no longer sits over the photo on phones, so keep it solid */
  .site-header.header-over-hero { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--text-muted); }
.card .card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
/* Card grids: cards in a row share row tracks (subgrid), so icons, titles, text, list
   dividers and links line up across the row, and links and buttons sit on the bottom edge.
   Browsers without subgrid keep the flex layout above (equal heights, link pinned to the bottom). */
@supports (grid-template-rows: subgrid) {
  .grid > :is(.card, .placeholder) { display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .grid > :is(.card, .placeholder) > .card-link,
  .grid > :is(.card, .placeholder) > .btn,
  .grid > :is(.card, .placeholder) > .btn-row { align-self: end; justify-self: start; }
  .grid > :is(.card, .placeholder):has(> :nth-child(2):last-child) { grid-row: span 2; }
  .grid > :is(.card, .placeholder):has(> :nth-child(3):last-child) { grid-row: span 3; }
  .grid > :is(.card, .placeholder):has(> :nth-child(4):last-child) { grid-row: span 4; }
  .grid > :is(.card, .placeholder):has(> :nth-child(5):last-child) { grid-row: span 5; }
  .grid > :is(.card, .placeholder):has(> :nth-child(6):last-child) { grid-row: span 6; }
}
.card-accent,
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card-accent:hover,
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #A8D9BB; }

.icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-tint);
  color: var(--green);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  flex: none;
}
.icon svg { width: 24px; height: 24px; }
.icon-lg { width: 60px; height: 60px; }
.icon-lg svg { width: 30px; height: 30px; }
.band-tint .icon { background: var(--white); }
.band-tint .card .icon { background: var(--green-tint); }

/* Check list with green check icons */
.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7em;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.25em;
  top: calc((1lh - 1.25rem) / 2);  /* centered on the first line */
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--green-tint);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.45rem; top: 0.47em;
  top: calc((1lh - 1.25rem) / 2 + 0.22rem);
  width: 0.35rem; height: 0.62rem;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.band-tint .check-list li::before,
.card.band-tint .check-list li::before { background: var(--white); }
.band-dark .check-list li::before { background: rgba(255, 255, 255, 0.1); }
.band-dark .check-list li::after { border-color: var(--white); }
.check-list.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
}
@media (max-width: 560px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.feature {
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--green);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.feature p { color: var(--text-muted); margin: 0; }
.band-dark .feature p { color: var(--text-on-dark); }
.band-dark .feature { border-left-color: var(--gold); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.75rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 0.25em; }
.steps p { color: var(--text-muted); margin: 0; }

/* Chips (Who we serve) */
.chip-list {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  list-style: none; padding: 0; margin: 0;
}
.chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border-green);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-deep);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.chip-list li::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* ---------- Services page ---------- */
.service-nav {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  list-style: none; padding: 0; margin: 0;
}
.service-nav li { margin: 0; }
.service-nav a {
  display: block;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border-green);
  border-radius: 999px;
  text-decoration: none;
  color: var(--green-deep);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--white);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.service-nav a:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-tint); }
.service-jump { background: var(--blue-tint); border-bottom: 1px solid var(--border-blue); }

/* One full-width section per service line */
.service-line { scroll-margin-top: calc(var(--header-h) + 8px); }
.service-line-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 860px;
  margin-bottom: 3rem;
}
.service-line-header .icon { margin: 0.25rem 0 0; }
.service-line-header h2 { margin-bottom: 0.4em; }
.service-line-header .lead { font-size: 1.12rem; color: var(--text-muted); margin: 0; }
@media (max-width: 640px) { .service-line-header { grid-template-columns: 1fr; gap: 1rem; } }

.service-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.service-panel + .service-panel { margin-top: 1.5rem; }
.service-panel-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2.5rem;
  align-items: end;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.service-panel-head .eyebrow { margin-bottom: 0.5rem; }
.service-panel-head .intro { color: var(--text-muted); font-size: 1.05rem; margin: 0; max-width: 70ch; }
.service-panel-head .btn { white-space: nowrap; }
@media (max-width: 760px) {
  .service-panel { padding: 1.75rem 1.25rem; }
  .service-panel-head { grid-template-columns: minmax(0, 1fr); }
  /* Let long button labels wrap on narrow phones instead of widening the panel */
  .service-panel-head .btn { justify-self: start; white-space: normal; }
}
.service-block { scroll-margin-top: calc(var(--header-h) + 16px); }
.block-title { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 0.4em; }
.list-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 1rem;
}
/* Second labeled group of a split check list (for example, the staff augmentation roles) */
.check-list + .list-heading { margin-top: 1.75rem; }
.offering-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
}
.check-list + .offering-grid { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .offering-grid { grid-template-columns: 1fr; } }
.offering { margin: 0; }
.offering h3, .offering h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3em;
  letter-spacing: -0.005em;
}
.offering p { color: var(--text-muted); margin: 0; font-size: 1rem; }

.callout {
  background: var(--blue-tint);
  border: 1px solid var(--border-blue);
  border-left: 4px solid var(--green);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  color: var(--text);
}
.callout p:last-child { margin: 0; }
.service-panel .callout { margin-top: 1.75rem; }

/* ---------- Industries ---------- */
.industry-card h3 { font-size: 1.3rem; }
.industry-card .intro { color: var(--text-muted); }
.industry-card .list-heading { margin-top: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.industry-card .check-list { margin-bottom: 0; }
.industry-card { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Placeholders (content the owner must replace) ---------- */
.placeholder {
  border: 2px dashed #b45309;
  background: #fffbeb;
  color: #78350f;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.placeholder strong { color: #78350f; }
.placeholder h3 { color: #78350f; }
.placeholder-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #b45309;
  color: var(--white);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
  align-self: flex-start;
  justify-self: start;
}

/* ---------- Insights ---------- */
.article-card .meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.article-card .tag {
  display: inline-block;
  align-self: flex-start;
  justify-self: start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-tint);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.article-card h3 { font-size: 1.3rem; }
.article-card.placeholder { box-shadow: none; }
.article-card .read-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--green);
}
.article-card.placeholder .read-more { color: #78350f; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.75em; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.prose h3 { margin-top: 1.5em; }
.prose ul li::marker { color: var(--green); }
.prose-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  max-width: 820px;
}
@media (max-width: 640px) { .prose-card { padding: 1.75rem 1.25rem; } }
.article-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--green-tint);
  border: 1px solid var(--border-green);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
}
.article-cta p { font-size: 1.1rem; font-weight: 600; color: var(--green-deep); margin: 0 0 1.25rem; }
@media (max-width: 640px) { .article-cta { padding: 1.5rem 1.25rem; } }

/* Simple centered status pages (thank you, 404) */
.status-page { text-align: center; }
.status-page .prose { margin: 0 auto; }
.status-page p { margin-left: auto; margin-right: auto; }
.status-page .btn-row { justify-content: center; }
.status-page .icon { display: flex; margin-left: auto; margin-right: auto; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(ellipse 50% 100% at 100% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
  color: var(--white);
  padding: 5rem 0;
  border-top: 3px solid var(--gold);
}
.cta-band h2 { color: var(--white); max-width: 28ch; }
.cta-band p { max-width: 62ch; font-size: 1.1rem; }
.cta-band a:not(.btn) { color: var(--white); }

/* ---------- Forms ---------- */
/* White, so it stays distinct from the light-green pre-footer band right below it */
.contact-section { background: var(--white); }
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
@media (max-width: 640px) { .form-card { padding: 1.75rem 1.25rem; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
/* Fields side by side share row tracks: labels, controls, hints and errors line up across the row
   even when one label wraps to two lines */
@supports (grid-template-rows: subgrid) {
  /* Row spacing moves from the gap to a bottom margin, so a field's empty hint/error tracks add no space */
  .form-grid { row-gap: 0; margin-bottom: -1.25rem; }
  .form-grid > * { margin-bottom: 1.25rem; }
  .form-grid > .field { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .form-grid > .field > label { align-self: end; }
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}
.field .req { color: #b91c1c; }
.field .hint { font-weight: 400; color: var(--text-muted); font-size: 0.88rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  border: 1px solid #6F8579;
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 122, 82, 0.35); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b91c1c; }
.field-error { color: #b91c1c; font-size: 0.88rem; margin-top: 0.3rem; }
/* Keep a focused field's label visible below the sticky header (adds to the page's scroll-padding-top) */
.field input, .field select, .field textarea { scroll-margin-top: 2.5rem; }
.choice input, .consent input { scroll-margin-top: 3rem; }
.field, .choice-group { scroll-margin-top: 0.5rem; }
.consent,
.field label.consent { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
.consent > span { flex: 1 1 0; min-width: 0; }
.consent > .field-error { flex-basis: 100%; margin: 0 0 0 1.6rem; }  /* under the text, not the box */
.consent input { margin-top: 0.22rem; width: 1rem; height: 1rem; flex: none; accent-color: var(--green); }
.consent input:focus { box-shadow: none; outline: 3px solid var(--green); outline-offset: 2px; }
.form-note { font-size: 0.9rem; color: var(--text-muted); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.form-status.is-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ---------- Careers: "Join our talent network" (online application + email option) ---------- */
.apply-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}
@media (max-width: 960px) { .apply-options { grid-template-columns: 1fr; } }
.apply-option h3 { margin-top: 0; font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
/* Desktop: form on the left, email option on the right (the email option comes first in the HTML) */
.apply-options > .form-card { grid-column: 1; grid-row: 1; }
.apply-options > .apply-email { grid-column: 2; grid-row: 1; }
.apply-email {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 2.5rem 2rem 2rem; /* same top padding as the form card, so "Option 1" and "Option 2" line up */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}
.apply-email h3 { color: var(--white); }
.apply-email p { font-size: 1rem; }
.apply-email .btn-row { margin-top: 1.25rem; }
/* Phones and tablets: a compact email card above the form */
@media (max-width: 960px) {
  .apply-options > .form-card,
  .apply-options > .apply-email { grid-column: 1; grid-row: auto; }
  .apply-options { gap: 1.25rem; }
  .apply-email { position: static; padding: 1.25rem 1.5rem; }
  .apply-option .eyebrow { display: none; } /* "Option 1/2" labels only make sense side by side */
  .apply-email h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
  .apply-email p { margin-bottom: 0; }
  .apply-email .btn-row { margin-top: 1rem; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .apply-email { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1.5rem; }
  .apply-email h3,
  .apply-email p { grid-column: 1; }
  .apply-email .btn-row { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}
/* The form card sits on the dark band, so restore light-background colors inside it */
.cta-band .form-card { color: var(--text); }
.cta-band .form-card .eyebrow { color: var(--green-deep); }
.cta-band .form-card p { font-size: 1rem; max-width: none; }
.cta-band .form-card .form-note { font-size: 0.9rem; }
.cta-band .form-card a:not(.btn) { color: var(--green); }
.cta-band .form-card :focus-visible { outline-color: var(--green); }
.form-section { margin-top: 1.75rem; }
.form-section + .form-section { padding-top: 1.75rem; border-top: 1px solid var(--border); }
.form-section .list-heading { margin-top: 0; }
.field-hint { margin: 0.35rem 0 0; }
/* Checkbox groups ("select all that apply") */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 0.6rem; font-weight: 600; font-size: 0.95rem; color: var(--green-deep); }
.choice-group .hint { font-weight: 400; color: var(--text-muted); font-size: 0.88rem; }
.choice-subhead { margin: 0.75rem 0 0.45rem; font-size: 0.85rem; font-weight: 600; color: var(--slate); }
.choice-group legend + .choice-subhead { margin-top: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1.5rem; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; color: var(--text); cursor: pointer; }
.choice input { margin: 0.22rem 0 0; flex: none; width: 1rem; height: 1rem; accent-color: var(--green); }
.choice input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.choice-group.is-invalid legend { color: #b91c1c; }
/* Thank-you message after a successful application */
.apply-success { text-align: center; padding: 1.5rem 0 0.5rem; }
.apply-success:focus { outline: none; }
.apply-success .icon { margin-left: auto; margin-right: auto; }
.cta-band .apply-success p { max-width: 52ch; margin: 0 auto 1.5rem; font-size: 1.05rem; }

.contact-aside .card { margin-bottom: 1.25rem; padding: 1.75rem; }
.contact-aside .card h3 { display: flex; align-items: center; gap: 0.75rem; }
.contact-aside .card h3 .icon { margin: 0; width: 40px; height: 40px; }
.contact-aside .card h3 .icon svg { width: 20px; height: 20px; }
.contact-email,
.contact-phone { font-size: 1.1rem; font-weight: 600; word-break: break-word; }

/* ---------- Pre-footer call to action (every page) ---------- */
.prefooter-cta { background: var(--green-tint); border-top: 1px solid var(--border-green); padding: 3.5rem 0; }
.prefooter-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.prefooter-cta h2 { color: var(--green-deep); font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 0 0 0.5rem; }
.prefooter-cta p { margin: 0; max-width: 60ch; color: var(--text); }
.prefooter-cta .btn { flex: none; }
@media (max-width: 640px) {
  .prefooter-cta { padding: 2.75rem 0; }
  .prefooter-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-on-dark);
  padding: 2.25rem 0 1rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.site-footer svg { width: 15px; height: 15px; flex: none; }
/* Desktop (above 1024px): one row of four columns, all top-aligned.
   The brand column takes up to 40% of the row; the Services, Company and Contact
   columns are as wide as their content (so the email never wraps), and any
   spare width is shared out between the columns. */
.footer-grid {
  --footer-title-h: 2rem;     /* every column title sits in a row this tall */
  --footer-title-gap: 1rem;   /* space from the title row to the first item */
  --footer-link-gap: 0.75rem; /* space between links, in every column */
  display: grid;
  grid-template-columns: minmax(0, 40%) max-content max-content max-content;
  justify-content: space-between;
  gap: 2.5rem clamp(1.75rem, 2.6vw, 2.5rem);
  align-items: start;
}
/* Tablet (641px to 1024px): brand across the top, then three columns side by side */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, max-content); gap: 1.5rem 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Phone (640px and below): everything stacks */
@media (max-width: 640px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
/* Column titles: the three headings share one row height and spacing,
   so they sit on the same line and the first item under each starts on the same line */
.site-footer .footer-grid h2:not(.visually-hidden) {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: var(--footer-title-h);
  margin: 0 0 var(--footer-title-gap);
  line-height: 1.2;
}
/* Brand column: footer seal (92px) on the left, description to its right */
.footer-brand {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: start;
}
.footer-seal { display: block; grid-row: 1 / span 2; width: fit-content; margin: 0; border-radius: 50%; }
.footer-seal .seal { display: block; width: 92px; height: 92px; }
.footer-brand p, .footer-brand .footer-social { grid-column: 2; }
.footer-brand p { margin: 0; max-width: 44ch; }
/* Very narrow phones (360px and below): seal above the description */
@media (max-width: 360px) {
  .footer-brand { grid-template-columns: minmax(0, 1fr); }
  .footer-seal { grid-row: auto; margin: 0 0 var(--footer-title-gap); }
  .footer-brand p, .footer-brand .footer-social { grid-column: 1; }
}
.site-footer h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.footer-links { display: grid; gap: 0.35rem; justify-items: start; }
.site-footer .footer-links li { margin: 0; line-height: 1.5; }
.footer-links a { display: inline-block; }
.footer-social { margin-top: 1.5rem; }
/* Phone: each Services/Company link is a full 44px-tall tap target, stacked with no extra gap */
@media (max-width: 640px) {
  .footer-links { gap: 0; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Office cards ("Contact Us"); the highlighted card gets .is-current */
.office-cards { display: grid; gap: 0.85rem; }
.site-footer .office-card {
  display: flex; flex-direction: column; gap: var(--footer-link-gap);
  margin: 0;
  padding: 1rem 1.1rem;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}
.site-footer .office-card.is-current { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.45); box-shadow: inset 3px 0 0 var(--gold); }
.office-card h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  margin: 0;
  font-size: 0.98rem;
  color: var(--white);
}
.office-card a,
.office-line { display: inline-flex; align-items: center; gap: 0.5rem; word-break: break-word; font-size: 0.95rem; }
/* Bottom bar: copyright | legal links */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-copyright { text-align: left; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.5rem 1.5rem; }
.footer-legal { display: flex; gap: 1.25rem; }
.site-footer .footer-legal li { margin: 0; }
@media (max-width: 1024px) {
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .footer-copyright { text-align: center; justify-self: center; }
  .footer-meta { justify-content: center; }
}

/* ---------- Social icons (hidden until URLs are set in assets/js/main.js) ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.social-links li { margin: 0; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-deep);
  transition: background 0.15s ease, color 0.15s ease;
}
.social-links a:hover { background: var(--green); color: var(--white); }
.social-links svg { width: 18px; height: 18px; }
.site-footer .social-links a { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.site-footer .social-links a:hover { background: var(--white); color: var(--green-deep); text-decoration: none; }

/* ---------- Regulatory pages (U.S. Regulatory Expertise) ---------- */
.framework-jump { margin-bottom: 2.5rem; }
.prose .framework + .framework { margin-top: 2.25rem; padding-top: 2.25rem; border-top: 1px solid var(--border); }
.prose .framework h3 { margin-top: 0; }
.prose .framework h4 { margin: 1.1em 0 0.4em; font-size: 1rem; color: var(--green-deep); }
.prose h2.group-heading { margin-top: 2.5em; padding-top: 0.25em; }
.prose h2.group-heading:first-child { margin-top: 0; }
.review-note { margin-top: 2.5rem; }
.review-note .last-reviewed { margin: 0.75rem 0 0; font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Legal pages (Privacy Policy, Terms of Use) ---------- */
.legal-toc {
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--green-tint);
  border-radius: var(--radius);
}
.prose .legal-toc h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.legal-toc ol { margin: 0; padding-left: 1.5rem; columns: 2; column-gap: 2.5rem; }
.legal-toc li { break-inside: avoid; margin-bottom: 0.35rem; }
.legal-toc li::marker { color: var(--green-deep); }
@media (max-width: 640px) {
  .legal-toc { padding: 1.25rem; }
  .legal-toc ol { columns: 1; }
}
.prose address { font-style: normal; }

/* ---------- Fractional BSA Officer ---------- */
/* Home: compact light green band right under the hero */
.highlight-band {
  background: var(--green-tint);
  color: var(--text);
  box-shadow: inset 0 -1px 0 var(--border-green);
  border-top: 3px solid var(--gold);
  padding: 2rem 0;
}
.highlight-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; }
.highlight-band h2 { color: var(--green-deep); font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0 0 0.35rem; }
.highlight-band p { margin: 0; max-width: 70ch; }
.highlight-band .btn { flex: none; }
/* On the light band the button takes the outline style */
.highlight-band .btn-light { border-color: var(--green); color: var(--green-deep); background: transparent; }
.highlight-band .btn-light:hover { background: var(--green); color: var(--white); }
@media (max-width: 640px) {
  .highlight-band { padding: 1.75rem 0; }
  .highlight-band .btn { width: 100%; justify-content: center; }
}
/* White button on green banners (".page-hero a" would otherwise turn its text white) */
.page-hero .btn-light { color: var(--green-deep); text-shadow: none; }
/* Industries: one-line pointer to the fractional officer page */
.industry-card .industry-note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--text); font-weight: 600; }
/* Independence note */
.callout-gold { border-left-color: var(--gold); max-width: 860px; }
.callout-gold h2 { font-size: 1.1rem; color: var(--green-deep); margin: 0 0 0.4rem; }
/* Engagement paragraphs */
.engagement-points { display: grid; gap: 1.5rem; }
.engagement-points h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.engagement-points p { color: var(--text-muted); margin: 0; }
/* FAQ accordion (native details/summary) */
.faq-list { max-width: 860px; display: grid; gap: 0.85rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--green-deep);
  border-radius: var(--radius-sm);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 0.25rem;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item summary:hover { background: var(--green-tint); }
.faq-answer { padding: 0 1.5rem 1.25rem; }
.faq-answer p { color: var(--text-muted); margin: 0; }
.faq-answer p + p { margin-top: 0.75em; }
.cta-band .btn-row { margin-top: 1.5rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.small { font-size: 0.92rem; }
.lead-text { font-size: 1.15rem; }
.placeholder-inline {
  background: #fef3c7;
  color: #78350f;
  padding: 0 0.3rem;
  border-radius: 3px;
  outline: 1px dashed #b45309;
}
.split-form { grid-template-columns: 3fr 2fr; }
@media (max-width: 860px) { .split-form { grid-template-columns: 1fr; } }
