/* =========================================================
   Absolute Insurance Agency — Homepage V1
   Brand system, layout, and component styles.
   Visual direction follows the client-supplied mockup.
   ========================================================= */

:root {
  /* Colors */
  --color-primary: #072E6A;
  --color-primary-dark: #051f49;
  --color-accent: #4169E1;
  --color-accent-dark: #2F52C0;
  --color-background: #FFFFFF;
  --color-surface: #F7F9FC;
  --color-border: #DCE3EC;
  --color-text: #1F2933;
  --color-text-muted: #5F6B7A;
  --color-text-on-primary: #FFFFFF;
  --color-success: #2F7D32;

  /* Typography */
  --font-base: 'Inter', Arial, Helvetica, sans-serif;
  --fs-h1: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --fs-h3: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.75rem;
  --space-xl: 4.5rem;
  --space-2xl: 6.75rem;

  /* Radii & shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(7, 46, 106, 0.08);
  --shadow-md: 0 12px 32px rgba(7, 46, 106, 0.14);

  /* Layout */
  --container-width: 1200px;
  --header-height: 84px;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
/* Safety net: nothing on the site is meant to scroll sideways. If a
   form field, grid track, or long word ever pushes wider than the
   viewport (a common mobile bug), clip it here instead of letting
   the whole page side-scroll. */
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 var(--space-sm); line-height: 1.2; font-weight: 700; color: var(--color-primary); }
p { margin: 0 0 var(--space-sm); color: var(--color-text); }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-body);
  border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: var(--color-accent-dark); }
.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn--lg { padding: 0.9rem 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--pill { border-radius: 999px; padding: 0.6rem 1.35rem; font-size: var(--fs-small); }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  min-height: var(--header-height);
  width: 100%;
  padding-inline: var(--space-lg);
}
.site-logo { display: flex; align-items: center; line-height: 1; }
.site-logo img { height: 52px; width: auto; }

.main-nav { margin-left: var(--space-lg); }
.main-nav__list { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: nowrap; white-space: nowrap; }
.main-nav__link {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.has-dropdown { position: relative; }
.has-dropdown > .main-nav__link::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
}
.main-nav__link:hover,
.main-nav__link:focus-visible { color: var(--color-primary); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 10;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a,
.dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: var(--fs-small);
}
.dropdown li a:hover,
.dropdown a:hover { background: var(--color-surface); color: var(--color-primary); }

.dropdown--mega {
  display: flex;
  gap: var(--space-lg);
  min-width: 560px;
  padding: var(--space-md);
}
.dropdown__group { display: flex; flex-direction: column; }
.dropdown__group-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
  padding: 0 0.75rem;
}

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-md); }
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.site-header__phone svg { color: var(--color-accent); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  background: #fff;
}
.mobile-menu ul { display: flex; flex-direction: column; padding: var(--space-sm) var(--space-md); gap: 0.25rem; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-menu .btn { margin-top: var(--space-sm); }

/* Collapsible groups (Insurance, Contact & Quotes) inside the mobile menu,
   so a long run of related links isn't just dumped one after the next. */
.mobile-menu__group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
}
.mobile-menu__chevron {
  flex-shrink: 0;
  margin-left: var(--space-sm);
  color: var(--color-accent);
  transition: transform 0.2s ease;
}
.mobile-menu__group-toggle[aria-expanded="true"] .mobile-menu__chevron { transform: rotate(180deg); }
.mobile-menu__submenu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem 0 0.5rem var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu__submenu[hidden] { display: none; }
.mobile-menu__submenu a {
  border-bottom: none;
  padding: 0.6rem 0.25rem;
  font-weight: 500;
  font-size: 0.95em;
}
.mobile-menu__submenu a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--color-accent);
  vertical-align: middle;
}

/* =========================================================
   Section heading helper
   ========================================================= */
