/* ==========================================================================
   CANDID BILLING - MODERN HEALTHCARE RCM THEME
   Aesthetic, High-Conversion, WordPress-Ready Design System
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --color-navy-darker: #071729;
    --color-navy: #0d2847;
    --color-navy-light: #163c68;
    --color-blue-primary: #0066cc;
    --color-blue-hover: #0052a3;
    --color-blue-light: #e6f0fa;
    --color-blue-soft: #f0f7ff;
    --color-accent-teal: #0d9488;
    --color-emerald: #10b981;
    --color-amber-star: #f59e0b;
    
    --color-text-dark: #0f172a;
    --color-text-body: #334155;
    --color-text-muted: #5b6b7f;
    --color-text-light: #94a3b8;
    --color-bg-page: #ffffff;
    --color-bg-subtle: #f4f6f8;
    --color-bg-alt: #f4f6f8;
    --color-border: #e2e8f0;
    --color-border-focus: #0066cc;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* --- Enhanced multi-layer shadows --- */
    --shadow-xs: 0 1px 2px rgba(13, 40, 71, 0.06);
    --shadow-sm: 0 1px 2px rgba(13, 40, 71, 0.05), 0 2px 6px rgba(13, 40, 71, 0.05);
    --shadow-md: 0 2px 4px rgba(13, 40, 71, 0.05), 0 6px 16px rgba(13, 40, 71, 0.09);
    --shadow-lg: 0 4px 8px rgba(13, 40, 71, 0.05), 0 14px 32px rgba(13, 40, 71, 0.13);
    --shadow-xl: 0 8px 16px rgba(13, 40, 71, 0.07), 0 24px 48px rgba(13, 40, 71, 0.16);
    --shadow-2xl: 0 12px 24px rgba(13, 40, 71, 0.08), 0 32px 64px rgba(13, 40, 71, 0.18);
    --shadow-card-hover: 0 6px 12px rgba(0, 102, 204, 0.10), 0 18px 40px rgba(0, 102, 204, 0.18);
    --shadow-inset-line: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    
    /* --- Borders --- */
    --border-width: 1px;
    --border-color: #dde5ef;
    --border-color-strong: #c7d3e2;
    --border-accent: rgba(0, 102, 204, 0.28);
    --section-divider: var(--color-border);
    
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-body);
    background-color: var(--color-bg-page);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-blue-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-blue-hover);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* --- Container & Layout --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-padding-sm {
    padding-top: 50px;
    padding-bottom: 50px;
}

.bg-subtle {
    background-color: var(--color-bg-subtle);
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.w-100 { width: 100%; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.text-center { text-align: center; }

/* --- Section Headers --- */
.section-header-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-blue-primary);
    margin-bottom: 10px;
}

.section-main-heading {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.25;
    margin-bottom: 14px;
}

.section-subheading {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-navy {
    background-color: var(--color-navy);
    color: #ffffff;
    border-color: var(--color-navy);
}

.btn-navy:hover {
    background-color: var(--color-navy-light);
    border-color: var(--color-navy-light);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(13, 40, 71, 0.25);
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--color-blue-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-blue-hover);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.25);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-border);
    color: var(--color-text-dark);
}

.btn-outline:hover {
    border-color: var(--color-blue-primary);
    color: var(--color-blue-primary);
    background-color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-navy {
    background-color: transparent;
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.btn-outline-navy:hover {
    background-color: var(--color-navy);
    color: #ffffff;
}

.btn-primary-light {
    background-color: var(--color-blue-light);
    color: var(--color-blue-primary);
    border-color: transparent;
}

.btn-primary-light:hover {
    background-color: var(--color-blue-primary);
    color: #ffffff;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

/* --- Badges & Pills --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    background-color: var(--color-blue-light);
    color: var(--color-blue-primary);
}

/* ==========================================================================
   TOP BAR & NAVIGATION HEADER
   ========================================================================== */
.top-bar {
    background-color: var(--color-blue-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8125rem;
    color: #ffffff;
    padding: 7px 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Keep every top-bar chip on a single line — never break mid-string */
.top-bar-item,
.top-bar-link {
    white-space: nowrap;
}

.top-bar-item,
.top-bar-link {
    color: #ffffff;
}

.top-bar-item i, .top-bar-link i {
    color: rgba(255, 255, 255, 0.85);
    margin-right: 5px;
}

.top-bar-link {
    color: #ffffff;
    font-weight: 500;
}

.top-bar-link:hover {
    color: #dbeeff;
}

/* Promo tag ("Free Audit Services") - a solid white pill on the blue bar,
   pulsing zoom-in / zoom-out exactly like the reference site's top-bar offer. */
.top-bar-audit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    padding: 4px 14px;
    border: 0;
    border-radius: var(--radius-pill);
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(7, 23, 41, 0.18);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-blue-primary);
    text-decoration: none;
    transform-origin: center;
    animation: cb-topbar-pulse 2s ease-in-out infinite;
}

.top-bar-audit:hover,
.top-bar-audit:focus-visible {
    background-color: #eaf2ff;
    color: var(--color-navy);
    animation-play-state: paused;
}

.top-bar-audit i {
    color: var(--color-blue-primary);
    margin-right: 0;
}

@keyframes cb-topbar-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.07);
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-bar-audit {
        animation: none;
    }
}

/* Phone number gets its own chip so it reads as the call-to-action */
.top-bar-phone {
    background-color: #ffffff;
    color: var(--color-blue-primary) !important;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.top-bar-phone i {
    color: var(--color-blue-primary);
}

.top-bar-phone:hover {
    color: var(--color-blue-primary) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.top-bar-socials {
    display: flex;
    gap: 12px;
    margin-left: 10px;
    border-left: 1px solid var(--color-border);
    padding-left: 15px;
}

.top-bar-socials a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
}

.top-bar-socials a:hover {
    color: var(--color-blue-primary);
    background-color: var(--color-blue-light);
}

/* Main Sticky Header (Fancy Floating Glassmorphism) */
.main-header.fancy-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header.fancy-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 32px -8px rgba(13, 40, 71, 0.12);
    border-bottom: 1px solid rgba(0, 102, 204, 0.18);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
    position: relative;
}

/* Brand Logo */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-fallback-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon-box {
    width: 42px;
    height: 42px;
    background: var(--color-blue-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-title .accent-text {
    color: var(--color-blue-primary);
}

.brand-tagline {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Nav Menu */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 2px;
    background-color: var(--color-blue-primary);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
    transform-origin: center;
    border-radius: var(--radius-pill);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-blue-primary);
}

.nav-arrow {
    font-size: 0.6875rem;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Standard Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 290px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px -8px rgba(13, 40, 71, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-dark);
    transition: all var(--transition-fast);
}

.dropdown-menu li a i {
    width: 18px;
    color: var(--color-blue-primary);
    text-align: center;
}

.dropdown-menu li a:hover {
    background-color: var(--color-blue-soft);
    color: var(--color-blue-primary);
    padding-left: 24px;
}

/* ==========================================================================
   FANCY SERVICES MEGA MENU
   ========================================================================== */
.has-mega-menu {
    position: static;
}

.mega-menu-panel {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 50px -12px rgba(13, 40, 71, 0.18), 0 0 0 1px rgba(0, 102, 204, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow: hidden;
}

.has-mega-menu:hover .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 1.15fr 0.95fr;
    background: #ffffff;
}

.mega-col {
    padding: 26px 20px;
    border-right: 1px solid var(--color-border);
}

.mega-col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-blue-soft);
}

.mega-head-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-blue-soft);
    color: var(--color-blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.mega-head-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    display: block;
    line-height: 1.25;
}

.mega-head-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    display: block;
}

.mega-links-list li {
    margin-bottom: 6px;
}

.mega-links-list li a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
}

.mega-links-list li a:hover {
    background-color: var(--color-blue-soft);
    transform: translateX(4px);
}

.mega-links-list li a i {
    color: var(--color-blue-primary);
    margin-top: 3px;
    font-size: 0.9375rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.mega-link-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-navy);
    display: block;
    line-height: 1.25;
    margin-bottom: 2px;
}

.mega-link-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.35;
    display: block;
}

/* Mega Menu Promo Card */
.mega-col-promo {
    padding: 24px;
    background: var(--color-navy-darker);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mega-promo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    text-align: center;
}

.promo-heading {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.promo-text {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 16px;
}

.promo-footer-link {
    margin-top: 14px;
}

.promo-footer-link a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #38bdf8;
    text-decoration: underline;
}

.promo-footer-link a:hover {
    color: #7dd3fc;
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-cta-btn {
    padding: 12px 24px;
    font-size: 0.875rem;
    background: var(--color-navy);
    box-shadow: 0 4px 14px rgba(13, 40, 71, 0.2);
    border: none;
}

.header-cta-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.phone-highlight {
    color: var(--color-blue-primary) !important;
    font-weight: 700 !important;
}

/* ---------- Mobile drawer navigation (modern card rows) ----------
   Each row is its own rounded card with an icon tile; groups expand into a
   soft panel instead of an indented bullet list. */
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border: 0;
}

.mobile-nav-item > a,
.mobile-nav-accordion summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-navy);
    text-decoration: none;
    cursor: pointer;
    list-style: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-accordion summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--color-blue-soft);
    color: var(--color-blue-primary);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-icon i {
    font-size: 0.9375rem;
    color: inherit;
}

.mobile-nav-label {
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-nav-chevron {
    flex-shrink: 0;
    font-size: 0.6875rem;
    color: var(--color-text-light);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-item > a:hover,
.mobile-nav-item > a:focus-visible,
.mobile-nav-accordion summary:hover,
.mobile-nav-accordion summary:focus-visible {
    background: rgba(0, 102, 204, 0.07);
    color: var(--color-blue-primary);
}

.mobile-nav-item > a:hover .mobile-nav-chevron,
.mobile-nav-item > a:focus-visible .mobile-nav-chevron,
.mobile-nav-accordion summary:hover .mobile-nav-chevron,
.mobile-nav-accordion summary:focus-visible .mobile-nav-chevron {
    color: var(--color-blue-primary);
    transform: translateX(2px);
}

.mobile-nav-item > a:hover .mobile-nav-icon,
.mobile-nav-item > a:focus-visible .mobile-nav-icon,
.mobile-nav-accordion summary:hover .mobile-nav-icon,
.mobile-nav-accordion summary:focus-visible .mobile-nav-icon,
.mobile-nav-item.is-current .mobile-nav-icon {
    background: var(--color-blue-primary);
    color: #ffffff;
}

.mobile-nav-item.is-current > a,
.mobile-nav-item.is-current > summary {
    background: rgba(0, 102, 204, 0.1);
    color: var(--color-blue-primary);
}

.mobile-nav-accordion details[open] > summary .mobile-nav-chevron {
    transform: rotate(180deg);
    color: var(--color-blue-primary);
}

.mobile-sub-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    margin: 6px 0 2px;
    padding: 8px;
    background: var(--color-bg-subtle);
    border-radius: 14px;
}

.mobile-nav-accordion details[open] > .mobile-sub-list {
    animation: cb-drawer-sub-in 0.22s ease both;
}

@keyframes cb-drawer-sub-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.mobile-sub-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text-body);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-sub-list li a i {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-blue-primary);
}

.mobile-sub-list li a:hover,
.mobile-sub-list li a:focus-visible {
    background: #ffffff;
    color: var(--color-blue-primary);
}

