/* ============================================
   ExceedAbility - Shared Stylesheet
   ============================================ */

:root {
    --brand-primary: #246FC6;
    --brand-secondary: #1A5BA8;
    --brand-dark: #0D3B66;
    --brand-light: #e8f0fe;
    --text-dark: #1a1a1a;
    --text-body: #374151;
    --text-muted: #666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.12);
    --max-width: 1200px;
    --transition: 0.2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ============================================================
   Default content lists
   The universal reset above strips padding from every element,
   which leaves bullet and number markers flush against the left
   edge of the containing block on plain <ul> and <ol> tags.
   This rule restores the expected indent for content lists.
   Styled lists carry their own class (nav-list, feature-list,
   process-list, etc.) and set list-style: none, so they are
   excluded here via :not([class]).
   ============================================================ */
ul:not([class]),
ol:not([class]) {
    padding-left: 1.5em;
    margin-bottom: 16px;
}
ul:not([class]) ul:not([class]),
ul:not([class]) ol:not([class]),
ol:not([class]) ul:not([class]),
ol:not([class]) ol:not([class]) {
    margin-bottom: 0;
}
ul:not([class]) li,
ol:not([class]) li {
    margin-bottom: 4px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6; color: var(--text-body); background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { color: var(--text-dark); line-height: 1.3; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.visually-hidden,
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Beta Banner */
.beta-banner {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    text-align: center;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 500;
}
.beta-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}
.beta-banner a:hover {
    color: #fef3c7;
}

/* Skip Link */
.skip-link { position: absolute; top: -50px; left: 16px; background: var(--brand-primary); color: #fff; padding: 10px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); z-index: 10000; font-weight: 600; font-size: 0.875rem; transition: top 0.3s; }
.skip-link:focus { top: 0; outline: 2px solid #fff; outline-offset: 2px; text-decoration: none; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.938rem; border: none; cursor: pointer; text-decoration: none; transition: all var(--transition); line-height: 1.4; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-secondary); color: #fff; }
.btn-secondary { background: var(--bg-white); color: var(--brand-primary); border: 2px solid var(--brand-primary); }
.btn-secondary:hover { background: var(--brand-light); color: var(--brand-secondary); }
.btn-large { padding: 16px 32px; font-size: 1.063rem; }

/* ===== HEADER ===== */
.site-header { background: var(--bg-white); padding: 16px 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.header-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-brand { display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; font-size: 1.375rem; font-weight: 700; color: var(--text-dark); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-exceed { color: var(--brand-primary); font-weight: 700; transition: color 0.25s ease; }
.logo-ability { color: var(--brand-primary); font-weight: 300; transition: color 0.25s ease; }

/* Inline brand name for body content: "Exceed" bold + "Ability" light, matching the
   header/footer logo weight contrast. Colour is inherited from surrounding text so the
   name stays legible on any background. */
.brand-name { font-weight: 300; }
.brand-name .brand-exceed { font-weight: 700; }
.site-description { font-size: 0.75rem; color: var(--text-muted); margin-left: 0; padding-left: 16px; border-left: 1px solid var(--border-light); white-space: nowrap; transition: color 0.25s ease, border-color 0.25s ease; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; list-style: none; gap: 10px; }
.nav-list a { display: block; padding: 8px 12px; color: var(--text-body); font-size: 0.938rem; font-weight: 500; border-radius: var(--radius-sm); transition: all var(--transition); white-space: nowrap; }
.nav-list a:hover { background: var(--bg-light); color: var(--brand-primary); text-decoration: none; }
.nav-cta { margin-left: 2px; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
.hamburger-line { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all 0.3s; }

/* ===== STICKY HEADER: DARK THEME ON SCROLL =====
   When scrolling crosses (hero bottom + 5% of hero height) the header
   inverts to a brand-blue bar with white text. JS sets .is-scrolled
   from includes/footer.php. */
.site-header.is-scrolled { background: var(--brand-primary); border-bottom-color: rgba(255, 255, 255, 0.18); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18); }
.site-header.is-scrolled .logo-exceed,
.site-header.is-scrolled .logo-ability { color: #fff; }
.site-header.is-scrolled .site-description { color: rgba(255, 255, 255, 0.85); border-left-color: rgba(255, 255, 255, 0.3); }
.site-header.is-scrolled .nav-list a { color: #fff; }
.site-header.is-scrolled .nav-list a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.site-header.is-scrolled .nav-list a[aria-current="page"] { background: rgba(255, 255, 255, 0.18); color: #fff; }
.site-header.is-scrolled .hamburger-line { background: #fff; }
/* Invert the Get Started CTA when header is dark: white button, blue text.
   !important required to win against the inline rules in includes/header.php. */
.site-header.is-scrolled .nav-list a.nav-cta,
.site-header.is-scrolled .nav-list .nav-cta-item a { background: #fff !important; color: var(--brand-primary) !important; }
.site-header.is-scrolled .nav-list a.nav-cta:hover,
.site-header.is-scrolled .nav-list .nav-cta-item a:hover { background: #f0f6ff !important; color: var(--brand-secondary) !important; }

/* ===== SERVICE HERO ===== */
.service-hero { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); color: #fff; padding: 48px 0 56px; }
.service-hero-content { max-width: 720px; }
.service-hero h1 { color: #fff; font-size: 2.25rem; font-weight: 700; margin-bottom: 16px; }
.service-hero-subtitle { font-size: 1.125rem; opacity: 0.9; line-height: 1.7; }
.service-hero .reviewed-line { margin-top: 14px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.85); }
.service-hero .reviewed-line a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.service-hero .reviewed-line a:hover, .service-hero .reviewed-line a:focus { text-decoration: none; }

.breadcrumb { margin-bottom: 24px; }
.breadcrumb ol { display: flex; list-style: none; gap: 8px; font-size: 0.875rem; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '\203A'; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; font-weight: 500; }
.breadcrumb.is-standalone { background: var(--bg-light); padding: 14px 0; margin-bottom: 0; border-bottom: 1px solid var(--border-light); }
.breadcrumb.is-standalone ol { flex-wrap: wrap; padding: 0 24px; max-width: var(--max-width); margin: 0 auto; }
.breadcrumb.is-standalone li + li::before { color: var(--text-muted); }
.breadcrumb.is-standalone a { color: var(--text-body); }
.breadcrumb.is-standalone a:hover { color: var(--brand-primary); }
.breadcrumb.is-standalone [aria-current] { color: var(--text-dark); font-weight: 500; }

/* ===== SECTION LAYOUT (landing hub + sidebar) ===== */
.section-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; max-width: var(--max-width); margin: 0 auto; padding: 32px 24px; }
.section-nav { position: sticky; top: 88px; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 18px 18px; }
.section-nav-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; color: var(--text-muted); font-weight: 700; }
.section-nav-title a { color: inherit; text-decoration: none; }
.section-nav-title a:hover { color: var(--brand-primary); }
.section-nav-list { list-style: none; margin: 0; padding: 0; }
.section-nav-list li { margin: 0; }
.section-nav-list a { display: block; padding: 8px 10px; font-size: 0.9rem; color: var(--text-body); text-decoration: none; border-left: 3px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: -3px; transition: all 0.15s ease; }
.section-nav-list a:hover { background: var(--bg-light); color: var(--brand-primary); }
.section-nav-list a.is-current { background: var(--brand-light); color: var(--brand-primary); font-weight: 600; border-left-color: var(--brand-primary); }
.section-content { min-width: 0; }
@media (max-width: 900px) {
    .section-layout { grid-template-columns: 1fr; padding: 24px 16px; }
    .section-nav { position: static; padding: 14px; }
    .section-nav-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
}
@media (max-width: 520px) {
    .section-nav-list { grid-template-columns: 1fr; }
}

/* ===== LANDING HUB CARDS (used on services, resources, why-it-matters, who-it-helps landings) ===== */
.hub-section { padding: 56px 0; }
.hub-container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.hub-intro { max-width: 720px; margin: 0 0 32px; }
.hub-intro h2 { font-size: 1.5rem; margin: 0 0 10px; color: var(--text-dark); }
.hub-intro p { font-size: 1.05rem; color: var(--text-body); margin: 0; line-height: 1.6; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hub-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 24px; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; box-shadow: var(--shadow-sm); }
.hub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-primary); text-decoration: none; }
.hub-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-light); color: var(--brand-primary); margin-bottom: 14px; }
.hub-card-icon svg { width: 22px; height: 22px; }
.hub-card h3 { font-size: 1.0625rem; margin: 0 0 6px; color: var(--text-dark); }
.hub-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 14px; flex: 1; }
.hub-card-cta { font-size: 0.85rem; font-weight: 600; color: var(--brand-primary); display: inline-flex; align-items: center; gap: 4px; }
.hub-card:hover .hub-card-cta { gap: 8px; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }

/* ===== SERVICE PAGE LAYOUT ===== */
.service-overview { padding: 56px 0; }
.service-content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.service-main-content h2 { font-size: 1.75rem; margin-bottom: 16px; }
.service-main-content h3 { font-size: 1.25rem; margin-top: 40px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-light); }
.service-main-content p { margin-bottom: 16px; }
.lead { font-size: 1.125rem; color: var(--text-body); line-height: 1.7; }

.feature-list { list-style: none; margin-bottom: 16px; }
.feature-list li { padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.feature-list li strong { display: block; font-size: 1rem; margin-bottom: 4px; color: var(--text-dark); }
.feature-list li p { margin-bottom: 0; font-size: 0.938rem; color: var(--text-muted); }

.process-list { list-style: none; counter-reset: process; }
.process-list li { counter-increment: process; padding: 16px 0 16px 48px; position: relative; border-bottom: 1px solid var(--border-light); }
.process-list li::before { content: counter(process); position: absolute; left: 0; top: 16px; width: 32px; height: 32px; background: var(--brand-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; }
.process-list li strong { display: block; margin-bottom: 4px; color: var(--text-dark); }
.process-list li p { margin-bottom: 0; font-size: 0.938rem; color: var(--text-muted); }

.deliverables-list { list-style: none; margin-bottom: 16px; }
.deliverables-list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--border-light); }
.deliverables-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--brand-primary); font-weight: 700; }

.standards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.standard-card { background: var(--bg-light); padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--border-light); }
.standard-card h4 { font-size: 1rem; margin-bottom: 6px; color: var(--brand-primary); }
.standard-card p { font-size: 0.875rem; margin-bottom: 0; color: var(--text-muted); }

.participant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.participant-card { background: var(--bg-light); padding: 18px 20px; border-radius: var(--radius-md); border: 1px solid var(--border-light); }
.participant-card h4 { font-size: 0.95rem; margin-bottom: 10px; color: var(--brand-primary); font-weight: 700; }
.participant-card ul { list-style: disc; padding-left: 1.25em; margin: 0; }
.participant-card li { font-size: 0.9rem; line-height: 1.5; margin-bottom: 4px; color: var(--text-body); }
.participant-card li:last-child { margin-bottom: 0; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.feature-card { background: var(--bg-light); padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--border-light); }
.feature-card h4 { font-size: 0.938rem; margin-bottom: 6px; color: var(--text-dark); }
.feature-card p { font-size: 0.875rem; margin-bottom: 0; color: var(--text-muted); }

.program-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.phase-card { background: var(--bg-light); padding: 24px 20px; border-radius: var(--radius-md); border: 1px solid var(--border-light); text-align: center; }
.phase-number { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--brand-primary); color: #fff; border-radius: 50%; font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.phase-card h4 { font-size: 1rem; margin-bottom: 8px; }
.phase-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0; }