.section-heading { text-align: center; max-width: 640px; margin: 0 auto var(--space-lg); }
.section-heading h2 { font-size: var(--fs-h2); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  color: #fff;
  padding-block: var(--space-2xl) 7.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5,31,73,0.92) 0%, rgba(5,31,73,0.82) 32%, rgba(5,31,73,0.55) 60%, rgba(5,31,73,0.35) 100%);
}
.hero__content { max-width: 620px; }
.hero h1 { color: #fff; font-size: var(--fs-h1); }
.hero__lead { color: rgba(255,255,255,0.9); font-size: 1.1875rem; max-width: 48ch; }
.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}
.hero__phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
}
.hero__phone-link svg { color: #fff; }
.hero__phone-link:hover { border-color: #fff; }

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(2px);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hero__rating:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }
.hero__rating-count { font-weight: 500; color: rgba(255,255,255,0.8); }

.img-placeholder {
  background: repeating-linear-gradient(45deg, rgba(7,46,106,0.06), rgba(7,46,106,0.06) 10px, rgba(7,46,106,0.03) 10px, rgba(7,46,106,0.03) 20px);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-block: var(--space-sm);
}
.img-placeholder--map { aspect-ratio: 16 / 10; }

.map-embed {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-block: var(--space-sm);
  border: 1px solid var(--color-border);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   Page hero (subpages) — compact version of the homepage hero,
   reuses .hero__bg / .hero__overlay for the same photo treatment.
   ========================================================= */
.page-hero {
  position: relative;
  color: #fff;
  padding-block: var(--space-xl) var(--space-lg);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__inner { max-width: 720px; }
.page-hero h1 { color: #fff; font-size: var(--fs-h1); }
.page-hero__lead { color: rgba(255,255,255,0.9); font-size: 1.125rem; max-width: 60ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--space-md);
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.75);
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb__sep { color: rgba(255,255,255,0.45); }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* =========================================================
   Fact / "Did You Know" cards
   ========================================================= */
.facts { padding-block: var(--space-xl); background: var(--color-surface); }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.fact-card {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.fact-card__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
}
.fact-card h3 { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); margin-bottom: 0.25rem; }
.fact-card p { font-size: var(--fs-small); color: var(--color-text); margin: 0; }

/* =========================================================
   Offerings list (simple checklist of coverage names)
   ========================================================= */
.offerings-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
}
.offerings-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--fs-body);
  color: var(--color-text);
}
.offerings-list svg { color: var(--color-accent); flex-shrink: 0; margin-top: 3px; }

/* =========================================================
   About page — stat strip, mission/vision grid, team cards
   ========================================================= */
.stat-strip { padding-block: var(--space-lg); background: var(--color-surface); border-block: 1px solid var(--color-border); }
.stat-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: center;
}
.stat-strip__item strong { display: block; font-size: 1.375rem; color: var(--color-primary); margin-bottom: 0.15rem; }
.stat-strip__item span { font-size: var(--fs-small); color: var(--color-text-muted); }

.about-intro { padding-block: var(--space-xl); }
.about-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.about-intro__media { position: relative; }
.about-intro__media img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); display: block; }
/* Temporary stand-in photo (office sign) is landscape, not the portrait crop
   the slot above is designed for. Use contain + a matte background so the
   full sign stays legible instead of cropping into the text. Drop this
   modifier once real portrait team/office photography is in place. */
.about-intro__media--contain img { object-fit: contain; background: var(--color-surface); padding: var(--space-md); }
.about-intro__content h2 { font-size: var(--fs-h2); }
.about-intro__content .eyebrow { display: block; font-size: var(--fs-small); font-weight: 700; color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.about-intro__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }

.mission-vision {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.mission-vision__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.mission-vision__card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.mission-vision__card p { font-size: var(--fs-small); color: var(--color-text-muted); margin: 0; }

.team { padding-block: var(--space-xl); background: var(--color-surface); }
.team__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}
.person-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  /* 3-up by default; flexbox (rather than grid) so an incomplete last row
     centers itself instead of hugging the left edge. */
  flex: 0 1 calc((100% - 2 * var(--space-lg)) / 3);
  max-width: calc((100% - 2 * var(--space-lg)) / 3);
}
.person-card__avatar {
  width: 76px; height: 76px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.person-card h3 { font-size: 1.0625rem; margin-bottom: 0.1rem; }
.person-card__title { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--color-accent); margin-bottom: var(--space-sm); }
.person-card p { font-size: var(--fs-small); color: var(--color-text-muted); text-align: left; margin-bottom: 0.6rem; }
.person-card p:last-of-type { margin-bottom: 0; }

/* =========================================================
   Personal / Business pathways (overlap hero bottom edge)
   ========================================================= */