.mobile-sub-all a {
    font-weight: 700;
    color: var(--color-blue-primary);
    background: rgba(0, 102, 204, 0.08);
}

.mobile-sub-all a i {
    width: auto;
    font-size: 0.75rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    /* Client request: the specialist photo is now the section background
       (it used to sit in the middle column), with an overlay so the
       headline, copy and lead form stay perfectly readable. */
    background-color: #eef4fd;
    background-image: url("../images/hero-doctor.jpg");
    background-size: cover;
    background-position: center 22%;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 50px;
    padding-bottom: 70px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    /* Two columns now that the photo is the section background:
       copy on the left, lead form on the right. */
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.hero-content {
    padding-right: 10px;
}

.hero-tag {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.18;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.hero-title .text-primary-focus {
    color: var(--color-blue-primary);
    display: block;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--color-text-body);
    line-height: 1.65;
    margin-bottom: 28px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
}

/* Slightly tighter buttons so both CTAs stay on one line beside the copy. */
.hero-cta-group .btn {
    padding: 12px 20px;
}

/* Hero Center Image */
.hero-image-col {
    position: relative;
    text-align: center;
    /* The photo is painted as the hero background; this column is empty. */
    display: none;
}

.hero-image-wrapper {
    position: relative;
    /* The photo is painted as the whole-section background now, so the
       framed inline copy is hidden (the block is kept so it stays editable). */
    display: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #ffffff;
}

.hero-image-wrapper img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center top;
}

/* Hero Form Card (Floating right) */
.hero-form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 102, 204, 0.12);
    position: relative;
}

.hero-form-header {
    margin-bottom: 20px;
}

.hero-form-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.hero-form-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.form-group {
    margin-bottom: 14px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.col-half {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-dark);
    background-color: #ffffff;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.form-control::placeholder {
    color: var(--color-text-light);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
    cursor: pointer;
}

.required-star {
    color: #dc2626;
}

.form-privacy-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==========================================================================
   TRUST BADGES STRIP (Under Hero)
   ========================================================================== */
.trust-strip-section {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-badge-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.trust-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-blue-soft);
    color: var(--color-blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.trust-badge-item:hover .trust-badge-icon {
    transform: scale(1.08);
    background-color: var(--color-blue-primary);
    color: #ffffff;
}

.trust-badge-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 2px;
}

.trust-badge-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   COMMON CHALLENGES SECTION (What is Slowing Down Your Practice?)
   ========================================================================== */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.challenge-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-blue-primary);
}

.challenge-icon-box {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px auto;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-navy);
    transition: all var(--transition-fast);
}

.challenge-card:hover .challenge-icon-box {
    background-color: var(--color-blue-primary);
    color: #ffffff;
}

.challenge-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 16px;
    line-height: 1.35;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.challenge-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-blue-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: auto;
}

.challenge-link:hover {
    color: var(--color-blue-hover);
    gap: 8px;
}

/* ==========================================================================
   FEATURED SERVICE SECTION (Verification of Benefits)
   ========================================================================== */
.featured-service-section {
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.featured-service-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.featured-service-image-col {
    position: relative;
}

.featured-mockup-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.featured-mockup-wrapper img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.featured-badge-float {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(13, 40, 71, 0.92);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.featured-badge-float i {
    color: var(--color-emerald);
}

.featured-service-content {
    padding-left: 10px;
}

.featured-tag {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-blue-primary);
    margin-bottom: 8px;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 10px;
}

.featured-subtitle {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-blue-primary);
    margin-bottom: 14px;
}

.featured-description {
    font-size: 0.9375rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 24px;
}

.vob-checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-bottom: 30px;
}

.vob-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.vob-check-item i {
    color: var(--color-emerald);
    font-size: 1rem;
    flex-shrink: 0;
}

.featured-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ==========================================================================
   OUR SERVICES SECTION
   ========================================================================== */
.services-grid-seven {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-blue-primary);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--color-blue-soft);
    color: var(--color-blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 18px;
    transition: all var(--transition-fast);
}

.service-card:hover .service-card-icon {
    background-color: var(--color-blue-primary);
    color: #ffffff;
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 10px;
    line-height: 1.35;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-blue-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.service-card-link:hover {
    color: var(--color-blue-hover);
    gap: 10px;
}

/* ==========================================================================
   WHO WE SERVE (SPECIALTIES) SECTION
   ========================================================================== */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.specialty-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-fast);
}

.specialty-card:hover {
    border-color: var(--color-blue-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.specialty-card.featured-specialty {
    background-color: #f0f7ff;
    border-color: #bae6fd;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.specialty-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-blue-soft);
    color: var(--color-blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.specialty-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 6px;
    line-height: 1.35;
}

.specialty-subnote {
    font-size: 0.75rem;
    color: #556478;
    line-height: 1.35;
}

/* ==========================================================================
   HOW IT WORKS (PROCESS TIMELINE)
   ========================================================================== */
.process-section {
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.process-timeline-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    margin-top: 30px;
}

.process-timeline-row::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 2px;
    background-color: var(--color-border);
    z-index: 1;
}

.process-step-item {
    position: relative;
    z-index: 2;
    text-align: center;
}

.process-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-blue-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 0 6px #ffffff;
    transition: transform var(--transition-fast);
}

.process-step-item:hover .process-step-number {
    transform: scale(1.1);
    background-color: var(--color-navy);
}

.process-step-title {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.process-step-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* ==========================================================================
   WHY CHOOSE CANDID BILLING SECTION (5 Pills)
   ========================================================================== */
.why-choose-pills-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.why-pill-item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all var(--transition-fast);
}

.why-pill-item:hover {
    border-color: var(--color-blue-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.why-pill-icon {
    color: var(--color-blue-primary);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.why-pill-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.why-pill-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   TESTIMONIALS & GOOGLE REVIEWS SECTION (Screenshots 1 & 2)
   ========================================================================== */
.client-reviews-section {
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.reviews-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.google-review-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.google-g-icon {
    width: 28px;
    height: 28px;
}

.google-score-num {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

.stars-rating {
    color: var(--color-amber-star);
    font-size: 0.875rem;
}

.google-rating-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Testimonial Cards Carousel */
.reviews-carousel-wrapper {
    position: relative;
}

.reviews-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card-item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.review-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-blue-primary);
}

.review-stars {
    color: var(--color-amber-star);
    font-size: 0.9375rem;
    margin-bottom: 14px;
}

.review-quote-text {
    font-size: 0.9375rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.review-author-block {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.review-avatar-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
}

/* Google reviewers appear as initials - no external profile photos to hotlink. */
.review-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-blue-light);
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
    color: var(--color-blue-primary);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.review-author-name {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-navy);
}

.review-author-role {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   NATIONWIDE COVERAGE SECTION (Map & Locations)
   ========================================================================== */
.nationwide-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.nationwide-map-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.map-svg-canvas {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 102, 204, 0.08));
}

.popular-states-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.state-pin-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
}

.state-pin-item i {
    color: var(--color-blue-primary);
}

/* ==========================================================================
   RESOURCES & FAQ SPLIT SECTION
   ========================================================================== */
.resources-faq-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
}

/* Articles / Blog Cards */
.blog-post-card {
    display: flex;
    gap: 18px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    transition: all var(--transition-fast);
}

.blog-post-card:hover {
    border-color: var(--color-blue-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-thumb-img {
    width: 140px;
    height: 95px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.blog-meta-info {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-card-title a {
    color: inherit;
}

.blog-card-title a:hover {
    color: var(--color-blue-primary);
}

.blog-read-more {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-blue-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item.active {
    border-color: var(--color-blue-primary);
}

.faq-question-btn {
    width: 100%;
    padding: 14px 18px;
    text-align: left;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-navy);
    cursor: pointer;
}

.faq-icon-toggle {
    font-size: 0.875rem;
    color: var(--color-blue-primary);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon-toggle {
    transform: rotate(45deg);
}

.faq-answer-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 18px;
    color: var(--color-text-body);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.faq-item.active .faq-answer-panel {
    padding-bottom: 16px;
}

/* ==========================================================================
   BOTTOM CALL-TO-ACTION BAR (Screenshot 1)
   ========================================================================== */
.bottom-cta-section {
    padding: 40px 0;
    background-color: var(--color-bg-subtle);
}

.bottom-cta-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
}

.bottom-cta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.bottom-cta-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.bottom-cta-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.bottom-cta-contact-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bottom-cta-link {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 6px;
}

.divider-dot {
    color: #556478;
}

.bottom-form-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.bottom-input {
    background-color: var(--color-bg-subtle);
    border-color: var(--color-border);
    padding: 12px 14px;
}

.bottom-submit-btn {
    width: 100%;
    height: 100%;
    padding: 12px 16px;
    font-size: 0.8125rem;
}

/* ==========================================================================
   SITE FOOTER (Dark Navy Theme)
   ========================================================================== */
.site-footer {
    background-color: #f2f2f2;
    color: var(--color-navy);
    padding-top: 64px;
    border-top: 1px solid #d7dce3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.9fr 1.25fr;
    gap: 48px 40px;
    padding-bottom: 52px;
    align-items: start;
}

.footer-logo-img {
    max-height: 42px;
    width: auto;
    margin-bottom: 16px;
    filter: none;
}

/* The image can fail (or be cleared in the customiser): keep the wordmark
   readable on the light footer. */
.site-footer .logo-fallback-brand.white-theme .brand-title {
    color: var(--color-navy);
}

.site-footer .logo-fallback-brand .accent-text {
    color: var(--color-blue-primary);
}

.footer-bio {
    font-size: 0.9375rem;
    color: #5b6b7a;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 38ch;
}

.footer-social-heading {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

.footer-social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #d7dce3;
    color: #5b6b7a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.footer-social-links a:hover {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    color: #ffffff;
}

.footer-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #6b7a89;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.footer-security-badge i {
    color: var(--color-emerald);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-menu li {
    margin-bottom: 9px;
}

.footer-menu li a {
    color: #5b6b7a;
    font-size: 0.9rem;
    line-height: 1.5;
    display: inline-block;
    transition: color var(--transition-fast);
}

.footer-menu li a:hover {
    color: var(--color-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 13px;
    font-size: 0.9rem;
    color: #5b6b7a;
    line-height: 1.6;
}

.footer-contact-list li i {
    color: var(--color-blue-primary);
    margin-top: 3px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.footer-contact-list li a {
    color: var(--color-navy);
}

.footer-contact-list li a:hover {
    color: var(--color-blue-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom-bar {
    border-top: 1px solid #d7dce3;
    padding: 20px 0;
    font-size: 0.8125rem;
    color: #5b6b7a;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-bottom-links a {
    color: #5b6b7a;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--color-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sep-slash {
    color: #c3cad4;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.site-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.site-modal.active {
    opacity: 1;
    visibility: visible;
}

.site-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 40, 71, 0.65);
    backdrop-filter: blur(4px);
}

.site-modal-dialog {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
}

.site-modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-base);
}

.site-modal.active .site-modal-content {
    transform: scale(1);
}

.site-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--color-bg-subtle);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--color-text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.site-modal-close:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.modal-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-emerald);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    z-index: 3000;
    transform: translateY(120%);
    opacity: 0;
    transition: all var(--transition-base);
    max-width: 380px;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: var(--color-emerald);
    font-size: 1.35rem;
    margin-top: 2px;
}

.toast-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    cursor: pointer;
}

/* Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-navy);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-blue-primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
    .hero-image-col {
        display: none;
    }
    .challenges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .services-grid-seven {
        grid-template-columns: repeat(2, 1fr);
    }
    .specialties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .why-choose-pills-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .bottom-form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-phone-pill {
        display: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .featured-service-grid {
        grid-template-columns: 1fr;
    }
    .process-timeline-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .process-timeline-row::before {
        display: none;
    }
    .reviews-cards-row {
        grid-template-columns: 1fr;
    }
    .nationwide-split-grid {
        grid-template-columns: 1fr;
    }
    .resources-faq-grid {
        grid-template-columns: 1fr;
    }
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    .services-grid-seven {
        grid-template-columns: 1fr;
    }
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    .why-choose-pills-row {
        grid-template-columns: 1fr;
    }
    .process-timeline-row {
        grid-template-columns: 1fr;
    }
    .trust-badges-grid {
        grid-template-columns: 1fr;
    }
    .bottom-form-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
    .section-main-heading {
        font-size: 1.75rem;
    }
    .vob-checklist-grid {
        grid-template-columns: 1fr;
    }
    .d-none-mobile {
        display: none !important;
    }
}

/* Mobile Drawer */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 23, 41, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 90vw);
    height: 100%;
    background: #ffffff;
    border-left: 1px solid var(--color-border);
    z-index: 1600;
    box-shadow: -18px 0 48px rgba(7, 23, 41, 0.2);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    transform: translateX(105%);
    transition: transform var(--transition-base), visibility var(--transition-base);
}

.mobile-drawer.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-shrink: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    background: #ffffff;
}

.mobile-drawer-header .header-logo img {
    display: block;
    max-height: 34px;
    width: auto;
}

.mobile-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-subtle);
    font-size: 1.0625rem;
    color: var(--color-navy);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.mobile-drawer-close:hover,
.mobile-drawer-close:focus-visible {
    background: var(--color-blue-primary);
    border-color: var(--color-blue-primary);
    color: #ffffff;
}

.mobile-drawer-body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 12px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.mobile-drawer-eyebrow {
    display: block;
    padding: 2px 12px 8px;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    margin: 0;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--color-border);
    background: #ffffff;
    box-shadow: 0 -10px 24px rgba(7, 23, 41, 0.05);
}

/* Short phones (SE / landscape / small Android): keep every link reachable. */
@media (max-height: 720px) {
    .mobile-drawer-body {
        padding: 10px 12px 14px;
    }

    .mobile-drawer-footer {
        gap: 8px;
        padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-nav-item > a,
    .mobile-nav-accordion summary {
        min-height: 48px;
        padding: 8px 10px;
    }

    .mobile-nav-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
}

/* Hamburger: a rounded surface button instead of a bare glyph. */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--color-blue-soft);
    border: 1px solid rgba(0, 102, 204, 0.18);
    border-radius: 12px;
    font-size: 1.125rem;
    color: var(--color-navy);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    background: var(--color-blue-primary);
    border-color: var(--color-blue-primary);
    color: #ffffff;
}

   LAYER 2 - ENHANCEMENT SYSTEM
   Section borders, refined shadows, long-form content blocks,
   specialty listing, blog article layout, mobile responsiveness polish
   ========================================================================== */

/* ---------- Section chrome: hairline borders + soft ambient shadow ---------- */
.section-padding,
.section-padding-sm {
    position: relative;
}

.bg-page {
    background-color: var(--color-bg-page);
}

/* Vertical hairline separators between alternating bands */
.section-divider-top {
    border-top: 1px solid var(--color-border);
}

.section-divider-bottom {
    border-bottom: 1px solid var(--color-border);
}

/* Elevated panel section - whole band becomes a raised surface */
.section-elevated {
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(13, 40, 71, 0.04),
        0 10px 30px rgba(13, 40, 71, 0.05);
}

/* Soft top+bottom ambient glow used on tinted bands */
.section-ambient {
    position: relative;
}

.section-ambient::before,
.section-ambient::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--section-divider);
    pointer-events: none;
}

.section-ambient::before { top: 0; }
.section-ambient::after { bottom: 0; }

/* Side rules on wide containers for a "framed" look */
.section-framed .container {
    position: relative;
}

@media (min-width: 1200px) {
    .section-framed .container::before,
    .section-framed .container::after {
        content: "";
        position: absolute;
        top: 12px;
        bottom: 12px;
        width: 1px;
        background: var(--color-border-strong);
    }
    .section-framed .container::before { left: 0; }
    .section-framed .container::after { right: 0; }
}

/* ---------- Page banner (inner pages) upgrade ---------- */
.page-banner {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
    box-shadow: inset 0 -14px 26px -18px rgba(13, 40, 71, 0.30);
}

.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: none;
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}

.page-banner > .container {
    position: relative;
    z-index: 1;
}

/* ---------- Breadcrumb upgrade ---------- */
.breadcrumb-trail {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(6px);
}

.breadcrumb-trail a {
    color: var(--color-text-muted);
}

.breadcrumb-trail a:hover {
    color: var(--color-blue-primary);
}

.breadcrumb-trail .crumb-current {
    color: var(--color-blue-primary);
    font-weight: 700;
}

.breadcrumb-trail i {
    font-size: 0.625rem;
    color: var(--color-text-light);
}

/* ---------- Card shadow + border refinement ---------- */
.service-card,
.challenge-card,
.specialty-card,
.trust-badge-item,
.review-card,
.process-step-item,
.blog-post-card {
    border-width: 1px;
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.service-card:hover,
.challenge-card:hover,
.specialty-card:hover,
.blog-post-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-5px);
}

.review-card:hover,
.process-step-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

/* Accent hairline that appears on card hover */
.service-card,
.challenge-card,
.blog-post-card {
    position: relative;
    overflow: hidden;
}

.service-card::before,
.challenge-card::before,
.blog-post-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-blue-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition-base);
    z-index: 2;
}

.service-card:hover::before,
.challenge-card:hover::before,
.blog-post-card:hover::before {
    transform: scaleX(1);
}

/* ---------- Grid helpers ---------- */
.grid-auto {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-2 {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.grid-auto-4 {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* ---------- Specialty master list (48 items from reference) ---------- */
.specialty-master-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.specialty-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-blue-primary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.35;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.specialty-chip:hover {
    transform: translateX(4px);
    border-color: var(--border-accent);
    border-left-color: var(--color-accent-teal);
    box-shadow: var(--shadow-md);
    color: var(--color-blue-primary);
}

.specialty-chip i {
    color: var(--color-blue-primary);
    font-size: 0.9375rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.specialty-chip.is-featured {
    background: var(--color-blue-soft);
    border-left-color: var(--color-accent-teal);
}

/* ---------- Long-form / article content ---------- */
.prose-content {
    max-width: 860px;
    margin: 0 auto;
    color: var(--color-text-body);
    font-size: 1.0625rem;
    line-height: 1.78;
}

.prose-content > * + * {
    margin-top: 20px;
}

.prose-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.3;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 2px solid var(--color-border);
    position: relative;
}

.prose-content h2::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 64px;
    height: 2px;
    background: var(--color-blue-primary);
}

.prose-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3125rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.4;
    margin-top: 34px;
}

.prose-content h4 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-navy-light);
    line-height: 1.45;
    margin-top: 28px;
    padding-left: 14px;
    border-left: 3px solid var(--color-accent-teal);
}

.prose-content h2:first-child,
.prose-content h3:first-child {
    margin-top: 0;
}

.prose-content p {
    margin-bottom: 0;
}

.prose-content strong {
    color: var(--color-navy);
    font-weight: 700;
}

.prose-content a {
    color: var(--color-blue-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(0, 102, 204, 0.35);
}

.prose-content a:hover {
    color: var(--color-blue-hover);
    text-decoration-color: var(--color-blue-hover);
}

.prose-content ul,
.prose-content ol {
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.prose-content ul > li {
    position: relative;
    padding-left: 34px;
}

.prose-content ul > li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-emerald);
    font-size: 0.6875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prose-content ol {
    counter-reset: prose-ol;
}

.prose-content ol > li {
    position: relative;
    padding-left: 40px;
    counter-increment: prose-ol;
}

.prose-content ol > li::before {
    content: counter(prose-ol);
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-blue-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
}

.prose-content blockquote {
    margin: 30px 0;
    padding: 22px 26px;
    background: var(--color-blue-soft);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-blue-primary);
    border-radius: var(--radius-md);
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--color-navy-light);
    box-shadow: var(--shadow-sm);
}

.prose-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Callout boxes used inside service pages */
.content-callout {
    display: flex;
    gap: 18px;
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.content-callout.is-info {
    background: #eef6ff;
    border-color: #cfe2f7;
}

.content-callout.is-success {
    background: #ecfdf5;
    border-color: #bbf0da;
}

.content-callout.is-warn {
    background: #fffbeb;
    border-color: #fde68a;
}

.callout-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--color-blue-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.28);
}

.content-callout.is-success .callout-icon {
    background: var(--color-emerald);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.content-callout.is-warn .callout-icon {
    background: var(--color-amber-star);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.callout-body h4 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.callout-body p {
    font-size: 0.9375rem;
    color: var(--color-text-body);
    line-height: 1.65;
    margin: 0;
}

/* ---------- Stat / feature list with left rule ---------- */
.feature-list {
    display: grid;
    gap: 14px;
}

.feature-list-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.feature-list-item:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
    transform: translateX(3px);
}

.feature-list-item .fli-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-blue-soft);
    color: var(--color-blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
}

.feature-list-item h3,
.feature-list-item h4 {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 3px;
    line-height: 1.4;
}

.feature-list-item p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ---------- Blog article page ---------- */
.article-hero {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
}

.article-hero-media {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.article-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 23, 41, 0.34);
}

.article-hero-body {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-top: 48px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 18px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-meta i {
    color: var(--color-blue-primary);
}

.article-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.article-author img,
.article-author .author-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8125rem;
}

.article-author strong {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-size: 0.875rem;
}

/* Table of contents for long articles */
.article-toc {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.article-toc h2,
.article-toc h4 {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-navy);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.article-toc ol {
    counter-reset: toc;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 9px;
    margin: 0;
}

.article-toc ol li {
    counter-increment: toc;
    position: relative;
    padding-left: 30px;
    font-size: 0.875rem;
    line-height: 1.55;
}

.article-toc ol li::before {
    content: counter(toc);
    position: absolute;
    left: 0;
    top: 1px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--color-blue-soft);
    color: var(--color-blue-primary);
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-toc a {
    color: var(--color-text-body);
    font-weight: 500;
}

.article-toc a:hover {
    color: var(--color-blue-primary);
}

/* Author card at end of article */
.article-author-card {
    display: flex;
    gap: 22px;
    align-items: center;
    background: var(--color-blue-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    margin-top: 44px;
    box-shadow: var(--shadow-md);
}

.article-author-card img,
.article-author-card .author-initial {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.article-author-card h3,
.article-author-card h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 5px;
}

.article-author-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Post navigation */
.post-nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 44px;
    padding-top: 30px;
    border-top: 2px solid var(--color-border);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.post-nav-link:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.post-nav-link.is-next {
    text-align: right;
    align-items: flex-end;
}

.post-nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.post-nav-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.45;
}

/* Share bar */
.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 36px;
}

.share-bar span {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 4px;
}

