/* =========================================================================
   Speed Insurance - component styles (TEMPORARY, Phase 1)
   Ported from the tested prototype. Mobile-first; breakpoints 480/768/1024/1280.
   Uses tokens from tokens.css. Final visual design pending separate review.
   ========================================================================= */


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue-700); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-800); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; 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; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.625rem 1.375rem;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); line-height: 1.2;
  text-decoration: none; text-align: center; text-transform: uppercase; cursor: pointer; /* CTA rule: labels always uppercase */
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--red-600); color: var(--white); }
.btn--primary:hover { background: var(--red-700); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }
/* Secondary CTA for customer-service actions (e.g. MAKE A PAYMENT), approved 2026-11-24: blue outline,
   transparent; hover = soft blue background, color change only. Text #00699A: 6.02:1 on white, 5.42:1 on hover. */
.btn--service { background: transparent; color: var(--blue-700); border: 1px solid var(--blue-700); }
.btn--service:hover { background: var(--blue-50); color: var(--blue-700); }
/* Payment CTA (approved 2026-11-24), reserved for payment actions such as MAKE A PAYMENT: teal #0F766E, white text
   (5.47:1), 1px border in the same color; hover #115E59 (7.59:1), color change only. */
.btn--payment { background: #0f766e; color: var(--white); border: 1px solid #0f766e; }
.btn--payment:hover { background: #115e59; color: var(--white); border-color: #115e59; }
.btn--light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn--light:hover { background: var(--white); color: var(--navy); }
.btn--sm { min-height: 42px; padding: 0.5rem 1.125rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  color: var(--red-600); text-decoration: none;
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform 0.15s ease; }
.link-arrow:hover { color: var(--red-700); }
.link-arrow:hover .icon { transform: translateX(3px); }
/* CTA rule: text CTAs ("Learn more", "View all …") are uppercase; "View all" links inside the
   desktop menu panels are navigation and keep their case. */
.link-arrow { text-transform: uppercase; }
.nav-panel .link-arrow { text-transform: none; }

/* ---------- Utility bar (>= 768px) ---------- */
.utility { display: none; background: var(--red-600); color: var(--white); font-size: var(--fs-xs); }
.utility a { color: var(--white); text-decoration: none; }
.utility a:hover { text-decoration: underline; color: var(--white); }
.utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.utility__group { display: flex; align-items: center; gap: 1.125rem; min-width: 0; }
.utility__item { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.utility__item .icon { width: 1rem; height: 1rem; opacity: 0.9; }
.utility__email { display: none; }
.utility__divider { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.45); }
.utility__divider--email { display: none; }
.utility .lang { color: var(--white); }
.social-link { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.social-link .icon { width: 18px; height: 18px; }
.utility .social-link:hover { background: rgba(255, 255, 255, 0.15); text-decoration: none; }
@media (min-width: 768px) { .utility { display: block; } }
@media (min-width: 1024px) { .utility__email, .utility__divider--email { display: inline-flex; } }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white);
  transition: box-shadow 0.2s ease;
}
.masthead::after { content: ""; display: block; height: 3px; background: var(--gauge); }
.masthead.is-scrolled { box-shadow: 0 8px 24px -14px rgba(15, 26, 42, 0.35); }
.masthead__inner { display: flex; align-items: center; gap: 0.75rem; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; border-radius: var(--radius-sm); }
.brand img { width: 92px; height: auto; }
.masthead__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.masthead__phone { display: none; }
.masthead__cta { display: none; }
.masthead__lang { display: inline-flex; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; color: var(--ink);
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle:hover { border-color: var(--line-strong); }

@media (min-width: 480px) {
  .brand img { width: 104px; }
  .masthead__cta { display: inline-flex; }
}
@media (min-width: 768px) {
  .masthead__lang { display: none; }
  .masthead__phone {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.25rem;
    font-family: var(--font-display); font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
  }
  .masthead__phone .icon { color: var(--red-600); }
  .masthead__phone:hover { color: var(--red-600); }
}
@media (min-width: 1024px) {
  .brand img { width: 120px; }
  .menu-toggle { display: none; }
  .masthead__phone { display: none; }
  .masthead__inner { gap: 1.25rem; }
}
@media (min-width: 1280px) {
  /* Desktop header phone (approved 2026-11-24): number only, no icon, no visible label; vertically
     centered with GET A QUOTE; divider kept. "Call for a quote" stays for screen readers only. */
  .masthead__phone {
    display: flex; align-items: center; align-self: stretch;
    padding: 0.25rem 1.25rem 0.25rem 0; margin-right: 0.5rem; border-right: 1px solid var(--line);
    /* Same look as the Home hero card phone links: brand blue, 600, underlined (16px here). */
    color: var(--blue-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em;
  }
  .masthead__phone:hover { color: var(--blue-800); }
  .masthead__phone .icon { display: none; }
  .masthead .masthead__phone-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}
.masthead__phone-label { display: none; }

/* ---------- Primary navigation (>= 1024px) ---------- */
.primary-nav { display: none; }
@media (min-width: 1024px) {
  .primary-nav { display: block; position: relative; margin-left: 0.5rem; }
}
.primary-nav__list { display: flex; align-items: center; gap: 0.125rem; list-style: none; }
.primary-nav__item { position: static; }
.primary-nav__item--right { position: relative; }
.primary-nav__trigger,
.primary-nav__link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 44px; padding: 0.5rem 0.75rem; border: 0; border-radius: 10px; background: none;
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.primary-nav__trigger .icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.masthead__cta { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .primary-nav { margin-left: 0; }
  .primary-nav__trigger, .primary-nav__link { padding-inline: 0.5rem; font-size: 0.875rem; }
  .masthead .brand img { width: 104px; }
}
.primary-nav__trigger:hover, .primary-nav__link:hover { background: var(--surface); color: var(--ink); }
.primary-nav__trigger[aria-expanded="true"] { background: var(--surface); }
.primary-nav__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.primary-nav__trigger.is-current, .primary-nav__link[aria-current="page"] { color: var(--red-600); }
.primary-nav__trigger.is-current::after, .primary-nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 4px; height: 2px; background: var(--red-600); border-radius: 2px;
}
.primary-nav__trigger, .primary-nav__link { position: relative; }

.nav-panel {
  --panel-gap: calc((var(--header-h) - 44px) / 2 + 4px);
  position: absolute; top: calc(100% + var(--panel-gap)); left: 0; z-index: 60;
  width: max-content; max-width: min(760px, calc(100vw - 2 * var(--gutter)));
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 1rem; animation: panel-in 0.16s ease-out;
}
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--panel-gap) - 2px); height: calc(var(--panel-gap) + 2px); } /* hover bridge */
.nav-panel__list { list-style: none; display: grid; gap: 0.125rem; }
.nav-panel--personal { width: 560px; }
.nav-panel--commercial { width: 760px; }
.nav-panel--resources { width: 340px; left: 0; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.nav-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.25rem 0.5rem 0.75rem; border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; }
.nav-panel__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav-panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.125rem 0.5rem; list-style: none; }
.nav-panel__cols { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1rem; }
.nav-panel__aside { background: var(--surface); border-radius: 14px; padding: 0.75rem; }
.nav-panel__aside .nav-panel__title { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem 0.5rem; }
.nav-panel__aside ul { list-style: none; display: grid; gap: 0.125rem; }
.nav-panel__aside a { display: block; padding: 0.4rem 0.5rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.nav-panel__aside a:hover { background: var(--white); color: var(--red-600); }
.nav-panel__aside .link-arrow { padding: 0.5rem; margin-top: 0.25rem; }
.nav-panel__foot { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }

.menu-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem; border-radius: 12px; color: var(--ink); text-decoration: none;
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.3;
}
.menu-link:hover { background: var(--surface); color: var(--ink); }
.menu-link:hover .menu-link__icon { background: var(--red-600); color: var(--white); }
.menu-link[aria-current="page"] { color: var(--red-600); }
.menu-link__icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-50); color: var(--blue-700); transition: background-color 0.15s, color 0.15s;
}
.menu-link__icon .icon { width: 20px; height: 20px; }
.menu-link__text { display: grid; gap: 0.125rem; }
.menu-link__desc { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.menu-link--feature { background: var(--surface); }
.menu-link--feature .menu-link__icon { background: var(--white); }
/* Second-level links under a menu item (Health Insurance > ACA, Medicare). Indented to the label. */
.menu-sub { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; margin: -0.25rem 0 0.25rem calc(0.5rem + 36px + 0.75rem - 0.5rem); }
.menu-sub a { display: inline-flex; align-items: center; min-height: 32px; padding: 0.25rem 0.5rem; border-radius: 8px; color: var(--ink-2); font-size: var(--fs-sm); text-decoration: none; }
.menu-sub a:hover { background: var(--surface); color: var(--red-600); }
.menu-sub a[aria-current="page"] { color: var(--red-600); }

/* ---------- Language selector ---------- */
.lang { position: relative; display: inline-flex; align-items: center; gap: 0.375rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.04em; }
.lang .icon { width: 16px; height: 16px; }
.lang__current { display: inline-flex; align-items: center; gap: 0.3rem; }
.lang__sep { opacity: 0.55; font-weight: 400; }
.lang__soon {
  display: inline-flex; align-items: center; gap: 0.3rem; min-height: 32px; padding: 0.125rem 0.375rem;
  border: 0; background: none; cursor: help; opacity: 0.78; font: inherit; letter-spacing: inherit; text-decoration: underline dotted; text-underline-offset: 3px;
}
.lang__soon:hover { opacity: 1; }
.lang__tip {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 80;
  width: max-content; max-width: 220px; padding: 0.5rem 0.75rem; border-radius: 10px;
  background: var(--ink); color: var(--white); font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs); letter-spacing: 0; line-height: 1.4; box-shadow: var(--shadow);
}
.lang__soon:hover + .lang__tip, .lang__soon:focus-visible + .lang__tip, .lang.is-open .lang__tip { display: block; }
.masthead__lang .lang { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 0 0.25rem 0 0.625rem; height: 46px; }
.lang--full { font-size: var(--fs-sm); letter-spacing: 0; gap: 0.75rem; flex-wrap: wrap; }
.lang--full .lang__current { color: inherit; }
.lang--full .lang__soon { text-decoration: none; opacity: 1; cursor: help; gap: 0.5rem; padding: 0.25rem 0; color: var(--muted); }
.lang--full .lang__tip { left: 0; right: auto; }
a[href^="mailto:"] { overflow-wrap: normal; }
.drawer-nav__link .icon { width: 20px; height: 20px; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-2); text-decoration: none;
}
.badge--soon { background: #fff3c4; color: #5c4600; }
.badge--demo { background: #fff3c4; color: #5c4600; }

/* ---------- Mobile drawer ---------- */
.drawer {
  width: min(420px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  margin: 0 0 0 auto; padding: 0; border: 0; background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in 0.22s ease-out; }
.drawer::backdrop { background: rgba(12, 28, 46, 0.55); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head img { width: 92px; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem 1rem 1rem; }
.drawer__foot { padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.drawer-nav { list-style: none; }
.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-nav summary, .drawer-nav__link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 0.5rem 0.25rem; list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--ink); text-decoration: none;
}
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav summary .icon { width: 20px; height: 20px; transition: transform 0.2s ease; }
.drawer-nav details[open] summary .icon { transform: rotate(180deg); }
.drawer-nav__link[aria-current="page"] { color: var(--red-600); }
.drawer-sub { list-style: none; display: grid; gap: 0.125rem; padding: 0 0 0.75rem; }
.drawer-sub a { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; padding: 0.375rem 0.5rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; }
.drawer-sub a:hover, .drawer-sub a[aria-current="page"] { background: var(--surface); color: var(--red-600); }
.drawer-sub .icon { width: 20px; height: 20px; color: var(--blue-700); }
.drawer-sub__overview { font-weight: 600; color: var(--ink) !important; }
.drawer-sub__nested { list-style: none; display: grid; gap: 0.125rem; margin: 0.125rem 0 0.25rem calc(0.5rem + 20px + 0.75rem - 0.5rem); padding-left: 0.5rem; border-left: 2px solid var(--line); }
.drawer-sub__label { padding: 0.75rem 0.5rem 0.25rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.drawer-contact { display: grid; gap: 0.25rem; margin-top: 1rem; }
.drawer-contact a { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; }
.drawer-contact .icon { color: var(--red-600); }
.drawer-contact small { color: var(--muted); font-size: var(--fs-xs); }
.drawer__lang { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.drawer__lang-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
html.drawer-open { overflow: hidden; }

/* ---------- Mobile phone strip (< 768px, Home: see src/_data/features.json) ---------- */
/* Number only, centered, blue link. The whole strip row is the tap target. */
.phone-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.phone-strip__link {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0.25rem var(--gutter);
  color: var(--blue-700); text-decoration: none; font-size: var(--fs-sm); line-height: 1.2;
}
.phone-strip__number { font-family: var(--font-display); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone-strip__link:hover .phone-strip__number { text-decoration: underline; text-underline-offset: 3px; }
.phone-strip__link:focus-visible { border-radius: 0; box-shadow: inset 0 0 0 2px var(--blue-700); }
/* Sticky under the sticky masthead (header height + 3px divider). The 1px tuck under the
   masthead prevents a sub-pixel gap. The masthead's scroll shadow moves to the strip so the
   two read as one block. Anchor jumps leave room for both. CSS only. */
@media (max-width: 767px) {
  .phone-strip { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 2px); z-index: 49; transition: box-shadow 0.2s ease; }
  :root:has(.phone-strip) { scroll-padding-top: calc(var(--header-h) + 3px + 41px + 16px); }
  body:has(.phone-strip) .masthead.is-scrolled { box-shadow: none; }
  body:has(.masthead.is-scrolled) .phone-strip { box-shadow: 0 8px 24px -14px rgba(15, 26, 42, 0.35); }
}
@media (min-width: 768px) { .phone-strip { display: none; } }

/* ---------- Mobile action bar (< 768px) ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.625rem max(var(--gutter), env(safe-area-inset-right, 0px)) calc(0.625rem + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(15, 26, 42, 0.4);
}
.action-bar .btn { min-height: 46px; padding-inline: 0.75rem; }
/* Call button: shield aqua (AA shade), white text, no outline. */
.action-bar .btn--call { background: var(--brand-blue-aa); border-color: var(--brand-blue-aa); color: var(--white); }
.action-bar .btn--call:hover { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
body.has-action-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) {
  .action-bar { display: none; }
  body.has-action-bar { padding-bottom: 0; }
}

/* ---------- Sections & typography helpers ---------- */
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); }
.section__head { display: grid; gap: 0.75rem; max-width: 48rem; margin-bottom: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.section__head--row { max-width: none; grid-template-columns: 1fr; align-items: end; }
.section__head--row > .section__head { margin-bottom: 0; }
.link-arrow { white-space: nowrap; }
@media (min-width: 768px) { .section__head--row { grid-template-columns: 1fr auto; gap: 2rem; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-600);
}
.lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.prose { display: grid; gap: 1rem; max-width: 68ch; color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 0.75rem; }
.prose h3 { color: var(--ink); margin-top: 0.5rem; }
.prose ul { padding-left: 1.25rem; display: grid; gap: 0.375rem; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -55% 35%; height: 120%;
  background: radial-gradient(closest-side, rgba(0, 143, 203, 0.12), transparent 70%); pointer-events: none;
}
.hero h1 em { font-style: normal; color: var(--red-600); }   /* #D3141C: standard highlight red (design rule R4) */

/* Centered Home hero (approved 2026-11-19, mobile-first). Background and glow come from .hero.
   Mobile headline: "Affordable" / "Insurance" / "in Texas"; desktop: "Affordable Insurance" / "in Texas". */
.hero--center { text-align: center; }
.hero__center { position: relative; padding-block: 56px 64px; }
.hero__eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); line-height: 1.3; color: var(--red-600);
}
.hero__eyebrow::before, .hero__eyebrow::after { content: ""; flex: none; width: 28px; height: 1px; background: var(--red-600); }
.hero .hero__title { margin: 18px auto 0; font-size: clamp(2.5rem, 11.5vw, 2.875rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.hero__title em { display: block; }
.hero__lead { margin: 20px auto 0; max-width: 22rem; font-size: var(--fs-base); line-height: 1.6; color: var(--ink-2); text-wrap: balance; }
.hero__spanish { margin: 12px auto 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); line-height: 1.4; color: var(--blue-700); white-space: nowrap; }
.hero__cta { margin-top: 32px; padding-inline: 2rem; }
@media (min-width: 768px) {
  .hero__center { padding-block: clamp(88px, 8vw, 128px) clamp(96px, 9vw, 136px); }
  .hero__eyebrow { gap: 14px; font-size: clamp(15px, 1.1vw, 16px); }
  .hero__eyebrow::before, .hero__eyebrow::after { width: 48px; }
  .hero .hero__title { margin-top: 22px; font-size: clamp(3.5rem, 5.2vw, 4.75rem); letter-spacing: -0.015em; }
  .hero__title em { display: inline; }
  .hero__line { display: block; white-space: nowrap; }
  .hero__lead { margin-top: 24px; max-width: 54ch; font-size: clamp(18px, 1.35vw, 20px); text-wrap: balance; }
  .hero__spanish { margin-top: 14px; font-size: clamp(18px, 1.35vw, 20px); }
  .hero__cta { margin-top: 36px; padding-inline: 2.5rem; }
}
/* Lead: short approved text below 1024px, longer desktop text from 1024px (display:none = not read twice). */
.hero__lead-long { display: none; }

/* Desktop hero A3 (approved 2026-11-24), 1024px and up: text left, contact card right.
   Below 1024px the card is display:none and the centered hero above applies unchanged. */
.hero-card { display: none; }
@media (min-width: 1024px) {
  .hero--center { text-align: left; }
  .hero__center {
    display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 64px);
    padding-block: clamp(64px, 5.5vw, 96px) clamp(72px, 6vw, 104px);
  }
  .hero__text { min-width: 0; }
  .hero__eyebrow { justify-content: flex-start; }
  .hero__eyebrow::after { display: none; }   /* left-aligned: leading line only */
  .hero .hero__title { margin-left: 0; font-size: clamp(3.25rem, 4.9vw, 4.5rem); }
  .hero__lead { margin-left: 0; max-width: 36em; font-size: clamp(19px, 1.45vw, 21px); line-height: 1.65; text-wrap: pretty; }
  .hero__lead-short { display: none; }
  .hero__lead-long { display: inline; }
  .hero__spanish { margin-left: 0; font-size: clamp(19px, 1.45vw, 21px); }

  .hero-card {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
    background: var(--white); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 1px 3px rgba(15, 26, 42, 0.05), 0 14px 32px -16px rgba(15, 26, 42, 0.18);
    padding: clamp(28px, 2.4vw, 36px) clamp(24px, 2.2vw, 32px) clamp(24px, 2.2vw, 32px);
  }
  .hero-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gauge); }
  /* Official logo, never enlarged past its 316px file width: 284px at 1024 -> 316px at 1440. */
  .hero-card__logo { display: block; flex: none; width: clamp(284px, 205px + 7.7vw, 316px); max-width: 100%; height: auto; }
  .hero-card__call {
    align-self: stretch; display: flex; flex-direction: column; align-items: center;
    margin-top: clamp(14px, 1.3vw, 20px); padding-top: clamp(18px, 1.7vw, 24px); border-top: 1px solid var(--line);
  }
  /* Phone block styled like the desktop header phone block (.masthead__phone-label + number), scaled up for the card. */
  .hero-card__title {
    margin-bottom: clamp(14px, 1.2vw, 18px); font-family: var(--font-body); font-weight: 600; font-size: clamp(13px, 1.05vw, 15px);
    line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-600);   /* #D3141C (R4) */
  }
  .hero-card__phone {
    font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.35;
    color: var(--blue-700); white-space: nowrap; font-variant-numeric: tabular-nums;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em;   /* site link underline */
  }
  .hero-card__phone + .hero-card__phone { margin-top: clamp(2px, 0.3vw, 4px); }
  .hero-card__phone:hover { color: var(--blue-800); }
  .hero-card__call { padding-bottom: clamp(14px, 1.2vw, 18px); }   /* keeps the card close to its approved A3 height */
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }   /* used by 404.njk */