.pathways {
  position: relative;
  margin-top: -6.5rem;
  padding-bottom: var(--space-xl);
}
.pathways__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.pathway-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}
.pathway-card__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
}
.pathway-card__icon--accent { background: var(--color-accent); }
.pathway-card h2 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.pathway-card__body > p { color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.pathway-card__tags {
  margin: var(--space-sm) 0 0;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* =========================================================
   Trust feature strip
   ========================================================= */
.feature-strip { background: var(--color-accent); padding-block: var(--space-lg) var(--space-xl); }
.feature-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.feature-strip__item { display: flex; align-items: flex-start; gap: var(--space-sm); }
.feature-strip__item svg { color: #fff; flex-shrink: 0; margin-top: 2px; }
.feature-strip__item strong { display: block; color: #fff; margin-bottom: 2px; }
.feature-strip__item span { font-size: var(--fs-small); color: rgba(255,255,255,0.8); }

/* =========================================================
   Services grid
   ========================================================= */
.services {
  padding-block: var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
/* subtle decorative glow to add depth to the dark section */
.services::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(47,125,50,0.25) 0%, rgba(47,125,50,0) 70%);
  pointer-events: none;
}
.services .section-heading { max-width: 960px; }
.services .section-heading h2 { color: #fff; }
.services .section-heading p { color: rgba(255,255,255,0.8); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  position: relative;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 24px rgba(2, 14, 38, 0.25);
}
.service-card:hover {
  box-shadow: 0 16px 32px rgba(2, 14, 38, 0.35);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  margin-bottom: var(--space-md);
}
.service-card h3 { margin: 0 0 0.35rem; font-size: 1.0625rem; color: var(--color-primary); }
.service-card > p { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-accent);
  transition: gap 0.15s ease;
}
.service-card__link:hover { gap: 0.6rem; text-decoration: underline; }

/* Single stacked column: collage image with clickable hotspots on
   top, icon grid below. */
.services__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}
.services__stack .services__grid {
  width: 100%;
}
.services__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.services__collage {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 50%;
}
.services__collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.services__hotspot {
  position: absolute;
  top: var(--hs-y);
  left: var(--hs-x);
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}
.services__hotspot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.4;
  animation: hotspotPulse 2.4s ease-out infinite;
}
.services__hotspot-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(2, 14, 38, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.services__hotspot:hover .services__hotspot-dot,
.services__hotspot:focus-visible .services__hotspot-dot {
  transform: scale(1.2);
  background: var(--color-primary);
}
.services__hotspot:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 50%;
}
@keyframes hotspotPulse {
  0% { transform: scale(0.55); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}
.services__visual-hint {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* Insurance hotspot modal */
.hotspot-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.hotspot-modal[hidden] { display: none; }
.hotspot-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 46, 106, 0.55);
}
.hotspot-modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  box-shadow: 0 24px 48px rgba(2, 14, 38, 0.35);
  animation: hotspotModalPop 0.18s ease;
}
@keyframes hotspotModalPop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hotspot-modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.hotspot-modal__close:hover { background: var(--color-accent); color: #fff; }
.hotspot-modal__box h3 { margin: 0 0 var(--space-sm); font-size: 1.25rem; color: var(--color-primary); }
.hotspot-modal__box p { margin: 0 0 var(--space-md); color: var(--color-text-muted); }

/* =========================================================
   Carrier logos
   ========================================================= */
.carriers { padding-block: var(--space-xl); background: var(--color-surface); }
.carriers .section-heading p { color: var(--color-text-muted); }
.carriers__grid {
  /* Flexbox + wrap + justify-content: center (rather than CSS Grid) so a
     trailing partial row of logos is centered instead of left-aligned. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}
.carrier-tile {
  flex: 0 1 calc((100% - 5 * var(--space-md)) / 6);
  max-width: calc((100% - 5 * var(--space-md)) / 6);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.carrier-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.carrier-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* =========================================================
   Reviews
   ========================================================= */
.reviews { padding-block: var(--space-xl); }
.reviews__layout { text-align: center; }
.reviews__rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.reviews__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-lg);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.reviews__rating:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.reviews__stars { display: flex; gap: 2px; margin-bottom: 4px; }
.reviews__rating strong {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--color-primary);
  font-size: 1.25rem;
}
.reviews__rating-count { font-size: var(--fs-small); font-weight: 500; color: var(--color-text-muted); }
.reviews__heading { margin-bottom: var(--space-lg); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: left;
}
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: 0;
}
.review-card p { font-style: italic; color: var(--color-text); }
.review-card cite { font-style: normal; font-weight: 700; color: var(--color-primary); }
.reviews__more { text-align: center; margin-top: var(--space-lg); }
.review-card--featured { max-width: 640px; margin-inline: auto; text-align: center; }
.review-card--featured p { font-size: 1.125rem; }
.reviews__grid--wall { grid-template-columns: repeat(3, 1fr); align-items: start; }
.reviews__grid--wall .review-card p { font-size: var(--fs-small); }

