/* ==========================================================================
   Pharmacy Starter - Main Stylesheet
   Design System: CSS Custom Properties, Inter font, modern pharmacy design
   ========================================================================== */

/* ---------- FONT FALLBACK (prevents CLS from font swap) ---------- */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 25%;
    line-gap-override: 0%;
}

/* ---------- DESIGN TOKENS ---------- */
:root {
    /* Colors - Primary */
    --primary: #046bd2;
    --primary-dark: #035ab4;
    --primary-light: #60a5fa;
    --primary-bg: #eff6ff;

    /* Colors - Secondary */
    --secondary: #1e293b;
    --secondary-light: #334155;

    /* Colors - Accent */
    --accent: #10b981;
    --accent-dark: #047857;
    --accent-bg: #ecfdf5;
    --accent-dark-deep: #065f46;
    --accent-light: #6ee7b7;

    /* Colors - NHS */
    --nhs-blue: #003087;
    --nhs-light: #005eb8;

    /* Colors - Secondary Extended */
    --secondary-dark: #0f172a;

    /* Colors - Palette Backgrounds */
    --purple-bg: #f5f3ff;
    --red-bg: #fef2f2;
    --amber-bg: #fffbeb;
    --teal-bg: #f0fdfa;
    --primary-bg-end: #dbeafe;

    /* Colors - Background */
    --bg-white: #ffffff;
    --bg-light: #F0F5FA;
    --bg-warm: #FAFBFC;

    /* Colors - Text */
    --text: #334155;
    --text-light: #596678;
    --text-dark: #1e293b;

    /* Colors - Border */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Colors - Status */
    --success: var(--accent);
    --warning: #f59e0b;
    --error: #ef4444;

    /* Colors - Extended Palette */
    --purple: #7c3aed;
    --purple-dark: #6d28d9;
    --amber: #d97706;
    --amber-dark: #b45309;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --accent-bg-end: #d1fae5;

    /* Typography */
    --font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: clamp(0.8rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.8125rem, 0.775rem + 0.2vw, 0.875rem);
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
    --font-size-md: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --font-size-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
    --font-size-hero: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;

    /* Layout */
    --container-max: 1200px;
    --container-padding: 24px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;

    /* Z-index */
    --z-dropdown: 50;
    --z-sticky: 100;
    --z-overlay: 200;
    --z-modal: 300;
    --z-skip: 999;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    height: auto;
    min-height: 300px;
}

table {
    max-width: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- ACCESSIBILITY ---------- */

/* Skip to content link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: var(--z-skip);
    background: var(--primary);
    color: var(--bg-white);
    padding: 12px 24px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none;
}

.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Focus indicators - WCAG 2.2 compliant */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---------- LAYOUT ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-warm {
    background: var(--bg-warm);
}

.section-accent {
    background: var(--accent-bg);
}

.section-accent-blue {
    background: var(--primary-bg);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: var(--font-size-hero); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--font-size-3xl); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

p:last-child {
    margin-bottom: 0;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: var(--font-size-md);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.section-header .label {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}

.section-header-row .section-header {
    text-align: left;
    margin-bottom: 0;
}

.view-all {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--primary);
    white-space: nowrap;
    padding-top: var(--space-md);
}

.view-all:hover {
    color: var(--primary-dark);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 107, 210, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    color: var(--bg-white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-accent {
    background: var(--accent-dark);
    color: var(--bg-white);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--bg-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--font-size-base);
}

.btn-sm {
    padding: 8px 20px;
    font-size: var(--font-size-sm);
}

/* ---------- ANNOUNCEMENT BANNER ---------- */
@keyframes announcement-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes announcement-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}

.announcement-banner {
    position: relative;
    z-index: 1001;
    padding: 12px 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Subtle shimmer overlay */
.announcement-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: announcement-shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

.announcement-banner--hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.announcement-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.announcement-banner__content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.announcement-banner__msg,
.announcement-banner__link {
    letter-spacing: 0.2px;
}

.announcement-banner__link {
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    padding-bottom: 1px;
    transition: border-color var(--transition);
}

.announcement-banner__link:hover {
    border-bottom-color: rgba(255, 255, 255, 0.9);
}

.announcement-banner__timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.announcement-banner__timer::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: announcement-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.announcement-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.announcement-banner__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.announcement-banner__close {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    padding: 5px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity var(--transition), background var(--transition);
}

.announcement-banner__close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {
    .announcement-banner {
        padding: 10px 0;
        font-size: var(--font-size-xs);
    }

    .announcement-banner__inner {
        gap: var(--space-sm);
    }

    .announcement-banner__content {
        gap: 8px;
    }

    .announcement-banner__timer {
        font-size: 11px;
        padding: 3px 10px;
    }

    .announcement-banner__btn {
        padding: 4px 12px;
        font-size: 11px;
    }
}

/* ---------- TOP BAR ---------- */
.top-bar {
    background: var(--secondary);
    color: var(--bg-white);
    padding: var(--space-sm) 0;
    font-size: var(--font-size-sm);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--bg-white);
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--primary-light);
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 600;
}

.top-bar-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-hours {
    opacity: 0.8;
}

/* ---------- SITE HEADER ---------- */
.site-header {
    background: var(--bg-white);
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-header);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: box-shadow var(--transition);
    min-height: 72px;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--secondary);
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 24px;
    font-weight: 800;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

.logo-tagline {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 400;
    color: var(--text-light);
}

/* ---------- NAVIGATION ---------- */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background-color var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--primary-dark);
    background: var(--primary-bg);
}

/* Dropdown arrow */
.nav-menu > li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 2px;
    transition: transform var(--transition);
}

.nav-menu > li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