.quick-quote {
  display: grid; gap: 0.75rem; padding: 1rem; margin-top: 0.5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.quick-quote label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.quick-quote__row { display: grid; gap: 0.625rem; }
@media (min-width: 480px) { .quick-quote__row { grid-template-columns: minmax(0, 1fr) auto; } }
.quick-quote__note { font-size: var(--fs-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.quick-quote__note a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.quick-quote__note a:hover { color: var(--red-600); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero__inner { display: grid; gap: 1.5rem; align-items: center; padding-block: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem); }
.page-hero__copy { display: grid; gap: 1rem; max-width: 46rem; min-width: 0; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }

/* CTA pair (product-page standard): primary CTA + phone button on one row, vertically
   centered on each other's middle. Enabled per page by features.json -> ctaPair.
   Button height, colors, and type are unchanged; only side padding and gap tighten on
   narrow phones so both fit. If a device font is ever too wide, the row still wraps
   (flex-wrap) instead of overflowing. */
.cta-pair { align-items: center; }
.cta-pair > .btn { white-space: nowrap; }
@media (max-width: 419px) { /* uppercase labels: default padding fits from 399px */
  .cta-pair { gap: 0.5rem; }
  .cta-pair > .btn { padding-inline: 1rem; }
}
@media (max-width: 370px) {
  .cta-pair > .btn { padding-inline: 0.5rem; gap: 0.375rem; }
  .cta-pair > .btn--primary .icon { display: none; } /* decorative arrow; frees room for the number */
}
.page-hero__emblem { display: none; }
@media (min-width: 768px) {
  .page-hero__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
  .page-hero__emblem { display: block; width: clamp(150px, 16vw, 210px); }
}
.emblem svg { width: 100%; height: auto; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; list-style: none; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red-600); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

.dev-flag {
  display: flex; gap: 0.625rem; align-items: flex-start;
  padding: 0.75rem 1rem; border: 1px dashed #c79a00; border-radius: var(--radius-sm); background: #fffbea;
  font-size: var(--fs-xs); color: #4d3b00;
}
.dev-flag .icon { width: 18px; height: 18px; margin-top: 1px; color: #8a6a00; }
.dev-flag code { font-size: 0.95em; overflow-wrap: anywhere; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(0.875rem, 0.7rem + 0.8vw, 1.5rem); grid-template-columns: minmax(0, 1fr); list-style: none; }
@media (min-width: 560px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.grid--compact { gap: 0.75rem; }

.card {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem;
  padding: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: #b9c6d4; box-shadow: var(--shadow); transform: translateY(-2px); }
.card:focus-within { border-color: var(--blue-700); }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-50); color: var(--blue-700); transition: background-color 0.15s, color 0.15s;
}
.card__icon .icon { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--red-600); color: var(--white); }
.card__title { font-size: var(--fs-h3); }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__title a:focus-visible { box-shadow: none; }
.card__title a:focus-visible::after { box-shadow: var(--focus); }
.card__text { color: var(--muted); font-size: var(--fs-sm); }
.card__more { margin-top: auto; padding-top: 0.25rem; }
.card--surface { background: var(--surface); border-color: transparent; }
.card--feature { padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); gap: 1rem; }
.card--feature .card__icon { width: 56px; height: 56px; }
.card--feature .card__title { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }

/* Introductory category navigation sections: centered heading + borderless items (approved 2026-11-24, all devices). */
.section__head--center { justify-items: center; margin-inline: auto; text-align: center; }
/* Section eyebrow standard = Home hero eyebrow typography (display font, 600, red, sentence case,
   normal letter spacing, line-height 1.3; 13px on phones, clamp(15px, 1.1vw, 16px) from 768px). */
.eyebrow--lined { gap: 0.75rem; text-transform: none; letter-spacing: normal; line-height: 1.3; }   /* sentence case as written (rule R5) */
@media (min-width: 768px) { .eyebrow--lined { font-size: clamp(15px, 1.1vw, 16px); } }
.eyebrow--lined.eyebrow--category { text-transform: uppercase; }   /* category / product-section eyebrows (R5 refinement); no extra letter spacing */
.eyebrow--lined::before, .eyebrow--lined::after { content: ""; flex: none; width: 28px; height: 1px; background: var(--red-600); }
.section-title { text-wrap: balance; }
.section-title em { font-style: normal; color: var(--red-600); }   /* rule R4 */
/* Optional desktop line breaks in a section H2 (sectionTitleHtml filter); natural wrapping below 1024px. */
@media (min-width: 1024px) { .section-title__br { display: block; } }
/* R11 responsive H2 standard (approved 2026-11-24) for main headings of new and redesigned sections:
   28px on phones, 32px -> 42px across tablet (768-1023px), 42px on desktop; weight 700 and line-height
   ratio inherited from h2. Opt-in (sectionHead large=true) so approved sections are not changed. */
.section-title--lg { font-size: 1.75rem; }
@media (min-width: 768px) { .section-title--lg { font-size: clamp(2rem, 2px + 3.9063vw, 2.625rem); } }
/* Home introductory section: R11 phone size only (authorized 2026-11-24); tablet and desktop keep the site H2 scale. */
@media (max-width: 767px) { .section--intro .section-title { font-size: 1.75rem; } }
/* Home rule HR2 (approved 2026-11-24): Home section item titles (H3) are shown UPPERCASE by CSS; the source text
   stays in Title Case; size, weight, and letter spacing unchanged. */
.page-home .card--brand .card__title { text-transform: uppercase; }
@media (min-width: 768px) { .eyebrow--lined::before, .eyebrow--lined::after { width: 40px; } }

/* Phones: cards become compact rows (icon beside text) to avoid long scrolls */
@media (max-width: 559px) {
  .card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.875rem; align-items: start; padding: 1rem; }
  .card__icon, .card--feature .card__icon { grid-row: span 2; width: 44px; height: 44px; }
  .card__icon .icon { width: 24px; height: 24px; }
  .card__title, .card--feature .card__title { font-size: var(--fs-base); align-self: center; }
  .card__more { display: none; }
  .card:hover { transform: none; }
}

/* Home section items ("brand" cards), unified minimalist design (approved 2026-11-24, all devices): borderless, no card
   box, everything centered and stacked (icon circle, title, description, EXPLORE without arrow) at
   every width. Icon colors from tokens (soft blue circle, brand blue icon), also on hover.
   Phones (< 768px): one column with subtle dividers. Tablet (768px+): three columns. Desktop (900px+): 80px icons. */
.grid--trio { max-width: 36rem; margin-inline: auto; }
@media (min-width: 768px) { .grid--trio { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: clamp(2rem, 1.25rem + 1.5vw, 2.75rem); } }   /* row gap only matters with several rows (Personal: 3 x 3) */

.card--brand, .card--brand:hover, .card--brand:focus-within { background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.card--brand { align-items: center; text-align: center; gap: 0.875rem; padding: 0.5rem 0.75rem; }
.card--brand .card__head { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.card--brand .card__icon { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--icon-circle-bg); color: var(--icon-circle-fg); }
/* Stationary hover (rule R9): only colors are set on hover, never size or position. The icon keeps its soft blue
   colors (overrides the generic red .card:hover icon); the CTA darkens from --red-600 to --red-700. The global
   prefers-reduced-motion rule makes this color change instant. */
.card--brand:hover .card__icon { background: var(--icon-circle-bg); color: var(--icon-circle-fg); }
.card--brand .card__more { transition: color 0.15s ease; }
.card--brand:hover .card__more, .card--brand:focus-within .card__more { color: var(--red-700); }
.card--brand .card__icon .icon { width: 26px; height: 26px; }
.card--brand .card__title { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.25; text-wrap: balance; }
.card--brand .card__title a::after { border-radius: var(--radius); }   /* rounded keyboard focus ring around the item */
.card--brand .card__text { font-size: var(--fs-base); line-height: 1.6; color: var(--ink-2); }
.card--brand .card__more { padding-top: 0.25rem; }   /* margin-top: auto (base .card__more) aligns EXPLORE across columns */
.card--brand .card__more-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
@media (min-width: 900px) {
  .card--brand { gap: 1rem; padding-inline: 1rem; }
  .card--brand .card__head { gap: 1rem; }
  .card--brand .card__icon { width: 80px; height: 80px; }
  .card--brand .card__icon .icon { width: 36px; height: 36px; }
}

/* Phones (< 768px): compact single column with subtle 1px dividers; placed after the generic phone card rules. */
@media (max-width: 767px) {
  .section__head--center { gap: 0.5rem; margin-bottom: 1.25rem; }
  .grid--trio { gap: 0; padding-inline: 1rem; }   /* 16px container gutter + 16px = 32px margins */
  .card--brand { display: flex; gap: 0.75rem; padding: 1.25rem 1.125rem; }
  .card--brand + .card--brand { border-top: 1px solid var(--line-soft); }
  .card--brand:first-child { padding-top: 1.75rem; }   /* H2 -> first icon: 20px head margin + 28px = 48px */
  .card--brand:last-child { padding-bottom: 0; }
  .card--brand .card__head { gap: 0.5rem; }
  .card--brand .card__icon { width: 48px; height: 48px; }
  .card--brand .card__icon .icon { width: 24px; height: 24px; }
  .card--brand .card__title { font-size: 1.125rem; }
  .card--brand .card__text { line-height: 1.5; }
  .card--brand .card__more { display: inline-flex; margin-top: -0.25rem; padding-top: 0; }   /* 8px below the description */
}

/* Personal Insurance section background (approved 2026-11-24): lighter cool gray-blue than --surface (#F4F7FA),
   scoped to this section; the global tokens are unchanged. */
.section--personal { background: #f7f9fb; }

/* Home-only item hover (Home rule HR1, approved 2026-11-24): interactive section items get a subtle cool gray
   background (#F0F3F6) on hover, drawn by a pseudo-element that extends 8px above and below the item (more
   breathing room without changing layout, content positions, or section spacing). Only on devices with a real
   hover pointer (no sticky hover on touch); background color only: no border, shadow, movement, or scaling (R9);
   icon circles keep #E8F5FB; CTA color change unchanged; the global reduced-motion rule makes the fade instant.
   Scoped to the Home page through body.page-home. */
.page-home .card--brand { isolation: isolate; }   /* keeps the background layer inside the item, behind its content */
.page-home .card--brand::before {
  content: ""; position: absolute; inset: -8px 0; z-index: -1; border-radius: 8px;
  background: transparent; transition: background-color 150ms ease; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) { .page-home .card--brand:hover::before { background: #f0f3f6; } }

/* Closing CTA block (R12): buttons of equal width centered between two thin horizontal separators;
   optional supporting line. Side by side; on phones sized like the fixed bottom bar (see below). */
.section-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.5rem;
  width: fit-content; max-width: 100%; margin: clamp(2rem, 1.5rem + 1.5vw, 2.75rem) auto 0; padding: 1.125rem 1.5rem;
  border-block: 1px solid var(--line); text-align: center;
}
.section-cta__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); line-height: 1.3; color: var(--ink); }
.section-cta__actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1rem; }   /* equal button widths */
.section-cta__btn { padding-inline: 1.75rem; }
/* Phones: sized like the fixed bottom bar buttons (46px tall, 16px, 600, pill); two equal buttons of up to
   168px side by side with an 8px gap; separators span the button pair. Below 350px the pair cannot fit
   without wrapping the labels, so the buttons stack (each up to 168px, centered). */
@media (max-width: 767px) {
  .section-cta { flex-direction: column; width: fit-content; max-width: 100%; margin-inline: auto; padding: 1.25rem 0; }
  .section-cta__actions { grid-template-columns: repeat(2, minmax(0, 168px)); gap: 0.5rem; }
  .section-cta__btn { min-height: 46px; font-size: 1rem; padding-inline: 0.5rem; white-space: nowrap; }
}
@media (max-width: 349px) { .section-cta__actions { grid-auto-flow: row; grid-template-columns: minmax(0, 168px); } }

/* Compact link tiles (industries, related pages) */
.tile {
  position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 60px;
  padding: 0.625rem 0.875rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.3;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.tile:hover { border-color: #b9c6d4; box-shadow: var(--shadow-sm); color: var(--red-600); }
.tile__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-50); color: var(--blue-700); }
.tile__icon .icon { width: 20px; height: 20px; }
.tile__arrow { margin-left: auto; width: 18px; height: 18px; color: var(--line-strong); }
.tile:hover .tile__arrow { color: var(--red-600); }

/* Pillars (home "why") */
.pillars { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); list-style: none; }
@media (min-width: 600px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillar { display: grid; gap: 0.625rem; align-content: start; }
.pillar__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--red-600); box-shadow: var(--shadow-sm); }
.pillar__icon .icon { width: 22px; height: 22px; }
.pillar h3 { font-size: var(--fs-lg); }
.pillar p { color: var(--muted); font-size: var(--fs-sm); }