/* =========================================================
   Contact info strip
   ========================================================= */
.info-strip {
  background: var(--color-accent);
  padding-block: var(--space-md);
}
.info-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.info-strip__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: var(--fs-small);
}
.info-strip__item svg { color: rgba(255,255,255,0.85); flex-shrink: 0; }
.info-strip__item a:hover { text-decoration: underline; }

/* =========================================================
   Quote form
   ========================================================= */
.quote-section { padding-block: var(--space-2xl); }
.quote-section__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-xl);
}
.quote-section__contact { font-weight: 600; color: var(--color-primary); }
.quote-section__callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-small);
}
.quote-section__callout a { color: var(--color-accent); font-weight: 600; text-decoration: underline; }
.quote-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.quote-form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
.form-field { margin-bottom: var(--space-md); min-width: 0; }
.form-field label { display: block; font-weight: 600; font-size: var(--fs-small); margin-bottom: 0.35rem; color: var(--color-text); overflow-wrap: break-word; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
}
fieldset.form-field { border: 0; padding: 0; margin: 0 0 var(--space-md); }
fieldset.form-field legend { display: block; font-weight: 600; font-size: var(--fs-small); margin-bottom: 0.5rem; padding: 0; color: var(--color-text); }
.required { color: #B3261E; }
.form-required-note { font-size: var(--fs-small); color: var(--color-text-muted); }
.form-success {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: #EAF4EA;
  border: 1px solid var(--color-success);
  color: var(--color-success);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.form-error {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: #FBEAE9;
  border: 1px solid #B3261E;
  color: #B3261E;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
/* Honeypot field: hidden from sighted users and keyboard/tab order, but present
   in the DOM for simple bots to fill in — a real submission with this field
   filled in is silently rejected client-side. */
.form-field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-field--captcha input { max-width: 140px; }
.form-field--captcha label { font-weight: 600; }
.captcha-a, .captcha-b { color: var(--color-primary); font-weight: 700; }

/* Checkbox group (e.g. "which coverage are you interested in?") */
.checkbox-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checkbox-group__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text);
  min-width: 0;
}
.checkbox-group__item label {
  min-width: 0;
  overflow-wrap: break-word;
}
.checkbox-group__item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

/* Multi-section quote forms (e.g. the detailed Business Quote form):
   numbered cards so a long form reads as clear steps instead of one
   intimidating wall of fields. */
.quote-form__section {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}
.quote-form__section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.quote-form__section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.0625rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.quote-form__section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.quote-form__hint {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin: -0.5rem 0 var(--space-sm);
}
.form-field input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: var(--fs-small);
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
}
.quote-form__hint-inline {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85em;
}
.quote-form__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quote-form__details {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
  margin: var(--space-sm) 0 var(--space-md);
}
.quote-form__details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-accent);
  padding: 0.25rem 0;
  overflow-wrap: break-word;
}
.quote-form__details summary:hover { text-decoration: underline; }
.quote-form__details[open] summary { margin-bottom: var(--space-sm); }

/* =========================================================
   Personal quote wizard (Request a Quote page)
   ---------------------------------------------------------
   Steps are visible by default (see the HTML comment in
   request-a-quote/index.html) so the form still works with
   JavaScript disabled. script.js hides steps 2+ and manages
   the Back/Next/Submit buttons once it runs.
   ========================================================= */
.wizard-step {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}
.wizard-step:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.wizard-progress {
  margin-bottom: var(--space-md);
}
.wizard-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}
.wizard-progress__fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.wizard-progress__label {
  margin: 0.4rem 0 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text-muted);
}
.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.wizard-nav [data-wizard-submit],
.wizard-nav [data-wizard-next] {
  margin-left: auto;
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  background: var(--color-primary);
  color: #fff;
  padding-block: var(--space-xl);
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.85); }
.final-cta__actions { display: flex; justify-content: center; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  border-top: 4px solid var(--color-accent);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
}
.site-footer__col + .site-footer__col {
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: var(--space-lg);
}
.site-footer__logo-chip {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  margin-bottom: var(--space-md);
}
.site-footer__logo { height: 34px; width: auto; }
.site-footer__brand p {
  color: rgba(255,255,255,0.72);
  font-size: var(--fs-body);
  max-width: 34ch;
}
.site-footer__brand p:last-of-type {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__licensed {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.55);
  margin-top: -0.5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.site-footer__col ul { display: grid; gap: 0.75rem; }
.site-footer__col a { color: rgba(255,255,255,0.75); font-size: var(--fs-small); }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__social { margin-top: var(--space-md); }
.site-footer__contact li { color: rgba(255,255,255,0.75); font-size: var(--fs-small); line-height: 1.5; }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  font-size: var(--fs-small);
}
.site-footer__bottom-inner ul { display: flex; gap: var(--space-md); }
.site-footer__bottom-inner a:hover { text-decoration: underline; }