/* Dropdown menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    z-index: var(--z-dropdown);
}

.nav-menu > li.open > .sub-menu,
.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background-color var(--transition);
}

.sub-menu li a:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

/* ---------- MEGA MENU ---------- */
.nav-menu > li.mega-menu > .sub-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: dense;
    min-width: 720px;
    max-width: 820px;
    padding: 0;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
    overflow: hidden;
}

.nav-menu > li.mega-menu.open > .sub-menu,
.nav-menu > li.mega-menu:hover > .sub-menu {
    transform: translateX(-50%) translateY(0);
}

/* Mega menu top accent bar */
.nav-menu > li.mega-menu > .sub-menu::before {
    content: "";
    grid-column: 1 / -1;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
}

.mega-col-1 { grid-column: 1; padding: 0 var(--space-lg); }
.mega-col-2 { grid-column: 2; padding: 0 var(--space-lg); border-left: 1px solid var(--border-light); }

.mega-heading {
    list-style: none;
    padding-top: var(--space-md) !important;
}

.mega-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    padding: 0 4px 6px;
    margin-bottom: 2px;
    border-bottom: none;
}

/* Add bottom padding to last item in each column */
.mega-col-1:last-of-type,
.mega-col-2:last-of-type {
    padding-bottom: var(--space-md);
}

.mega-col-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Mega menu links */
.mega-col-1 > a,
.mega-col-2 > a {
    position: relative;
    padding: 6px 12px 6px 20px !important;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text);
    transition: color 0.15s ease, background-color 0.15s ease, padding 0.15s ease;
}

.mega-col-1 > a::before,
.mega-col-2 > a::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    transition: background-color 0.15s ease;
}

.mega-col-1 > a:hover,
.mega-col-2 > a:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
    padding-left: 24px !important;
}

.mega-col-1 > a:hover::before { background: var(--primary); }
.mega-col-2 > a:hover::before { background: var(--accent); }

/* View All Services footer */
.mega-view-all {
    grid-column: 1 / -1;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    margin: 0;
    padding: 0;
    text-align: center;
}

.mega-view-all a {
    display: block;
    padding: 14px var(--space-lg) !important;
    font-weight: 600;
    color: var(--secondary) !important;
    font-size: var(--font-size-sm);
    border-radius: 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.mega-view-all a:hover {
    background: var(--primary);
    color: var(--bg-white) !important;
}

/* Standard dropdowns (Private Clinics, Vaccinations, About) */
.nav-menu > li:not(.mega-menu) > .sub-menu {
    min-width: 240px;
    padding: var(--space-xs);
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
}

.nav-menu > li:not(.mega-menu) > .sub-menu::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: 0 0 var(--space-xs);
    border-radius: 3px 3px 0 0;
}

.nav-menu > li:not(.mega-menu) > .sub-menu li a {
    position: relative;
    padding: 10px 16px 10px 28px;
    transition: color 0.15s ease, background-color 0.15s ease, padding 0.15s ease;
}

.nav-menu > li:not(.mega-menu) > .sub-menu li a::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    transition: background-color 0.15s ease;
}

.nav-menu > li:not(.mega-menu) > .sub-menu li a:hover {
    padding-left: 32px;
}

.nav-menu > li:not(.mega-menu) > .sub-menu li a:hover::before {
    background: var(--primary);
}

/* Book Now CTA */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--primary);
    color: var(--bg-white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--bg-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 107, 210, 0.3);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--secondary);
    z-index: var(--z-overlay);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ---------- CARDS (GLOBAL) ---------- */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ---------- SERVICE CARDS ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    justify-items: center;
}
.services-grid--center {
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    justify-content: center;
}
.services-grid--center-wrap .services-grid,
.services-grid--center-wrap .cs-grid,
.wl-treatments .cs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.service-icon svg {
    transition: transform var(--transition);
}

.service-icon.blue   { background: var(--primary-bg); color: var(--primary); }
.service-icon.green  { background: var(--accent-bg); color: var(--accent-dark); }
.service-icon.purple { background: var(--purple-bg); color: var(--purple); }
.service-icon.red    { background: var(--red-bg); color: var(--error); }
.service-icon.amber  { background: var(--amber-bg); color: var(--amber); }
.service-icon.teal   { background: var(--teal-bg); color: var(--teal); }

.service-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.service-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

/* ---------- VACCINATION CARDS ---------- */
.vacc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.vacc-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition);
}

.vacc-card:hover {
    transform: translateY(-4px);
}

.vacc-img {
    height: 140px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-bg-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.vacc-card-body {
    padding: var(--space-md);
}

.vacc-card h4 {
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.vacc-card p {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.vacc-price {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--primary);
}

/* ---------- HERO SECTION ---------- */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--bg-white);
    padding: var(--space-4xl) 0 60px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 520px;
    contain: layout style;
}

/* Hero overlay moved to inline background-image to eliminate CLS */

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(4, 107, 210, 0.15) 100%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: var(--font-size-hero);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    color: var(--bg-white);
}

.hero h1 span {
    color: var(--primary-light);
}

.hero p {
    font-size: var(--font-size-lg);
    opacity: 0.85;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

/* Hero Cards */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.hero-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    transition: transform var(--transition), background var(--transition);
}

.hero-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-card-icon {
    font-size: 32px;
    margin-bottom: var(--space-sm);
}

.hero-card h3,
.hero-card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--bg-white);
}

.hero-card p {
    font-size: var(--font-size-xs);
    opacity: 0.85;
    margin-bottom: var(--space-sm);
}

.hero-card a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.hero-card a:hover {
    color: var(--bg-white);
}