.share-bar a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-subtle);
    color: var(--color-navy-light);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.share-bar a:hover {
    background: var(--color-blue-primary);
    border-color: var(--color-blue-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

/* ---------- Blog listing card ---------- */
.blog-card-media {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--color-bg-subtle);
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.blog-post-card:hover .blog-card-media img {
    transform: scale(1.07);
}

.blog-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    background: rgba(13, 40, 71, 0.88);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: var(--shadow-md);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.blog-card-date i {
    color: var(--color-blue-primary);
    font-size: 0.75rem;
}

.blog-excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.blog-read-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-body);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
}

/* ---------- Services list on /services ---------- */
.service-detail-list {
    display: grid;
    gap: 20px;
}

.service-detail-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.service-detail-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.sdc-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--color-blue-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.28);
}

.service-detail-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Compact icon-bullet list used inside service detail cards */
.prose-inline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prose-inline-list > li {
    position: relative;
    padding-left: 24px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-body);
}

.prose-inline-list > li + li {
    margin-top: 8px;
}

.prose-inline-list > li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.75rem;
    color: var(--color-accent-teal);
}

.service-detail-card p {
    font-size: 0.9375rem;
    color: var(--color-text-body);
    line-height: 1.7;
    margin-bottom: 14px;
}

.service-detail-card .service-card-link {
    margin-top: 0;
}

/* ---------- Who-we-serve band (reference list on home) ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.audience-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.audience-chip:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.audience-chip i {
    color: var(--color-accent-teal);
    flex-shrink: 0;
}

/* ---------- Numbered stat strip ---------- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Modifier: three-up strip (falls back to the same breakpoints as .stat-strip) */
.stat-strip.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.stat-strip-item {
    text-align: center;
    padding: 26px 18px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.stat-strip-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

.stat-strip-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-blue-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-strip-label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 3px;
}

.stat-strip-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---------- Numbered feature cards (01-04) ---------- */
.numbered-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.numbered-card {
    position: relative;
    padding: 30px 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.numbered-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

.numbered-card .nc-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #4189d0;
    margin-bottom: 12px;
    transition: color var(--transition-base);
}

.numbered-card:hover .nc-num {
    color: var(--color-blue-primary);
}

.numbered-card h3,
.numbered-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.45;
    margin: 0;
}

/* ---------- Testimonial cards ---------- */
.review-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.review-stars {
    display: flex;
    gap: 4px;
    color: var(--color-amber-star);
    font-size: 0.875rem;
}

.review-text {
    font-size: 0.9375rem;
    color: var(--color-text-body);
    line-height: 1.7;
    font-style: italic;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.review-author img,
.review-author .author-initial {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
}

.review-author strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-navy);
}

.review-author span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Contact info tiles ---------- */
.contact-tile {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-base);
}

.contact-tile:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-tile-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--color-blue-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.28);
}

.contact-tile-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 3px;
}

.contact-tile-value {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.45;
    word-break: break-word;
}

.contact-tile-note {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ---------- Form improvements ---------- */
.form-control {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.9375rem;
    color: var(--color-text-dark);
    background: #ffffff;
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-blue-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.13);
}

.form-group {
    margin-bottom: 14px;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row .col-half {
    flex: 1 1 0;
    min-width: 0;
}

/* ---------- Button polish ---------- */
.btn {
    box-shadow: var(--shadow-xs);
}

.btn-navy {
    box-shadow: 0 2px 8px rgba(13, 40, 71, 0.22);
}

.btn-navy:hover {
    box-shadow: 0 8px 20px rgba(13, 40, 71, 0.3);
}

.btn-primary,
.btn-blue {
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.26);
}

.btn-primary:hover,
.btn-blue:hover {
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.34);
}

.btn-outline {
    background: #ffffff;
    border-color: var(--color-border-strong);
    color: var(--color-navy);
}

.btn-outline:hover {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(13, 40, 71, 0.26);
}

/* ---------- Footer columns: flat & editorial (no floating cards) ---------- */
.footer-col {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.footer-col:hover {
    background: none;
    border-color: transparent;
}

/* ---------- Sticky header shadow on scroll ---------- */
.fancy-header {
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.fancy-header.scrolled {
    box-shadow: 0 2px 8px rgba(13, 40, 71, 0.08), 0 12px 30px rgba(13, 40, 71, 0.14);
    border-bottom-color: var(--color-border-strong);
}

/* ---------- Accessibility: focus rings ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--color-navy);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-md) 0;
    font-weight: 700;
}

.skip-link:focus {
    left: 0;
    color: #ffffff;
}

/* ---------- Print ---------- */
@media print {
    .top-bar, .main-header, .mobile-drawer, .bottom-cta-section, .back-to-top, .hero-form-card, .site-footer { display: none !important; }
    body { color: #000000; }
    .prose-content { max-width: 100%; }
}

/* ==========================================================================
   LAYER 2B - BLOG / ARTICLE EXPERIENCE & SPECIALITY EXPLORER
   (richer layouts, rails, filters - all design-only, content untouched)
   ========================================================================== */

:root { --header-h: 82px; }

/* ============================== BLOG HERO ============================== */
.blog-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding-bottom: 76px;
    background: var(--color-navy);
    border-bottom: 1px solid var(--color-border-strong);
    box-shadow: 0 20px 44px -26px rgba(13, 40, 71, 0.6);
}

.blog-hero-blob {
    position: absolute;
    inset: 0;
    background-image: none;
    background-size: 26px 26px;
    opacity: 0.55;
    pointer-events: none;
}

.blog-hero > .container {
    position: relative;
    z-index: 2;
}

.blog-hero .breadcrumb-trail {
    margin-top: 30px;
    margin-bottom: 28px;
}

.blog-hero .breadcrumb-trail .crumb-current {
    color: var(--color-navy);
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 52px;
    align-items: center;
}

.blog-hero-copy .section-main-heading {
    color: #ffffff;
    font-size: 2.75rem;
    margin-bottom: 16px;
    text-shadow: 0 3px 18px rgba(7, 23, 41, 0.35);
}

.blog-hero-copy .section-subheading {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 570px;
    margin-bottom: 28px;
}

.blog-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.blog-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 122px;
    padding: 13px 17px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.blog-hero-stat-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.blog-hero-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.74);
}

.blog-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.blog-hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.blog-hero-actions .btn-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--color-navy);
}

/* ---------- Hero "Start Here" panel ---------- */
.blog-hero-panel {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: 0 32px 64px -26px rgba(7, 23, 41, 0.6), var(--shadow-inset-line);
}

.blog-hero-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-navy);
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.blog-hero-panel-head i {
    color: var(--color-blue-primary);
}

.blog-hero-topics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.blog-hero-topic {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left;
    font-family: inherit;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 11px 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.blog-hero-topic:hover {
    transform: translateX(5px);
    background: #ffffff;
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

.blog-hero-topic.is-active {
    background: var(--color-blue-soft);
    border-color: var(--color-blue-primary);
}

.bht-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blue-primary);
    color: #ffffff;
    font-size: 0.875rem;
    box-shadow: 0 6px 14px -4px rgba(0, 102, 204, 0.55);
}

.bht-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.bht-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-navy);
    line-height: 1.3;
}

.bht-count {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

.bht-arrow {
    color: var(--color-blue-primary);
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: all var(--transition-fast);
}

.blog-hero-topic:hover .bht-arrow {
    opacity: 1;
    transform: none;
}

.blog-hero-panel-foot {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 0;
    padding-top: 15px;
    border-top: 1px dashed var(--color-border);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.blog-hero-panel-foot i {
    color: var(--color-accent-teal);
    margin-top: 3px;
}

/* ============================== TOOLBAR ============================== */
.blog-toolbar,
.specialty-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.blog-search,
.specialty-search {
    position: relative;
    flex: 1 1 340px;
    display: flex;
    align-items: center;
}

.blog-search > i,
.specialty-search > i {
    position: absolute;
    left: 16px;
    font-size: 0.875rem;
    pointer-events: none;
}

.blog-search > i { color: var(--color-blue-primary); }
.specialty-search > i { color: var(--color-accent-teal); }

.blog-search-input,
.specialty-search-input {
    width: 100%;
    padding: 12px 46px 12px 42px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text-body);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.blog-search-input::placeholder,
.specialty-search-input::placeholder {
    color: var(--color-text-light);
}

.blog-search-input:focus {
    background: #ffffff;
    border-color: var(--color-blue-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12);
    outline: none;
}

.specialty-search-input:focus {
    background: #ffffff;
    border-color: var(--color-accent-teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
    outline: none;
}

.blog-search-input::-webkit-search-cancel-button,
.specialty-search-input::-webkit-search-cancel-button {
    display: none;
}

.blog-search-clear,
.specialty-search-clear {
    position: absolute;
    right: 9px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.blog-search.has-value .blog-search-clear,
.specialty-search.has-value .specialty-search-clear {
    display: flex;
}

.blog-search-clear:hover,
.specialty-search-clear:hover {
    background: var(--color-navy);
    color: #ffffff;
}

.blog-result-count,
.specialty-result-count {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.blog-result-count strong { color: var(--color-blue-primary); font-family: var(--font-heading); }
.specialty-result-count strong { color: var(--color-accent-teal); font-family: var(--font-heading); }

/* ============================== CHIPS ============================== */
.blog-chipbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-body);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.blog-chip span {
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blog-chip:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
    color: var(--color-blue-primary);
    box-shadow: var(--shadow-md);
}

.blog-chip.is-active {
    background: var(--color-blue-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 22px -8px rgba(0, 102, 204, 0.6);
}

.blog-chip.is-active span {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

/* ============================== LAYOUT ============================== */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 322px;
    gap: 34px;
    align-items: start;
}

.blog-layout-main {
    display: grid;
    gap: 26px;
    min-width: 0;
}

.blog-layout-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: calc(var(--header-h) + 22px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.related-section .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-grid-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.blog-grid-head-line {
    flex: 1;
    min-width: 40px;
    height: 2px;
    border-radius: 2px;
    margin-bottom: 12px;
    background: var(--color-border-strong);
}

.blog-grid-head-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-blue-primary);
}

.blog-grid-head-link i { transition: transform var(--transition-fast); }
.blog-grid-head-link:hover i { transform: translateX(5px); }

/* ============================== BLOG CARD ============================== */
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.blog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 4;
    background: var(--color-blue-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
}

.blog-card:hover::before { transform: scaleX(1); }

.blog-card-media {
    position: relative;
    display: block;
    height: 208px;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.blog-card:hover .blog-card-media img { transform: scale(1.08); }

.blog-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(13, 40, 71, 0.22);
}

.blog-card-read {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(13, 40, 71, 0.84);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-md);
}

.blog-card-flag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 15px;
    border-radius: var(--radius-pill);
    background: #f97316;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    box-shadow: 0 10px 20px -8px rgba(245, 158, 11, 0.75);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    padding: 22px 24px 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.blog-card-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-border-strong);
}

.blog-card-topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent-teal);
    font-weight: 700;
}

.blog-card-cat {
    color: var(--color-blue-primary);
    font-weight: 700;
}

.blog-card-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.35;
}

.blog-card-title a { color: inherit; }
.blog-card:hover .blog-card-title a { color: var(--color-blue-primary); }

.blog-card:not(.blog-card--featured) .blog-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blog-card-excerpt {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-blue-primary);
}

.blog-card-cta i { transition: transform var(--transition-fast); }
.blog-card:hover .blog-card-cta i { transform: translateX(5px); }

/* ---------- Featured / spotlight card ---------- */
.blog-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
}

.blog-card--featured .blog-card-media {
    height: 100%;
    min-height: 380px;
}

