/* ==========================================================================
   EventMedix — site.css
   A single hand-written stylesheet. No framework, no CDN, no build step.
   Sections: 1 tokens · 2 reset · 3 layout · 4 typography · 5 buttons
             6 header/nav · 7 hero · 8 components · 9 forms · 10 footer
             11 utilities · 12 motion & print
   ========================================================================== */

/* ------------------------------------------------------------------ 1. tokens */
:root {
  /* Brand colours sampled from the EventMedix logo artwork. */
  --blue:        #1863AE;
  --blue-600:    #14559A;
  --blue-700:    #0F4780;
  --blue-050:    #EEF4FB;
  --red:         #A2292E;
  --red-600:     #8C2126;
  --red-700:     #741A1F;
  --red-050:     #FBEFEF;

  --navy:        #0B1E36;
  --navy-2:      #102B4C;
  --navy-3:      #17395F;

  --ink:         #14202E;
  --body:        #4B5766;
  --muted:       #6B7787;
  --line:        #E3E8EF;
  --line-2:      #EEF1F6;
  --bg:          #FFFFFF;
  --bg-alt:      #F5F7FA;

  --radius:      14px;
  --radius-sm:   9px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 2px rgba(11,30,54,.06), 0 2px 6px rgba(11,30,54,.05);
  --shadow:      0 2px 4px rgba(11,30,54,.05), 0 12px 28px -10px rgba(11,30,54,.16);
  --shadow-lg:   0 4px 8px rgba(11,30,54,.06), 0 28px 56px -18px rgba(11,30,54,.28);

  --wrap:        1180px;
  --gutter:      clamp(1.15rem, 4vw, 2.5rem);
  --sect-y:      clamp(3.5rem, 7.5vw, 6.25rem);

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

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------- 2. reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  /* The closed mobile drawer sits just off the right edge and would otherwise
     widen the document. `clip` kills the sideways scroll without breaking
     position: sticky the way overflow-x: hidden does. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

img, picture, svg, video { max-width: 100%; }
img { height: auto; display: block; border: 0; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  color: var(--ink);
  line-height: 1.14;
  font-weight: 750;
  letter-spacing: -.019em;
}

p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
p:last-child, ul:last-child, li:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

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

table { border-collapse: collapse; width: 100%; }

.skip {
  position: fixed; inset-inline-start: 1rem; top: -100px; z-index: 999;
  background: var(--red); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 8px 8px; font-weight: 650; transition: top .2s;
}
.skip:focus { top: 0; color: #fff; text-decoration: none; }

/* ------------------------------------------------------------------ 3. layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.sect { padding-block: var(--sect-y); }
.sect--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
/* Holds the trust strip, which is pulled up over the hero — it needs no top
   padding of its own, and only a little below before the next section. */
.sect--pull { padding-top: 0; padding-bottom: clamp(.5rem, 1.5vw, 1.25rem); }
/* An intro heading whose content section follows immediately. */
.sect--flush-b { padding-bottom: 0; }
.sect--alt   { background: var(--bg-alt); }
.sect--navy  { background: var(--navy); color: #C3D0E0; }
.sect--navy h2, .sect--navy h3, .sect--navy h4 { color: #fff; }
.sect--line-top { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* -------------------------------------------------------------- 4. typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1rem;
  font-size: .795rem; font-weight: 750; letter-spacing: .13em;
  text-transform: uppercase; color: var(--red);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px;
}
.sect--navy .eyebrow { color: #F0A9AC; }
.sect--navy .eyebrow::before { background: #F0A9AC; }
.eyebrow--center { justify-content: center; }

.h1 { font-size: clamp(2.15rem, 1.35rem + 3.5vw, 3.9rem); }
.h2 { font-size: clamp(1.72rem, 1.2rem + 2.1vw, 2.65rem); }
.h3 { font-size: clamp(1.22rem, 1.06rem + .7vw, 1.5rem); }
.h4 { font-size: 1.08rem; }

.lede {
  font-size: clamp(1.06rem, 1rem + .38vw, 1.25rem);
  line-height: 1.62; color: var(--body);
}
.sect--navy .lede { color: #BCCBDD; }

.sect-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sect-head--center { margin-inline: auto; text-align: center; }
.sect-head p:last-child { margin-bottom: 0; }

.prose h3 { margin-top: 2rem; }
.prose h3:first-child { margin-top: 0; }

/* ----------------------------------------------------------------- 5. buttons */
.btn {
  --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.5rem;
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2;
  letter-spacing: -.005em;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background-color .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease);
}
.btn:hover { text-decoration: none; color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--red); box-shadow: 0 8px 20px -8px rgba(162,41,46,.75); }
.btn--primary:hover { --btn-bg: var(--red-600); box-shadow: 0 12px 26px -8px rgba(162,41,46,.85); }

.btn--blue { --btn-bg: var(--blue); box-shadow: 0 8px 20px -8px rgba(24,99,174,.7); }
.btn--blue:hover { --btn-bg: var(--blue-600); }

.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover { --btn-bd: var(--blue); --btn-fg: var(--blue-700); }

.btn--outline-light {
  --btn-bg: rgba(255,255,255,.06); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45);
}
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.16); --btn-bd: #fff; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent; }
.btn--ghost:hover { --btn-fg: var(--red); }

.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.06rem; }
.btn--block { width: 100%; }

.link-more {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; color: var(--blue-600);
}
.link-more:hover { color: var(--red); text-decoration: none; }
.link-more .ico { transition: transform .18s var(--ease); }
.link-more:hover .ico { transform: translateX(4px); }

/* ------------------------------------------------------------- 6. header / nav */
.ico { width: 22px; height: 22px; flex: none; }
.ico--xs { width: 15px; height: 15px; }
.ico--sm { width: 18px; height: 18px; }
.ico--lg { width: 28px; height: 28px; }

.utility {
  background: var(--navy);
  color: #A9BBD0;
  font-size: .82rem;
}
.utility__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; flex-wrap: wrap;
}
.utility p { margin: 0; display: flex; align-items: center; gap: .45rem; }
.utility__links { gap: 1.4rem; }
.utility a {
  color: #C9D6E6; display: inline-flex; align-items: center; gap: .4rem;
  /* Keeps the tap target at 24px+ without changing the bar's height. */
  padding-block: .28rem;
  transition: color .15s;
}
.utility a:hover { color: #fff; text-decoration: none; }
.utility__phone { font-weight: 700; }
.utility .ico { color: var(--blue); }
.utility__phone .ico { color: #E3888C; }

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.masthead.is-stuck { box-shadow: 0 6px 22px -12px rgba(11,30,54,.35); }
.masthead__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 1.42rem; font-weight: 800; letter-spacing: -.028em; }
.brand__event { color: var(--blue); }
.brand__medix { color: var(--red); font-style: italic; }
.brand__tag {
  font-size: .655rem; font-weight: 700; letter-spacing: .105em;
  text-transform: uppercase; color: var(--muted); margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav__list {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  display: block; padding: .55rem .78rem; border-radius: 8px;
  color: var(--ink); font-weight: 650; font-size: .955rem;
  transition: color .15s, background-color .15s;
}
.nav__link:hover { color: var(--red); background: var(--red-050); text-decoration: none; }
.nav__link.is-active { color: var(--blue-700); background: var(--blue-050); }
.nav__cta, .nav__close { display: none; }

.masthead__actions { display: flex; align-items: center; gap: .6rem; }

.burger {
  display: none; width: 46px; height: 42px; padding: 0;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 21px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .2s var(--ease), opacity .2s;
}
.nav-scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(11,30,54,.55); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s var(--ease);
}
.nav-scrim.is-open { opacity: 1; }

@media (max-width: 1040px) {
  .masthead__quote { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 80;
    width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 5rem 1.4rem 2rem;
    background: #fff; box-shadow: var(--shadow-lg);
    transform: translateX(103%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__link {
    padding: .85rem .9rem; font-size: 1.06rem;
    border-bottom: 1px solid var(--line-2); border-radius: 0;
  }
  .nav__cta { display: grid; gap: .6rem; margin-top: 1.6rem; }
  .nav__cta .btn { width: 100%; }
  .nav__close {
    display: block; position: absolute; top: .9rem; right: 1rem;
    width: 42px; height: 42px; padding: 0; line-height: 1;
    font-size: 2rem; color: var(--ink);
    background: none; border: 0; cursor: pointer; border-radius: 8px;
  }
  .nav__close:hover { background: var(--bg-alt); color: var(--red); }
}
@media (max-width: 640px) {
  .utility__note { display: none; }
  .utility__in { justify-content: center; }
  .utility__links { gap: 1.1rem; }
}

/* -------------------------------------------------------------------- 7. hero */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(500px, 74vh, 720px);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--navy);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(7,20,38,.94) 0%, rgba(9,26,48,.88) 42%, rgba(11,30,54,.55) 72%, rgba(11,30,54,.35) 100%),
    linear-gradient(180deg, rgba(7,20,38,.55) 0%, rgba(7,20,38,0) 35%);
}
.hero__in { max-width: 730px; color: #C8D6E6; }
.hero .eyebrow { color: #F2B3B6; }
.hero .eyebrow::before { background: #F2B3B6; }
.hero__title { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); margin-bottom: .5em; }
.hero__title em { font-style: normal; color: #7FB2E8; }
.hero__lede { font-size: clamp(1.06rem, 1rem + .45vw, 1.3rem); color: #D3DEEB; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero__chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; margin: 2.4rem 0 0; padding: 0;
}
.hero__chips li {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0;
  padding: .45rem .85rem;
  font-size: .855rem; font-weight: 650; color: #E4EDF7;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero__chips .ico { color: #8FC0EE; }

/* Compact hero for inner pages */
.pagehead {
  position: relative; isolation: isolate;
  padding-block: clamp(2.8rem, 6vw, 4.6rem);
  background: var(--navy); color: #B9C9DC; overflow: hidden;
}
/* Brand mark as a watermark. Two rules matter: it must sit fully inside the
   band (a clipped cross reads as a stray rectangle), and it is masked to a
   single flat tint — the full-colour logo at low opacity over navy turns into
   a muddy maroon smudge. */
.pagehead::before {
  content: ""; position: absolute; z-index: -1;
  top: 50%; right: clamp(1rem, 5vw, 4rem); translate: 0 -50%;
  width: 200px; height: 200px;
  background: rgba(255, 255, 255, .085);
  -webkit-mask: url("/assets/img/mark-silhouette-512.png") center/contain no-repeat;
          mask: url("/assets/img/mark-silhouette-512.png") center/contain no-repeat;
}
@media (max-width: 760px) { .pagehead::before { display: none; } }
.pagehead::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 50%, var(--red) 50%, var(--red) 100%);
}
.pagehead__title { color: #fff; margin-bottom: .35em; }
.pagehead__lede { max-width: 660px; color: #C3D2E3; margin-bottom: 0; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  list-style: none; margin: 0 0 1.1rem; padding: 0;
  font-size: .85rem; color: #8FA4BE;
}
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; }
.crumbs li + li::before { content: "/"; color: #506E92; }
.crumbs a { color: #A9BFD8; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; font-weight: 650; }

/* -------------------------------------------------------------- 8. components */

/* Trust strip ------------------------------------------------------------- */
.trust {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.trust__item {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.4rem 1.35rem; background: #fff;
}
.trust__ico {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--blue-050); color: var(--blue);
}
.trust__item:nth-child(even) .trust__ico { background: var(--red-050); color: var(--red); }
.trust__t { display: block; font-weight: 750; color: var(--ink); margin-bottom: .15rem; }
.trust__d { display: block; font-size: .9rem; line-height: 1.5; color: var(--muted); }

.trust--pull { margin-top: clamp(-4.5rem, -6vw, -3rem); position: relative; z-index: 5; }

/* Cards ------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D3DCE7; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__tag {
  position: absolute; top: .85rem; left: .85rem;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(11,30,54,.82); backdrop-filter: blur(4px);
}
.card__tag--red { background: rgba(162,41,46,.92); }
.card__body { padding: 1.5rem 1.5rem 1.65rem; display: flex; flex-direction: column; flex: 1; }
.card__body > :last-child { margin-top: auto; padding-top: 1.1rem; }
.card__title { font-size: 1.24rem; margin-bottom: .5rem; }
.card__text { font-size: .965rem; margin-bottom: 1rem; }

/* Icon feature card */
.fcard {
  padding: 1.6rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D3DCE7; }
.fcard__ico {
  display: grid; place-items: center; width: 50px; height: 50px;
  border-radius: 13px; margin-bottom: 1.05rem;
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-700) 100%);
  color: #fff; box-shadow: 0 8px 18px -8px rgba(24,99,174,.75);
}
.fcard--red .fcard__ico {
  background: linear-gradient(145deg, var(--red) 0%, var(--red-700) 100%);
  box-shadow: 0 8px 18px -8px rgba(162,41,46,.75);
}
.fcard__title { font-size: 1.09rem; margin-bottom: .45rem; }
.fcard__text { font-size: .94rem; margin: 0; color: var(--body); }
.sect--navy .fcard {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.13);
}
.sect--navy .fcard:hover { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.26); }
.sect--navy .fcard__text { color: #B7C7DA; }

/* Split (image + copy) ---------------------------------------------------- */
.split {
  display: grid; gap: clamp(1.8rem, 4.5vw, 3.75rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 719px) { .split--reverse > :first-child { order: 0; } }

.split__media { position: relative; }
.split__media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.split__media--tall img { aspect-ratio: 3 / 3.4; }
.split__badge {
  position: absolute; right: -14px; bottom: -18px;
  display: flex; align-items: center; gap: .7rem;
  padding: .9rem 1.15rem; max-width: 280px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.split__badge .ico { color: var(--red); }
.split__badge span { font-size: .875rem; font-weight: 650; color: var(--ink); line-height: 1.35; }
@media (max-width: 520px) { .split__badge { position: static; margin-top: 1rem; max-width: none; } }

/* Checklist --------------------------------------------------------------- */
.checks { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: .65rem; }
.checks--2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); column-gap: 1.5rem; }
.checks li {
  display: flex; align-items: flex-start; gap: .65rem; margin: 0;
  font-size: .975rem; color: var(--body);
}
.checks .ico {
  width: 20px; height: 20px; margin-top: .2rem; color: var(--blue);
  stroke-width: 2.6;
}
.sect--navy .checks li { color: #C0CFE0; }
.sect--navy .checks .ico { color: #6FA9E4; }
.checks--red .ico { color: var(--red); }

/* Numbered steps ---------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; counter-reset: s; }
.steps li {
  display: grid; grid-template-columns: 46px 1fr; gap: 1.1rem;
  align-items: start; margin: 0; counter-increment: s;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  font-size: .95rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--blue-700); background: var(--blue-050);
  border: 1px solid #D6E4F5;
}
.steps h3 { font-size: 1.075rem; margin-bottom: .3rem; }
.steps p { font-size: .955rem; margin: 0; }

/* Event tiles ------------------------------------------------------------- */
/* Fixed column counts, not auto-fit: six tiles must land 3+3, never 4+2. */
.tiles { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px)  { .tiles { grid-template-columns: 1fr; } }
.tile {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: 250px; padding: 1.3rem;
  border-radius: var(--radius); overflow: hidden;
  color: #fff; background: var(--navy-2);
}
.tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,22,40,.05) 25%, rgba(8,22,40,.55) 58%, rgba(8,22,40,.92) 100%);
  transition: background .3s;
}
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { background: linear-gradient(180deg, rgba(8,22,40,.25) 15%, rgba(11,45,80,.72) 55%, rgba(8,22,40,.95) 100%); }
.tile__t { display: block; font-size: 1.12rem; font-weight: 750; color: #fff; margin-bottom: .2rem; }
.tile__d { display: block; font-size: .875rem; color: #C6D5E6; line-height: 1.45; }
.tile--flat { background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line); min-height: 0; padding: 1.35rem; }

/* Client logo wall -------------------------------------------------------- */
/* Eight client logos: 4+4 on desktop, 3+3+2 on tablet, 2 per row on phones. */
.logowall { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .logowall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logowall { grid-template-columns: repeat(4, 1fr); } }
.logowall__item {
  display: grid; place-items: center;
  padding: 1.35rem 1rem; min-height: 128px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.logowall__item:hover { border-color: #D0DAE7; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.logowall__item img {
  max-height: 76px; width: auto;
  filter: grayscale(100%); opacity: .72;
  transition: filter .25s, opacity .25s;
}
.logowall__item:hover img { filter: none; opacity: 1; }

/* Stat / fact row (capabilities, not invented numbers) -------------------- */
.facts { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; }
.facts__i { padding: 1.35rem 1.4rem; background: var(--navy-2); }
.facts__k { display: block; font-size: 1.02rem; font-weight: 750; color: #fff; margin-bottom: .25rem; }
.facts__v { display: block; font-size: .885rem; color: #AFC1D6; line-height: 1.5; }

/* Callout / notice -------------------------------------------------------- */
.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.4rem;
  background: var(--blue-050); border: 1px solid #D3E2F4;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
}
.callout .ico { color: var(--blue); margin-top: .15rem; }
.callout p { margin: 0; font-size: .965rem; }
.callout--red { background: var(--red-050); border-color: #F0D4D5; border-left-color: var(--red); }
.callout--red .ico { color: var(--red); }

/* FAQ --------------------------------------------------------------------- */
.faq { display: grid; gap: .8rem; }
.faq__item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: #CBDBEE; box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem; cursor: pointer;
  font-weight: 700; font-size: 1.045rem; color: var(--ink);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--blue-700); background: #FBFCFE; }
.faq__q::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.4px solid var(--blue); border-bottom: 2.4px solid var(--blue);
  border-radius: 2px;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .25s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq__a { padding: 0 1.35rem 1.35rem; font-size: .975rem; }
.faq__a > :first-child { margin-top: 0; }

/* Coverage list ----------------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.pills li {
  margin: 0; padding: .5rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; font-weight: 650; color: var(--ink);
}
.sect--navy .pills li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #E2EBF5; }

.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); background: var(--bg-alt);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* CTA band ---------------------------------------------------------------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #C7D5E6;
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1;
  right: clamp(1rem, 4vw, 3.5rem); top: 50%; translate: 0 -50%;
  width: 220px; height: 220px;
  background: rgba(255, 255, 255, .085);
  -webkit-mask: url("/assets/img/mark-silhouette-512.png") center/contain no-repeat;
          mask: url("/assets/img/mark-silhouette-512.png") center/contain no-repeat;
}
@media (max-width: 1080px) { .cta-band::before { display: none; } }
.cta-band__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.8rem;
}
.cta-band__in > div:first-child { max-width: 640px; }
.cta-band__title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.25rem); margin-bottom: .35em; }
.cta-band__sub { margin: 0; color: #B8C8DB; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ------------------------------------------------------------------- 9. forms */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.field { display: grid; gap: .42rem; }
.field__label { font-size: .89rem; font-weight: 700; color: var(--ink); }
.field__req { color: var(--red); }
.field__hint { font-size: .82rem; color: var(--muted); }

.input, .select, .textarea {
  width: 100%; padding: .78rem .95rem;
  font: inherit; font-size: .98rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input:hover, .select:hover, .textarea:hover { border-color: #C6D2E1; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,99,174,.16);
}
.textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5766' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px;
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea {
  border-color: var(--red); background: #FFFBFB;
}
.field__err { font-size: .84rem; font-weight: 650; color: var(--red-600); }

.checkgroup { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.checkopt {
  display: flex; align-items: center; gap: .6rem;
  padding: .72rem .9rem; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: .93rem; font-weight: 600; color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.checkopt:hover { border-color: #C6D2E1; background: #FBFCFE; }
.checkopt input { accent-color: var(--blue); width: 19px; height: 19px; flex: none; }
.checkopt:has(input:checked) { border-color: var(--blue); background: var(--blue-050); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.1rem 1.3rem; border-radius: var(--radius-sm);
  border: 1px solid; font-size: .97rem;
}
.alert p { margin: 0; }
.alert p + p { margin-top: .5rem; }
.alert--ok  { background: #EEF8F1; border-color: #C3E4CD; color: #1E5C33; }
.alert--err { background: var(--red-050); border-color: #F0D2D3; color: var(--red-700); }
.alert--ok .ico  { color: #2E7D46; }
.alert--err .ico { color: var(--red); }
.alert strong { display: block; margin-bottom: .2rem; }

.contact-card {
  display: grid; gap: 1.1rem;
  padding: 1.6rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-row__ico {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--blue-050); color: var(--blue);
}
.contact-row__k {
  display: block; font-size: .76rem; font-weight: 750; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .1rem;
}
.contact-row__v { display: block; font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.4; }
.contact-row__v a { color: var(--ink); }
.contact-row__v a:hover { color: var(--red); text-decoration: none; }
.contact-row--phone .contact-row__ico { background: var(--red-050); color: var(--red); }
.contact-row--phone .contact-row__v { font-size: 1.28rem; }

/* ------------------------------------------------------------------ 10. footer */
.footer { background: var(--navy); color: #9DB2CB; font-size: .945rem; }
.footer__grid {
  display: grid; gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: 1.45fr 1fr 1fr 1.35fr;
  padding-block: clamp(2.8rem, 6vw, 4.25rem);
}
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand { display: inline-block; margin-bottom: 1.1rem; }
.footer__brand img {
  width: 180px; height: auto;
  background: #fff; padding: .8rem 1rem; border-radius: var(--radius-sm);
}
.footer__blurb { font-size: .93rem; line-height: 1.65; color: #9DB2CB; margin: 0; }

.footer__h {
  font-size: .79rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: 1rem;
}
.footer__h--hours { margin-top: 1.8rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__list li { margin: 0; }
.footer__list a { color: #A9BDD4; display: inline-flex; align-items: flex-start; gap: .5rem; }
.footer__list a:hover { color: #fff; text-decoration: none; }
.footer__list .ico { color: var(--blue); margin-top: .25rem; }
.footer__list--contact a strong { color: #fff; font-size: 1.05rem; }
.footer__addr { display: flex; gap: .5rem; align-items: flex-start; line-height: 1.5; }
.footer__addr .ico { color: var(--blue); margin-top: .25rem; }

.hours { font-size: .875rem; }
.hours th, .hours td {
  padding: .34rem 0; text-align: left; font-weight: 500; color: #9DB2CB;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hours td { text-align: right; white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .is-today th, .hours .is-today td { color: #fff; font-weight: 700; }
.hours__badge {
  display: inline-block; margin-left: .5rem; padding: .05rem .45rem;
  font-size: .65rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--red); border-radius: 999px; vertical-align: middle;
}
.footer__note { font-size: .82rem; color: #7C93AF; margin: .9rem 0 0; line-height: 1.5; }

.footer__bar { border-top: 1px solid rgba(255,255,255,.09); }
.footer__bar-in {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  padding-block: 1.1rem; font-size: .85rem; color: #7F96B2;
}
.footer__bar p { margin: 0; }
.footer__bar-phone a { color: #C4D3E5; display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; }
.footer__bar-phone a:hover { color: #fff; text-decoration: none; }

/* Back to top + mobile call bar ------------------------------------------- */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 55;
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--navy); color: #fff; border-radius: 50%;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(10px);
  transition: opacity .22s, transform .22s var(--ease), background-color .2s;
}
.to-top .ico { transform: rotate(-90deg); }
.to-top.is-on { opacity: 1; transform: none; }
.to-top:hover { background: var(--red); color: #fff; }

.callbar { display: none; }
@media (max-width: 700px) {
  .callbar {
    position: fixed; inset: auto 0 0 0; z-index: 58;
    display: grid; grid-template-columns: 1.35fr 1fr;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px -12px rgba(11,30,54,.4);
    padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    gap: .5rem;
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .72rem .5rem; border-radius: 999px;
    font-weight: 750; font-size: .92rem;
  }
  .callbar__call  { background: var(--red); color: #fff; }
  .callbar__quote { background: var(--blue-050); color: var(--blue-700); border: 1.5px solid #CFE0F3; }
  .callbar a:hover { color: inherit; text-decoration: none; }
  .callbar__call:hover { color: #fff; }
  body { padding-bottom: 66px; }
  .to-top { bottom: 78px; }
}

/* --------------------------------------------------------------- 11. utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 2.2rem; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1rem; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------------------------------------------------------- 12. motion & print */
/* Scroll reveal is opt-in via the `js` class that header.php sets inline. If
   the script never runs — blocked, failed, ancient browser — nothing is ever
   hidden, so the page can never end up blank. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

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

@media print {
  .utility, .masthead, .nav, .callbar, .to-top, .cta-band, .map-frame { display: none !important; }
  body { color: #000; font-size: 11pt; padding: 0; }
  .hero, .pagehead { background: #fff !important; color: #000; min-height: 0; padding: 1rem 0; }
  .hero__bg, .hero::after, .pagehead::before, .pagehead::after { display: none; }
  .hero__title, .hero__lede, .pagehead__title, .pagehead__lede { color: #000; text-shadow: none; }
  .footer { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