/* =========================================================
   Theme-pop experiment
   ---------------------------------------------------------
   Scoped entirely under <body class="theme-pop">, currently
   present only on the homepage and the Personal/Auto Insurance
   page. Nothing here touches unscoped selectors, so every other
   page is unaffected. If approved, lift the ".theme-pop " prefix
   off these rules to roll the look out site-wide.
   ========================================================= */

/* Richer gradient hero/page-hero overlay instead of a flat wash */
.theme-pop .hero__overlay,
.theme-pop .page-hero .hero__overlay {
  background: linear-gradient(115deg, rgba(5,31,73,0.94) 0%, rgba(11,45,138,0.88) 30%, rgba(65,105,225,0.55) 68%, rgba(65,105,225,0.28) 100%);
}

/* Colored eyebrow badge above the hero headline */
.theme-pop .hero__eyebrow,
.theme-pop .page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
}

/* Pill-shaped, glowing CTA buttons */
.theme-pop .btn--accent,
.theme-pop .btn--primary {
  border-radius: 999px;
}
.theme-pop .btn--accent:hover {
  box-shadow: 0 10px 24px rgba(65, 105, 225, 0.45);
}

/* Icon badges get a little life on hover */
.theme-pop .service-card__icon,
.theme-pop .pathway-card__icon {
  transition: transform 0.2s ease;
}
.theme-pop .service-card:hover .service-card__icon,
.theme-pop .pathway-card:hover .pathway-card__icon {
  transform: scale(1.12);
}

/* Feature-strip gets a diagonal two-tone gradient instead of a flat fill */
.theme-pop .feature-strip {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 130%);
}
.theme-pop .feature-strip__heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}
.theme-pop .feature-strip__heading h2 {
  color: #fff;
  font-size: var(--fs-h2);
}
.theme-pop .feature-strip__heading p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Contact info strip (address/hours/phone/email): white background
   instead of the accent-blue fill, so it reads as a clean break
   between the photo/stat band above and the blue coverage section
   below. */
.theme-pop .info-strip {
  background: #fff;
}
.theme-pop .info-strip__item {
  color: var(--color-text);
}
.theme-pop .info-strip__item svg {
  color: var(--color-accent);
}

/* Bold full-bleed stat band */
.theme-pop .stat-band {
  background: var(--color-accent);
  padding-block: var(--space-xl);
  color: #fff;
  text-align: center;
}
.theme-pop .stat-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.theme-pop .stat-band__item strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.theme-pop .stat-band__item span {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 768px) {
  .theme-pop .stat-band__grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* ---------------------------------------------------------
   Isolation pass — make one thing per section win, not
   everything at once. Still scoped to .theme-pop.
   --------------------------------------------------------- */

/* Primary CTA: give the one button we most want clicked real
   elevation and room, and quiet the buttons around it so it
   reads first. */
.theme-pop .site-header__actions .btn--accent,
.theme-pop .page-hero .btn--accent.btn--lg,
.theme-pop .hero .btn--accent.btn--lg {
  box-shadow: 0 12px 26px rgba(65, 105, 225, 0.45);
}
.theme-pop .final-cta .btn--accent {
  box-shadow: 0 16px 34px rgba(65, 105, 225, 0.5);
}
.theme-pop .pathway-card .btn {
  box-shadow: none;
  font-size: var(--fs-small);
  padding: 0.55rem 1.2rem;
}
.theme-pop .service-card__link {
  font-size: var(--fs-small);
  font-weight: 500;
}

/* Trust signals: lift the stat band off the page as its own
   framed module instead of a flat colored strip, and let the
   numbers carry more visual weight than anything around them.
   Normal (non-overlapping) spacing on purpose — an overlap here
   crowded the hero's CTA row above it. */
.theme-pop .stat-band {
  background: transparent;
  padding-block: 0;
  margin-block: var(--space-lg) var(--space-xl);
}
.theme-pop .stat-band__grid {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-md);
}
.theme-pop .stat-band__item strong { font-size: 3rem; }