/* ---------- TRUST STATS BAR ---------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: var(--space-2xl);
    box-shadow: var(--shadow);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-top: var(--space-xs);
}

/* ---------- SPLIT SECTION (Travel Health) ---------- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image {
    background: linear-gradient(135deg, var(--primary-bg), var(--primary-bg-end));
    border-radius: var(--radius);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.split-content h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
}

.split-content p {
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.check-list li {
    padding: var(--space-sm) 0;
    padding-left: 28px;
    position: relative;
    color: var(--text);
    font-size: var(--font-size-sm);
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ---------- CROSS LIST (contraindications / exclusions) ---------- */
.cross-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cross-list li {
    padding: var(--space-sm) 0;
    padding-left: 28px;
    position: relative;
    color: var(--text);
    font-size: var(--font-size-sm);
}

.cross-list li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: var(--error);
    font-weight: 700;
}

/* ---------- SECTION BADGE VARIANTS ---------- */
.section-badge--warning {
    background: var(--amber-bg);
    color: var(--amber-dark);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-lg) var(--space-lg);
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--primary-dark);
}

.faq-question::after {
    content: "+";
    font-size: 24px;
    color: var(--primary);
    font-weight: 300;
    flex-shrink: 0;
    margin-left: var(--space-md);
    transition: transform var(--transition);
}

.faq-item[open] .faq-question::after,
.faq-item.open .faq-question::after {
    content: "\2212";
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ---------- FAQ PAGE NAV ---------- */
.faq-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.faq-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full, 999px);
    color: var(--text);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.faq-nav-link:hover {
    background: var(--primary-bg);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.faq-group {
    padding-top: var(--space-xl);
}

.faq-group-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.faq-group-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-group-icon.blue { background: var(--primary-bg); color: var(--primary); }
.faq-group-icon.green { background: var(--accent-bg); color: var(--accent); }
.faq-group-icon.purple { background: var(--purple-bg); color: var(--purple); }
.faq-group-icon.amber { background: var(--amber-bg); color: var(--amber); }

.faq-group-header h2 {
    margin: 0;
    font-size: var(--font-size-xl);
}

.faq-group-header p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* ---------- NEWSLETTER ---------- */
.newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: var(--bg-white);
}

.newsletter p {
    opacity: 0.85;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-base);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--secondary);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-light);
}

.newsletter-form + p,
.newsletter-form + div,
.newsletter .tnp-field,
.newsletter .tnp-message {
    text-align: center;
    max-width: 480px;
    margin: var(--space-md) auto 0;
}

/* ---------- NHS SECTION ---------- */
.nhs-section {
    background: var(--nhs-blue);
    color: var(--bg-white);
    padding: var(--space-4xl) 0;
    text-align: center;
}

.nhs-badge-large {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

.walk-in-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.5);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: #fff;
    margin-bottom: var(--space-sm);
}

.nhs-section h2 {
    color: var(--bg-white);
    margin-bottom: var(--space-sm);
}

.nhs-section p {
    opacity: 0.75;
    max-width: 560px;
    margin: 0 auto;
    font-size: var(--font-size-base);
}

.nhs-conditions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.nhs-condition {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    transition: background var(--transition);
}

.nhs-condition:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nhs-condition-icon {
    font-size: 32px;
    margin-bottom: var(--space-sm);
}

.nhs-condition h3,
.nhs-condition h4 {
    color: var(--bg-white);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
}

.nhs-condition p {
    font-size: var(--font-size-xs);
    color: var(--bg-white);
    margin: 0;
}

/* ---------- BLOG CARDS ---------- */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.post-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
}

.post-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-bg-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.post-body {
    padding: var(--space-md);
}

.blog-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.blog-badge.category {
    background: var(--primary-bg);
    color: var(--primary);
}

.blog-badge.featured {
    background: var(--accent-bg);
    color: var(--accent);
}

.post-card h3 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin: var(--space-sm) 0;
    line-height: 1.4;
}

.post-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
    color: var(--text-light);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light);
}

.read-link {
    font-weight: 600;
    color: var(--primary);
    font-size: var(--font-size-xs);
}

.read-link:hover {
    color: var(--primary-dark);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--secondary);
    color: var(--bg-white);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.site-footer h4,
.site-footer .footer-heading {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--bg-white);
}

.site-footer .logo-text {
    color: var(--bg-white);
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--font-size-sm);
    line-height: 2;
}

.site-footer a:hover {
    color: var(--bg-white);
}

.footer-brand p {
    line-height: 1.7;
    margin-top: var(--space-sm);
}

.footer-links a {
    display: block;
}

.gphc-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: color var(--transition), background-color var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.footer-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-lg);
}

.footer-payments span {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.5);
    margin-right: var(--space-xs);
}

.footer-payments svg {
    border-radius: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:hover {
    color: var(--bg-white);
}

/* ---------- PAGE HERO ---------- */
.page-hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.8) 100%);
    color: var(--bg-white);
    padding: var(--space-4xl) 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.page-hero h1 {
    color: var(--bg-white);
    margin-bottom: var(--space-sm);
}

.page-hero p {
    opacity: 0.75;
    max-width: 600px;
    margin: 0 auto;
    font-size: var(--font-size-md);
}

.breadcrumb {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-md);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 4px;
}

.breadcrumb a:hover {
    color: var(--bg-white);
}

/* ---------- WP CLASSES ---------- */
.alignleft {
    float: left;
    margin-right: var(--space-lg);
    margin-bottom: var(--space-md);
}