/* Split layout: commercial section on home, content + aside on inner pages */
.split { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.aside-stack { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .aside-stack--sticky { position: sticky; top: calc(var(--header-h) + 24px); } }

.panel { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 1rem; }
.panel--white { background: var(--white); border: 1px solid var(--line); }
.panel--navy { background: var(--navy); color: var(--white); }
.panel--navy h2, .panel--navy h3 { color: var(--white); }
.panel--navy p { color: #c9d4e1; }
.panel h2, .panel h3, .office h2 { font-size: var(--fs-lg); }
a[href^="tel:"] { white-space: nowrap; }
.panel--navy .detail-list a { color: var(--white); }
.panel--navy .detail-list .icon { color: var(--gauge-lime); }
.panel--navy small { color: #c9d4e1; }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 40px; padding: 0.375rem 0.875rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
}
.chip:hover { border-color: var(--red-600); color: var(--red-600); }
.chip--strong { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip--strong:hover { background: var(--red-600); border-color: var(--red-600); color: var(--white); }

/* Coverage options & checklists */
.options { display: grid; gap: 0.875rem; grid-template-columns: minmax(0, 1fr); list-style: none; }
@media (min-width: 640px) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.875rem; padding: 1.125rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.option__mark { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red-50); color: var(--red-600); }
.option__mark .icon { width: 18px; height: 18px; stroke-width: 2.25; }
.option h3 { font-size: var(--fs-base); }
.option p { color: var(--muted); font-size: var(--fs-sm); }

.checklist { display: grid; gap: 0.625rem; list-style: none; }
.checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.625rem; align-items: start; }
.checklist .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--gauge-green); stroke-width: 2.25; }
.panel--navy .checklist .icon { color: var(--gauge-lime); }