/* Testimonial: one featured quote, framed and elevated, with
   any supporting quotes deliberately smaller and quieter. */
.theme-pop .review-card--featured {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}
.theme-pop .review-card--featured::before {
  content: "\201C";
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: -0.75rem;
}
.theme-pop .review-card--featured p {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.5;
}
.theme-pop .review-card--featured cite {
  font-size: var(--fs-small);
}
/* Two-column testimonial layout: the featured quote spans a tall
   left column, with the two supporting quotes stacked in the
   column beside it. Scoped to .reviews__grid--all so the standalone
   featured-quote treatment used elsewhere (e.g. the Personal/Auto
   Insurance page) is untouched. */
.theme-pop .reviews__grid--all {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  align-items: stretch;
  gap: var(--space-lg);
}
.theme-pop .reviews__grid--all .review-card--featured {
  grid-row: 1 / 3;
  max-width: none;
  margin-inline: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.theme-pop .reviews__grid--all .review-card:not(.review-card--featured) {
  box-shadow: none;
  background: var(--color-surface);
}
.theme-pop .reviews__grid--all .review-card:not(.review-card--featured) p {
  font-size: var(--fs-small);
}
@media (max-width: 900px) {
  .theme-pop .reviews__grid--all { grid-template-columns: 1fr; grid-template-rows: none; }
  .theme-pop .reviews__grid--all .review-card--featured { grid-row: auto; max-width: 640px; margin-inline: auto; text-align: center; display: block; }
}

/* Insurance Solutions photo section: asymmetric photo grid
   (one tall portrait tile beside two stacked landscape tiles)
   next to a text column with coverage categories. Inspired by
   client-referenced layouts, restyled with our own navy/blue
   system, buttons, and cards rather than copied outright.
   Background continues the same navy-to-blue gradient used by
   info-strip directly above it, so the two sections read as one
   continuous blue block instead of a hard color cut. */
.theme-pop .solutions {
  padding-block: var(--space-xl);
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 130%);
}
.theme-pop .solutions__layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.theme-pop .solutions__photos {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-md);
  aspect-ratio: 6 / 5;
}
.theme-pop .solutions__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(2, 14, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.theme-pop .solutions__photo--tall { grid-row: 1 / 3; }
.theme-pop .solutions__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-pop .solutions__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 46, 106, 0.75) 0%, rgba(7, 46, 106, 0) 45%);
  pointer-events: none;
}
.theme-pop .solutions__photo-label {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-sm);
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.theme-pop .solutions__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-small);
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
}
.theme-pop .solutions__content h2 { font-size: var(--fs-h2); color: #fff; }
.theme-pop .solutions__content > p { color: rgba(255, 255, 255, 0.85); }
.theme-pop .solutions__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }
@media (max-width: 1024px) {
  .theme-pop .solutions__layout { grid-template-columns: 1fr; }
  .theme-pop .solutions__photos { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .theme-pop .solutions__photos { aspect-ratio: 4 / 5; }
}

/* Icon-grid section now sits right after the (light) photo section
   instead of after the dark info-strip, so recolor it to match:
   light surface background with blue accent cards instead of the
   navy gradient + white cards used elsewhere. Scoped to the
   homepage's #services (an id unique to this page) so the shared
   .service-card component on other pages is untouched. */
.theme-pop #services {
  background: var(--color-surface);
}
.theme-pop #services::before {
  display: none;
}
.theme-pop #services .section-heading h2 { color: var(--color-primary); }
.theme-pop #services .section-heading p { color: var(--color-text-muted); }
.theme-pop #services .service-card {
  background: var(--color-accent);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.theme-pop #services .service-card:hover {
  border-color: #fff;
  box-shadow: 0 16px 32px rgba(7, 46, 106, 0.3);
}
.theme-pop #services .service-card__icon {
  background: #fff;
  color: var(--color-accent);
}
.theme-pop #services .service-card h3 { color: #fff; }
.theme-pop #services .service-card > p { color: rgba(255, 255, 255, 0.85); }
.theme-pop #services .service-card__link { color: #fff; }
.theme-pop #services .service-card__link:hover { text-decoration: underline; }

/* Get a Quote form card: carry the blue through here too. Scoped
   to .quote-form--accent (a modifier only on the homepage's form)
   so the shared quote-form styling used on every other page's
   contact/quote forms is untouched. Input fields stay white for
   usability; only the surrounding card and its labels go blue. */