.alignright {
    float: right;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.aligncenter {
    display: block;
    margin: 0 auto var(--space-md);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    text-align: center;
    margin-top: var(--space-sm);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .vacc-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.25rem);
    }

    .hero-cards {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid--2col {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .services-grid--center-wrap .cs-grid,
    .wl-treatments .cs-grid {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }

    .vacc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: var(--space-xl);
        margin-top: -24px;
    }

    .nhs-conditions {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-header-row {
        flex-direction: column;
        gap: var(--space-md);
    }

    /* ===== Mobile nav — full-width overlay below header ===== */
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-white);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        z-index: var(--z-overlay);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        padding: 0 0 env(safe-area-inset-bottom, 20px);
        display: flex;
        flex-direction: column;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Brand accent strip at top of mobile menu */
    .main-nav::before {
        content: '';
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light, #3b82f6) 50%, var(--accent, #10b981) 100%);
        flex-shrink: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        flex: 1;
        padding-top: 4px;
    }

    /* Parent items — 52px touch targets, left-aligned */
    .nav-menu > li > a {
        display: flex;
        align-items: center;
        min-height: 52px;
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-dark);
        text-align: left;
        position: relative;
        letter-spacing: -0.01em;
        transition: color 0.2s ease, background 0.2s ease;
    }

    /* Active/current menu item accent */
    .nav-menu > li.current-menu-item > a,
    .nav-menu > li.current-menu-ancestor > a {
        color: var(--primary);
        border-left: 3px solid var(--primary);
        padding-left: 17px;
        background: var(--primary-bg, rgba(26, 86, 219, 0.04));
    }

    /* Chevron on parent items with children */
    .nav-menu > li.menu-item-has-children > a::after {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--text-light);
        border-bottom: 2px solid var(--text-light);
        transform: rotate(45deg);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: auto;
        flex-shrink: 0;
    }

    .nav-menu > li.menu-item-has-children.open > a::after {
        transform: rotate(-135deg);
        border-color: var(--primary);
    }

    /* Open parent: highlight */
    .nav-menu > li.menu-item-has-children.open > a {
        color: var(--primary);
        background: var(--primary-bg);
        font-weight: 700;
    }

    /* Sub-menus — card-style container */
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        display: none;
        background: var(--bg-light);
    }

    .nav-menu > li.open > .sub-menu {
        display: block;
        animation: mobileSubMenuSlide 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes mobileSubMenuSlide {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Card wrapper for expanded sub-menu */
    .nav-menu > li.open > .sub-menu {
        background: var(--bg-light);
        margin: 4px 12px 8px;
        border-radius: 12px;
        padding: 6px 0;
        border-left: 3px solid var(--primary-light);
    }

    /* Mega menu: revert to stacked list on mobile */
    .nav-menu > li.mega-menu > .sub-menu {
        display: none;
        min-width: 0;
        max-width: none;
        left: 0;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    .nav-menu > li.mega-menu > .sub-menu::before { display: none; }
    .nav-menu > li:not(.mega-menu) > .sub-menu::before { display: none; }

    .nav-menu > li.mega-menu.open > .sub-menu {
        display: block;
        transform: none;
        background: var(--bg-light);
        margin: 4px 12px 8px;
        border-radius: 12px;
        padding: 6px 0;
        border-left: 3px solid var(--primary-light);
        animation: mobileSubMenuSlide 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mega-col-1,
    .mega-col-2,
    .mega-view-all {
        grid-column: auto;
        padding: 0;
        border-left: none;
    }

    /* Submenu links — 48px touch targets */
    .mega-col-1 > a,
    .mega-col-2 > a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 10px 24px !important;
        font-size: 0.9rem;
        color: var(--text);
        transition: color 0.15s ease, background 0.15s ease;
    }

    .mega-col-1 > a::before,
    .mega-col-2 > a::before { display: none; }

    .mega-col-1 > a:hover,
    .mega-col-2 > a:hover {
        padding-left: 24px !important;
        background: rgba(4, 107, 210, 0.06);
        color: var(--primary);
    }

    .mega-heading { padding-top: var(--space-sm); }

    /* Section headings — uppercase small primary text */
    .mega-col-title {
        font-size: 0.6875rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 12px 24px 4px;
        color: var(--primary);
        border-bottom: 1px solid rgba(4, 107, 210, 0.12);
        margin-bottom: 2px;
        font-weight: 600;
    }

    .mega-col-title svg { display: none; }

    .mega-view-all {
        background: transparent;
        border-top: 1px solid rgba(4, 107, 210, 0.08);
        margin-top: 4px;
    }

    .mega-view-all a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 10px 24px !important;
        border-radius: 0;
        text-align: left;
        font-weight: 600;
        color: var(--primary);
    }

    .mega-view-all a:hover {
        background: var(--primary-bg);
        color: var(--primary-dark) !important;
    }

    .nav-menu > li:not(.mega-menu) > .sub-menu {
        box-shadow: none;
        border-radius: 0;
    }

    .nav-menu > li:not(.mega-menu) > .sub-menu li a::before { display: none; }

    .nav-menu > li:not(.mega-menu) > .sub-menu li a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 10px 24px;
        font-size: 0.9rem;
        transition: color 0.15s ease, background 0.15s ease;
    }

    .nav-menu > li:not(.mega-menu) > .sub-menu li a:hover {
        padding-left: 24px;
        background: rgba(4, 107, 210, 0.06);
    }

    .sub-menu li a {
        padding-left: 24px;
    }

    /* Separator before CTA */
    .nav-cta {
        margin: auto 16px 16px;
        text-align: center;
        width: calc(100% - 32px);
        justify-content: center;
        min-height: 48px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Mobile menu contact info strip */
    .nav-search-toggle {
        order: 10;
    }

    .nav-cta {
        order: 11;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .top-bar-hours {
        display: none;
    }

    .top-bar-contact {
        flex-direction: row;
        align-items: center;
        gap: var(--space-sm, 12px);
    }

    .top-bar-phone {
        white-space: nowrap;
    }

    /* Mobile overlay — full-screen behind menu */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: calc(var(--z-sticky) - 1);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    }

    .mobile-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    /* Hide WhatsApp button when mobile menu is open */
    body.mobile-nav-open .whatsapp-float {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .vacc-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .nhs-conditions {
        grid-template-columns: 1fr;
    }
}

/* ---------- POLICY PAGES ---------- */
.policy-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.policy-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.policy-card-icon {
    font-size: 32px;
    margin-bottom: var(--space-sm);
}

.policy-card h3 {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-xs);
}

.policy-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* Accessibility: ensure body text links are distinguishable (WCAG link-in-text-block) */
.policy-content a,
.service-content a:not(.btn),
.section-content a:not(.btn),
.entry-content a:not(.btn),
.healthy-living-content a:not(.btn),
.split-content a:not(.btn),
.faq-answer-content a:not(.btn),
.check-list a {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

/* Accessibility: color-contrast fixes for WCAG 2 AA (4.5:1 minimum) */
.callback-submit-btn {
    background-color: #0056b3 !important;
}
.cs-filter-pill.active {
    background-color: #0056b3 !important;
}

.policy-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-light);
}

