/* ==========================================================================
   Affili.ph — site styles
   One stylesheet, no framework, no build step. Sections in reading order:
   tokens, reset, layout, type, buttons, header, hero, sections, cards,
   stats, form, footer, utilities, motion, print.
   ========================================================================== */

/* ---------- Fonts (self-hosted; Inter v20 is a variable font) ------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  /* brand */
  --navy-900: #0a1420;
  --navy-800: #0e1b2a;
  --navy-700: #14212b;
  --navy-600: #1c2c3c;
  --navy-500: #2a3d50;
  --red:       #bf0d3d;
  --red-600:   #d61047;
  --red-700:   #a30b34;
  --gold:      #f2c230;
  --blue:      #0032a0;

  /* neutrals */
  --ink:    #0f1c28;
  --slate:  #47566a;
  --muted:  #6b7b8f;
  --line:   #e3e8ef;
  --line-dark: rgba(255,255,255,.12);
  --mist:   #f5f7fa;
  --white:  #ffffff;

  /* type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --h1: clamp(2.25rem, 1.35rem + 3.6vw, 3.75rem);
  --h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --h4: 1.0625rem;
  --body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --small: 0.9375rem;
  --eyebrow: 0.8125rem;

  /* space */
  --gutter: clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);
  --section: clamp(3.5rem, 2.2rem + 5vw, 6.5rem);
  --max: 1200px;
  --narrow: 780px;

  /* effects */
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15,28,40,.06), 0 4px 12px rgba(15,28,40,.05);
  --shadow-md: 0 4px 10px rgba(15,28,40,.07), 0 16px 40px rgba(15,28,40,.09);
  --shadow-red: 0 8px 24px rgba(191,13,61,.32);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 74px;
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: var(--h1); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: var(--h2); font-weight: 800; }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); font-weight: 700; }
p  { margin: 0 0 1.1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
a { color: var(--red); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--red-600); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
strong { font-weight: 700; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

/* ---------- Skip link ---------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- Layout ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--narrow); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .62); }
.section--dark { background: var(--navy-800); color: rgba(255,255,255,.78); }
.section--darker { background: var(--navy-900); color: rgba(255,255,255,.78); }
.section--mist { background: var(--mist); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--darker h1, .section--darker h2, .section--darker h3, .section--darker h4 { color: #fff; }
.section--dark strong, .section--darker strong { color: #fff; }

.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
/* Seven service cards: four across, then three, rather than 3+3+1. */
@media (min-width: 1060px) {
  .grid--services { grid-template-columns: repeat(4, 1fr); }
  /* AffiliReach is the way in for most operators, so it gets the full height of both rows
     and the extra copy to fill it. Seven cards then leave no gap. */
  .grid--services .card--feature { grid-row: span 2; }
}
.card--feature .ticks li { font-size: .875rem; }
.card--feature .ticks { margin-bottom: 1rem; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-right { grid-template-columns: 5fr 6fr; } }

/* ---------- Type helpers ------------------------------------------------- */
.eyebrow {
  display: inline-block; font-size: var(--eyebrow); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: .9rem;
}
.section--dark .eyebrow, .section--darker .eyebrow, .hero .eyebrow { color: #ff5c85; }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--slate); }
.section--dark .lede, .section--darker .lede, .hero .lede { color: rgba(255,255,255,.8); }
.accent { color: var(--red); }
.hero .accent, .section--dark .accent, .section--darker .accent { color: #ff3d6b; }
.center { text-align: center; }
.section-head { max-width: 760px; margin-inline: auto; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); text-align: center; }
/* Only the last paragraph loses its margin. Blocks with a lede followed by body copy were
   running together into one slab of text. */
.section-head p { margin-bottom: 0; }
.section-head p + p { margin-top: .9em; }
.section-head--left { margin-inline: 0; text-align: left; }
/* For a heading that has to stay on one line at desktop widths. It still wraps on a phone,
   where a single line would be unreadably small. */
.section-head--wide { max-width: 1040px; }
@media (min-width: 900px) { .section-head--wide h2 { white-space: nowrap; } }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 700; font-size: .9375rem; letter-spacing: .01em;
  padding: .95em 1.7em; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; text-align: center; line-height: 1.2;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn svg { width: 1em; height: 1em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-600); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.34); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--lg { padding: 1.05em 2.1em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.btn-row--center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: var(--small); }
.link-arrow svg { width: .9em; height: .9em; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,20,32,.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-scrolled { background: rgba(10,20,32,.98); box-shadow: 0 6px 24px rgba(0,0,0,.28); }
.header__inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.header__logo { flex: none; display: flex; align-items: center; }
.header__logo img { width: 132px; height: auto; }
.header__nav { margin-left: auto; display: none; }
.header__nav ul { display: flex; align-items: center; gap: clamp(.6rem, .1rem + .9vw, 1.35rem); list-style: none; margin: 0; padding: 0; }
.header__nav li { margin: 0; }
.header__nav a {
  color: rgba(255,255,255,.82); font-size: .875rem; font-weight: 500; white-space: nowrap;
  padding: .4rem 0; position: relative;
}
.header__nav a:hover, .header__nav a:focus-visible { color: #fff; }
.header__nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.header__nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); border-radius: 2px;
}
.header__cta { display: none; flex: none; }
@media (min-width: 1080px) { .header__nav, .header__cta { display: block; } }
.header__cta .btn { padding: .7em 1.3em; font-size: .875rem; }

/* burger */
.burger {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: #fff; border-radius: 10px;
}
@media (min-width: 1080px) { .burger { display: none; } }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .22s var(--ease), opacity .18s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .22s var(--ease), top .22s var(--ease); }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--navy-900); padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.drawer ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.drawer li { margin: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer a { display: block; padding: .95rem 0; color: #fff; font-size: 1.0625rem; font-weight: 600; }
.drawer a[aria-current="page"] { color: #ff5c85; }
.drawer .btn { margin-top: .5rem; }
.drawer__contact { margin-top: 2rem; font-size: var(--small); color: rgba(255,255,255,.6); }
.drawer__contact a { display: inline; padding: 0; font-size: inherit; font-weight: 600; color: #ff5c85; }
body.is-locked { overflow: hidden; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; color: rgba(255,255,255,.8);
  background: var(--navy-900);
  padding-block: clamp(3.25rem, 2rem + 6vw, 6.5rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(191,13,61,.20), transparent 58%),
    linear-gradient(180deg, rgba(10,20,32,.72) 0%, rgba(10,20,32,.86) 55%, var(--navy-900) 100%);
}
.hero__inner { text-align: center; max-width: 940px; margin-inline: auto; }
.hero > .wrap > .hero__inner { padding-inline: 0; }
.hero h1 { color: #fff; margin-bottom: .55em; text-wrap: balance; }
.hero .lede { max-width: 700px; margin-inline: auto; margin-bottom: 1.9rem; }
.hero .btn-row { justify-content: center; }
.hero--page { padding-block: clamp(2.75rem, 2rem + 4vw, 5rem); }
.hero--page .hero__inner { max-width: 860px; }
.hero--page h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }

/* trust line under the hero CTAs */
.trustline {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center;
  margin-top: 2rem; font-size: var(--small); color: rgba(255,255,255,.62);
}
.trustline span { display: inline-flex; align-items: center; gap: .45em; }
.trustline svg { width: 1em; height: 1em; color: var(--gold); flex: none; }

.hero__awards { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, .5rem + 2.4vw, 2.75rem); align-items: center; justify-content: center; margin-top: 2.25rem; }
.hero__awards img { height: clamp(44px, 34px + 2vw, 62px); width: auto; opacity: .95; }

/* breadcrumb */
.crumbs { font-size: .8125rem; color: rgba(255,255,255,.55); margin-bottom: 1.1rem; }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: #fff; }
.crumbs span { padding-inline: .45em; }

/* ---------- Stat strip --------------------------------------------------- */
.stats { display: grid; gap: 1.25rem .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.stat { text-align: center; padding: 1rem .25rem; min-width: 0; }
.stat__n {
  display: block; font-weight: 800; letter-spacing: -.03em; color: var(--red);
  line-height: 1.1; font-variant-numeric: tabular-nums;
  /* Fluid, because 2,186,347,915 is thirteen characters that cannot wrap. */
  font-size: clamp(1.0625rem, 3.1vw, 2.15rem);
}
@media (min-width: 700px) { .stat__n { font-size: clamp(1.25rem, 1.9vw, 2.15rem); } }
/* The hero strip carries the longest figure (thirteen characters) across five columns,
   so it is capped tighter than the two and three column strips elsewhere. */
.stats--hero .stat__n { font-size: clamp(1.0625rem, 2.05vw, 1.75rem); }
.section--dark .stat__n, .section--darker .stat__n, .hero .stat__n { color: #fff; }
.stat__l { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: .45rem; }
.section--dark .stat__l, .section--darker .stat__l, .hero .stat__l { color: rgba(255,255,255,.58); }
.stats--hero { margin-top: 2.75rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.75rem; }

/* ---------- Client logo row ---------------------------------------------- */
.clients { padding-block: clamp(2rem, 1.4rem + 2vw, 3rem); background: #fff; border-bottom: 1px solid var(--line); }
.clients__label { text-align: center; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; }
.clients__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.25rem, .5rem + 2vw, 2.25rem); }
.clients__row img { height: clamp(28px, 22px + 1.3vw, 40px); width: auto; opacity: .78; filter: grayscale(1); transition: opacity .2s var(--ease), filter .2s var(--ease); }
/* Equal cells with the logo scaled to fit means the row can never wrap unevenly, however
   wide the widest logo is at a given viewport: eight across on desktop, four and four on a
   tablet. Below 600px the flex row above takes over and centres whatever fits. */
@media (min-width: 600px) {
  .clients__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, -.4rem + 2vw, 1.75rem) clamp(.5rem, -.4rem + 1.6vw, 1.5rem); }
  .clients__row img {
    height: auto; width: auto;
    max-height: clamp(28px, 22px + 1.3vw, 40px);
    max-width: 100%;
    justify-self: center;
  }
}
@media (min-width: 860px) {
  .clients__row { grid-template-columns: repeat(8, 1fr); }
}
.clients__row img:hover { opacity: 1; filter: none; }
.section--dark .clients__row img, .section--darker .clients__row img { filter: grayscale(1) brightness(2.4); opacity: .7; }

/* Logo panel: a white card so dark artwork reads properly inside a dark section. */
.logo-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem) clamp(1.25rem, .9rem + 1.4vw, 2.25rem);
}
.section--dark .logo-panel .clients__row img,
.section--darker .logo-panel .clients__row img { filter: grayscale(1); opacity: .78; }
.section--dark .logo-panel .clients__row img:hover,
.section--darker .logo-panel .clients__row img:hover { filter: none; opacity: 1; }