.theme-pop .quote-form--accent {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 130%);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.theme-pop .quote-form--accent .form-field label,
.theme-pop .quote-form--accent fieldset.form-field legend {
  color: #fff;
}
.theme-pop .quote-form--accent .form-required-note {
  color: rgba(255, 255, 255, 0.75);
}
.theme-pop .quote-form--accent .captcha-a,
.theme-pop .quote-form--accent .captcha-b {
  color: #fff;
}
/* Wizard chrome (section titles, hints, step border, progress bar,
   "+ Additional..." disclosures) also needs to read on the blue
   gradient card when the wizard lives inside .quote-form--accent
   (currently just the homepage's Get a Quote form). */
.theme-pop .quote-form--accent .quote-form__section-title,
.theme-pop .quote-form--accent .wizard-progress__label {
  color: #fff;
}
.theme-pop .quote-form--accent .quote-form__hint,
.theme-pop .quote-form--accent .quote-form__hint-inline {
  color: rgba(255, 255, 255, 0.75);
}
.theme-pop .quote-form--accent .wizard-step,
.theme-pop .quote-form--accent .quote-form__details {
  border-top-color: rgba(255, 255, 255, 0.25);
}
.theme-pop .quote-form--accent .wizard-progress__bar {
  background: rgba(255, 255, 255, 0.25);
}
.theme-pop .quote-form--accent .wizard-progress__fill {
  background: #fff;
}
.theme-pop .quote-form--accent .quote-form__details summary {
  color: #fff;
}
.theme-pop .quote-form--accent .checkbox-group__item label {
  color: #fff;
}
.theme-pop .quote-form--accent .btn--outline {
  border-color: #fff;
  color: #fff;
}
.theme-pop .quote-form--accent .btn--outline:hover {
  background: #fff;
  color: var(--color-primary);
}

/* Office plaque photo, small and set above the "Get a Quote"
   heading inside the intro column. */
.theme-pop .quote-section__plaque {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 0 auto var(--space-md);
}
.theme-pop .quote-section__plaque img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   Scroll-reveal + entrance animations
   ---------------------------------------------------------
   Content is visible by default (.reveal { opacity: 1 }) so
   nothing depends on JS running — script.js only adds the
   .js-reveal class (feature-detected) and .is-visible on
   intersection, so a no-JS visitor sees the page exactly as
   normal. The global prefers-reduced-motion override earlier
   in this file already forces near-instant transitions for
   anyone who has that preference set.
   ========================================================= */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance: pure CSS, no JS needed since the hero is
   always in view on load. */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.theme-pop .hero__eyebrow,
.theme-pop .hero h1,
.theme-pop .hero__lead,
.theme-pop .hero__meta {
  animation: heroFadeUp 0.7s ease both;
}
.theme-pop .hero__eyebrow { animation-delay: 0.05s; }
.theme-pop .hero h1 { animation-delay: 0.15s; }
.theme-pop .hero__lead { animation-delay: 0.3s; }
.theme-pop .hero__meta { animation-delay: 0.45s; }

/* Experiment: stretch the hero photo down behind the pathway
   cards and stat band too, instead of stopping at the bottom of
   the hero text. The image now lives on a wrapper around all
   three sections; hero/pathways/stat-band themselves stay
   transparent so it shows through the gaps. A vertical fade is
   layered onto the existing overlay so the photo darkens into
   navy right before the info-strip begins, instead of cutting
   off abruptly. */
.theme-pop .hero-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.theme-pop .hero-band .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.theme-pop .hero-band .hero__overlay {
  background:
    linear-gradient(100deg, rgba(5,31,73,0.92) 0%, rgba(5,31,73,0.82) 32%, rgba(5,31,73,0.55) 60%, rgba(5,31,73,0.35) 100%),
    linear-gradient(to bottom, rgba(5,31,73,0) 55%, rgba(5,31,73,0.55) 82%, rgba(5,31,73,0.95) 100%);
}

/* =========================================================
   Blog post
   ========================================================= */