.policy-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.policy-callout {
    background: var(--primary-bg);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.policy-callout p:last-child {
    margin-bottom: 0;
}

.policy-contact {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-xl);
    margin-top: var(--space-2xl);
}

.policy-contact h3 {
    margin-top: 0;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.timeline-step {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
}

.timeline-step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--bg-white);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.timeline-step h4 {
    margin-bottom: var(--space-xs);
}

.timeline-step p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.escalation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.escalation-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.escalation-card h4 {
    margin-bottom: var(--space-sm);
}

.escalation-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

/* Policy FAQ using <details> */
.policy-faq details {
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.policy-faq summary {
    padding: var(--space-lg);
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: color var(--transition);
}

.policy-faq summary::-webkit-details-marker {
    display: none;
}

.policy-faq summary::after {
    content: "+";
    font-size: 24px;
    color: var(--primary);
    font-weight: 300;
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.policy-faq details[open] summary::after {
    content: "\2212";
}

.policy-faq summary:hover {
    color: var(--primary-dark);
}

.policy-faq .faq-answer-content {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.7;
}

/* Feature grid for accessibility */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.feature-card-icon {
    font-size: 28px;
    margin-bottom: var(--space-sm);
}

.feature-card h4 {
    margin-bottom: var(--space-xs);
}

.feature-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* Cookie type badges using CSS variables */
.cookie-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.cookie-type-badge.essential { background: var(--accent-bg); color: var(--accent-dark); }
.cookie-type-badge.analytics { background: var(--primary-bg); color: var(--primary); }
.cookie-type-badge.marketing { background: var(--red-bg); color: #b91c1c; }

/* ---------- BUTTON ADDITIONS (v1.4.0) ---------- */
.btn:active {
    transform: scale(0.98);
}

.btn-ghost-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
}

/* ---------- SECTION BADGE VARIANTS ---------- */
.section-badge--accent {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent-dark);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.section-badge--nhs {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--nhs-blue);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

/* ---------- ICON CIRCLE (Contact Page) ---------- */
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle.blue   { background: var(--primary-bg); color: var(--primary); }
.icon-circle.green  { background: var(--accent-bg); color: var(--accent-dark); }
.icon-circle.purple { background: var(--purple-bg); color: var(--purple); }
.icon-circle.amber  { background: var(--amber-bg); color: var(--amber); }

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.contact-item .icon-circle {
    flex-shrink: 0;
}

.contact-item-text h4 {
    margin: 0 0 2px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.contact-item-text p {
    margin: 0;
    color: var(--text-light);
}

.contact-item-text a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item-text a:hover {
    text-decoration: underline;
}

.contact-form-wrap {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: var(--space-xl);
    border: 1px solid var(--border);
}

.contact-form-placeholder {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: var(--space-xl);
    border: 1px solid var(--border);
}

.map-placeholder {
    height: 400px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- BLOG SINGLE LAYOUT ---------- */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

.single-featured-image {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-meta {
    margin-top: 12px;
    opacity: 0.7;
    font-size: var(--font-size-sm);
}

.single-meta span + span::before {
    content: "\00b7";
    margin: 0 8px;
}

.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget h4 {
    margin-bottom: 12px;
}

.sidebar-widget--cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
}

.sidebar-widget--cta h4 {
    color: white;
    margin-bottom: 8px;
}

.sidebar-widget--cta p {
    font-size: var(--font-size-xs);
    opacity: 0.85;
    margin-bottom: 12px;
}

.sidebar-category-link {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--text);
    text-decoration: none;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--border-light);
}

.sidebar-count {
    color: var(--text-light);
}

.tag-pill {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin: 2px;
    text-decoration: none;
}

.tag-pill:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

/* Tag Browse Page — Card Grid */
.tag-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.tag-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tag-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tag-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.tag-card:hover .tag-card__icon {
    transform: scale(1.1);
}

.tag-card--blue .tag-card__icon  { background: var(--primary-bg); color: var(--primary); }
.tag-card--green .tag-card__icon { background: var(--accent-bg); color: var(--accent-dark); }
.tag-card--purple .tag-card__icon { background: var(--purple-bg); color: var(--purple); }
.tag-card--teal .tag-card__icon  { background: var(--teal-bg); color: var(--teal); }
.tag-card--amber .tag-card__icon { background: var(--amber-bg); color: var(--amber); }

.tag-card--blue:hover  { border-color: var(--primary-light); }
.tag-card--green:hover { border-color: var(--accent-light); }
.tag-card--purple:hover { border-color: var(--purple); }
.tag-card--teal:hover  { border-color: var(--teal); }
.tag-card--amber:hover { border-color: var(--warning); }

.tag-card__body {
    flex: 1;
    min-width: 0;
}

.tag-card__body h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--text-dark);
}