.note {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1rem 1.125rem; border-radius: var(--radius); background: var(--blue-50); color: var(--ink-2); font-size: var(--fs-sm);
}
.note .icon { width: 20px; height: 20px; color: var(--blue-700); margin-top: 1px; }
.note--demo { background: #fffbea; border: 1px solid #f1df9a; color: #4d3b00; }
.note--demo .icon { color: #8a6a00; }

/* Steps: a real sequence, so numbered */
.steps { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); list-style: none; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { counter-increment: step; display: grid; gap: 0.5rem; padding: 1.25rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 600;
}
.step h3 { font-size: var(--fs-base); }
.step p { color: var(--muted); font-size: var(--fs-sm); }

/* FAQ accordions (native details) */
.faq { display: grid; gap: 0.75rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq details[open] { border-color: #b9c6d4; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 0.875rem 1.125rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--red-600); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:focus-visible { border-radius: var(--radius); }
.faq__answer { padding: 0 1.125rem 1.125rem; color: var(--ink-2); max-width: 70ch; }

/* Offices */
.office { display: grid; gap: 1rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.office__head { display: flex; align-items: center; gap: 0.75rem; }
.office__pin { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red-50); color: var(--red-600); flex: none; }
.office__pin .icon { width: 24px; height: 24px; }
.office h3 { font-size: var(--fs-lg); }
.office__area { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.detail-list { display: grid; gap: 0.75rem; list-style: none; font-size: var(--fs-sm); }
.detail-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.detail-list .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--muted); }
.detail-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.detail-list a:hover { color: var(--red-600); text-decoration: underline; }
.detail-list .pending { color: var(--muted); font-style: italic; }
.map-placeholder {
  display: grid; place-items: center; min-height: 160px; border-radius: var(--radius);
  background:
    linear-gradient(var(--surface-2) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--surface-2) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
  color: var(--muted); font-size: var(--fs-xs); text-align: center; padding: 1rem;
}
.map-placeholder .icon { width: 28px; height: 28px; color: var(--red-600); margin: 0 auto 0.375rem; }

/* Industries directory */
.industry-filter { display: grid; gap: 0.5rem; max-width: 30rem; margin-bottom: 1.5rem; }
.industry-filter label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.search-input { position: relative; }
.search-input .icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-input input { padding-left: 2.75rem; }
.industry-count { font-size: var(--fs-xs); color: var(--muted); }
.industry-group + .industry-group { margin-top: 2rem; }
.industry-group h2 { display: flex; align-items: center; gap: 0.625rem; font-size: var(--fs-lg); margin-bottom: 1rem; }
.industry-group h2 .icon { width: 22px; height: 22px; color: var(--blue-700); }
.industry-empty { padding: 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; gap: 0.75rem; justify-items: start; }

/* Article placeholders */
.article-card { display: grid; gap: 0.75rem; padding: 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--white); }
.article-card h3 { font-size: var(--fs-base); }
.article-card__thumb { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: var(--line-strong); }
.article-card__thumb .icon { width: 36px; height: 36px; }

/* Site map */
.sitemap-cols { columns: 1; column-gap: 2.5rem; }
@media (min-width: 640px) { .sitemap-cols { columns: 2; } }
@media (min-width: 1024px) { .sitemap-cols { columns: 3; } }
.sitemap-group { break-inside: avoid; margin-bottom: 2rem; }
.sitemap-group h2 { font-size: var(--fs-lg); margin-bottom: 0.625rem; }
.sitemap-group h2 a { color: var(--ink); text-decoration: none; }
.sitemap-group h2 a:hover { color: var(--red-600); }
.sitemap-group ul { list-style: none; display: grid; gap: 0.375rem; font-size: var(--fs-sm); }
.sitemap-group ul ul { padding-left: 1rem; margin-top: 0.375rem; border-left: 2px solid var(--line); }
.sitemap-group .badge { margin-left: 0.375rem; vertical-align: middle; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.75rem; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 1rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); display: flex; align-items: center; gap: 0.625rem; }
.fieldset legend .num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: var(--fs-sm); flex: none; }
.form-row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.375rem; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--white);
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.select {
  appearance: none; padding-right: 2.75rem; 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='%23344256' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 20px;
}
.textarea { min-height: 120px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(0, 105, 154, 0.2); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red-600); }
.field__error { display: none; align-items: center; gap: 0.375rem; font-size: var(--fs-xs); font-weight: 600; color: var(--red-700); }
.field__error .icon { width: 16px; height: 16px; }
.field.has-error .field__error { display: flex; }

