  :root {
    --navy: #0D1E35;
    --navy-mid: #0D2444;
    --brand-blue: #0D62AC;
    --brand-cyan: #39C0C5;
    --brand-sky: #43B3E6;
    --white: #FFFFFF;
    --off-white: #F4F8FC;
    --gray-100: #EBF1F8;
    --gray-300: #C2D0E0;
    --gray-500: #5A6F8A;
    --gray-700: #354F6B;
    --border: #E1E8F0;
    --radius-sm: 8px;
    --shadow: 0 12px 32px rgba(13,30,53,0.08);
    --brand-gradient: linear-gradient(135deg, #39C0C5 0%, #43B3E6 50%, #4579BC 100%);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'DM Sans', sans-serif;
    color: var(--navy);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; }
  .skip-nav {
    position: absolute; top: -100%; left: 1rem; z-index: 9999;
    background: var(--brand-cyan); color: var(--navy);
    padding: 0.6rem 1.2rem; border-radius: 0 0 8px 8px;
    font-weight: 700; font-size: 0.9rem; text-decoration: none;
  }
  .skip-nav:focus { top: 0; }
  :focus-visible { outline: 3px solid var(--brand-cyan); outline-offset: 3px; border-radius: 4px; }

  body > nav[aria-label="Main navigation"] {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 max(5%, calc((100vw - 1280px) / 2)); height: 76px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(13,30,53,0.08);
  }
  .nav-logo, .footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .nav-logo-text, .footer-logo-text {
    font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: 0;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .footer-logo-text { font-size: 1.2rem; }
  .nav-links { display: flex; gap: clamp(1rem, 2vw, 2rem); align-items: center; }
  .nav-links a {
    font-size: 0.9rem; font-weight: 700; color: var(--gray-700);
    text-decoration: none; transition: color 0.2s;
    position: relative; padding: 0.45rem 0;
  }
  .nav-links a:not(.nav-cta)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -20px;
    height: 3px; background: var(--brand-cyan);
    transform: scaleX(0); transition: transform 0.2s;
  }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand-blue); }
  .nav-links a[aria-current="page"]::after, .nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .nav-links .nav-cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 112px; white-space: nowrap; line-height: 1;
    background: var(--navy); color: var(--white) !important;
    padding: 0.72rem 1.05rem; border-radius: var(--radius-sm);
    font-weight: 700 !important; font-size: 0.875rem !important;
  }
  .nav-hamburger {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 10px; z-index: 110;
  }
  .nav-hamburger .bar {
    display: block; width: 22px; height: 2px; background: var(--navy);
    border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease;
  }
  .nav-hamburger .bar + .bar { margin-top: 5px; }
  .nav-hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
  .nav-hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-drawer {
    display: none; position: fixed; top: 76px; left: 0; right: 0; z-index: 99;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10,22,40,0.08);
    padding: 1.5rem 5% 2rem; box-shadow: 0 12px 40px rgba(13,30,53,0.12);
    transform: translateY(-8px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-drawer.open { transform: translateY(0); opacity: 1; }
  .nav-drawer a {
    display: flex; align-items: center; padding: 0.85rem 0;
    font-size: 1rem; font-weight: 600; color: var(--gray-700);
    text-decoration: none; border-bottom: 1px solid var(--gray-100);
  }
  .nav-drawer .drawer-cta {
    justify-content: center; margin-top: 1.25rem; background: var(--brand-gradient);
    color: var(--white) !important; padding: 0.85rem 2rem; border-radius: 999px;
    font-weight: 800 !important; border-bottom: none !important;
  }

  .page-hero {
    position: relative; min-height: 520px; overflow: hidden;
    display: flex; align-items: flex-end;
    padding: 150px 5% 76px; color: var(--white);
    background:
      linear-gradient(90deg, rgba(5,14,29,0.9) 0%, rgba(8,23,43,0.78) 52%, rgba(10,55,101,0.48) 100%),
      url('https://vanasekinsurance.com/wp-content/uploads/2019/05/contact-hero-bg.jpg') center/cover;
  }
  .page-hero::after {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 56% 44% at 76% 20%, rgba(67,179,230,0.18), transparent 66%),
      radial-gradient(ellipse 68% 46% at 24% 82%, rgba(57,192,197,0.12), transparent 70%);
    pointer-events: none;
  }
  .hero-inner, .section-inner { width: 100%; max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
  .eyebrow, .section-kicker {
    display: inline-flex; align-items: center; gap: 12px;
    color: rgba(93,214,218,0.94);
    font-size: 0.72rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
  }
  .eyebrow::before, .section-kicker::before {
    content: ''; width: 34px; height: 1px; background: currentColor; opacity: 0.85; flex-shrink: 0;
  }
  .page-hero h1 {
    max-width: 760px; margin-top: 1.2rem;
    font-family: 'Sora', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1; letter-spacing: 0;
  }
  .hero-copy {
    max-width: 760px; margin-top: 1.35rem;
    color: rgba(255,255,255,0.78); font-size: 1.18rem; line-height: 1.65; font-weight: 300;
  }

  section { padding: 92px 5%; }
  .contact-layout {
    display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(390px, 0.76fr);
    gap: clamp(2rem, 5vw, 5rem); align-items: start;
  }
  .section-kicker { color: var(--brand-blue); margin-bottom: 0.95rem; }
  .section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3.75rem);
    line-height: 1.08; letter-spacing: 0; margin-bottom: 1rem;
  }
  .section-title strong { color: var(--brand-blue); }
  .intro-copy {
    color: var(--gray-700); line-height: 1.75; font-weight: 300; max-width: 680px;
    font-size: 1.04rem;
  }
  .office-list { display: grid; gap: 1.3rem; margin-top: 2rem; }
  .office-card {
    background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow);
    display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(240px, 0.75fr);
    gap: 1rem; padding: 1.2rem;
  }
  .office-card h3 {
    font-family: 'Sora', sans-serif; font-size: 1rem; margin-bottom: 0.7rem;
  }
  .office-card p { color: var(--gray-700); line-height: 1.68; font-weight: 300; }
  .office-card a { color: var(--brand-blue); text-decoration: none; font-weight: 700; }
  .map-frame {
    width: 100%; min-height: 170px; height: 100%; border: 0;
    filter: saturate(0.92) contrast(1.02);
  }

  .contact-panel {
    background: var(--navy); color: var(--white); padding: clamp(1.4rem, 3vw, 2.2rem);
    box-shadow: 0 24px 60px rgba(13,30,53,0.16);
  }
  .contact-panel h2 {
    font-family: 'Sora', sans-serif; font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    line-height: 1.25; letter-spacing: 0;
  }
  .contact-form { display: grid; gap: 0.9rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .form-field label, .choice-group legend {
    display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.6px;
    text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 0.45rem;
  }
  .form-field input, .form-field textarea {
    width: 100%; border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08); color: var(--white);
    min-height: 48px; padding: 0.85rem 0.95rem; font: inherit;
  }
  .form-field textarea { min-height: 140px; resize: vertical; }
  .form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.42); }
  .choice-group {
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.9rem;
    margin: 0;
  }
  .choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.7rem;
  }
  .choice-chip {
    position: relative;
    display: flex; align-items: center; gap: 0.55rem;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.76);
    padding: 0.62rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
  }
  .choice-chip input { position: absolute; opacity: 0; pointer-events: none; }
  .choice-chip::before {
    content: '';
    width: 10px; height: 10px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.44);
    flex-shrink: 0;
  }
  .choice-chip:has(input:checked) {
    background: rgba(57,192,197,0.18);
    border-color: rgba(57,192,197,0.62);
    color: var(--white);
  }
  .choice-chip:has(input:checked)::before {
    background: var(--brand-cyan);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(57,192,197,0.18);
  }
  .choice-chip:focus-within { border-color: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(57,192,197,0.12); }
  .form-submit {
    justify-self: start; min-height: 48px; border: 0;
    background: var(--brand-cyan); color: var(--navy);
    padding: 0.85rem 1.45rem; font-weight: 800; cursor: pointer;
  }

  footer {
    background: var(--navy-mid);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-logo-block { display: flex; flex-direction: column; gap: 1rem; }
  .footer-logo { display: flex; align-items: center; gap: 10px; }
  .footer-logo svg { flex-shrink: 0; }
  .footer-logo-text {
    font-family: 'Sora', sans-serif;
    font-weight: 800; font-size: 1.2rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #39C0C5 0%, #43B3E6 55%, #4579BC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.6; max-width: 200px; }
  .footer-col-title {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--brand-cyan);
    margin-bottom: 1.25rem;
  }
  .footer-address { display: flex; flex-direction: column; gap: 0.4rem; }
  .footer-address .biz-name { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 0.25rem; }
  .footer-address p { font-size: 0.82rem; color: rgba(255,255,255,0.62); line-height: 1.6; }
  .footer-address a { font-size: 0.82rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; display: block; margin-top: 0.2rem; }
  .footer-address a:hover { color: var(--brand-cyan); }
  .footer-address .phone-highlight {
    font-size: 0.88rem; font-weight: 600; color: var(--brand-sky);
    text-decoration: none; margin-top: 0.5rem; display: block;
  }
  .footer-address .phone-highlight:hover { color: var(--brand-cyan); }
  .footer-hipaa { font-size: 0.82rem; color: rgba(255,255,255,0.62); line-height: 1.6; }
  .footer-hipaa a { color: rgba(255,255,255,0.55); text-decoration: underline; transition: color 0.2s; }
  .footer-hipaa a:hover { color: var(--brand-cyan); }
  .social-icons { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
  .social-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem;
    transition: all 0.2s;
  }
  .social-icon:hover { background: var(--brand-cyan); border-color: var(--brand-cyan); color: var(--navy); }
  .footer-bottom {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 1.75rem; gap: 1rem; flex-wrap: wrap;
  }
  .footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
  .footer-bottom-links { display: flex; gap: 1.5rem; }
  .footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
  .footer-bottom-links a:hover { color: var(--brand-cyan); }

  @media (max-width: 1120px) {
    .nav-hamburger { display: flex; }
    .nav-links { display: none; }
    .nav-drawer { display: block; }
  }
  @media (max-width: 1024px) {
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-logo-block { grid-column: span 2; }
  }
  @media (max-width: 700px) {
    .page-hero { min-height: 480px; padding: 128px 5% 58px; }
    .page-hero h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
    section { padding: 72px 5%; }
    .office-card, .form-row { grid-template-columns: 1fr; }
    .map-frame { min-height: 220px; }
    .choice-grid { grid-template-columns: 1fr; }
    .form-submit { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-links { width: 100%; justify-content: space-between; gap: 1rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }

/* ══════════════════════════════════════════════════════════════
   GENERIC CONTENT TEMPLATES
   (blog posts, archives, search, 404, and pages that keep their
   content in the WordPress editor — Teamsters, Medicare, HIPAA…)
   ══════════════════════════════════════════════════════════════ */

.generic-hero {
  background: linear-gradient(135deg, #08172B 0%, #0D1E35 46%, #0A3765 100%);
  padding: 150px 5% 60px;
}
.generic-hero-inner { max-width: 880px; margin: 0 auto; }
.generic-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--brand-cyan); margin-bottom: 1rem;
}
.generic-eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.75; }
.generic-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800; line-height: 1.15; color: #FFFFFF;
}
.generic-meta { margin-top: 0.9rem; font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.generic-meta a { color: #5DD6DA; text-decoration: none; }
.generic-meta a:hover { text-decoration: underline; }

.generic-body { background: #FFFFFF; padding: 56px 5% 96px; }
.generic-body-inner { max-width: 880px; margin: 0 auto; }

.entry-thumb { margin: 0 0 2rem; }
.entry-thumb img { width: 100%; height: auto; display: block; border-radius: 14px; }

.entry-content { font-size: 1.02rem; line-height: 1.75; color: #354F6B; }
.entry-content > * + * { margin-top: 1.15rem; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: 'Sora', sans-serif; color: var(--navy); line-height: 1.25;
  margin-top: 2.2rem;
}
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content h4 { font-size: 1.05rem; }
.entry-content a { color: #0D62AC; }
.entry-content a:hover { color: var(--brand-cyan); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: 0.4rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content blockquote {
  border-left: 3px solid var(--brand-cyan); padding-left: 1.25rem;
  color: var(--navy); font-weight: 500;
}
.entry-content iframe { max-width: 100%; }

/* Legacy contact/form pages migrated from the previous theme. */
.legacy-hero-content h1 {
  max-width: 760px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: 0;
}
.legacy-hero-content h2,
.legacy-hero-content h3,
.legacy-hero-content h4 {
  margin-top: 0.8rem;
  color: rgba(255,255,255,0.76);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}
.legacy-hero-content a {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: .8rem 1.4rem;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm, 8px);
  background: var(--brand-sky);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}
.legacy-form-body-inner { max-width: 1180px; }
.legacy-form-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
}
.legacy-form-intro { display: grid; gap: 1.2rem; }
.legacy-form-intro iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
}
.legacy-form-intro img { margin-inline: auto; }
.legacy-form-panel {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}
.legacy-form-panel > h2 {
  margin-bottom: 1.5rem;
  color: var(--navy);
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.25;
}
.legacy-form-subtitle:empty { display: none; }
.legacy-form-tab + .legacy-form-tab { margin-top: 2rem; }
.legacy-form-tab > h3 { margin-bottom: 1rem; }
.legacy-form-panel .wpcf7-form { display: grid; gap: 1rem; }
.legacy-form-panel .wpcf7-form p { margin: 0; }
.legacy-form-panel .wpcf7-form-control-wrap { display: block; }
.legacy-form-panel input:not([type='submit']):not([type='checkbox']):not([type='radio']),
.legacy-form-panel select,
.legacy-form-panel textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--gray-300);
  background: var(--off-white);
  color: var(--navy);
  font: inherit;
}
.legacy-form-panel textarea { min-height: 150px; resize: vertical; }
.legacy-form-panel input[type='submit'] {
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  border: 0;
  background: var(--brand-cyan);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.legacy-form-panel input[type='submit']:hover { background: var(--brand-sky); }
.legacy-form-panel .wpcf7-not-valid-tip { margin-top: 0.35rem; color: #b42318; }
.legacy-form-panel .wpcf7-response-output { margin: 1rem 0 0; }

@media (max-width: 900px) {
  .legacy-form-page { grid-template-columns: 1fr; }
  .legacy-form-panel { max-width: 680px; width: 100%; }
}

/* Legacy coverage pages: render migrated section metadata without ACF. */
.legacy-sections-page { display: grid; gap: 2rem; }
.legacy-content-section {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}
.legacy-content-section > h2 { margin-bottom: 1.25rem; color: var(--navy); font-family: 'Sora', sans-serif; }
.legacy-content-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.legacy-content-columns aside { padding: 1.4rem; background: var(--off-white); border-left: 3px solid var(--brand-cyan); }

/* Migrated contact cards: keep related labels and numbers visually grouped. */
.legacy-contact-card h3,
.legacy-contact-card h4 { margin: 0; }
.legacy-contact-card h3:first-child {
  margin-bottom: .8rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
}
.legacy-contact-card p { margin: 0; }
.legacy-contact-card h3:nth-of-type(2),
.legacy-contact-card h3:nth-of-type(4) {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legacy-contact-card h3:nth-of-type(3),
.legacy-contact-card h3:nth-of-type(5) {
  margin-top: .35rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.15;
}
.legacy-contact-card h4 {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.3;
}
.legacy-contact-card a[href*='calendly'] { margin-top: 1.75rem; }
.legacy-content-section h2, .legacy-content-section h3 { color: var(--navy); }
.legacy-content-section p + p, .legacy-content-section ul + p, .legacy-content-section p + ul { margin-top: 1rem; }
.legacy-section-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; margin-top: 1rem; padding: .9rem 1.25rem; border-radius: var(--radius-sm, 8px); background: var(--brand-cyan); color: var(--navy) !important; text-decoration: none; font-size: .95rem; font-weight: 800; }
.legacy-video-content {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin: -1.4rem -1.4rem 1.5rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #167ea9, #43b3e6 55%, #2c7eb8);
  color: var(--white);
}
.legacy-video-content a { color: var(--white); font-weight: 800; }
.legacy-content-section a.button,
.legacy-content-columns aside a[href*='calendly'],
.legacy-section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .9rem 1.25rem;
  border-radius: 8px;
  background: var(--brand-cyan);
  color: var(--navy);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.legacy-content-section a.button:hover,
.legacy-content-columns aside a[href*='calendly']:hover,
.legacy-section-button:hover { filter: brightness(.96); transform: translateY(-1px); }
.legacy-video-content::before { content: '▶'; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: .7rem; border: 5px solid rgba(255,255,255,.9); border-radius: 50%; font-size: 1.8rem; }
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(2, 9, 20, .92);
  backdrop-filter: blur(10px);
}
.video-lightbox.open { display: flex; }
.video-lightbox__frame {
  position: relative;
  width: min(1100px, 100%);
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 36px 100px rgba(0, 0, 0, .55);
}
.video-lightbox__player { display: block; width: 100%; max-height: calc(100vh - 6rem); background: #000; }
.video-lightbox__close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(5,14,29,.82);
  color: #fff;
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.video-lightbox__close:hover,
.video-lightbox__close:focus-visible { background: var(--brand-cyan); color: var(--navy); outline: none; }

.appointment-lightbox {
  position: fixed;
  inset: 0;
  z-index: 720;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 3vw, 2rem);
  background: rgba(2, 9, 20, .82);
  backdrop-filter: blur(8px);
}
.appointment-lightbox.open { display: flex; }
.appointment-lightbox__frame {
  width: min(920px, 100%);
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 36px 100px rgba(0, 0, 0, .45);
}
.appointment-lightbox__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.appointment-lightbox__head h2 { margin: .15rem 0 0; color: var(--navy); font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
.appointment-lightbox__close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--navy);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.appointment-lightbox__close:hover,
.appointment-lightbox__close:focus-visible { background: var(--brand-cyan); outline: none; }
.appointment-lightbox__calendar { display: block; width: 100%; height: min(700px, calc(100vh - 8rem)); border: 0; background: var(--white); }
@media (max-width: 650px) {
  .video-lightbox { padding: .75rem; }
  .video-lightbox__frame { border-radius: 10px; }
  .video-lightbox__player { max-height: calc(100vh - 1.5rem); }
  .appointment-lightbox { padding: 0; }
  .appointment-lightbox__frame { max-height: 100vh; border-radius: 0; }
  .appointment-lightbox__calendar { height: calc(100vh - 86px); }
}
.legacy-news-card { display: grid; grid-template-columns: minmax(220px, .7fr) 1fr; gap: 1.5rem; align-items: center; margin-top: 1rem; }
.legacy-news-card img { width: 100%; height: 220px; object-fit: cover; }
.legacy-news-card h3 a { color: var(--navy); text-decoration: none; }
@media (max-width: 800px) { .legacy-content-columns { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .legacy-news-card { grid-template-columns: 1fr; } }

/* Cyber quote modal, aligned with the consultation intake experience. */
.modal-overlay { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(5,14,29,.68); backdrop-filter: blur(12px); }
.modal-overlay.open { display: flex; }
.risk-modal { width: min(760px,100%); max-height: calc(100vh - 3rem); overflow: auto; background: var(--white); border-radius: 18px; box-shadow: 0 32px 90px rgba(2,10,24,.34); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 1.75rem 1.2rem; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); }
.modal-eyebrow { margin-bottom: .45rem; color: var(--brand-blue); font-size: .72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.modal-title { margin: 0 0 .35rem; color: var(--navy); font-family: 'Sora',sans-serif; font-size: clamp(1.35rem,2.4vw,1.9rem); }
.modal-copy { color: var(--gray-500); line-height: 1.5; }
.modal-close { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--off-white); color: var(--navy); font-size: 1.5rem; cursor: pointer; }
.cyber-quote-form { padding: 1.75rem; }
.cyber-quote-form > h2 { display: none; }
.cyber-quote-form .wpcf7-form p { margin: 0; }
.cyber-quote-form .wpcf7-form > p:first-of-type { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem .9rem; align-items: center; }
.cyber-quote-form .wpcf7-form > p:first-of-type > br { display: none; }
.cyber-quote-form .wpcf7-form > p:first-of-type > .wpcf7-form-control-wrap:nth-of-type(8) { grid-column: 2; grid-row: 4; align-self: end; margin-top: 2rem; }
.cyber-coverage-field { grid-column: 2; grid-row: 4; display: flex; flex-direction: column; gap: .4rem; align-self: stretch; }
.cyber-coverage-field label { color: var(--navy); font-size: .82rem; font-weight: 700; }
.cyber-quote-form .wpcf7-form-control-wrap { display: block; margin: 0; min-width: 0; }
.cyber-quote-form input:not([type='submit']), .cyber-quote-form select, .cyber-quote-form textarea { width: 100%; min-height: 48px; padding: .82rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: #f8fbfe; color: var(--navy); font: inherit; }
.cyber-quote-form input[type='submit'] { min-height: 48px; padding: .9rem 1.25rem; border: 0; border-radius: var(--radius-sm, 8px); background: var(--brand-cyan); color: var(--navy); font: inherit; font-size: .95rem; font-weight: 800; cursor: pointer; }
body.modal-open { overflow: hidden; }
@media (max-width: 620px) {
  .modal-overlay { padding: .75rem; }
  .risk-modal { max-height: calc(100vh - 1.5rem); }
  .modal-head { padding: 1.1rem 1.2rem .9rem; }
  .modal-copy { font-size: .88rem; }
  .cyber-quote-form { padding: 1.1rem 1.2rem 1.25rem; }
  .cyber-quote-form .wpcf7-form > p:first-of-type { grid-template-columns: 1fr; gap: .65rem; }
  .cyber-quote-form .wpcf7-form > p:first-of-type > .wpcf7-form-control-wrap:nth-of-type(8) { grid-column: 1; grid-row: auto; margin-top: 0; }
  .cyber-coverage-field { grid-column: 1; grid-row: auto; }
}

/* Archive / search result cards */
.archive-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .archive-list { grid-template-columns: 1fr; } }
.archive-card {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: box-shadow 0.25s, transform 0.25s;
  display: flex; flex-direction: column;
}
.archive-card:hover { box-shadow: 0 24px 60px rgba(13,30,53,0.10); transform: translateY(-3px); }
.archive-card-thumb { display: block; height: 190px; overflow: hidden; }
.archive-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.archive-card-date { font-size: 0.78rem; color: #5A6F8A; }
.archive-card h2 { font-family: 'Sora', sans-serif; font-size: 1.05rem; line-height: 1.4; }
.archive-card h2 a { color: var(--navy); text-decoration: none; }
.archive-card h2 a:hover { color: #0D62AC; }
.archive-card p { font-size: 0.88rem; color: #5A6F8A; line-height: 1.6; }
.archive-card .read-more { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--brand-cyan); text-decoration: none; }

/* Post prev/next links */
.post-nav {
  position: static;
  inset: auto;
  z-index: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  height: auto;
  margin-top: 3rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}
.post-nav a {
  display: flex;
  align-items: center;
  min-height: 76px;
  max-width: none;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--off-white);
  color: #0D62AC;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.post-nav a:last-child { justify-content: flex-end; text-align: right; }
.post-nav a:hover { color: var(--brand-cyan); }
@media (max-width: 650px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { justify-content: flex-start; text-align: left; }
}

/* WordPress pagination — scope override: the theme nav hides .nav-links
   on mobile, but WP pagination reuses that class name. */
.pagination { margin-top: 3rem; }
.pagination .nav-links {
  display: flex !important; gap: 0.5rem; flex-wrap: wrap; align-items: center;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 0.75rem;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; color: var(--navy);
  text-decoration: none; background: #FFFFFF;
}
.pagination .page-numbers.current { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.pagination a.page-numbers:hover { border-color: var(--brand-cyan); color: #0D62AC; }

/* WordPress editor alignment helpers */
.entry-content .alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text { font-size: 0.82rem; color: #5A6F8A; margin-top: 0.5rem; }
.entry-content .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); word-wrap: normal;
}

/* reCAPTCHA v3 branding is presented inline beneath every protected form. */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-disclosure {
  width: 100%;
  margin: .8rem 0 0;
  color: var(--muted, #5A6F8A);
  font-size: .72rem;
  line-height: 1.45;
}
.recaptcha-disclosure a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
