/*
Theme Name: ACC Air
Theme URI: https://aircriticalcare.com
Author: Air Critical Care
Description: Modern responsive theme for Air Critical Care — worldwide air ambulance and medical transport. Navy/crimson aviation palette, Fraunces display serif, mobile-first.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: acc-air
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --navy-950: #081831;
  --navy-900: #0a1f3d;
  --navy-800: #0e2a52;
  --navy-700: #133a6f;
  --navy-600: #1c4a89;
  --red: #c22033;
  --red-dark: #9f1a2a;
  --gold: #e8a33d;
  --sky: #eef4fb;
  --sky-deep: #dce9f7;
  --line: #d9e2ee;
  --ink: #17202b;
  --muted: #56677c;
  --paper: #ffffff;
  --cream: #f7f9fc;
  --shadow-sm: 0 1px 2px rgba(10, 31, 61, .06), 0 2px 8px rgba(10, 31, 61, .06);
  --shadow-md: 0 2px 6px rgba(10, 31, 61, .07), 0 12px 32px rgba(10, 31, 61, .12);
  --shadow-lg: 0 8px 24px rgba(8, 24, 49, .18), 0 24px 64px rgba(8, 24, 49, .22);
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 74px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1.1em; }
sup { font-size: .55em; }
::selection { background: var(--navy-700); color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.2rem, 8vw, 5.5rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.section--sky { background: linear-gradient(180deg, var(--cream), var(--sky)); }
.section--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700)); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

/* Red swoosh motif (echoes the logo arc) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); border-radius: 2px; }
.section--navy .eyebrow { color: #f4b8bf; }
.section--navy .eyebrow::before { background: #f4b8bf; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(194, 32, 51, .35); }
.btn--red:hover { background: var(--red-dark); color: #fff; box-shadow: 0 8px 22px rgba(194, 32, 51, .45); transform: translateY(-1px); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--outline { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-700); color: var(--navy-700); }
.btn--lg { padding: 1.15rem 2.1rem; font-size: 1.07rem; }
.btn svg { flex: 0 0 auto; }

/* ============================================================
   Top bar + header
   ============================================================ */