/* ---------- Cards -------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1.1rem + .8vw, 2rem);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  position: relative; height: 100%;
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: var(--small); margin-bottom: 0; }
a.card, .card--link { display: flex; flex-direction: column; }
a.card:hover, .card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(191,13,61,.35); }
a.card .link-arrow { margin-top: auto; padding-top: 1.1rem; }

.card--dark { background: rgba(255,255,255,.04); border-color: var(--line-dark); color: rgba(255,255,255,.72); }
.card--dark:hover { background: rgba(255,255,255,.07); border-color: rgba(255,92,133,.45); }

.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(191,13,61,.09); color: var(--red); margin-bottom: 1.1rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card--dark .card__icon { background: rgba(255,92,133,.14); color: #ff5c85; }

/* numbered reason cards */
.reason { display: flex; gap: 1.1rem; }
.reason__n {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .9375rem; color: var(--red); background: rgba(191,13,61,.09);
}
.section--dark .reason__n, .section--darker .reason__n { color: #ff5c85; background: rgba(255,92,133,.14); }
.reason h3 { font-size: 1.0625rem; margin-bottom: .35rem; }
.reason p { font-size: var(--small); margin: 0; }

/* feature list with ticks */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; font-size: var(--small); }
.ticks svg { flex: none; width: 1.15em; height: 1.15em; margin-top: .18em; color: var(--red); }
.section--dark .ticks svg, .section--darker .ticks svg { color: #ff5c85; }
.ticks--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: .7rem 1.75rem; }

