/*
Theme Name: Northline Psychiatry
Theme URI: https://northlinepsych.com
Author: Northline Psychiatry, Inc.
Author URI: https://northlinepsych.com
Description: Custom theme for Northline Psychiatry — in-network psychiatric care in East Lyme, CT. Serves Niantic, Waterford, Old Lyme, and the Connecticut shoreline.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: All Rights Reserved
License URI: https://northlinepsych.com
Text Domain: northline
Tags: healthcare, psychiatry, mental-health, custom-menu, custom-logo, responsive-layout, accessibility-ready
*/

:root {
  --navy: #0B2545; --deep: #065A82; --teal: #1C7293; --mint: #5CF2BE;
  --cream: #F7F4EC; --light: #EDF3F7; --border: #D8E2EC;
  --ink: #0A1929; --muted: #536B7A; --warm: #E8C9A0;
  --shadow: 0 1px 3px rgba(11,37,69,0.08), 0 4px 12px rgba(11,37,69,0.06);
  --shadow-lg: 0 4px 24px rgba(11,37,69,0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--deep); }
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--teal); }
p { margin-bottom: 1rem; color: #1c2733; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--deep); text-decoration: underline; }
strong { color: var(--navy); font-weight: 600; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section--cream { background: var(--cream); }
.section--light { background: var(--light); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.85); }

/* Crisis banner (always-visible empathy + safety) */
/* Skip link — first focusable element. WCAG 2.4.1. */
.skip-link { position: absolute; top: -100px; left: 0; background: var(--navy); color: #fff;
  padding: 0.85rem 1.25rem; font-weight: 600; text-decoration: none; z-index: 1000;
  border-radius: 0 0 8px 0; }
.skip-link:focus { top: 0; outline: 3px solid var(--mint); outline-offset: 2px; }

/* Visible focus styles for keyboard users (WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .cta:focus-visible, .sticky-cta-btn:focus-visible { outline-offset: 3px; }
.faq-item summary:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; border-radius: 12px; }
main:focus { outline: none; } /* don't visibly outline main when skip link targets it */
:focus:not(:focus-visible) { outline: none; }

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

/* Marketing promo banner (replaces old crisis banner — crisis info lives in footer + assessment + condition pages) */
.promo-banner { background: linear-gradient(90deg, var(--mint) 0%, #b8ead7 100%);
  border-bottom: 1px solid rgba(11,37,69,0.08); padding: 0.55rem 1.5rem; }
.promo-banner-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 1rem;
  justify-content: center; align-items: center; font-size: 0.88rem; color: var(--navy); flex-wrap: wrap; }
.promo-banner strong { font-weight: 700; }
.promo-divider { color: rgba(11,37,69,0.35); }
.promo-cta { color: var(--navy); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.promo-cta:hover { color: #003a52; text-decoration: underline; }
.promo-cta .phone-icon svg { width: 12px; height: 14px; }
@media (max-width: 768px) {
  .promo-banner { padding: 0.5rem 0.85rem; }
  .promo-banner-inner { gap: 0.6rem; font-size: 0.8rem; }
  .promo-divider { display: none; }
}

/* Phone-icon helper */
.phone-icon { display: inline-flex; align-items: center; }
.phone-icon svg { width: 11px; height: 14px; }

/* Social media icons in utility nav */
.utility-social { display: inline-flex; align-items: center; gap: 0.6rem; }
.utility-social a { display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; color: rgba(255,255,255,0.7); border-radius: 50%; }
.utility-social a:hover { color: var(--mint); background: rgba(255,255,255,0.06); }
.utility-social svg { width: 14px; height: 14px; }

/* Utility nav (phone + insurance + portal + provider) */
.utility-nav { background: var(--navy); color: rgba(255,255,255,0.85); }
.utility-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0.4rem 1.5rem;
  display: flex; gap: 1.25rem; justify-content: flex-end; align-items: center; font-size: 0.82rem; }
.utility-nav a { color: rgba(255,255,255,0.85); font-weight: 500; }
.utility-nav a:hover { color: var(--mint); text-decoration: none; }
.utility-phone a { color: var(--mint); font-weight: 600; }
.utility-divider { color: rgba(255,255,255,0.3); }
.mobile-only { display: none; }
.header-phone { display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--navy); font-weight: 600; font-size: 0.95rem; padding: 0.45rem 0.7rem;
  border: 1px solid var(--border); border-radius: 8px; }
.header-phone:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }

/* Primary nav dropdown menus (set up parent/child in WP Appearance > Menus) */
.nav-parent { position: relative; }
.nav-parent > a::after { content: " \25BE"; font-size: 0.75em; opacity: 0.7; }
.nav-submenu { display: none; position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(11,37,69,0.12);
  padding: 0.5rem 0; min-width: 240px; z-index: 110; }
.nav-submenu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-parent:hover .nav-submenu, .nav-parent:focus-within .nav-submenu { display: block; }
.nav-submenu .submenu-link { display: block; padding: 0.6rem 1.25rem; color: var(--navy);
  font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.nav-submenu .submenu-link:hover { background: var(--cream); color: var(--teal); text-decoration: none; }
@media (max-width: 768px) {
  .nav-parent > a::after { display: none; }
  .nav-submenu { display: block; position: static; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--border); border-radius: 0;
    padding: 0 0 0 0.75rem; margin: 0 0 0.5rem 0.75rem; min-width: 0; }
  .nav-submenu .submenu-link { padding: 0.55rem 0.5rem; font-size: 0.95rem; }
}

/* Sticky mobile bottom CTA bar — research: click-to-call + book within thumb reach is critical mobile pattern */
.sticky-mobile-cta { display: none; }
@media (max-width: 768px) {
  .sticky-mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    gap: 0.5rem; padding: 0.6rem 0.75rem; background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px); border-top: 1px solid var(--border);
    box-shadow: 0 -2px 14px rgba(11,37,69,0.08); }
  .sticky-cta-btn { flex: 1; min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
    gap: 0.4rem; padding: 0.85rem 1rem; border-radius: 10px; font-weight: 700; font-size: 0.98rem;
    text-decoration: none; }
  .sticky-cta-btn--primary { background: var(--navy); color: #fff; }
  .sticky-cta-btn--primary:hover { background: var(--navy); color: #fff; }
  .sticky-cta-btn--ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
  .sticky-cta-btn--ghost:hover { background: var(--cream); color: var(--navy); }
  body { padding-bottom: 76px; } /* keep last content above sticky bar */
  .site-footer { margin-bottom: 0; } /* footer still flows correctly */
}

/* Hero value-cluster row (Talkiatry pattern: 3 friction-busting promises) */
/* Lives in the dark navy hero gradient — needs light text + bright accent for contrast */
.value-cluster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem;
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.18); }
.value-cluster .vc-item { display: flex; gap: 0.7rem; align-items: flex-start; }
.value-cluster .vc-icon { font-size: 1.5rem; line-height: 1; color: var(--mint); flex-shrink: 0; margin-top: 0.1rem; font-weight: 700; }
.value-cluster .vc-text { font-size: 0.9rem; line-height: 1.45; color: rgba(255,255,255,0.85); }
.value-cluster .vc-text strong { color: #fff; display: block; font-size: 0.98rem; margin-bottom: 0.15rem; font-weight: 700; }
@media (max-width: 768px) {
  .value-cluster { grid-template-columns: 1fr; gap: 0.85rem; padding-top: 1.25rem; margin-top: 1.5rem; }
}

/* "How it works" 3-step section (uses .hiw-step to avoid collision with global .step counter) */
.how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.hiw-step { position: relative; padding-left: 0; }
.hiw-step .hiw-num { display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; background: var(--mint); color: var(--navy);
  font-weight: 700; font-size: 1.1rem; margin-bottom: 0.85rem; flex-shrink: 0; }
.hiw-step h3 { font-size: 1.15rem; margin-bottom: 0.55rem; line-height: 1.3; white-space: normal; }
.hiw-step p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 768px) {
  .how-it-works { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Insurance pill row */
.ins-pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1.25rem 0 1.5rem; }
.ins-pill { display: inline-flex; align-items: center; gap: 0.4rem; background: #fff; border: 1px solid var(--border);
  color: var(--navy); padding: 0.55rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 1px 3px rgba(11,37,69,0.04); }
.ins-pill .ins-check { color: var(--teal); font-weight: 700; }
.ins-strip { background: var(--cream); padding: 2.25rem 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ins-strip .ins-strip-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.ins-strip .eyebrow { color: var(--teal); }
.ins-strip h2 { font-size: 1.4rem; margin: 0.25rem 0 0.4rem; }
.ins-strip p { color: var(--text-muted); margin-bottom: 0.25rem; }
.ins-strip .ins-cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* FAQ accordion (homepage + condition pages) — designed as comfortable rounded boxes */
.faq-block { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(11,37,69,0.03); transition: box-shadow 0.18s ease, border-color 0.18s ease; }
.faq-item:hover { border-color: rgba(11,37,69,0.18); box-shadow: 0 2px 8px rgba(11,37,69,0.06); }
.faq-item[open] { border-color: var(--teal); box-shadow: 0 2px 10px rgba(11,37,69,0.08); }
.faq-item summary { font-weight: 600; font-size: 1.02rem; color: var(--navy); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; line-height: 1.4; min-height: 56px; border-radius: 12px; }
.faq-item summary:hover { color: var(--teal); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--teal); font-weight: 400; line-height: 1;
  flex-shrink: 0; transition: transform 0.18s ease; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item-body { padding: 0 1.5rem 1.4rem; }
.faq-item p { color: var(--text-muted); margin: 0; font-size: 0.97rem; line-height: 1.65; }
.faq-item p + p { margin-top: 0.7rem; }
@media (max-width: 600px) {
  .faq-item summary { padding: 1.05rem 1.15rem; font-size: 0.98rem; }
  .faq-item-body { padding: 0 1.15rem 1.2rem; }
}

/* Response-time + availability strip */
.avail-strip { background: var(--navy); color: #fff; padding: 1rem 1.5rem; }
.avail-strip-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 1.5rem; justify-content: center;
  align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
.avail-strip strong { color: var(--mint); }
@media (max-width: 768px) {
  .avail-strip-inner { flex-direction: column; gap: 0.5rem; text-align: center; font-size: 0.9rem; }
}

.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.logo { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.logo span { color: var(--teal); }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--teal); text-decoration: none; }
.nav a.cta { background: var(--navy); color: #fff; padding: 0.55rem 1.1rem; border-radius: 6px; font-weight: 600; }
.nav a.cta:hover { background: var(--deep); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

@media (max-width: 920px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0;
    background: #fff; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); gap: 0.8rem; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* HERO with image */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--deep) 60%, var(--teal) 100%);
  color: #fff; padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; top: 0; right: -10%; width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(92,242,190,0.18) 0%, transparent 60%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .lede { font-size: 1.25rem; color: rgba(255,255,255,0.92); margin-bottom: 2rem; line-height: 1.5; }
.hero .badges { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.badge { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 999px;
  padding: 0.4rem 0.9rem; font-size: 0.85rem; color: #fff; font-weight: 500; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn { display: inline-block; padding: 0.85rem 1.5rem; border-radius: 6px; font-weight: 600;
  font-size: 0.95rem; transition: all 0.15s; cursor: pointer; border: 0; }
.btn--primary { background: var(--mint); color: var(--navy); }
.btn--primary:hover { background: #4ad9a8; color: var(--navy); text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--deep); color: #fff; text-decoration: none; }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; text-decoration: none; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1.75rem;
  transition: all 0.2s; box-shadow: var(--shadow); }
.card:hover { box-shadow: var(--shadow-lg); border-color: #c5d4e2; }
.card .icon { width: 44px; height: 44px; border-radius: 8px; background: var(--light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  color: var(--teal); font-size: 1.4rem; font-weight: 700; }
.card h3 { margin-bottom: 0.5rem; }
.card .meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.card a.more { color: var(--teal); font-weight: 600; font-size: 0.9rem; }

.pill { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.pill--mint { background: rgba(92,242,190,0.18); color: var(--deep); }
.pill--teal { background: var(--light); color: var(--teal); }
.pill--soon { background: rgba(255,200,80,0.2); color: #8b5a00; }
.pill--live { background: rgba(50,180,90,0.18); color: #1f7a3a; }

.page-header { background: linear-gradient(135deg, var(--navy) 0%, var(--deep) 100%); color: #fff;
  padding: 3.5rem 0 3rem; }
.page-header h1 { color: #fff; margin-bottom: 0.75rem; }
.page-header .breadcrumb { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-header .lede { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 720px; }

.steps { counter-reset: step; }
.step { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; }
.step::before { counter-increment: step; content: counter(step); flex: 0 0 38px; height: 38px;
  border-radius: 50%; background: var(--navy); color: var(--mint); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-family: Georgia, serif; }
.step-body h4 { margin-bottom: 0.25rem; }

.callout { background: var(--cream); border-left: 4px solid var(--teal); padding: 1.5rem;
  border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.callout--mint { background: rgba(92,242,190,0.12); border-left-color: var(--deep); }
.callout--warn { background: rgba(255,200,80,0.12); border-left-color: #c98a00; }

details { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; align-items: center; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); transition: transform 0.2s; }
details[open] summary::after { content: "−"; }
details p { margin-top: 0.75rem; margin-bottom: 0; }

.table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.table th, .table td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--navy); color: #fff; font-weight: 600; font-size: 0.9rem; }

/* IMAGE placeholders + real images */
.stock-img { width: 100%; height: auto; display: block; border-radius: 12px; }
.stock-img-placeholder { aspect-ratio: 16/10; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep) 60%, var(--teal) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); padding: 2rem; text-align: center; position: relative; overflow: hidden; }
.stock-img-placeholder::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(92,242,190,0.2) 0%, transparent 60%); }
.stock-img-placeholder.warm { background: linear-gradient(135deg, var(--cream) 0%, var(--warm) 100%); color: var(--navy); }
.stock-img-placeholder.warm::before { background: radial-gradient(circle at 30% 30%, rgba(28,114,147,0.15) 0%, transparent 60%); }
.stock-img-placeholder.teal { background: linear-gradient(135deg, var(--teal) 0%, var(--deep) 100%); }
.stock-img-placeholder.light { background: linear-gradient(135deg, var(--light) 0%, var(--cream) 100%); color: var(--navy); }
.stock-img-placeholder span { position: relative; z-index: 1; }
.stock-img-placeholder .label { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.stock-img-placeholder .hint { font-size: 0.78rem; opacity: 0.8; font-style: italic; max-width: 400px; }
.img-square { aspect-ratio: 1/1; }
.img-portrait { aspect-ratio: 3/4; }
.img-wide { aspect-ratio: 21/9; }

/* Testimonial card */
.testimonial { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: var(--shadow);
  position: relative; }
.testimonial::before { content: "\201C"; position: absolute; top: -10px; left: 20px;
  font-family: Georgia, serif; font-size: 5rem; color: var(--teal); line-height: 1; opacity: 0.3; }
.testimonial p.quote { font-size: 1.05rem; font-style: italic; color: var(--ink); margin-bottom: 1.25rem; line-height: 1.6; }
.testimonial .attribution { font-size: 0.9rem; color: var(--muted); }
.testimonial .attribution strong { color: var(--navy); display: block; }

/* Insurance logos row */
.insurance-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; align-items: center;
  padding: 2rem 0; }
@media (max-width: 920px) { .insurance-row { grid-template-columns: repeat(3, 1fr); } }
.insurance-logo { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.25rem; text-align: center; font-weight: 600; color: var(--muted); font-size: 0.9rem;
  box-shadow: var(--shadow); }

/* Trust badges */
.trust-row { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; padding: 1.5rem 0; }
.trust-badge { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem;
  background: var(--light); border-radius: 999px; font-size: 0.85rem; color: var(--ink); font-weight: 500; }
.trust-badge::before { content: "\2713"; color: var(--deep); font-weight: 700; }

/* Self-assessment */
/* Reset wpautop spacing inside assessment cards (WordPress wraps lone text in <p>) */
.assess-q p { margin: 0 0 0.5rem; }
.assess-q p:last-child { margin-bottom: 0; }
.assess-q br { display: none; }
.assess-q { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem;
  margin-bottom: 0.75rem; box-shadow: var(--shadow); }
.assess-q label { display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  padding: 0.4rem 0.55rem; border-radius: 6px; margin: 0; line-height: 1.3; }
.assess-q label + label { margin-top: 0.15rem; }
.assess-q label:hover { background: var(--light); }
.assess-q input[type="radio"] { margin: 0; flex-shrink: 0; }

/* Provider card */
.provider-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.provider-card .stock-img-placeholder { aspect-ratio: 4/3; border-radius: 0; }
.provider-card .body { padding: 1.5rem; }
.provider-card h3 { margin-bottom: 0.25rem; }
.provider-card .role { color: var(--teal); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; }

/* Blog cards */
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  transition: all 0.2s; box-shadow: var(--shadow); }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.blog-card .stock-img-placeholder { aspect-ratio: 3/2; border-radius: 0; }
.blog-card .body { padding: 1.5rem; }
.blog-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.blog-card .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card .excerpt { color: var(--ink); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,0.7); display: block; padding: 0.2rem 0; }
.site-footer a:hover { color: var(--mint); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; row-gap: 2.5rem; } }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-serving { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.85;
  padding: 1.5rem 0; margin-bottom: 0.75rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-serving strong { color: rgba(255,255,255,0.85); display: inline; margin-right: 0.4rem; }
.footer-serving a, .footer-serving a:visited { color: rgba(255,255,255,0.78);
  display: inline; padding: 0; }
.footer-serving a:hover { color: var(--mint); text-decoration: underline; }
.footer-meta a, .footer-meta a:visited { color: rgba(255,255,255,0.85);
  display: inline; padding: 0; }
.footer-meta a:hover { color: var(--mint); text-decoration: underline; }
.footer-brand { font-family: Georgia, serif; font-size: 1.6rem; color: #fff; margin-bottom: 0.5rem; }
.footer-brand span { color: var(--mint); }
.footer-tag { font-size: 0.92rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; max-width: 320px; }
.footer-meta { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.eyebrow { color: var(--teal); font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.5rem; display: block; }

/* ============ MOBILE OPTIMIZATION ============ */

/* Mobile menu overlay (always in DOM, only visible when active) */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(11,37,69,0.5);
  z-index: 99; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.nav-overlay.active { display: block; opacity: 1; pointer-events: auto; }
.nav-close { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink);
  cursor: pointer; padding: 0.5rem; min-height: 44px; min-width: 44px;
  align-self: flex-end; margin-bottom: 0.5rem; }

/* TABLET: 768px and below */
@media (max-width: 768px) {
  /* Hide utility nav on mobile — its links live in the hamburger + sticky bottom bar */
  .utility-nav { display: none; }
  .header-phone { display: none; }
  .mobile-only { display: flex; }

  /* Section padding tighter */
  .section { padding: 3rem 0; }
  .page-header { padding: 3rem 0 2.5rem; }

  /* Tables: horizontal scroll on small screens */
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border); border-radius: 8px; }
  .table thead, .table tbody { display: table; width: 100%; min-width: 480px; }

  /* Mobile menu becomes a side panel with overlay */
  .nav { display: none; flex-direction: column; position: fixed; top: 0; right: 0;
    width: 300px; max-width: 88vw; height: 100vh; background: #fff;
    padding: 1.5rem 1.5rem 2rem; box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 200; overflow-y: auto; gap: 0.5rem; align-items: stretch; border-left: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav.open .nav-close { display: inline-flex; align-items: center; justify-content: center; }
  .nav-toggle { display: block; z-index: 250; position: relative; min-height: 44px; min-width: 44px; }

  /* Nav links: larger touch targets */
  .nav a { padding: 0.95rem 0.5rem; min-height: 44px; display: flex; align-items: center;
    border-bottom: 1px solid var(--light); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a.cta { margin-top: 0.5rem; justify-content: center; padding: 1rem; font-size: 1rem; }

  /* Hero collapses */
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 3.5rem 0 3rem; }

  /* All grids collapse */
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* grid-2 stays 2 cols on tablet — collapses at phone breakpoint below */

  /* Footer 4 → 2 cols */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Insurance row 6 → 3 */
  .insurance-row { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  /* Card padding tightens */
  .card { padding: 1.5rem; }
}

/* PHONE: 600px and below */
@media (max-width: 600px) {
  /* Container/narrow padding tighter */
  .container, .narrow { padding: 0 1rem; }

  /* Section padding even tighter */
  .section { padding: 2.5rem 0; }
  .page-header { padding: 2.5rem 0 2rem; }
  .page-header .lede { font-size: 1.05rem; }

  /* Hero adjustments */
  .hero { padding: 2.5rem 0 2rem; }
  .hero .lede { font-size: 1.1rem; margin-bottom: 1.5rem; }
  .hero .badges { gap: 0.5rem; margin-bottom: 1.5rem; }
  .badge { font-size: 0.78rem; padding: 0.35rem 0.7rem; }

  /* Hero CTAs: stack and emphasize primary */
  .hero-cta { flex-direction: column; gap: 0.75rem; align-items: stretch; }
  .hero-cta .btn { width: 100%; padding: 1rem 1.5rem; font-size: 1rem; text-align: center;
    min-height: 48px; }
  .hero-cta .btn--primary { font-size: 1.05rem; font-weight: 700; }

  /* Buttons meet 44px touch target */
  .btn { padding: 0.95rem 1.5rem; min-height: 44px; }

  /* All grids → 1 col */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Footer single column, stacked meta */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
  .footer-meta { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
  .site-footer { padding: 2.5rem 0 1.5rem; }

  /* Insurance row 3 → 2 */
  .insurance-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 1.25rem 0; }
  .insurance-logo { padding: 1rem; font-size: 0.85rem; }

  /* Card padding even tighter */
  .card { padding: 1.25rem; }
  .testimonial { padding: 1.5rem; }

  /* Promo banner: tighter on mobile */
  .promo-banner { padding: 0.45rem 0.75rem; }
  .promo-banner-inner { font-size: 0.78rem; gap: 0.35rem; }

  /* Step numbers smaller */
  .step { gap: 1rem; }
  .step::before { flex: 0 0 32px; height: 32px; font-size: 0.95rem; }
  .step-body h4 { font-size: 1rem; }

  /* Self-assessment: bigger touch targets */
  .assess-q { padding: 1rem; }
  .assess-q label { padding: 0.85rem 0.5rem; font-size: 1rem; min-height: 44px;
    display: flex; align-items: center; gap: 0.5rem; }
  .assess-q input[type="radio"] { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }

  /* Headings tighter */
  h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
  h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
  h4 { font-size: 1.05rem; }

  /* Pills smaller */
  .pill { font-size: 0.7rem; padding: 0.2rem 0.55rem; }

  /* Eyebrow tighter */
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.06em; }

  /* Site header: less horizontal padding */
  .site-header-inner { padding: 0.85rem 1rem; }
  .logo { font-size: 1.35rem; }

  /* Details/FAQ summaries: bigger touch target */
  details { padding: 1rem; }
  summary { padding: 0.5rem 0; min-height: 44px; }

  /* Trust badges: smaller */
  .trust-row { gap: 0.5rem; }
  .trust-badge { font-size: 0.78rem; padding: 0.4rem 0.8rem; }

  /* Image placeholders: smaller hint text */
  .stock-img-placeholder { padding: 1.25rem; }
  .stock-img-placeholder .label { font-size: 0.95rem; }
  .stock-img-placeholder .hint { font-size: 0.7rem; }
}

/* Very small phones: 360px and below */
@media (max-width: 360px) {
  .container, .narrow { padding: 0 0.75rem; }
  h1 { font-size: 1.85rem; }
  .hero-cta .btn { font-size: 0.95rem; }
}