.training-streams { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 16px; }
.stream-card { background: var(--bg-light); padding: 24px; border-radius: var(--radius-md); border: 1px solid var(--border-light); }
.stream-card h4 { font-size: 1.063rem; margin-bottom: 8px; color: var(--brand-primary); }
.stream-card > p { font-size: 0.938rem; margin-bottom: 12px; }
.stream-card ul { list-style: none; padding-left: 0; }
.stream-card ul li { padding: 4px 0 4px 20px; position: relative; font-size: 0.875rem; color: var(--text-muted); }
.stream-card ul li::before { content: '\2192'; position: absolute; left: 0; color: var(--brand-primary); }

/* ===== SIDEBAR ===== */
.service-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.sidebar-card { background: var(--bg-light); padding: 24px; border-radius: var(--radius-md); border: 1px solid var(--border-light); }
.sidebar-card.highlight { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); color: #fff; border: none; }
.sidebar-card.highlight h3 { color: #fff; }
.sidebar-card.highlight p { color: rgba(255,255,255,0.9); }
/* Blue button sits on a blue card, so give it a white outline to define it */
.sidebar-card.highlight .btn-primary { border: 2px solid #fff; }
.sidebar-card.highlight .btn-primary:hover { border-color: #fff; }
.sidebar-card h3 { font-size: 1.063rem; margin-bottom: 8px; }
.sidebar-card p { font-size: 0.938rem; margin-bottom: 16px; color: var(--text-muted); }
.sidebar-card .btn { width: 100%; justify-content: center; }
.related-services { list-style: none; }
.related-services li { border-bottom: 1px solid var(--border-light); }
.related-services li:last-child { border-bottom: none; }
.related-services a { display: block; padding: 10px 0; font-size: 0.938rem; }

/* ===== BLOG ===== */
.blog-section { padding: 56px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.blog-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-content { padding: 24px; }
/* .blog-category rule removed 2026-05-16. Use .badge.badge-type-blog instead.
   See BADGES.md for the unified badge system. */
.blog-card h3 { font-size: 1.063rem; margin-bottom: 8px; line-height: 1.4; }
.blog-card h3 a { color: var(--text-dark); }
.blog-card h3 a:hover { color: var(--brand-primary); }
.blog-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.blog-meta { font-size: 0.813rem; color: var(--text-muted); }

.blog-newsletter { background: var(--bg-light); padding: 40px; border-radius: var(--radius-lg); text-align: center; border: 1px solid var(--border-light); }
.blog-newsletter h3 { font-size: 1.375rem; margin-bottom: 8px; }
.blog-newsletter p { color: var(--text-muted); margin-bottom: 20px; }
.newsletter-form { max-width: 480px; margin: 0 auto; }
.newsletter-input-group { display: flex; gap: 8px; }
.newsletter-input-group input { flex: 1; padding: 12px 16px; border: 1px solid var(--border-medium); border-radius: var(--radius-sm); font-size: 0.938rem; font-family: inherit; }
.newsletter-input-group input:focus { outline: 2px solid var(--brand-primary); outline-offset: -1px; border-color: var(--brand-primary); }

/* ===== FAQ ===== */
.faq-section { padding: 56px 0; }
.faq-content { max-width: 800px; margin: 0 auto; }
.faq-group { margin-bottom: 32px; }
.faq-group-title { font-size: 1.25rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-light); color: var(--brand-primary); }
.faq-item { border: 1px solid var(--border-light); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--bg-white); border: none; cursor: pointer; font-size: 1rem; font-weight: 600; font-family: inherit; color: var(--text-dark); text-align: left; transition: background var(--transition); gap: 16px; }
.faq-question:hover { background: var(--bg-light); }
.faq-question::after { content: '+'; font-size: 1.25rem; font-weight: 400; color: var(--brand-primary); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.active .faq-question::after { content: '\2212'; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { padding: 0 20px 20px; max-height: 500px; }
.faq-answer p { font-size: 0.938rem; color: var(--text-body); line-height: 1.7; }
.faq-answer ul { margin: 8px 0; padding-left: 20px; }
.faq-answer li { font-size: 0.938rem; color: var(--text-body); margin-bottom: 4px; }

/* ===== CTA SECTION ===== */
.cta-section { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); color: #fff; text-align: center; padding: 64px 24px; }
.cta-section h2 { color: #fff; font-size: 1.75rem; margin-bottom: 12px; }
.cta-section p { font-size: 1.063rem; opacity: 0.9; margin-bottom: 24px; }
.cta-section .btn-primary { background: #fff; color: var(--brand-primary); }
.cta-section .btn-primary:hover { background: #f0f0f0; color: var(--brand-secondary); }

/* ===== BLOG POST FOOTER NAVIGATION ===== */
/* Prev/next links at the foot of each blog post. Add breathing room so they do
   not bump the footer (on posts with no trailing section) or the next section. */
.post-navigation { padding: 24px 0 56px; }
@media (max-width: 640px) { .post-navigation { padding: 16px 0 40px; } }

/* ===== FOOTER ===== */
.site-footer { background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%); color: #ccc; padding: 56px 0 0; }
.footer-content { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .logo, .footer-brand .footer-logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo-exceed, .footer-brand .footer-logo .logo-exceed { color: #fff; }
.footer-brand .logo-ability, .footer-brand .footer-logo .logo-ability { color: rgba(255,255,255,0.7); }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.footer-address { font-style: normal; font-size: 0.875rem; line-height: 1.8; }
.footer-address a { color: rgba(255,255,255,0.7); }
.footer-address a:hover { color: #fff; }
.footer-social { list-style: none; display: flex; gap: 10px; margin: 18px 0 0; padding: 0; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    transition: background var(--transition), color var(--transition);
}
.footer-social a:hover,
.footer-social a:focus-visible {
    background: var(--brand-primary);
    color: #fff;
    outline: none;
}
.footer-social svg { width: 20px; height: 20px; }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-nav-column h3 { color: #fff; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-nav-column ul { list-style: none; padding: 0; margin: 0; }
.footer-nav-column li { margin-bottom: 8px; }
.footer-nav-column a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color var(--transition); }
.footer-nav-column a:hover { color: #fff; text-decoration: none; }

/* Footer "Get Started" CTA: header-style button shape, but neutral black/grey to
   suit the dark footer. Echoes the subtle pill treatment of the social icons. */
.footer-nav-column li.footer-cta-item { margin-top: 14px; }
.footer-nav-column a.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 600;
}
.footer-nav-column a.footer-cta:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
    transform: translateY(-2px);
}
.footer-nav-column a.footer-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.813rem; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.4); font-size: 0.813rem; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .service-content-grid { grid-template-columns: 1fr; }
    .service-sidebar { position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .program-phases { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; }
    .site-description { display: none; }
    .main-nav { display: contents; }
    .mobile-menu-toggle { display: flex; margin-left: auto; }
    .nav-list { display: none; width: 100%; flex-direction: column; padding-top: 16px; border-top: 1px solid var(--border-light); }
    .nav-list.active { display: flex; }
    .nav-cta { display: none; }
    .service-hero h1 { font-size: 1.75rem; }
    .service-sidebar { grid-template-columns: 1fr; }
    .standards-grid, .training-streams { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .program-phases { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .newsletter-input-group { flex-direction: column; }
    .footer-nav { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

@media (max-width: 480px) {
    .program-phases { grid-template-columns: 1fr; }
    .blog-newsletter { padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   AEO QUICK ANSWER SECTION
   ============================================================ */

/* Quick Answer - considered callout that sits inside a .container.
   Renders as a left-accent card with brand-light background. */
.aeo-quick-answer {
    background: var(--brand-light);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin: 48px auto 56px;
    max-width: 880px;
    box-shadow: var(--shadow-sm);
}
.aeo-quick-answer .aeo-label,
.aeo-quick-answer .quick-answer-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-secondary);
    margin-bottom: 10px;
}
.aeo-quick-answer h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 12px;
    line-height: 1.3;
}
.aeo-quick-answer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-dark);
    max-width: none;
}

/* ============================================================
   AEO COMMON QUESTIONS SECTION
   ============================================================ */
.aeo-questions {
    padding: 64px 0 72px;
    background: var(--bg-light);
}
.aeo-questions-head {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}
.aeo-questions-head h2 {
    font-size: 1.875rem;
    color: var(--text-dark);
    margin: 0 0 10px;
    line-height: 1.25;
}
.aeo-questions-head p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}
.aeo-list {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 8px 36px;
}
.aeo-q {
    padding: 22px 0;
    border-top: 1px solid var(--border-light);
}
.aeo-q:first-child { border-top: 0; padding-top: 24px; }
.aeo-q:last-child { padding-bottom: 24px; }
.aeo-q h3 {
    font-size: 1.125rem;
    color: var(--brand-dark);
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.35;
}
.aeo-q p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-body);
}

@media (max-width: 768px) {
    .aeo-quick-answer {
        padding: 22px 22px;
        margin: 32px auto 40px;
    }
    .aeo-quick-answer h2 { font-size: 1.2rem; }
    .aeo-quick-answer p { font-size: 0.95rem; }

    .aeo-questions { padding: 44px 0 52px; }
    .aeo-questions-head { margin-bottom: 24px; }
    .aeo-questions-head h2 { font-size: 1.4rem; }
    .aeo-list { padding: 4px 22px; }
    .aeo-q { padding: 18px 0; }
    .aeo-q h3 { font-size: 1.0625rem; }
}

/* ============================================================
   UNIFIED BADGE SYSTEM (added 2026-05-16)
   ------------------------------------------------------------
   One component replaces the four legacy systems:
     - .tile-badge .badge-*      (tools.php)
     - .tag-fh-*                 (by-tag.php, find-help.php)
     - .by-role-pill, .by-role-tag (faq.php)
     - .blog-category, .post-tag (blog posts)

   Three visual lanes, each with its own style so that lane is
   readable without relying on colour (WCAG 1.4.1):

     LANE A - Content type     solid fill, white text
                               Exactly one per tile.
     LANE B - Audience         outlined pill, transparent fill
                               Zero or one per tile.
     LANE C - Topic            soft tinted pill
                               Zero to three per tile.

   Every text/background pair below has been chosen to meet
   WCAG AAA (7:1) against white. See BADGES.md for the rules
   on how to use them.
   ============================================================ */

/* --- Tokens ---------------------------------------------------- */
:root {
    /* Lane A - solid fill, white text (AAA 7:1+ each) */
    --badge-type-tool-bg:        #065f46; /* emerald  - 7.7:1 */
    --badge-type-service-bg:     #7c2d12; /* burnt    - 9.4:1 */
    --badge-type-guide-bg:       #1e3a8a; /* navy     - 10.3:1 */
    --badge-type-framework-bg:   #581c87; /* purple   - 10.9:1 */
    --badge-type-reference-bg:   #155e75; /* teal     - 7.3:1 */
    --badge-type-research-bg:    #7f1d1d; /* maroon   - 10.0:1 */
    --badge-type-blog-bg:        #334155; /* slate    - 10.1:1 */
    --badge-type-contact-bg:     #9f1239; /* rose     - 8.0:1 */
    --badge-type-fg:             #ffffff;

    /* Lane B - audience outlined; colour applies to border + text */
    --badge-aud-developer:       #581c87; /* purple */
    --badge-aud-designer:        #9f1239; /* rose */
    --badge-aud-content:         #3f6212; /* lime */
    --badge-aud-product:         #854d0e; /* amber */
    --badge-aud-executive:       #1e3a8a; /* navy */
    --badge-aud-procurement:     #7c2d12; /* burnt */
    --badge-aud-tester:          #065f46; /* emerald */

    /* Lane C - topic chips; tinted bg with dark fg (AAA each) */
    --badge-topic-wcag-bg:           #e1ebf5; --badge-topic-wcag-fg:           #163858;
    --badge-topic-compliance-bg:     #ebe1f5; --badge-topic-compliance-fg:     #381658;
    --badge-topic-testing-bg:        #f5e1eb; --badge-topic-testing-fg:        #581638;
    --badge-topic-audit-bg:          #f5ebe1; --badge-topic-audit-fg:          #583816;
    --badge-topic-remediation-bg:    #f5e1e1; --badge-topic-remediation-fg:   #581616;
    --badge-topic-training-bg:       #ecf5e1; --badge-topic-training-fg:      #3d5816;
    --badge-topic-strategy-bg:       #e6e6f5; --badge-topic-strategy-fg:      #1f1f5a;
    --badge-topic-government-bg:     #e1f0f5; --badge-topic-government-fg:    #164d58;
    --badge-topic-research-bg:       #f5e1ef; --badge-topic-research-fg:      #58164a;
    --badge-topic-documents-bg:      #e1edf5; --badge-topic-documents-fg:     #164a58;
    --badge-topic-design-bg:         #efe1f5; --badge-topic-design-fg:        #4a1658;
    --badge-topic-content-bg:        #f5f4e1; --badge-topic-content-fg:       #585616;
    --badge-topic-code-bg:           #e1f5eb; --badge-topic-code-fg:          #165838;
    --badge-topic-sharepoint-bg:     #e3e6f5; --badge-topic-sharepoint-fg:    #1a2658;
    --badge-topic-cognitive-bg:      #ede1f5; --badge-topic-cognitive-fg:     #401658;
    --badge-topic-vision-bg:         #e7e1f5; --badge-topic-vision-fg:        #2a1658;
    --badge-topic-hearing-bg:        #e1f5f5; --badge-topic-hearing-fg:       #165858;
    --badge-topic-mobile-bg:         #e1f5ef; --badge-topic-mobile-fg:        #16584a;
    --badge-topic-motor-bg:          #f5e7e1; --badge-topic-motor-fg:         #582d16;
    --badge-topic-sensory-bg:        #f5ece1; --badge-topic-sensory-fg:       #58441a;
    --badge-topic-speech-bg:         #e1f5e7; --badge-topic-speech-fg:        #16582d;
    --badge-topic-everyone-bg:       #e1ecf5; --badge-topic-everyone-fg:      #163e58;

    /* Neutral fallback for tag slugs that have no semantic lane yet */
    --badge-neutral-bg:              #f1f5f9; /* slate 100 */
    --badge-neutral-fg:              #334155; /* slate 700 - 10.1:1 */
    --badge-neutral-border:          #cbd5e1; /* slate 300 */
}

/* --- Base component ------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid transparent;
    background: transparent;
    color: inherit;
    vertical-align: middle;
}

/* When a badge is also a link or filter trigger */
a.badge,
button.badge,
.badge[data-filter] {
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}
a.badge:hover,
button.badge:hover,
.badge[data-filter]:hover {
    filter: brightness(0.92);
    text-decoration: none;
}
.badge:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

/* Optional badge row container for clean spacing */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* --- LANE A: Content type (solid) ----------------------------- */
.badge-type-tool,
.badge-type-service,
.badge-type-guide,
.badge-type-framework,
.badge-type-reference,
.badge-type-research,
.badge-type-blog,
.badge-type-contact {
    color: var(--badge-type-fg);
    border-color: transparent;
}
.badge-type-tool      { background: var(--badge-type-tool-bg); }
.badge-type-service   { background: var(--badge-type-service-bg); }
.badge-type-guide     { background: var(--badge-type-guide-bg); }
.badge-type-framework { background: var(--badge-type-framework-bg); }
.badge-type-reference { background: var(--badge-type-reference-bg); }
.badge-type-research  { background: var(--badge-type-research-bg); }
.badge-type-blog      { background: var(--badge-type-blog-bg); }
.badge-type-contact   { background: var(--badge-type-contact-bg); }

/* --- LANE B: Audience (outlined) ------------------------------ */
.badge-aud-developer   { color: var(--badge-aud-developer);   border-color: var(--badge-aud-developer); }
.badge-aud-designer    { color: var(--badge-aud-designer);    border-color: var(--badge-aud-designer); }
.badge-aud-content     { color: var(--badge-aud-content);     border-color: var(--badge-aud-content); }
.badge-aud-product     { color: var(--badge-aud-product);     border-color: var(--badge-aud-product); }
.badge-aud-executive   { color: var(--badge-aud-executive);   border-color: var(--badge-aud-executive); }
.badge-aud-procurement { color: var(--badge-aud-procurement); border-color: var(--badge-aud-procurement); }
.badge-aud-tester      { color: var(--badge-aud-tester);      border-color: var(--badge-aud-tester); }

/* --- LANE C: Topic (tinted) ----------------------------------- */
.badge-topic-wcag        { background: var(--badge-topic-wcag-bg);        color: var(--badge-topic-wcag-fg); }
.badge-topic-compliance  { background: var(--badge-topic-compliance-bg);  color: var(--badge-topic-compliance-fg); }
.badge-topic-testing     { background: var(--badge-topic-testing-bg);     color: var(--badge-topic-testing-fg); }
.badge-topic-audit       { background: var(--badge-topic-audit-bg);       color: var(--badge-topic-audit-fg); }
.badge-topic-remediation { background: var(--badge-topic-remediation-bg); color: var(--badge-topic-remediation-fg); }
.badge-topic-training    { background: var(--badge-topic-training-bg);    color: var(--badge-topic-training-fg); }
.badge-topic-strategy    { background: var(--badge-topic-strategy-bg);    color: var(--badge-topic-strategy-fg); }
.badge-topic-government  { background: var(--badge-topic-government-bg);  color: var(--badge-topic-government-fg); }
.badge-topic-research    { background: var(--badge-topic-research-bg);    color: var(--badge-topic-research-fg); }
.badge-topic-documents   { background: var(--badge-topic-documents-bg);   color: var(--badge-topic-documents-fg); }
.badge-topic-design      { background: var(--badge-topic-design-bg);      color: var(--badge-topic-design-fg); }
.badge-topic-content     { background: var(--badge-topic-content-bg);     color: var(--badge-topic-content-fg); }
.badge-topic-code        { background: var(--badge-topic-code-bg);        color: var(--badge-topic-code-fg); }
.badge-topic-sharepoint  { background: var(--badge-topic-sharepoint-bg);  color: var(--badge-topic-sharepoint-fg); }
.badge-topic-cognitive   { background: var(--badge-topic-cognitive-bg);   color: var(--badge-topic-cognitive-fg); }
.badge-topic-vision      { background: var(--badge-topic-vision-bg);      color: var(--badge-topic-vision-fg); }
.badge-topic-hearing     { background: var(--badge-topic-hearing-bg);     color: var(--badge-topic-hearing-fg); }
.badge-topic-mobile      { background: var(--badge-topic-mobile-bg);      color: var(--badge-topic-mobile-fg); }
.badge-topic-motor       { background: var(--badge-topic-motor-bg);       color: var(--badge-topic-motor-fg); }
.badge-topic-sensory     { background: var(--badge-topic-sensory-bg);     color: var(--badge-topic-sensory-fg); }
.badge-topic-speech      { background: var(--badge-topic-speech-bg);      color: var(--badge-topic-speech-fg); }
.badge-topic-everyone    { background: var(--badge-topic-everyone-bg);    color: var(--badge-topic-everyone-fg); }

/* Neutral - used as a fallback for tag slugs without a semantic lane.
   Text-transform stays lowercase here so neutral chips read as quieter
   metadata rather than as a primary categorisation badge. */
.badge-neutral {
    background: var(--badge-neutral-bg);
    color: var(--badge-neutral-fg);
    border-color: var(--badge-neutral-border);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

/* --- Responsive ----------------------------------------------- */
@media (max-width: 768px) {
    .badge {
        font-size: 0.6875rem;
        padding: 2px 8px;
        min-height: 22px;
    }
}

/* High-contrast / forced-colors mode (Windows, some AT users) */
@media (forced-colors: active) {
    .badge {
        border: 1.5px solid CanvasText;
        background: Canvas;
        color: CanvasText;
        forced-color-adjust: none;
    }
}

/* ============================================================
   MIGRATION LOG - badge system unification
   ------------------------------------------------------------
   Removed (no longer in any file):
     .tile-badge, .badge-tool, .badge-guide, .badge-resource,
     .badge-framework, .badge-developer, .badge-market, .badge-research
       -> Migrated in tools.php to .badge.badge-type-*
     .tag-fh-tool, .tag-fh-service, .tag-fh-guide,
     .tag-fh-framework, .tag-fh-reference, .tag-fh-contact
       -> Migrated in by-tag.php to .badge.badge-type-*
     .bt-tile-tag, .bt-tile-mini-tag, .bt-tag-pill
       -> Replaced by .badge inside tile/result components
     .tag-role, .tag-need
       -> Migrated in faq.php to .badge.badge-aud-* / .badge.badge-topic-*
     .blog-category, .post-tag
       -> Migrated to .badge.badge-type-blog and .badge.badge-topic-*

   Retained as behaviour-only shims:
     .by-role-pill (faq.php)
       Filter button affordances (active state, hover, button sizing).
       Visual look comes from the .badge component it sits alongside.
     .tool-chip, .cat-pill (tools.php)
       Filter chip bar in tools.php. Different UX role from badges
       (selection state, larger touch target). Could be unified in
       a future commit if a generic .filter-pill component is built.
   ============================================================ */

/* Set data-topic="vision|hearing|cognitive|motor|speech" on <main>;
   --topic-fg cascades to .service-hero, .sidebar-card.highlight and .cta-section. */
main[data-topic="vision"]    { --topic-fg: var(--badge-topic-vision-fg); }
main[data-topic="hearing"]   { --topic-fg: var(--badge-topic-hearing-fg); }
main[data-topic="cognitive"] { --topic-fg: var(--badge-topic-cognitive-fg); }
main[data-topic="motor"]     { --topic-fg: var(--badge-topic-motor-fg); }
main[data-topic="speech"]    { --topic-fg: var(--badge-topic-speech-fg); }

main[data-topic] .service-hero,
main[data-topic] .sidebar-card.highlight,
main[data-topic] .cta-section {
    background: var(--topic-fg);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

.sidebar-link-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background var(--transition);
}
.sidebar-link-all:hover {
    background: var(--brand-secondary);
    color: #fff;
    text-decoration: none;
}