.post-hero {
  padding-block: var(--space-xl) var(--space-lg);
}
.post-hero .breadcrumb { color: var(--color-text-muted); }
.post-hero .breadcrumb a { color: var(--color-text-muted); }
.post-hero .breadcrumb a:hover { color: var(--color-primary); text-decoration: underline; }
.post-hero .breadcrumb__sep { color: var(--color-border); }
.post-hero .breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 600; }
.post-hero h1 { font-size: var(--fs-h1); max-width: 46rem; }
.post-hero__meta {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--space-lg);
}
.post-hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 900px;
}
.post-hero__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.post-body-wrap { padding-block: var(--space-lg) var(--space-xl); }
.post-body {
  max-width: 72ch;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
}
.post-body p { margin-bottom: var(--space-md); }
.post-body h2 {
  font-size: var(--fs-h2);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.post-body ul, .post-body ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.4rem;
}
.post-body li { margin-bottom: 0.5rem; }
.post-body a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.post-body strong { color: var(--color-text); }

/* =========================================================
   Blog index
   ========================================================= */
.blog-index { padding-block: var(--space-xl); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 0;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card__image { display: block; aspect-ratio: 16 / 10; background: var(--color-surface); }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__noimg { width: 100%; height: 100%; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 130%); }
.blog-card__body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; min-width: 0; }
.blog-card__date { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: 0.35rem; }
.blog-card__body h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; line-height: 1.35; }
.blog-card__body h3 a { color: var(--color-primary); }
.blog-card__body h3 a:hover { color: var(--color-accent); }
.blog-card__excerpt { font-size: var(--fs-small); color: var(--color-text-muted); flex: 1; }
.blog-card__link {
  margin-top: var(--space-sm);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.blog-card__link:hover { text-decoration: underline; }

/* =========================================================
   Responsive
   ========================================================= */

/* Extra-wide desktop */
@media (min-width: 1600px) {
  .site-header__inner { padding-inline: var(--space-xl); }
}

/* Laptop / tablet landscape */
@media (max-width: 1024px) {
  :root { --space-2xl: 5rem; --space-xl: 3.375rem; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .services__stack { gap: var(--space-lg); }
  .carrier-tile { flex-basis: calc((100% - 2 * var(--space-md)) / 3); max-width: calc((100% - 2 * var(--space-md)) / 3); }
  .feature-strip__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__col + .site-footer__col { border-left: none; padding-left: 0; }
  .info-strip__grid { grid-template-columns: 1fr 1fr; }
  .dropdown--mega { min-width: 460px; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .person-card { flex-basis: calc((100% - var(--space-lg)) / 2); max-width: calc((100% - var(--space-lg)) / 2); }
  .quote-form__row--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .site-header__phone { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-menu[data-open="true"] { display: block; }

  .hero { padding-bottom: 9rem; }
  .pathways { margin-top: -7.5rem; }
  .pathways__grid { grid-template-columns: 1fr; }
  .pathway-card { flex-direction: column; }

  .feature-strip__grid { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__collage { max-width: 340px; }
  .carrier-tile {
    flex-basis: calc((100% - 2 * var(--space-md)) / 3);
    max-width: calc((100% - 2 * var(--space-md)) / 3);
    /* Flex items default to a content-based minimum width, so a large
       logo file can force its column (and the whole row) wider than the
       viewport on narrow screens even though the image itself is capped
       with max-width/max-height. min-width: 0 removes that floor so the
       column sizing (and therefore the logo) actually respects the flex
       basis instead of the image's native pixel size. Mobile-only fix. */
    min-width: 0;
    overflow: hidden;
  }
  .carrier-tile img { max-width: 100%; max-height: 100%; }
  .reviews__grid { grid-template-columns: 1fr; }
  .quote-section__grid { grid-template-columns: 1fr; }
  .quote-form__row { grid-template-columns: minmax(0, 1fr); }
  .info-strip__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__col + .site-footer__col { border-left: none; padding-left: 0; }
  .facts__grid { grid-template-columns: 1fr; }
  .offerings-list { grid-template-columns: 1fr; }
  .about-intro__grid { grid-template-columns: 1fr; }
  .mission-vision { grid-template-columns: 1fr; }
  .person-card { flex-basis: 100%; max-width: 100%; }
  .stat-strip__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .checkbox-group { grid-template-columns: minmax(0, 1fr); }
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile */
@media (max-width: 480px) {
  .hero { padding-bottom: 10rem; }
  .pathways { margin-top: -8.5rem; }
  .feature-strip__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .services__collage { max-width: 260px; }
  .carrier-tile { flex-basis: calc((100% - var(--space-md)) / 2); max-width: calc((100% - var(--space-md)) / 2); }
  .info-strip__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
  .hero__actions .btn,
  .final-cta__actions .btn { width: 100%; }
}