.tag-card__count {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.tag-card__arrow {
    color: var(--border);
    flex-shrink: 0;
    transition: color var(--transition), transform var(--transition);
}

.tag-card:hover .tag-card__arrow {
    transform: translateX(3px);
}

.tag-card--blue:hover .tag-card__arrow  { color: var(--primary); }
.tag-card--green:hover .tag-card__arrow { color: var(--accent-dark); }
.tag-card--purple:hover .tag-card__arrow { color: var(--purple); }
.tag-card--teal:hover .tag-card__arrow  { color: var(--teal); }
.tag-card--amber:hover .tag-card__arrow { color: var(--amber); }

/* Tag Browse Page — Pill Grid (single-article tags) */
.tag-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.tag-pill-card {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.tag-pill-card:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tag-pill-card__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
}

.tag-pill-card:hover .tag-pill-card__count {
    background: var(--primary);
    color: var(--bg-white);
}

@media (max-width: 768px) {
    .tag-card-grid {
        grid-template-columns: 1fr;
    }
}

.single-post-divider {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.related-posts-section {
    margin-top: 48px;
}

.related-posts-section h3 {
    margin-bottom: 24px;
}

/* ---------- TEAM CARDS (About Page) ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow);
    transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--space-md);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo--placeholder {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.team-photo--placeholder svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
}

.team-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 4px;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-bottom: 4px;
}

.team-quals {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin-bottom: 8px;
}

.team-gphc {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.team-bio {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-top: var(--space-sm);
    line-height: 1.6;
}

/* ---------- 404 PAGE ---------- */
.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    margin-bottom: 24px;
    color: var(--text-light);
}

.error-message {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: 32px;
}

.page-pills {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-pill {
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition);
}

.page-pill:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: var(--bg-white);
}

.cta-banner p {
    opacity: 0.85;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-base);
}

.cta-banner--accent {
    background: linear-gradient(135deg, var(--accent-dark-deep), var(--accent-dark));
}

.cta-banner--nhs {
    background: linear-gradient(135deg, var(--nhs-blue), var(--nhs-light));
}

/* ---------- SERVICE CARD PRICE ---------- */
.service-card__price {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card__nhs-badge {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--nhs-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* ---------- WEIGHT LOSS PAGE (moved from inline) ---------- */
.wl-hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.8) 100%);
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    padding: var(--space-4xl) 0;
    text-align: center;
}

.wl-hero h1 { color: var(--bg-white); margin-bottom: var(--space-md); }
.wl-hero h1 span { color: rgba(255, 255, 255, 0.85); }
.wl-hero p { opacity: 0.85; max-width: 600px; margin: 0 auto var(--space-xl); font-size: var(--font-size-lg); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.step-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--accent-bg);
    color: var(--accent-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto var(--space-md);
}

.step-card h3 { margin-bottom: var(--space-sm); }
.step-card p { font-size: var(--font-size-sm); color: var(--text-light); }

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.treatment-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    transition: transform var(--transition), box-shadow var(--transition);
}

.treatment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.treatment-img {
    width: 140px;
    min-height: 200px;
    background: linear-gradient(135deg, var(--accent-bg), var(--accent-bg-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    flex-shrink: 0;
    color: var(--accent-dark);
}

.treatment-body { padding: var(--space-lg); flex: 1; }
.treatment-body h3 { margin-bottom: 4px; }
.treatment-body .subtitle { font-size: var(--font-size-xs); color: var(--text-light); margin-bottom: var(--space-sm); }
.treatment-body p { font-size: var(--font-size-sm); color: var(--text-light); margin-bottom: var(--space-md); }

.treatment-price {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: var(--space-md);
}

.treatment-price span {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-light);
}

.bmi-widget {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.bmi-widget h3 { margin-bottom: var(--space-md); text-align: center; }

.bmi-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.bmi-input label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.bmi-input input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
}

.bmi-result {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.bmi-full-width {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
}

/* ---------- VACCINATION PRICING TABLE (moved from inline) ---------- */
.pricing-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-xl);
}

.pricing-table th {
    background: var(--primary);
    color: white;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.pricing-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: var(--font-size-sm);
}

.pricing-table tr:hover td { background: var(--bg-light); }

.pricing-table .nhs-badge-inline {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--nhs-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Cookie table (moved from inline) */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

.cookie-table th {
    background: var(--bg-light);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-bottom: 2px solid var(--border);
}

.cookie-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: var(--font-size-sm);
}

.cookie-table code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: var(--font-size-xs);
}

/* ---------- WP PAGINATION ---------- */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    background: var(--bg-white);
    border: 1px solid var(--border);
    transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.page-numbers:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.page-numbers.current {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.page-numbers.dots {
    border: none;
    background: none;
}

/* ---------- PROSE (the_content styling) ---------- */
.prose ul,
.prose ol {
    list-style: revert;
    padding-left: 1.5em;
    margin-bottom: var(--space-md);
}

.prose ul li,
.prose ol li {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

.prose blockquote {
    border-left: 4px solid var(--primary);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--text-light);
    background: var(--bg-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: var(--font-size-sm);
    font-family: 'Consolas', 'Monaco', monospace;
}

.prose pre {
    background: var(--secondary);
    color: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius);
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

.prose table th,
.prose table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.prose table th {
    background: var(--bg-light);
    font-weight: 600;
}

.prose table tr:nth-child(even) {
    background: var(--bg-warm);
}

.prose img {
    border-radius: var(--radius);
    margin: var(--space-lg) 0;
}

.prose h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.prose h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.prose h4,
.prose h5,
.prose h6 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

/* ---------- WHY CHOOSE US (Services page) ---------- */
.free-consult-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-md) var(--space-xl);
    margin-bottom: var(--space-xl);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.2);
}
.free-consult-banner svg {
    stroke: #fff;
    flex-shrink: 0;
}