.blog-card--featured .blog-card-body {
    justify-content: center;
    gap: 15px;
    padding: 34px 36px;
}

.blog-card--featured .blog-card-title {
    font-size: 1.75rem;
    line-height: 1.25;
}

.blog-card--featured .blog-card-excerpt {
    font-size: 1rem;
    -webkit-line-clamp: 5;
}

.blog-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

/* ---------- Empty states ---------- */
.blog-card.is-hidden { display: none; }

.blog-empty,
.specialty-empty {
    text-align: center;
    padding: 54px 24px;
    background: #ffffff;
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.blog-empty-icon,
.specialty-empty-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--color-blue-soft);
    color: var(--color-blue-primary);
    box-shadow: var(--shadow-sm);
}

.blog-empty h3,
.specialty-empty h3 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
}

.blog-empty p,
.specialty-empty p {
    margin: 0 auto 22px;
    max-width: 460px;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ============================== BLOG SIDEBAR ============================== */
.blog-side-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.blog-side-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
}

.blog-side-title i { color: var(--color-blue-primary); }

.blog-side-topics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.blog-side-topic {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
    border: 1px solid transparent;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-body);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.blog-side-topic > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.blog-side-topic > span:first-child i {
    width: 16px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-blue-primary);
}

.bst-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blog-side-topic:hover {
    transform: translateX(4px);
    background: #ffffff;
    border-color: var(--border-accent);
    color: var(--color-blue-primary);
    box-shadow: var(--shadow-sm);
}

.blog-side-topic.is-active {
    background: var(--color-blue-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 22px -10px rgba(0, 102, 204, 0.7);
}

.blog-side-topic.is-active > span:first-child i,
.blog-side-topic.is-active .bst-count {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    border-color: transparent;
}

.blog-side-cta {
    background: var(--color-navy);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-lg);
}

.blog-side-cta-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 1.15rem;
}

.blog-side-cta h3 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.blog-side-cta p {
    margin: 0 0 18px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.blog-side-cta .btn-navy,
.specialty-cantfind .btn-navy {
    background: #ffffff;
    color: var(--color-navy);
}

.blog-side-cta .btn-navy:hover,
.specialty-cantfind .btn-navy:hover {
    background: var(--color-blue-light);
    color: var(--color-navy);
}

.blog-side-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 13px;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
}

.blog-side-phone i { color: var(--color-accent-teal); }

.blog-side-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.blog-side-checks li {
    display: flex;
    gap: 10px;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--color-text-body);
}

.blog-side-checks i {
    margin-top: 3px;
    color: var(--color-accent-teal);
}

/* ============================== ARTICLE UPGRADES ============================== */
.article-hero {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
    box-shadow: inset 0 -14px 26px -18px rgba(13, 40, 71, 0.3);
}

.article-hero-glow {
    position: absolute;
    inset: 0;
    background-image: none;
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}

.article-hero > .container {
    position: relative;
    z-index: 2;
}

.article-hero-topic {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-blue-primary);
    transition: all var(--transition-fast);
}

.article-hero-topic:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-blue-primary);
}

.article-hero-caption {
    position: absolute;
    right: 26px;
    bottom: 18px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: rgba(7, 23, 41, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
}

/* ---------- Reading progress ---------- */
.reading-progress {
    position: sticky;
    top: var(--header-h);
    z-index: 120;
    height: 4px;
    background: rgba(13, 40, 71, 0.07);
    border-bottom: 1px solid var(--color-border);
}

.reading-progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--color-blue-primary);
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.5);
    transition: width 0.12s linear;
}

/* ---------- TOC card ---------- */
.article-toc {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.article-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.article-toc h2,
.article-toc h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-navy);
}

.article-toc h2 i,
.article-toc h4 i { color: var(--color-blue-primary); }

.article-toc-toggle {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-text-body);
    cursor: pointer;
}

.article-toc-toggle i {
    font-size: 0.625rem;
    color: var(--color-blue-primary);
    transition: transform var(--transition-fast);
}

.article-toc.is-collapsed .article-toc-toggle i {
    transform: rotate(-90deg);
}

.article-toc.is-collapsed #articleTocList,
.article-toc.is-collapsed .article-toc-back {
    display: none;
}

.article-toc ol li a.is-current {
    color: var(--color-blue-primary);
    font-weight: 700;
}

.article-toc ol li.is-current::before {
    background: var(--color-blue-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px -3px rgba(0, 102, 204, 0.65);
}

.article-toc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--color-border);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-body);
}

.article-toc-back:hover { color: var(--color-blue-primary); }

/* ---------- Author card ---------- */
.aac-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: var(--color-blue-soft);
    border: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-blue-primary);
}

.aac-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.aac-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.aac-meta i { color: var(--color-accent-teal); }

/* ---------- Share bar ---------- */
.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 36px 0 0;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.share-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 2px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-navy);
}

.share-bar-label i { color: var(--color-blue-primary); }

.share-bar-links {
    display: flex;
    align-items: center;
    gap: 9px;
}

.share-bar a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    color: var(--color-navy-light);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.share-bar a:hover {
    transform: translateY(-2px);
    background: var(--color-blue-primary);
    border-color: var(--color-blue-primary);
    color: #ffffff;
    box-shadow: 0 8px 16px -6px rgba(0, 102, 204, 0.6);
}

/* ---------- Post navigation ---------- */
.post-nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--color-border);
}

.post-nav-link {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.post-nav-link.is-next {
    text-align: right;
    align-items: flex-end;
}

.post-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-blue-primary);
}

.post-nav-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy);
}

.post-nav-thumb {
    display: block;
    width: 100%;
    height: 108px;
    margin-top: 6px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.post-nav-link:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
}

.post-nav-link:hover .post-nav-title { color: var(--color-blue-primary); }
.post-nav-link:hover .post-nav-thumb img { transform: scale(1.08); }

/* ============================== SPECIALITY EXPLORER ============================== */
.specialty-master-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.specialty-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-blue-primary);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.35;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.specialty-chip:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    border-left-color: var(--color-accent-teal);
    box-shadow: var(--shadow-card-hover);
    color: var(--color-blue-primary);
}

.specialty-chip-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blue-soft);
    border: 1px solid var(--color-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    color: var(--color-blue-primary);
    transition: all var(--transition-fast);
}

.specialty-chip .specialty-chip-icon i {
    width: auto;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.05rem;
    color: inherit;
}

.specialty-chip:hover .specialty-chip-icon {
    transform: scale(1.06);
    background: var(--color-blue-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 20px -8px rgba(0, 102, 204, 0.7);
}

.specialty-chip-text {
    flex: 1;
    min-width: 0;
}

.specialty-chip-flag {
    position: absolute;
    top: 7px;
    right: 7px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: var(--color-accent-teal);
    color: #ffffff;
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-sm);
}

.specialty-chip.is-featured {
    background: #f0fdfa;
    border-left-color: var(--color-accent-teal);
}

.specialty-chip.is-featured .specialty-chip-icon {
    background: #ccfbf1;
    border-color: rgba(13, 148, 136, 0.28);
    color: var(--color-accent-teal);
}

.specialty-chip.is-hidden { display: none; }