/* Checklist: the section level version of a tick list. The plain ticks below are for lists
   inside a card, where a tile would nest a box in a box. These tiles break up a long run of
   prose and give each point its own weight, on light and dark sections alike. */
.checklist {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(.7rem, .55rem + .5vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.checklist li {
  display: flex; gap: .85rem; align-items: flex-start; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(.95rem, .8rem + .4vw, 1.2rem) clamp(1rem, .85rem + .5vw, 1.35rem);
  font-size: var(--small); line-height: 1.5; color: var(--slate);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.checklist li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(191,13,61,.3); }
/* For a checklist inside one half of a split, where the full width minimum would leave a
   single stacked column. */
.checklist--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.checklist__icon {
  flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(191,13,61,.09); color: var(--red);
}
.checklist__icon svg { width: 15px; height: 15px; }
.section--dark .checklist li, .section--darker .checklist li {
  background: rgba(255,255,255,.04); border-color: var(--line-dark); color: rgba(255,255,255,.75); box-shadow: none;
}
.section--dark .checklist li:hover, .section--darker .checklist li:hover { background: rgba(255,255,255,.07); border-color: rgba(255,92,133,.45); }
.section--dark .checklist__icon, .section--darker .checklist__icon { background: rgba(255,92,133,.14); color: #ff5c85; }

/* pill list */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pills li { margin: 0; font-size: .8125rem; font-weight: 600; padding: .4em .9em; border-radius: var(--radius-pill); background: var(--mist); color: var(--slate); border: 1px solid var(--line); }
.section--dark .pills li, .section--darker .pills li { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: rgba(255,255,255,.78); }

/* media object with rounded image */
.shot { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.shot--plain { box-shadow: none; }

/* ---------- Service nav (sibling pages) ---------------------------------- */
.svc-nav { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.svc-nav a {
  font-size: .875rem; font-weight: 600; padding: .55em 1.1em; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--slate); background: #fff;
}
.svc-nav a:hover { border-color: var(--red); color: var(--red); }
.svc-nav a[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- CTA bands ---------------------------------------------------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900); color: rgba(255,255,255,.8);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta-band::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,20,32,.94) 0%, rgba(10,20,32,.78) 55%, rgba(191,13,61,.42) 100%);
}
.cta-band h1, .cta-band h2, .cta-band h3 { color: #fff; }
.cta-band h2 { margin-bottom: .4em; }
.cta-band .lede { color: rgba(255,255,255,.82); }
.cta-band__aside p { color: rgba(255,255,255,.74); }
.cta-band .lede { margin-bottom: 1.75rem; }
.cta-band__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 3fr 2fr; } }
.cta-band__aside { display: flex; align-items: center; gap: 1rem; }
.cta-band__aside img { width: 62px; height: auto; flex: none; }
.cta-band__aside p { font-size: var(--small); margin: 0; }