.highlight-free {
    color: #047857;
    background: rgba(22, 163, 74, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.app-download-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}
.app-download-label {
    margin-right: var(--space-xs, 4px);
}
.app-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #111;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.app-badge-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
}
.app-badge-btn svg {
    flex-shrink: 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.trust-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.trust-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.trust-card h4 {
    margin-bottom: var(--space-xs);
}

.trust-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* ---------- SCROLL-REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- CARD HOVER UNIFICATION ---------- */
.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.vacc-card:hover,
.post-card:hover {
    box-shadow: var(--shadow-md);
}

.trust-card:hover .trust-card-icon svg,
.feature-card:hover .feature-card-icon svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    /* Responsive layouts */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .single-layout {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .treatment-grid {
        grid-template-columns: 1fr;
    }

    .treatment-card {
        flex-direction: column;
    }

    .treatment-img {
        width: 100%;
        min-height: 120px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 12px;
    }
}

/* ---------- MOBILE CTA BAR ---------- */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    display: none;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-cta-bar .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 12px;
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: flex;
    }

    /* Add padding to body so CTA bar doesn't cover content */
    body {
        padding-bottom: 64px;
    }
}

/* ---------- NHS SECTION TYPOGRAPHY ---------- */
.nhs-section .nhs-section-title {
    font-size: var(--font-size-3xl);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.nhs-section .nhs-section-desc {
    opacity: 0.75;
    max-width: 560px;
    margin: 0 auto;
    font-size: var(--font-size-base);
}

.nhs-condition--walkin {
    background: rgba(255, 255, 255, 0.2);
    border-style: dashed;
}

/* ---------- POLICY CONTAINER ---------- */
.policy-container {
    max-width: 960px;
}

/* ---------- BUTTON GROUP CENTERED ---------- */
.btn-group--center {
    justify-content: center;
}

/* ---------- BUTTON BLOCK ---------- */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ---------- SEARCH FORM ---------- */
.search-form {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

.search-form-wrapper {
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

/* ---------- SECTION FLUSH (no padding) ---------- */
.section-flush {
    padding: 0;
}

/* ---------- NHS BADGE INLINE ---------- */
.section-badge--nhs-inline {
    font-size: 12px;
    padding: 2px 8px;
}

/* ---------- POST IMAGE PLACEHOLDER ---------- */
.post-img--placeholder {
    height: 180px;
    overflow: hidden;
}

.post-img--placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- CONTACT PAGE EXTRAS ---------- */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-map {
    margin-top: 0;
}

.contact-map-placeholder {
    height: 300px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-light);
}

.contact-map-icon {
    margin-bottom: var(--space-md);
    color: var(--primary);
}

/* ---------- 404 PAGE EXTRAS ---------- */
.error-text {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.error-popular {
    margin-top: var(--space-2xl);
}

.error-popular h3 {
    margin-bottom: var(--space-md);
}

/* ---------- SINGLE POST EXTRAS ---------- */
.single-taxonomies {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.single-categories {
    margin-bottom: var(--space-md);
}

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---------- SECTION CTA ---------- */
.section-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ---------- VACCINATION CATEGORY GROUPS ---------- */
.vacc-category-group {
    margin-bottom: var(--space-xl);
}

.vacc-category-group h3 {
    margin-bottom: var(--space-md);
}

/* ---------- 2-COLUMN SERVICE GRID ---------- */
.services-grid--2col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- RXSURE WIDGET WRAPPER ---------- */
.rxsure-widget-wrap {
    margin-top: var(--space-md);
    contain: content;
}

.rxsure-widget-wrap .consultation-services-container {
    gap: var(--space-lg);
}

.rxsure-widget-wrap .consultation-service-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.rxsure-widget-wrap .consultation-service-card img {
    aspect-ratio: 3 / 2;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.rxsure-widget-wrap .consultation-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ---------- NEWSLETTER DISCLAIMER ---------- */
.newsletter-disclaimer {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-sm);
}

/* ---------- CLINICAL DISCLAIMER ---------- */
.clinical-disclaimer {
    padding: var(--space-lg) 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.clinical-disclaimer p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto var(--space-sm);
    text-align: center;
}

.clinical-disclaimer a {
    color: var(--primary);
    text-decoration: underline;
}

/* ---------- BMI CALCULATOR BUTTON ---------- */
.bmi-calculate-btn {
    background: var(--accent-dark);
    color: var(--bg-white);
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.bmi-calculate-btn:hover {
    background: var(--accent-dark);
}

/* ---------- LOGO & FOOTER LOGO ---------- */
.logo-fallback {
    border-radius: var(--radius);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo .logo-fallback {
    border-radius: var(--radius-sm);
}

/* ---------- FOOTER EXTRAS ---------- */
.footer-extra {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 24px;
    font-size: var(--font-size-sm);
    opacity: 0.75;
}

.site-version {
    text-align: center;
    padding: 8px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.site-version a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--transition);
}

.site-version a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.gphc-verify {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 8px;
}

.footer-established {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-top: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---------- TEXT ALIGNMENT HELPERS ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ---------- 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;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- PRINT STYLES ---------- */
@media print {
    .site-header,
    .top-bar,
    .site-footer,
    .skip-link,
    .mobile-menu-toggle,
    .newsletter {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ---------- SOCIAL SHARE BUTTONS (B-01) ---------- */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.share-buttons span {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    color: var(--text-light);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.share-btn:hover { background: var(--primary-bg); color: var(--primary-dark); }
.share-btn--x:hover { background: #0f141a; color: #fff; }
.share-btn--fb:hover { background: #1877f2; color: #fff; }
.share-btn--li:hover { background: #0a66c2; color: #fff; }
.share-btn--wa:hover { background: #25d366; color: #fff; }

.share-btn svg { width: 16px; height: 16px; }

/* ---------- BLOG HERO (B-02) ---------- */
.blog-hero-subtitle {
    margin-top: 8px;
    opacity: 0.7;
    font-size: var(--font-size-base);
    max-width: 600px;
}

/* ---------- PREVIOUS / NEXT POST NAV (B-03) ---------- */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: var(--text);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-nav-link:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(4, 107, 210, 0.08);
}

.post-nav-link--next {
    text-align: right;
}

.post-nav-label {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.post-nav-title {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
}

/* ---------- TABLE OF CONTENTS (B-05) ---------- */
.toc-widget {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.toc-widget h4 {
    margin-bottom: 12px;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 4px;
}

.toc-list a {
    display: block;
    padding: 4px 0;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 12px;
    transition: color 0.2s, border-color 0.2s;
}

.toc-list a:hover,
.toc-list a.toc-active {
    color: var(--primary-dark);
    border-left-color: var(--primary-dark);
}

.toc-list .toc-h3 {
    padding-left: 24px;
    font-size: var(--font-size-xs);
}

/* ---------- AUTHOR BIO BOX (B-08) ---------- */
.author-bio {
    display: flex;
    gap: 20px;
    padding: 24px;
    margin-top: var(--space-xl);
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.author-bio-avatar {
    flex-shrink: 0;
}

.author-bio-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-info h4 {
    margin-bottom: 4px;
    font-size: var(--font-size-base);
}

.author-bio-info h4 a {
    color: var(--text-dark);
    text-decoration: none;
}

.author-bio-info h4 a:hover {
    color: var(--primary-dark);
}

.author-bio-info p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.author-bio-role {
    font-size: var(--font-size-xs);
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

/* ---------- TRUST BADGES (B-09) ---------- */
.footer-trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 0;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.7);
}

.trust-badge svg {
    opacity: 0.6;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-nav-link--next {
        text-align: left;
    }

    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .footer-trust-badges {
        gap: 16px;
    }

    .trust-badge {
        font-size: 12px;
    }
}

/* ---------- PLUGIN OVERRIDES ---------- */

/* CLS fix: reserve space for dynamically-loaded consultation cards */
.rxsure-widget-wrap,
.rxsure-widget-wrap .consultation-services-container {
    contain: layout style;
    min-height: 320px;
}
.section-warm .rxsure-widget-wrap,
.section-alt .rxsure-widget-wrap {
    min-height: 320px;
}
.consultation-services-container {
    contain: layout style;
}

/* Contrast fixes: consultation services plugin (WCAG AA 4.5:1) */
.cs-category-badge {
    color: #92400e !important; /* amber on light bg — 7.5:1 */
}
.cs-category-badge[style*="#3B82F6"] {
    color: #1e40af !important; /* blue on light bg — 7.2:1 */
}
.cs-service-code {
    font-size: 12px;
    color: #475569 !important; /* slate-600 on white — 5.7:1 */
    opacity: 1 !important;
}
.cs-delivery {
    color: #475569 !important; /* slate-600 — 5.7:1 */
}
.cs-price {
    color: #334155 !important; /* slate-700 — 7.7:1 */
}
.cs-price-free {
    color: #047857 !important; /* emerald-700 on white — 5.0:1 */
}
.cs-card a[href*="rxsure"]:not(.cs-book-btn),
.cs-card .btn:not(.cs-book-btn) {
    color: #1e40af !important; /* blue-800 — 7.2:1 on light bg */
}
.cs-book-btn,
.cs-card a.cs-book-btn {
    background: #1e40af !important; /* blue-800 bg */
    color: #fff !important; /* white text — 8.6:1 */
}

/* Consultation card image fallback — prevents broken icons when ERP images fail */
.cs-card-image {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.cs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Consultation card font size fix — 11px → 14px on mobile */
@media (max-width: 768px) {
    .cs-price,
    .cs-price-free,
    .cs-delivery,
    .cs-duration {
        font-size: 14px !important;
    }
}

/* ---------- COOKIE POLICY MOBILE FIX ---------- */
.cookie-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--space-lg) 0;
}

.cookie-table-wrap .cookie-table {
    margin: 0;
}

@media (max-width: 768px) {
    /* Stack cookie tables into card layout */
    .cookie-table-wrap {
        overflow-x: visible;
    }

    .cookie-table,
    .cookie-table thead,
    .cookie-table tbody,
    .cookie-table tr,
    .cookie-table th,
    .cookie-table td {
        display: block;
    }

    .cookie-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .cookie-table tr {
        background: var(--bg-white);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: var(--space-md);
        margin-bottom: var(--space-sm);
    }

    .cookie-table td {
        padding: 4px 0;
        border-bottom: none;
        font-size: var(--font-size-sm);
    }

    .cookie-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-light);
        margin-bottom: 2px;
    }

    /* Policy summary cards — force single column */
    .policy-summary {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .policy-card {
        padding: var(--space-lg);
    }

    /* Tighten policy content spacing */
    .policy-content h2 {
        margin-top: var(--space-xl);
        font-size: 1.25rem;
    }

    .policy-content h3 {
        font-size: 1.1rem;
    }

    .policy-callout {
        padding: var(--space-md);
    }

    .policy-contact {
        padding: var(--space-lg);
    }

    /* Policy FAQ — prevent long questions from overflowing */
    .policy-faq summary {
        padding: var(--space-md);
        font-size: var(--font-size-sm);
        gap: var(--space-sm);
    }

    .policy-faq .faq-answer-content {
        padding: 0 var(--space-md) var(--space-md);
    }
}

/* Newsletter plugin button contrast fix */
.newsletter-btn {
    background-color: #1d4ed8 !important; /* blue-700 — 6.8:1 on white */
    color: #fff !important;
}