.specialty-empty-icon { background: #ccfbf1; color: var(--color-accent-teal); }

.specialty-cantfind {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding: 26px 30px;
    background: var(--color-navy);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.specialty-cantfind-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 1.3rem;
}

.specialty-cantfind > div {
    flex: 1 1 300px;
}

.specialty-cantfind h3 {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 700;
    color: #ffffff;
}

.specialty-cantfind p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   LAYER 3 - COMPREHENSIVE RESPONSIVENESS
   Covers every page/component: hero, grids, tables, forms, nav, footer,
   article layout, specialty listing, contact tiles
   ========================================================================== */

/* ---------- Large desktop: cap dense grids ---------- */
@media (min-width: 1500px) {
    .container { max-width: 1320px; }
    .specialty-master-grid { grid-template-columns: repeat(5, 1fr); }
    .audience-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 1200px and below ---------- */
@media (max-width: 1200px) {
    .specialty-master-grid { grid-template-columns: repeat(3, 1fr); }
    .numbered-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .audience-grid { grid-template-columns: repeat(3, 1fr); }
    .article-hero-media { height: 340px; }
}

/* ---------- 1024px (tablet landscape / small laptop) ---------- */
@media (max-width: 1024px) {
    .container { padding-left: 20px; padding-right: 20px; }

    .section-padding { padding-top: 64px; padding-bottom: 64px; }
    .section-padding-sm { padding-top: 42px; padding-bottom: 42px; }

    .section-main-heading { font-size: 2rem; }
    .featured-title { font-size: 1.875rem; }

    .prose-content { font-size: 1.03125rem; }
    .prose-content h2 { font-size: 1.5rem; margin-top: 36px; padding-top: 22px; }
    .prose-content h3 { font-size: 1.1875rem; margin-top: 28px; }

    .specialty-master-grid { grid-template-columns: repeat(3, 1fr); }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }

    .service-detail-card { grid-template-columns: 1fr; gap: 16px; padding: 24px; }

    .post-nav-row { grid-template-columns: 1fr; }
    .post-nav-link.is-next { text-align: left; align-items: flex-start; }

    .article-hero-body { padding-top: 32px; }
    .article-hero-media { height: 280px; }

    /* Hero: photo is the section background, so stack copy above the form.
       Keeping two columns here squeezed the copy and wrapped the CTAs. */
    .hero-grid { grid-template-columns: 1fr; gap: 30px; align-items: start; }
    .hero-content { padding-right: 0; }
    .hero-form-col { max-width: 560px; width: 100%; }
    .hero-image-col { display: none; }

    .featured-service-grid { grid-template-columns: 1fr; gap: 34px; }
    .featured-mockup-wrapper img { height: 320px; }

    .form-row { flex-direction: column; gap: 0; }
    .nationwide-split-grid { grid-template-columns: 1fr !important; }
}

/* ---------- 900px: switch to mobile nav ---------- */
@media (max-width: 900px) {
    .section-padding { padding-top: 56px; padding-bottom: 56px; }
    .section-padding-sm { padding-top: 36px; padding-bottom: 36px; }

    .section-header-block { margin-bottom: 36px; }
    .section-main-heading { font-size: 1.8125rem; }
    .section-subheading { font-size: 1rem; }
    .featured-title { font-size: 1.75rem; }

    /* Top bar condenses */
    .top-bar-left .top-bar-item:not(:first-child) { display: none; }
    .top-bar-item { font-size: 0.75rem; }
    .top-bar-container { flex-wrap: wrap; row-gap: 6px; }
    .top-bar-right { margin-left: auto; }

    /* Header */
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .header-phone-pill { display: none; }
    .header-cta-btn span { display: none; }
    .header-cta-btn { padding: 12px 16px; }
    .header-container { gap: 12px; }
    .brand-tagline { display: none; }

    /* Mega menu hidden anyway, but keep any open state safe */
    .mega-menu-panel { display: none !important; }

    /* Grids */
    .challenges-grid,
    .services-grid-seven,
    .specialties-grid,
    .why-choose-pills-row,
    .process-timeline-row,
    .reviews-cards-row,
    .resources-faq-grid,
    .trust-badges-grid,
    .grid-auto,
    .grid-auto-2,
    .grid-auto-4,
    .specialty-master-grid,
    .audience-grid,
    .numbered-grid,
    .stat-strip {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid-auto { grid-template-columns: 1fr !important; }
    .grid-auto-2 { grid-template-columns: 1fr !important; }

    .process-timeline-row::before { display: none; }
    .process-timeline-row { gap: 28px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 28px; }

    .vob-checklist-grid { grid-template-columns: 1fr; }

    /* Bottom CTA */
    .bottom-form-grid { grid-template-columns: repeat(2, 1fr); }
    .bottom-cta-header { flex-direction: column; align-items: flex-start; gap: 14px; }

    /* Article */
    .article-toc { padding: 20px 22px; }
    .article-author-card { flex-direction: column; text-align: center; align-items: center; }
    .article-hero-media { height: 230px; }

    /* Prose */
    .prose-content { font-size: 1rem; }
    .prose-content h2 { font-size: 1.375rem; }
    .prose-content h3 { font-size: 1.125rem; }
    .content-callout { flex-direction: column; gap: 14px; padding: 20px; }

    /* Modals */
    .consultation-modal-content { max-height: 90vh; overflow-y: auto; }

    /* Mobile drawer: full width feel */
    .mobile-drawer { width: min(340px, 88vw); }
}

/* ---------- 768px: two columns -> one for long lists ---------- */
@media (max-width: 768px) {
    .specialty-master-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .audience-grid { grid-template-columns: 1fr !important; }
    .audience-chip { font-size: 0.8125rem; }

    .numbered-grid,
    .stat-strip { grid-template-columns: 1fr 1fr !important; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-container { flex-direction: column; text-align: center; gap: 10px; }

    .blog-card-media { height: 180px; }
    .article-hero-media { height: 200px; }
}

/* ---------- 640px: phones ---------- */
@media (max-width: 640px) {
    .container { padding-left: 16px; padding-right: 16px; }

    .section-padding { padding-top: 46px; padding-bottom: 46px; }
    .section-padding-sm { padding-top: 30px; padding-bottom: 30px; }

    .section-header-block { margin-bottom: 30px; }
    .section-main-heading { font-size: 1.625rem; line-height: 1.28; }
    .featured-title { font-size: 1.5rem; }
    .hero-title { font-size: 1.9375rem; line-height: 1.22; }
    .section-eyebrow { font-size: 0.75rem; }

    .hero-cta-group { flex-direction: column; align-items: stretch; width: 100%; }
    .hero-cta-group .btn { width: 100%; justify-content: center; }
    .featured-actions { flex-direction: column; align-items: stretch; }
    .featured-actions .btn { width: 100%; justify-content: center; }

    /* Single column everywhere */
    .challenges-grid,
    .services-grid-seven,
    .specialties-grid,
    .why-choose-pills-row,
    .process-timeline-row,
    .reviews-cards-row,
    .resources-faq-grid,
    .trust-badges-grid,
    .grid-auto,
    .grid-auto-2,
    .grid-auto-4,
    .specialty-master-grid,
    .audience-grid,
    .numbered-grid,
    .stat-strip,
    .footer-grid,
    .bottom-form-grid {
        grid-template-columns: 1fr !important;
    }

    .service-card,
    .challenge-card,
    .review-card,
    .numbered-card,
    .stat-strip-item,
    .content-callout,
    .article-author-card,
    .article-toc {
        padding: 22px 18px;
    }

    .service-detail-card { padding: 20px 18px; gap: 14px; }
    .sdc-icon { width: 46px; height: 46px; font-size: 1.15rem; }

    .specialty-chip { padding: 12px 14px; font-size: 0.8125rem; }
    .audience-chip { padding: 12px 14px; }

    .stat-strip-value { font-size: 1.75rem; }
    .numbered-card .nc-num { font-size: 2rem; }

    .featured-mockup-wrapper img { height: 240px; }
    .featured-badge-float {
        position: static;
        margin-top: 12px;
        border-radius: var(--radius-md);
        justify-content: center;
        text-align: center;
        font-size: 0.8125rem;
    }

    /* Prose */
    .prose-content { font-size: 0.96875rem; line-height: 1.75; }
    .prose-content > * + * { margin-top: 16px; }
    .prose-content h2 { font-size: 1.25rem; margin-top: 32px; padding-top: 18px; }
    .prose-content h3 { font-size: 1.0625rem; margin-top: 24px; }
    .prose-content h4 { font-size: 1rem; margin-top: 22px; }
    .prose-content ul > li { padding-left: 30px; }
    .prose-content ol > li { padding-left: 34px; }
    .prose-content blockquote { padding: 18px 20px; margin: 22px 0; }

    .callout-icon { width: 40px; height: 40px; font-size: 1rem; }

    .feature-list-item { flex-direction: column; gap: 10px; padding: 16px 18px; }

    /* Article */
    .article-hero-body { padding-top: 24px; }
    .article-hero-media { height: 165px; }
    .article-meta { font-size: 0.8125rem; gap: 8px 14px; }
    .blog-card-media { height: 160px; }
    .blog-card-body { padding: 20px 18px; }

    .post-nav-row { margin-top: 32px; padding-top: 22px; }
    .share-bar { padding: 14px 16px; }

    /* Breadcrumb */
    .breadcrumb-trail { font-size: 0.75rem; padding: 5px 12px; gap: 6px; }

    .contact-tile { flex-direction: column; gap: 12px; padding: 18px; }
    .contact-tile-value { font-size: 1rem; }

    /* Buttons full-width for taps */
    .btn { font-size: 0.875rem; padding: 12px 20px; }

    .d-none-mobile { display: none !important; }

    .toast-notification { left: 12px; right: 12px; width: auto; }
    .back-to-top { width: 44px; height: 44px; }
}

/* ---------- 480px: small phones ---------- */
@media (max-width: 480px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .section-main-heading { font-size: 1.5rem; }
    .hero-title { font-size: 1.75rem; }
    .prose-content { font-size: 0.9375rem; }
    .prose-content h2 { font-size: 1.1875rem; }
    .specialty-master-grid { grid-template-columns: 1fr !important; }
    .numbered-grid, .stat-strip { grid-template-columns: 1fr !important; }
    .blog-card-media { height: 150px; }
    .article-hero-media { height: 140px; }
    .bottom-cta-title { font-size: 1.25rem !important; }
}

/* ---------- Hover only on pointer devices ---------- */
@media (hover: none) {
    .service-card:hover,
    .challenge-card:hover,
    .specialty-card:hover,
    .blog-post-card:hover,
    .specialty-chip:hover,
    .audience-chip:hover,
    .feature-list-item:hover,
    .contact-tile:hover,
    .post-nav-link:hover,
    .stat-strip-item:hover,
    .numbered-card:hover,
    .footer-col:hover,
    .service-detail-card:hover {
        transform: none;
    }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-drawer-body { padding: 14px; }
    .consultation-modal-content { max-height: 94vh; overflow-y: auto; }
}

/* ==========================================================================
   LAYER 4 - BLOG / ARTICLE / SPECIALITY RESPONSIVENESS
   ========================================================================== */

/* ---------- Reading progress bar (fixed under the sticky header) ---------- */
.reading-progress {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
}

/* ---------- Article layout: TOC rail + content + share rail ----------
   Scoped to blog articles ONLY (they contain .article-toc). Without this
   scope, every .prose-content on the site became a 254px+56px rail grid at
   >=1180px, crushing body text to ~154px inside narrow columns (e.g. the
   RCM intro section) and making those sections absurdly tall. */
@media (min-width: 1180px) {
    .prose-content:has(.article-toc) {
        display: grid;
        grid-template-columns: 254px minmax(0, 1fr) 56px;
        column-gap: 40px;
        align-items: start;
        max-width: none;
        margin: 0;
    }

    .prose-content:has(.article-toc) > * { grid-column: 2; }

    .prose-content .article-toc {
        grid-column: 1;
        grid-row: 1 / span 999;
        position: sticky;
        top: calc(var(--header-h) + 28px);
        max-height: calc(100vh - var(--header-h) - 56px);
        overflow-y: auto;
        margin-bottom: 0;
        padding: 22px 20px;
    }

    .prose-content .share-bar {
        grid-column: 3;
        grid-row: 1 / span 999;
        position: sticky;
        top: calc(var(--header-h) + 28px);
        flex-direction: column;
        gap: 14px;
        margin: 0;
        padding: 16px 8px;
        border-radius: var(--radius-lg);
    }

    .prose-content .share-bar-label {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        font-size: 0.625rem;
    }

    .prose-content .share-bar-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ---------- 1500px and up ---------- */
@media (min-width: 1500px) {
    .specialty-master-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- 1200px and below ---------- */
@media (max-width: 1200px) {
    .blog-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr); gap: 36px; }
    .blog-hero-copy .section-main-heading { font-size: 2.375rem; }
    .blog-layout { grid-template-columns: minmax(0, 1fr) 286px; gap: 26px; }
    .specialty-master-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .specialty-chip { padding: 13px 14px; gap: 12px; }
    .specialty-chip-icon { width: 38px; height: 38px; flex: 0 0 38px; font-size: 0.95rem; }
    .specialty-chip .specialty-chip-icon i { font-size: 0.95rem; }
}

/* ---------- 1024px and below: single-column blog + collapsible TOC ---------- */
@media (max-width: 1024px) {
    .blog-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .blog-hero-panel { max-width: 560px; }
    .blog-layout { grid-template-columns: minmax(0, 1fr); }
    .blog-layout-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-side-sticky { grid-column: 1 / -1; }
    .specialty-master-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .specialty-cantfind { padding: 24px; }
    .article-toc-toggle { display: inline-flex; }
}

/* ---------- 900px and below ---------- */
@media (max-width: 900px) {
    .blog-hero { padding-bottom: 58px; }
    .blog-hero-copy .section-main-heading { font-size: 2.125rem; }
    .blog-card--featured { grid-template-columns: minmax(0, 1fr); }
    .blog-card--featured .blog-card-media { height: 260px; min-height: 260px; }
    .blog-card--featured .blog-card-body { padding: 26px 28px; }
    .blog-card--featured .blog-card-title { font-size: 1.5rem; }
    .blog-grid, .related-section .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .blog-layout-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-nav-row { margin-top: 34px; }
}

/* ---------- 768px and below ---------- */
@media (max-width: 768px) {
    .blog-hero-copy .section-main-heading { font-size: 1.875rem; }
    .blog-hero-stat { flex: 1 1 44%; min-width: 0; }
    .blog-toolbar, .specialty-toolbar { padding: 12px 13px; }
    .blog-result-count, .specialty-result-count { white-space: normal; }
    .blog-chipbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .blog-chip { flex: 0 0 auto; }
    .blog-grid, .related-section .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .blog-layout-side { grid-template-columns: minmax(0, 1fr); }
    .blog-card-media { height: 190px; }
    .post-nav-row { grid-template-columns: minmax(0, 1fr); }
    .post-nav-thumb { height: 132px; }
    .article-hero-caption { display: none; }
    .specialty-master-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .specialty-chip { padding: 12px; gap: 11px; font-size: 0.8125rem; }
    .specialty-chip-icon { width: 34px; height: 34px; flex: 0 0 34px; }
    .specialty-cantfind { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------- 640px and below ---------- */
@media (max-width: 640px) {
    .blog-hero { padding-bottom: 46px; }
    .blog-hero-copy .section-main-heading { font-size: 1.75rem; }
    .blog-hero-copy .section-subheading { font-size: 0.9375rem; }
    .blog-hero-panel { padding: 20px; border-radius: var(--radius-lg); }
    .blog-hero-actions { flex-direction: column; align-items: stretch; }
    .blog-hero-actions .btn { width: 100%; justify-content: center; }
    .blog-card-media { height: 168px; }
    .blog-card-body { padding: 18px 20px 20px; }
    .blog-card--featured .blog-card-body { padding: 22px 20px; }
    .blog-card--featured .blog-card-title { font-size: 1.3125rem; }
    .blog-card--featured .blog-card-excerpt { -webkit-line-clamp: 4; }
    .blog-card-foot { flex-direction: column; align-items: stretch; }
    .blog-card-foot .btn { width: 100%; justify-content: center; }
    .blog-empty, .specialty-empty { padding: 40px 18px; }
    .blog-grid-head-line { display: none; }
    .specialty-master-grid { grid-template-columns: minmax(0, 1fr); }
    .specialty-cantfind .btn { width: 100%; justify-content: center; }
    .article-hero-media { height: 210px; }
    .article-toc { padding: 20px; }
    .reading-progress { height: 3px; }
}

/* ---------- 480px and below ---------- */
@media (max-width: 480px) {
    .blog-hero-copy .section-main-heading { font-size: 1.5rem; }
    .blog-hero-stats { gap: 10px; }
    .blog-hero-stat { padding: 11px 13px; }
    .blog-hero-stat-num { font-size: 1.15rem; }
    .blog-hero-stat-label { font-size: 0.625rem; }
    .blog-card-media { height: 150px; }
    .blog-card-title { font-size: 1.0625rem; }
    .blog-card-excerpt { font-size: 0.875rem; }
    .share-bar { justify-content: space-between; padding: 12px 14px; }
    .share-bar-label { font-size: 0.6875rem; }
    .specialty-cantfind { padding: 20px; }
    .specialty-cantfind h3 { font-size: 1.0625rem; }
}

/* ---------- 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;
    }
}

/* ---------- Hover effects only on pointer devices ---------- */
@media (hover: none) {
    .blog-card:hover,
    .blog-hero-topic:hover,
    .blog-side-topic:hover,
    .blog-chip:hover,
    .specialty-chip:hover,
    .post-nav-link:hover {
        transform: none;
    }
}

/* ==========================================================================
   LAYER 5 - LEAD CAPTURE ENHANCEMENTS
   Floating WhatsApp button + lead form feedback states.
   ========================================================================== */

/* ---------- Floating WhatsApp lead button ---------- */

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px 13px 15px;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.38), 0 3px 10px rgba(16, 42, 67, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.85);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float i {
    font-size: 1.65rem;
    line-height: 1;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.48), 0 6px 14px rgba(16, 42, 67, 0.22);
}

/* Subtle pulse ring so it reads as "live chat" without being noisy. */
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid rgba(37, 211, 102, 0.55);
    animation: cbWhatsappPulse 2.6s ease-out infinite;
    pointer-events: none;
}

@keyframes cbWhatsappPulse {
    0%   { transform: scale(1);    opacity: 0.65; }
    70%  { transform: scale(1.22); opacity: 0; }
    100% { transform: scale(1.22); opacity: 0; }
}

/* Keep it clear of the back-to-top button. */
.back-to-top.visible ~ .whatsapp-float,
.whatsapp-float ~ .back-to-top.visible {
    transform: translateY(-62px);
}

.whatsapp-float ~ .back-to-top.visible {
    transform: translateY(-62px);
}

/* ---------- Lead form sending state ---------- */

.ajax-billing-form button[type="submit"] {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ajax-billing-form button[type="submit"]:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

/* Native validation bubbles styled to match the design. */
.ajax-billing-form input:invalid:not(:placeholder-shown),
.ajax-billing-form select:invalid:not(:focus) {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        padding: 12px 15px;
    }
    .whatsapp-float i {
        font-size: 1.5rem;
    }
    /* Hide the text label on small screens - icon only, tap target stays big. */
    .whatsapp-float-label {
        display: none;
    }
    .whatsapp-float ~ .back-to-top.visible {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        padding: 11px 14px;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::after {
        animation: none;
    }
    .whatsapp-float:hover {
        transform: none;
    }
}

/* ---------- Print ---------- */

@media print {
    .whatsapp-float {
        display: none !important;
    }
}

/* ==========================================================================
   HEADER RESPONSIVE FIX (appended)
   - Logo must never be squeezed to 0 by the flex row (was collapsing between
     ~900px and ~1150px viewport widths).
   - Desktop nav now hands over to the mobile drawer at 1024px so the row
     never overflows horizontally.
   - CTA label shortens on medium screens instead of pushing the header wide.
   ========================================================================== */

.header-logo {
    flex: 0 0 auto;
}

.header-actions {
    flex: 0 0 auto;
}

.main-nav {
    flex: 0 1 auto;
    min-width: 0;
}

.brand-logo-img {
    flex: 0 0 auto;
}

.cta-label-short {
    display: none;
}

/* Medium screens: tighter nav + shorter CTA label */
@media (max-width: 1240px) {
    .nav-list {
        gap: 18px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .header-cta-btn {
        padding: 12px 20px;
    }

    .cta-label-full {
        display: none;
    }

    .cta-label-short {
        display: inline;
    }
}

/* Below 1024px: hand navigation over to the drawer */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mega-menu-panel {
        display: none !important;
    }

    .cta-label-full {
        display: inline;
    }

    .cta-label-short {
        display: none;
    }

    .header-container {
        gap: 14px;
    }
}

/* Small laptops / tablets: keep the header row breathing */
@media (max-width: 1100px) {
    .brand-tagline {
        display: none;
    }
}

/* Phones & small tablets: readable CTA label instead of a bare arrow,
   and drop the button entirely once the drawer carries it. */
@media (max-width: 900px) {
    .header-cta-btn .cta-label-full {
        display: none;
    }

    .header-cta-btn .cta-label-short {
        display: inline;
    }
}

@media (max-width: 700px) {
    .header-cta-btn {
        display: none;
    }

    .header-container {
        gap: 10px;
    }
}

/* ==========================================================================
   FIX PASS - hero on phones, responsive H1 scale, tap targets, section rhythm
   ========================================================================== */

/* --- Hero: the later (max-width: 1024px) "1fr 1fr" rule was overriding the
       single-column layout and clipping the lead form off-screen on phones.
       Re-assert one column, put the form right under the copy, and bring the
       photo back on small screens (it was hidden at <=1100px). --- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: start;
    }

    .hero-content {
        order: 1;
        padding-right: 0;
    }

    .hero-form-col {
        order: 2;
        max-width: 560px;
        width: 100%;
    }

    .hero-image-col {
        display: none;
        order: 3;
    }

    /* Photo is the section background now — no framed copy on phones. */
    .hero-image-wrapper {
        display: none;
    }

    .hero-image-wrapper img {
        height: 300px;
    }

    /* Phones: the photo sits a little higher behind the copy. */
    .hero-section {
        background-position: center 14%;
    }
}

/* --- Page & article H1s: one consistent, responsive type scale.
       (The hardcoded inline font-size:2.5rem was keeping inner-page H1s at
       40px even on 390px phones.) --- */
h1.section-main-heading {
    font-size: 2.5rem;
    line-height: 1.22;
}

@media (max-width: 1024px) {
    h1.section-main-heading {
        font-size: 2.125rem;
    }
}

@media (max-width: 768px) {
    h1.section-main-heading {
        font-size: 1.8125rem;
    }
}

@media (max-width: 480px) {
    h1.section-main-heading {
        font-size: 1.5rem;
    }
}

/* --- Phone tap targets: hamburger, drawer close and drawer links were
       21x38 / 30px tall; bring them to the 44px recommendation.
       (Nav collapses to the hamburger up to 1024px, so size it there.) --- */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        margin-right: -6px;
    }

    .mobile-drawer-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Drawer rows already carry a 48px min tap target; just even out spacing. */
    .mobile-nav-item {
        border-bottom-color: rgba(226, 232, 240, 0.85);
    }
}