/* inline mid-page CTA */
.cta-inline {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--mist);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); display: grid; gap: 1.25rem; align-items: center;
}
@media (min-width: 820px) { .cta-inline { grid-template-columns: 1fr auto; gap: 2rem; } }
.cta-inline h3 { margin-bottom: .3rem; }
.cta-inline p { margin: 0; font-size: var(--small); }
.section--dark .cta-inline, .section--darker .cta-inline { background: rgba(255,255,255,.05); border-color: var(--line-dark); }

/* ---------- Form --------------------------------------------------------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: .45rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .85em 1em; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2347566a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.75rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(191,13,61,.14); }
.field input::placeholder, .field textarea::placeholder { color: #9aa7b6; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--red); }
.field__err { display: block; font-size: .8125rem; color: var(--red); margin-top: .35rem; font-weight: 600; }
.form-note { font-size: .8125rem; color: var(--muted); margin-top: .9rem; }
/* The outreach spam notice. Set apart and a shade stronger than the fine print above it,
   because it only deters anyone if it actually gets read. */
.form-note--warn {
  margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line);
  color: var(--slate); font-weight: 500;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: 10px; padding: .9rem 1.1rem; font-size: var(--small); font-weight: 600; margin-bottom: 1.25rem; }
.form-alert--err { background: #fdeaef; color: var(--red-700); border: 1px solid #f6c9d5; }
.form-alert--ok { background: #e9f7ef; color: #17663a; border: 1px solid #bfe6cf; }

/* what happens next */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.steps li { display: flex; gap: 1rem; margin: 0; }
.steps__n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8125rem; }
.steps h3 { font-size: 1.0625rem; margin-bottom: .15rem; }
.steps p { font-size: var(--small); margin: 0; }

/* ---------- Confirmation panel ------------------------------------------- */
/* Shown once, after a successful submission, so there is no doubt the form sent.
   Green rather than the brand red, because red reads as an error next to a form. */
.confirm {
  display: flex; gap: clamp(1rem, .8rem + .6vw, 1.35rem); align-items: flex-start;
  background: #eefaf2; border: 1px solid #bfe6cf; border-left: 4px solid #17663a;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.1vw, 1.85rem) clamp(1.25rem, 1rem + 1.1vw, 2rem);
}
.confirm__icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #17663a; color: #fff;
}
.confirm__icon svg { width: 22px; height: 22px; stroke-width: 2.6; }
.confirm h2 { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); color: #10432a; margin-bottom: .35rem; }
.confirm p { margin: 0; font-size: var(--small); color: #2c5c42; }
.confirm strong { color: #10432a; }

/* ---------- Contact cards ------------------------------------------------ */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; margin: 0; }
.contact-list__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(191,13,61,.09); color: var(--red); }
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list h3 { font-size: 1.0625rem; margin-bottom: .1rem; }
.contact-list p { font-size: var(--small); margin: 0; }
.section--dark .contact-list__icon, .section--darker .contact-list__icon { background: rgba(255,92,133,.14); color: #ff5c85; }

/* ---------- Team --------------------------------------------------------- */
.person { text-align: center; }
.person__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: .9rem; background: var(--mist); aspect-ratio: 44 / 52; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__li {
  position: absolute; right: .6rem; bottom: .6rem; width: 30px; height: 30px; border-radius: 8px;
  background: var(--red); color: #fff; display: grid; place-items: center;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.person__li:hover { background: var(--red-600); color: #fff; transform: translateY(-2px); }
.person__li svg { width: 15px; height: 15px; }
.person h3 { font-size: 1.0625rem; margin-bottom: .05rem; }
.person p { font-size: var(--small); color: var(--red); font-weight: 600; margin: 0; }

/* ---------- Prose (legal pages) ------------------------------------------ */
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-top: 2.25rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .55em; }

/* ---------- Footer ------------------------------------------------------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.62); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem) 0; font-size: var(--small); }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; }
.footer__top { display: grid; gap: 2.25rem; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; } }
.footer__logo img { width: 150px; margin-bottom: 1.1rem; }
.footer h3 { color: #fff; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .6rem; }
.footer__badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, .75rem + 2.5vw, 3rem); margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.09); }
.footer__badges img { height: clamp(38px, 30px + 1.75vw, 53px); width: auto; opacity: .9; }
.footer__badges img.is-seal { height: clamp(65px, 50px + 3vw, 95px); border-radius: 6px; opacity: 1; }
.footer__bottom { text-align: center; margin-top: 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.09); font-size: .8125rem; }
.social { display: flex; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.footer__col--cta { display: flex; flex-direction: column; align-items: flex-start; }
.footer__col--cta .social { margin-top: auto; padding-top: 1.5rem; }
.social li { margin: 0; }
.social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background-color .18s var(--ease), transform .18s var(--ease); }
.social a:hover { background: var(--red); transform: translateY(-2px); }
.social svg { width: 15px; height: 15px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }

/* ---------- reCAPTCHA ----------------------------------------------------- */
/* The v3 badge is hidden, which Google permits only when the required disclosure is shown
   instead. That text is printed under the submit button in partials/form.php. Without it,
   the badge would also sit on top of the sticky mobile call to action. */
.grecaptcha-badge { visibility: hidden; }

/* ---------- Sticky mobile CTA -------------------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(10,20,32,.97); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  transform: translateY(110%); transition: transform .28s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta p { margin: 0; font-size: .8125rem; color: rgba(255,255,255,.72); font-weight: 600; line-height: 1.35; }
.sticky-cta .btn { padding: .72em 1.25em; font-size: .875rem; flex: none; }
@media (min-width: 820px) { .sticky-cta { display: none; } }
@media (max-width: 819px) { body { padding-bottom: 0; } body.has-sticky-cta { padding-bottom: 72px; } }

/* ---------- Motion ------------------------------------------------------- */
/* The hidden starting state only applies once the inline script in <head> has set
   .js-reveal on <html>. If JavaScript never runs, every .reveal stays visible. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover, a.card:hover, .card--link:hover { transform: none; }
}

/* ---------- Utilities ---------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }

/* ---------- Print -------------------------------------------------------- */
@media print {
  .header, .drawer, .sticky-cta, .cta-band, .btn { display: none !important; }
  body { color: #000; }
  .section--dark, .section--darker, .hero, .footer { background: #fff !important; color: #000 !important; }
}

/* ---------- Header submenu ----------------------------------------------- */
.header__nav .has-sub { position: relative; }
.header__nav .caret { width: .7em; height: .7em; margin-left: .25em; vertical-align: -1px; display: inline-block; transition: transform .18s var(--ease); }
.header__nav .has-sub:hover .caret, .header__nav .has-sub.is-open .caret { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 268px; padding: .5rem; border-radius: var(--radius);
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.header__nav .has-sub::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.header__nav .has-sub:hover .submenu,
.header__nav .has-sub:focus-within .submenu,
.header__nav .has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a { display: block; padding: .65rem .85rem; border-radius: 9px; }
.submenu a:hover, .submenu a:focus-visible { background: rgba(255,255,255,.07); }
.submenu strong { display: block; color: #fff; font-size: .9375rem; font-weight: 600; }
.submenu span { display: block; font-size: .8125rem; color: rgba(255,255,255,.55); }
.submenu a[aria-current="page"] strong { color: #ff5c85; }