.choice-group { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--line-strong); border-radius: 10px; font-weight: 500; text-align: center; transition: all 0.15s;
}
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.choice input:hover + span { border-color: var(--ink-2); }

.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; font-size: var(--fs-sm); color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red-600); cursor: pointer; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
@media (max-width: 359px) { .form-actions .btn { padding-inline: 0.75rem; } } /* uppercase "SUBMIT QUOTE REQUEST" fits on one line at 320px */
.form-summary {
  padding: 1rem 1.125rem; border: 2px solid var(--red-600); border-radius: var(--radius); background: var(--red-50); color: var(--ink);
}
.form-summary h2 { font-size: var(--fs-base); margin-bottom: 0.5rem; }
.form-summary ul { padding-left: 1.25rem; display: grid; gap: 0.25rem; font-size: var(--fs-sm); }
.form-summary a { color: var(--red-700); font-weight: 600; }
.form-success { display: grid; gap: 1rem; justify-items: start; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.form-success__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e9f6df; color: #2f6b12; }
.form-success__icon .icon { width: 30px; height: 30px; stroke-width: 2.25; }
.form-success h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.875rem); }
.form-card { padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.selected-type { display: none; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); color: var(--ink-2); }
.selected-type.is-visible { display: inline-flex; }
.selected-type .icon { width: 16px; height: 16px; color: var(--gauge-green); stroke-width: 2.5; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gauge); }
.cta-band__inner { display: grid; gap: 1.5rem; align-items: center; padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #c9d4e1; margin-top: 0.5rem; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band__phones { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.75rem; font-size: var(--fs-sm); color: #c9d4e1; }
.cta-band__phones a { color: var(--white); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cta-band__phones a:hover { text-decoration: underline; color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); border-top: 1px solid var(--line); }
.footer__main { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.footer__brand, .footer__contact { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .footer__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-column: auto; }
}
@media (min-width: 1100px) {
  .footer__main { grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)) 1.6fr; gap: 2.25rem; }
  .footer__brand, .footer__contact { grid-column: auto; }
}
.footer__brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.footer__brand img { width: 128px; }
.footer__brand p { max-width: 34ch; }
.footer__heading { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); margin-bottom: 0.875rem; }
.footer__links { list-style: none; display: grid; gap: 0.125rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); text-decoration: none; }
.footer__links a:hover { color: var(--red-600); text-decoration: underline; }
.footer__contact .detail-list a { color: var(--ink); }
.footer__social { display: flex; align-items: center; gap: 0.5rem; }
.footer__social .social-link { background: var(--white); border: 1px solid var(--line); color: var(--muted); width: 40px; height: 40px; }
.footer__lang { margin-top: 0.5rem; }
.footer__bottom { background: var(--navy); color: #b8c5d4; font-size: var(--fs-xs); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.125rem; }
.footer__bottom a { color: #dfe7f0; text-decoration: none; }
.footer__bottom a:hover { color: var(--white); text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; }
.footer__legal a { display: inline-flex; min-height: 32px; align-items: center; }
.prototype-tag { display: inline-flex; align-items: center; gap: 0.375rem; color: #ffe08a; }
.prototype-tag .icon { width: 14px; height: 14px; }

/* ---------- 404 ---------- */
.not-found { text-align: center; display: grid; gap: 1rem; justify-items: center; padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.not-found__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 3rem + 6vw, 7rem); line-height: 1; background: var(--gauge); -webkit-background-clip: text; background-clip: text; color: transparent; }

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

/* ---------- Print ---------- */
@media print {
  .utility, .masthead, .action-bar, .site-footer, .cta-band, .drawer { display: none !important; }
  body { padding: 0 !important; }
}

/* ---------- Phase 1 additions ---------- */
.section__foot { margin-top: 1.5rem; }
.checklist .icon { flex: none; }
@media (min-width: 640px) { .checklist--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checklist--2col .icon { color: var(--blue-700); }
.form-actions__note { font-size: var(--fs-xs); }
.not-found__actions { justify-content: center; }
.detail-list address { font-style: normal; }
.lang__link { color: inherit; text-decoration: none; padding: 0.125rem 0.375rem; min-height: 32px; display: inline-flex; align-items: center; }
.lang__link:hover { text-decoration: underline; }
.prose > .panel { margin-block: 0.5rem; }