.topbar {
  background: var(--navy-950); color: #c9d7ea; font-size: .82rem;
  padding: .45rem 0; position: relative; z-index: 60;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar__note { display: flex; align-items: center; gap: .45rem; letter-spacing: .02em; }
.topbar__note .dot { width: 7px; height: 7px; border-radius: 50%; background: #38c172; box-shadow: 0 0 0 3px rgba(56,193,114,.22); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(56,193,114,.22);} 50% { box-shadow: 0 0 0 6px rgba(56,193,114,.08);} }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar__license { color: #8fa5c2; }
@media (max-width: 720px) { .topbar__license { display: none; } }
@media (max-width: 600px) {
  .topbar a { display: none; } /* phone lives in header + dock on phones */
  .topbar .wrap { justify-content: center; }
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.6rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__logo { display: block; width: auto; }
.brand__logo--dark { height: 54px; }
.brand__logo--light { height: 60px; display: none; }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav > ul { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .62rem .75rem; font-weight: 600; font-size: .95rem; color: var(--navy-900); text-decoration: none; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--sky); color: var(--navy-700); }
.nav li { position: relative; }
.nav .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  list-style: none; padding: .45rem; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub-menu a { padding: .6rem .75rem; border-radius: 8px; font-weight: 500; }
.nav .menu-item-has-children > a::after { content: "▾"; font-size: .62em; margin-left: .35rem; opacity: .55; vertical-align: 2px; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-cta__phone { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; white-space: nowrap; color: var(--navy-700); }
.header-cta__phone b { font-size: 1.12rem; color: var(--navy-900); font-weight: 800; letter-spacing: .01em; }
.header-cta__phone:hover b { color: var(--red); }
.header-cta .btn { padding: .78rem 1.35rem; font-size: .93rem; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2.6px; background: var(--navy-900); border-radius: 2px; margin: 5.4px 0; transition: transform .22s ease, opacity .22s ease; }

@media (max-width: 1023px) {
  /* backdrop-filter would make the header the containing block for the
     fixed nav panel — keep the header solid on mobile instead */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  /* keep logo + close toggle painted ABOVE the open nav panel (z 49) */
  .site-header .brand, .site-header .header-cta { position: relative; z-index: 55; }
  .nav-toggle { display: block; order: 3; }
  .header-cta .btn { display: none; }
  .header-cta__phone small { display: none; }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: 49;
    background: var(--navy-950); padding: calc(var(--header-h) + 2.2rem) 1.6rem 6.5rem;
    flex-direction: column; align-items: stretch; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); background:#fff; }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background:#fff; }
  body.nav-open .site-header { background: var(--navy-950); border-color: transparent; }
  body.nav-open .brand__logo--dark { display: none; }
  body.nav-open .brand__logo--light { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav a { color: #ecf2fa; font-size: 1.18rem; padding: .85rem .6rem; }
  .nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
  .nav .sub-menu a { font-size: 1.02rem; color: #b9c9de; }
  .nav__mobile-cta { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
}
@media (min-width: 1024px) { .nav__mobile-cta { display: none; } }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: var(--navy-950); color: #fff; overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(88deg, rgba(8,24,49,.93) 0%, rgba(8,24,49,.82) 34%, rgba(8,24,49,.42) 62%, rgba(8,24,49,.18) 100%),
              linear-gradient(0deg, rgba(8,24,49,.55) 0%, transparent 30%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(4rem, 11vw, 8.5rem); }
.hero__inner { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .45em; }
.hero h1 .reg { font-size: .34em; vertical-align: super; opacity: .8; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: #d7e2f1; max-width: 54ch; margin-bottom: 1.9em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: #e6eefa;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: .42rem .85rem; backdrop-filter: blur(4px);
}
.chip svg { color: var(--gold); }

/* Ultra-wide screens: stop stretching the photo across the full bleed —
   anchor it right at near-native width; the left side falls back to flat
   navy and the gradient hides the seam. Mobile/normal desktop unchanged. */
@media (min-width: 1800px) {
  .hero__media { left: auto; right: 0; width: 1680px; }
  .hero__media::after {
    background: linear-gradient(90deg, #081831 0%, rgba(8,24,49,.94) 14%, rgba(8,24,49,.72) 38%, rgba(8,24,49,.28) 68%, rgba(8,24,49,.12) 100%),
                linear-gradient(0deg, rgba(8,24,49,.55) 0%, transparent 30%);
  }
}

/* staggered hero reveal */
.hero [data-rise] { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2,.6,.2,1) forwards; }
.hero [data-rise="2"] { animation-delay: .12s; }
.hero [data-rise="3"] { animation-delay: .24s; }
.hero [data-rise="4"] { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero [data-rise], .reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Trust band / stats
   ============================================================ */
.trustband { background: #fff; border-bottom: 1px solid var(--line); }
.trustband .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.4rem; }
.trust { display: flex; align-items: center; gap: .8rem; }
.trust__icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--navy-700); }
.trust b { display: block; font-size: .95rem; color: var(--navy-900); line-height: 1.25; }
.trust small { color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) { .trustband .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trustband .wrap { grid-template-columns: 1fr 1fr; gap: .8rem; } .trust__icon { display: none; } }

/* ============================================================
   Cards / services
   ============================================================ */
.grid { display: grid; gap: 1.6rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: 1.35rem 1.45rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .4rem; font-size: 1.28rem; }
.card__body p { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 1.1rem; }
.card__link { font-weight: 700; font-size: .93rem; color: var(--red); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.card__link::after { content: "→"; transition: transform .18s ease; }
.card:hover .card__link::after { transform: translateX(4px); }

/* ============================================================
   Steps
   ============================================================ */
.steps { counter-reset: step; }
.step { position: relative; padding: 2rem 1.7rem 1.8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
  display: block; margin-bottom: .9rem;
}
.step h3 { font-size: 1.22rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ============================================================
   Split band (ground division)
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow-md); background: var(--navy-900); color: #fff; }
.split__media { min-height: 340px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { padding: clamp(1.8rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.split__body h2 { color: #fff; }
.split__body p { color: #c9d7ea; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split__media { min-height: 220px; } }

/* ============================================================
   Testimonials
   ============================================================ */
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.7rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
}
.quote-card__stars { color: var(--gold); letter-spacing: .18em; font-size: .95rem; }
.quote-card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink); flex: 1; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--navy-800); font-size: .9rem; }
.quote-card cite small { display: block; font-weight: 500; color: var(--muted); }

/* ============================================================
   CTA band
   ============================================================ */
.ctaband { text-align: center; position: relative; overflow: hidden; }
.ctaband::before {
  content: ""; position: absolute; inset: -40% -10%;
  background: radial-gradient(ellipse at 30% 120%, rgba(194,32,51,.35), transparent 55%),
              radial-gradient(ellipse at 80% -20%, rgba(28,74,137,.55), transparent 60%);
  pointer-events: none;
}
.ctaband .wrap { position: relative; }
.ctaband h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.ctaband p { color: #c9d7ea; max-width: 56ch; margin-inline: auto; }
.ctaband__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; align-items: center; }
.ctaband__phone { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; color: #fff; text-decoration: none; }
.ctaband__phone:hover { color: var(--gold); }

/* ============================================================
   Page hero (interior)
   ============================================================ */
.page-hero { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #fff; padding-block: clamp(2.6rem, 6vw, 4.2rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -160px; top: -160px; width: 480px; height: 480px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4.6vw, 3rem); }
.page-hero .crumbs { font-size: .82rem; color: #9db2cd; margin-bottom: .8rem; }
.page-hero .crumbs a { color: #c9d7ea; text-decoration: none; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero__sub { color: #c9d7ea; margin: .7rem 0 0; max-width: 60ch; }

/* ============================================================
   Content / prose (legacy page content support)
   ============================================================ */
.prose { max-width: 780px; }
.prose img { border-radius: var(--radius-sm); margin-block: 1.2rem; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose blockquote { border-left: 3px solid var(--red); margin: 1.4em 0; padding: .3em 0 .3em 1.2em; color: var(--muted); }
.prose button, .prose .button {
  background: var(--red); color: #fff; border: 0; border-radius: 999px;
  padding: .85rem 1.6rem; font-weight: 700; font-family: var(--font-body); font-size: .97rem; cursor: pointer;
  transition: background .15s ease;
}
.prose button:hover, .prose .button:hover { background: var(--red-dark); }
/* legacy grid classes used inside stored page content */
.prose .row { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-block: 1rem; }
.prose .row > [class*="col-"] { flex: 1 1 260px; }
.prose .center-text { text-align: center; }
.prose iframe { max-width: 100%; border-radius: var(--radius-sm); }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
@media (max-width: 980px) { .content-layout { grid-template-columns: 1fr; } }

/* Sidebar CTA rail */
.rail { position: sticky; top: calc(var(--header-h) + 1.2rem); display: flex; flex-direction: column; gap: 1.2rem; }
@media (max-width: 980px) { .rail { position: static; } }
.rail-card { background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-md); }
.rail-card h3 { color: #fff; font-size: 1.2rem; }
.rail-card p { color: #c9d7ea; font-size: .9rem; }
.rail-card .btn { width: 100%; }
.rail-card--light { background: var(--sky); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.rail-card--light h3 { color: var(--navy-900); }
.rail-card--light p { color: var(--muted); }
.rail-phone { display: block; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; text-decoration: none; margin-bottom: .9rem; }
.rail-phone:hover { color: var(--gold); }

/* ============================================================
   Quote form
   ============================================================ */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.8rem, 4vw, 3rem); align-items: start; }
@media (max-width: 1020px) { .quote-layout { grid-template-columns: 1fr; } }

.qform { display: flex; flex-direction: column; gap: 1.5rem; }
.qform__section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.qform__head { display: flex; align-items: center; gap: .9rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--cream); }
.qform__num {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-weight: 800; font-size: .95rem;
}
.qform__head h2 { margin: 0; font-size: 1.22rem; }
.qform__head small { color: var(--muted); font-size: .84rem; display: block; font-family: var(--font-body); font-weight: 400; }
.qform__grid { padding: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.qform__grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .qform__grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy-900); }
.field label .req { color: var(--red); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .82rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3.5px rgba(28, 74, 137, .14);
}
.field input.is-invalid, .field select.is-invalid { border-color: var(--red); }
.field .field-error { color: var(--red); font-size: .8rem; font-weight: 600; display: none; }
.field.has-error .field-error { display: block; }
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2356677c' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .95rem center; padding-right: 2.4rem; }

.pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label {
  padding: .62rem 1.15rem; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; background: #fff;
  transition: all .15s ease;
}
.pills label:hover { border-color: var(--navy-600); color: var(--navy-800); }
.pills input:checked + label { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: 0 4px 12px rgba(14,42,82,.25); }
.pills input:focus-visible + label { outline: 2px solid var(--navy-600); outline-offset: 2px; }

.qform__submitrow { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.qform__submitrow .btn { min-width: 260px; }
.qform__secure { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .84rem; }
.qform__status { display: none; border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-weight: 600; }
.qform__status.is-error { display: block; background: #fdeaec; color: var(--red-dark); border: 1px solid #f5c2c9; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp-wrap { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* thank-you */
.thanks-hero { text-align: center; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.thanks-hero__check { width: 84px; height: 84px; margin: 0 auto 1.6rem; border-radius: 50%; background: #e8f7ee; color: #1f9d55; display: grid; place-items: center; }

/* Downloadable guides rail card */
.guide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.guide-list a {
  display: flex; align-items: flex-start; gap: .55rem;
  font-weight: 600; font-size: .92rem; color: var(--navy-800); text-decoration: none;
  padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s ease, color .15s ease;
}
.guide-list a:hover { border-color: var(--red); color: var(--red); }
.guide-list a svg { flex: 0 0 auto; margin-top: .18em; color: var(--red); }
.guide-list a span { font-weight: 400; color: var(--muted); font-size: .82rem; }

/* Article CTA block (appended to every article body) */
.prose .article-cta {
  margin-top: 2.6rem; padding: 1.8rem 1.9rem; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff;
}
.prose .article-cta h2 { color: #fff; margin-top: 0; font-size: 1.4rem; }
.prose .article-cta p { color: #d7e2f1; margin: 0; }
.prose .article-cta a { color: var(--gold); font-weight: 700; }

/* ============================================================
   Blog / archive
   ============================================================ */
.post-card { display: flex; flex-direction: column; }
.post-card time { color: var(--muted); font-size: .82rem; }
.post-card h3 a { color: var(--navy-900); text-decoration: none; }
.post-card h3 a:hover { color: var(--red); }
.post-meta { color: var(--muted); font-size: .88rem; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.pagination .page-numbers { padding: .55rem .95rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-950); color: #a9bcd6; font-size: .93rem; }
.site-footer a { color: #d7e2f1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-block: 3.4rem 2.6rem; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand__logo { height: 96px; width: auto; margin-bottom: .6rem; }
.footer-brand p { color: #8fa5c2; font-size: .88rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-phone { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff !important; }
.footer-cta p { color: #8fa5c2; font-size: .85rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8rem; color: #7185a3; }
.footer-legal ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }

/* ============================================================
   Mobile sticky call bar
   ============================================================ */
.mobile-dock {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  display: none; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  box-shadow: 0 -6px 24px rgba(8,24,49,.16);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-dock a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem .6rem; font-weight: 800; font-size: .95rem; text-decoration: none;
}
.mobile-dock a:first-child { background: var(--navy-900); color: #fff; }
.mobile-dock a:last-child { background: var(--red); color: #fff; }
@media (max-width: 767px) { .mobile-dock { display: grid; } body { padding-bottom: 58px; } }
@media (max-width: 480px) { .header-cta__phone { display: none; } }
/* keep the GTranslate float widget clear of the mobile dock */
@media (max-width: 767px) {
  .gt_switcher_wrapper, .gt_float_switcher, #gt_float_wrapper, .gtranslate_wrapper { bottom: 72px !important; }
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.6,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--navy .section-head p { color: #c9d7ea; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy-900); padding: .8rem 1.2rem; z-index: 100; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