/* --- Drop the info top-bar on phones: it ate 80px of the 844px viewport
       before the hero even started. --- */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* --- Micro-copy readability: 9-11px labels bumped to 11-13px --- */
.brand-tagline {
    font-size: 0.75rem;
}

.stat-strip-sub {
    font-size: 0.8125rem;
}

.blog-hero-stat-label {
    font-size: 0.75rem;
}

.specialty-chip-flag {
    font-size: 0.6875rem;
    padding: 4px 9px;
}

@media (max-width: 640px) {
    .blog-hero-stat-label {
        font-size: 0.6875rem;
    }
}

/* --- Challenge cards: six 185px columns at 1440 felt cramped; three
       readable columns (two rows) instead. --- */
.challenges-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ==========================================================================
   HEADER PHONE  (client request: the phone number sits in the header beside
   the "Free Consultation" button so it is always one tap away)
   ========================================================================== */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    background: var(--color-blue-light);
    border: 1px solid rgba(0, 102, 204, 0.22);
    color: var(--color-navy);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.header-phone i {
    color: var(--color-blue-primary);
    font-size: 0.8125rem;
}

.header-phone:hover,
.header-phone:focus-visible {
    background: var(--color-blue-primary);
    border-color: var(--color-blue-primary);
    color: #fff;
}

.header-phone:hover i,
.header-phone:focus-visible i {
    color: #fff;
}

@media (max-width: 1240px) {
    .header-phone {
        font-size: 0.8125rem;
        padding: 9px 12px;
    }
}

/* Between the nav handover and 1240 the desktop nav is still on screen, so
   keep the phone as an icon-only button to protect the row width. */
@media (max-width: 1240px) and (min-width: 1025px) {
    .header-phone {
        padding: 10px;
    }

    .header-phone-number {
        display: none;
    }
}

@media (max-width: 900px) {
    .header-phone {
        font-size: 0.75rem;
        padding: 8px 10px;
        gap: 6px;
    }
}

@media (max-width: 420px) {
    .header-phone {
        padding: 9px;
    }

    .header-phone-number {
        display: none;
    }
}

/* --- Hero: Google reviews badge under the two CTA buttons ------------------ */
.hero-google-badge {
    display: inline-flex;
    width: auto;
    margin: 18px 0 0;
    gap: 12px;
    background: rgba(255, 255, 255, 0.94);
}

.hero-google-badge .google-g-icon {
    width: 24px;
    height: 24px;
}

.hero-google-badge .google-score-num {
    font-size: 1.0625rem;
}

.hero-google-badge .stars-rating {
    display: inline-flex;
    gap: 2px;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .hero-google-badge {
        margin-top: 14px;
        gap: 10px;
        padding: 7px 14px;
    }
}

/* ==========================================================================
   Home page services grid (all services from candidbilling.com/services/)
   ========================================================================== */

.cb-services-section {
    background: var(--color-bg-subtle);
}

.cb-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 42px;
}

.cb-service-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.cb-service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
}

.cb-service-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-blue-soft);
}

.cb-service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-service-card:hover .cb-service-media img {
    transform: scale(1.06);
}

.cb-service-body {
    flex: 1 1 auto;
    padding: 22px 24px 0;
}

.cb-service-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy);
    margin: 0 0 10px;
}

.cb-service-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-body);
    margin: 0;
}

.cb-services-grid .cb-service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin: 18px 24px 24px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: var(--color-blue-light);
    color: var(--color-blue-primary);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), gap var(--transition-fast);
}

.cb-services-grid .cb-service-btn i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.cb-services-grid .cb-service-btn:hover,
.cb-services-grid .cb-service-btn:focus-visible {
    background: var(--color-blue-primary);
    color: #ffffff;
    text-decoration: none;
}

.cb-services-grid .cb-service-btn:hover i {
    transform: translateX(4px);
}

.cb-services-cta {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

@media (max-width: 1024px) {
    .cb-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .cb-services-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 30px;
    }

    .cb-service-body {
        padding: 18px 20px 0;
    }

    .cb-services-grid .cb-service-btn {
        margin: 16px 20px 20px;
    }

    .cb-services-cta {
        margin-top: 30px;
    }
}

/* ==========================================================================
   ENGAGEMENT MODELS (services page)

   A remote-estimation style "plan" band: three cards side by side, each with a
   badge, icon, tagline, feature checklist, quote line and its own call to
   action. Solid colours only - no gradients.
   ========================================================================== */

/* Highlighted phrase inside a heading (coloured text, no background). */
.highlight {
    color: var(--color-blue-primary);
}

.cb-plans-section {
    background: var(--color-bg-subtle);
}

.cb-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 44px;
    align-items: stretch;
}

.cb-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px 28px 28px;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.cb-plan-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
}

.cb-plan-card.is-featured {
    border-color: var(--color-blue-primary);
    box-shadow: 0 12px 34px rgba(0, 102, 204, 0.16);
}

.cb-plan-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: var(--color-blue-light);
    color: var(--color-blue-primary);
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cb-plan-card.is-featured .cb-plan-badge {
    background: var(--color-blue-primary);
    color: #ffffff;
}

.cb-plan-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.cb-plan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-blue-soft);
    color: var(--color-blue-primary);
    font-size: 1.125rem;
}

.cb-plan-card.is-featured .cb-plan-icon {
    background: var(--color-blue-primary);
    color: #ffffff;
}

.cb-plan-name {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-navy);
    margin: 0;
}

.cb-plan-tagline {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-blue-primary);
    margin: 0 0 6px;
}

.cb-plan-sub {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin: 0 0 18px;
}

.cb-plan-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-body);
    margin: 0 0 22px;
}

.cb-plan-features {
    display: grid;
    gap: 11px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.cb-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text-body);
}

.cb-plan-features i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--color-blue-light);
    color: var(--color-blue-primary);
    font-size: 0.5rem;
}

.cb-plan-quote {
    margin: auto 0 18px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.cb-plan-quote strong {
    color: var(--color-navy);
    font-weight: 700;
}

.cb-plan-action .btn {
    justify-content: center;
    width: 100%;
}

@media (max-width: 1024px) {
    .cb-plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        margin-top: 36px;
    }
}

@media (max-width: 640px) {
    .cb-plans-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        margin-top: 30px;
    }

    .cb-plan-card {
        padding: 26px 22px 24px;
    }

    .cb-plan-name {
        font-size: 1.125rem;
    }
}

/* ==========================================================================
   LATEST ARTICLES CAROUSEL + STANDALONE FAQ SECTION
   Solid colours only - part of the "no gradients" pass.
   ========================================================================== */

/* The specialist photo is a full-bleed background; one flat wash keeps the
   headline, copy and lead form readable on top of it. */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(247, 250, 255, 0.75);
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

/* ---------- Latest articles ---------- */
.cb-posts-section {
    background: var(--color-bg-subtle);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.cb-posts-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.cb-posts-head .section-eyebrow {
    display: block;
}

.cb-posts-head .section-main-heading {
    margin-bottom: 8px;
}

.cb-posts-head .section-subheading {
    margin: 0;
    max-width: 640px;
}

.cb-posts-all {
    flex-shrink: 0;
    margin-bottom: 5px;
}

/* ---------- Carousel ---------- */
.cb-carousel {
    position: relative;
}

.cb-carousel-viewport {
    overflow: hidden;
    margin: -10px;
    padding: 10px;
}

.cb-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}

.cb-carousel-item {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    display: flex;
}

.cb-carousel-item > .blog-card {
    width: 100%;
}

.cb-carousel .blog-card-body {
    padding: 20px 22px 22px;
}

.cb-carousel .blog-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cb-carousel-nav {
    position: absolute;
    top: 42%;
    z-index: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: #ffffff;
    color: var(--color-navy);
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.cb-carousel-prev {
    left: -16px;
}

.cb-carousel-next {
    right: -16px;
}

.cb-carousel-nav:hover {
    background: var(--color-blue-primary);
    border-color: var(--color-blue-primary);
    color: #ffffff;
}

.cb-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 30px;
}

.cb-carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: #c9d3e0;
    cursor: pointer;
    transition: width var(--transition-fast), background var(--transition-fast);
}

.cb-carousel-dot.is-active {
    width: 26px;
    background: var(--color-blue-primary);
}

.cb-carousel-nav:focus-visible,
.cb-carousel-dot:focus-visible {
    outline: 2px solid var(--color-blue-primary);
    outline-offset: 3px;
}

/* ---------- Standalone FAQ section ---------- */
.cb-faq-section .section-header-block {
    margin-bottom: 30px;
}

.cb-faq-section .faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .cb-carousel-item {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 760px) {
    .cb-posts-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .cb-carousel-item {
        flex: 0 0 100%;
    }

    .cb-carousel-nav {
        display: none;
    }

    .cb-carousel-dots {
        margin-top: 24px;
    }
}

/* ==========================================================================
   PHONE POLISH - micro-copy floor + comfortable tap targets (<=640px)
   ========================================================================== */
@media (max-width: 640px) {
    /* Nothing informational should render below 12px on a phone. */
    .blog-card-read,
    .post-nav-label,
    .aac-label,
    .article-toc-back,
    .specialty-chip-flag,
    .stat-strip-sub {
        font-size: 0.75rem;
    }

    /* Small links become real tap targets (44px recommendation). */
    .service-card-link {
        min-height: 44px;
    }

    .article-toc-back {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .footer-bottom-links a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }
}

/* ==========================================================================
   HOME: OFFICE MAP (closing section)
   ========================================================================== */
.cb-map-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 26px;
    align-items: stretch;
}

.cb-map-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.cb-map-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cb-map-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cb-map-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--color-blue-soft);
    color: var(--color-blue-primary);
    font-size: 1rem;
}

.cb-map-info-label {
    display: block;
    margin-bottom: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.cb-map-info-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-navy);
    text-decoration: none;
}

a.cb-map-info-value:hover,
a.cb-map-info-value:focus-visible {
    color: var(--color-blue-primary);
}

/* ==========================================================================
   REVIEWS: GOOGLE BADGE ON PHONES
   The "Read All Reviews on Google" label makes the single-row badge wider
   than a 390px viewport, so let it wrap and give the button its own row.
   ========================================================================== */
@media (max-width: 640px) {
    .google-review-badge {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;
        padding: 12px 16px;
        border-radius: var(--radius-lg);
    }

    .google-review-badge > .btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

.cb-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.cb-map-frame {
    position: relative;
    min-height: 380px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cb-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

@media (max-width: 900px) {
    .cb-map-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .cb-map-card {
        padding: 22px;
    }

    .cb-map-frame,
    .cb-map-frame iframe {
        min-height: 300px;
    }
}


/* ==========================================================================
   SERVICE PAGE HERO  (navy hero + quote card, aligned to the site container)
   ========================================================================== */

.cb-svc-hero-wrap {
    margin: 0;
    max-width: none;
    padding: 0;
}

.cb-svc-hero {
    background: #0f2a4a;
    color: #ffffff;
    padding: 56px 0;
}

.cb-svc-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 56px;
    align-items: start;
    box-sizing: border-box;
}

.cb-svc-hero__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 6px;
}

.cb-svc-hero__crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #9fc2ff;
}

.cb-svc-hero__crumbs a {
    color: #9fc2ff;
    text-decoration: none;
}

.cb-svc-hero__crumbs a:hover,
.cb-svc-hero__crumbs a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.cb-svc-hero__crumbs .current {
    color: #ffffff;
    font-weight: 600;
}

.cb-svc-hero__title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    overflow-wrap: break-word;
    hyphens: auto;
}

.cb-svc-hero__desc {
    margin: 0;
    max-width: 56ch;
    font-size: 16px;
    line-height: 1.7;
    color: #c9d6ea;
}

.cb-svc-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 6px;
}

.cb-svc-hero__cta {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    background: #2467e0;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.cb-svc-hero__cta:hover,
.cb-svc-hero__cta:focus-visible {
    background: #1b53bb;
}

.cb-svc-hero__call {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
}

.cb-svc-hero__formcol {
    min-width: 0;
}

.cb-svc-hero__card {
    box-sizing: border-box;
    width: 100%;
    padding: 28px;
    border-radius: 16px;
    background: #ffffff;
    color: #16233a;
    box-shadow: 0 26px 60px rgba(6, 18, 34, 0.28);
}

.cb-svc-hero__cardtitle {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #0f2a4a;
}

.cb-svc-hero__cardsub {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #5a6b8c;
}

.cb-svc-form {
    display: grid;
    gap: 12px;
}

.cb-svc-form input,
.cb-svc-form select {
    box-sizing: border-box;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d7dee9;
    border-radius: 10px;
    background: #ffffff;
    color: #16233a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.3;
}

.cb-svc-form input:focus,
.cb-svc-form select:focus {
    outline: none;
    border-color: #2467e0;
    box-shadow: 0 0 0 3px rgba(36, 103, 224, 0.15);
}

/* Keep the select neutral until the visitor actually submits. */
.cb-svc-form select:invalid:not(:focus) {
    border-color: #d7dee9;
}

.cb-svc-form button {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 10px;
    background: #2467e0;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cb-svc-form button:hover,
.cb-svc-form button:focus-visible {
    background: #1b53bb;
}

.cb-svc-form button:disabled {
    opacity: 0.7;
    cursor: default;
}

.cb-svc-hero__privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #5a6b8c;
}

@media (max-width: 1080px) {
    .cb-svc-hero__inner {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 36px;
    }
}

@media (max-width: 980px) {
    .cb-svc-hero {
        padding: 44px 0;
    }

    .cb-svc-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .cb-svc-hero__formcol {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .cb-svc-hero__card {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .cb-svc-hero {
        padding: 34px 0;
    }

    .cb-svc-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .cb-svc-hero__title {
        font-size: 28px;
    }

    .cb-svc-hero__desc {
        font-size: 15px;
    }

    .cb-svc-hero__card {
        padding: 22px;
    }

    .cb-svc-hero__cta {
        width: 100%;
        padding: 15px 20px;
        text-align: center;
    }
}
/* ==========================================================================
   BOTTOM CTA - contact links mobile fix
   (phone/email were wrapping into a 59px column on phones)
   ========================================================================== */
.bottom-cta-contact-links {
    flex-wrap: wrap;
    row-gap: 8px;
}

.bottom-cta-link {
    flex: 0 0 auto;
    white-space: nowrap;
    text-decoration: none;
}

.bottom-cta-link:hover,
.bottom-cta-link:focus-visible {
    color: var(--color-blue-primary);
}

@media (max-width: 768px) {
    .bottom-cta-card {
        padding: 24px 18px;
    }

    .bottom-cta-header {
        gap: 16px;
        margin-bottom: 20px;
    }

    .bottom-cta-contact-links {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bottom-cta-contact-links .divider-dot {
        display: none;
    }

    .bottom-cta-link {
        font-size: 0.875rem;
        line-height: 1.45;
    }

    .bottom-cta-link i {
        width: 16px;
        text-align: center;
        flex-shrink: 0;
    }

    .bottom-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .bottom-cta-link {
        font-size: 0.8125rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}