/* ================================================
   Moriah J. Williams — Demo Redesign
   Pale blue, soft, accessible, light/dark themes
   ================================================ */

/* ---- CSS Custom Properties (Light Theme) ---- */
:root {
    --bg-primary: #EBF2FA;
    --bg-secondary: #FFFFFF;
    --bg-accent: #D6E6F5;
    --bg-hero: linear-gradient(135deg, #0A1628 0%, #1B3A5C 40%, #2D5F8A 70%, #0A1628 100%);
    --text-primary: #1A2A3A;
    --text-secondary: #3D5A73;
    --text-muted: #5A7A94;
    --accent-blue: #2D5F8A;
    --accent-deep: #1B3A5C;
    --accent-gold: #C9A96E;
    --accent-warm: #A67C52;
    --link-color: #2D5F8A;
    --link-hover: #1B3A5C;
    --border-soft: rgba(45, 95, 138, 0.12);
    --shadow-soft: 0 2px 16px rgba(10, 22, 40, 0.06);
    --shadow-card: 0 4px 24px rgba(10, 22, 40, 0.08);
    --white: #FFFFFF;
    --overlay-dark: rgba(10, 22, 40, 0.7);
    --star-glow: rgba(201, 169, 110, 0.3);
    --web-opacity: 0.08;
    --transition: 0.3s ease;
    --font-body: 'Georgia', 'Times New Roman', serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-nav: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
    --bg-primary: #0D1B2A;
    --bg-secondary: #1B2D3E;
    --bg-accent: #162636;
    --text-primary: #E0E8F0;
    --text-secondary: #A8BFD4;
    --text-muted: #7A99B5;
    --accent-blue: #5A9FD4;
    --accent-deep: #3B7AB8;
    --accent-gold: #D4B87A;
    --accent-warm: #C9A96E;
    --link-color: #5A9FD4;
    --link-hover: #7AB8E8;
    --border-soft: rgba(90, 159, 212, 0.15);
    --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --white: #1B2D3E;
    --overlay-dark: rgba(10, 22, 40, 0.85);
    --star-glow: rgba(212, 184, 122, 0.4);
    --web-opacity: 0.12;
}

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

/* ---- Accessibility ---- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--accent-deep);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius) var(--radius);
    font-family: var(--font-nav);
}
.skip-link:focus { top: 0; }

.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;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    transition: background-color var(--transition), color var(--transition);
}

/* ---- Awareness Banner ---- */
.awareness-banner {
    background: var(--accent-deep);
    color: #fff;
    text-align: center;
    padding: 0.4rem 1rem;
    font-family: var(--font-nav);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- Navigation ---- */
.site-header {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent-blue);
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-nav);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 1rem 0.9rem;
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--accent-blue);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.theme-toggle:hover {
    background: var(--bg-accent);
}

/* Accessibility Widget Toggle */
.a11y-toggle {
    background: none;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-family: var(--font-nav);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.a11y-toggle:hover {
    background: var(--bg-accent);
}

/* Mobile nav toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

@media (max-width: 860px) {
    .mobile-menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        box-shadow: var(--shadow-card);
        padding: 0.5rem 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.75rem 2rem; }
    .nav-inner { flex-wrap: wrap; }
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 420px;
    background: var(--bg-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-web-overlay {
    position: absolute;
    inset: 0;
    background: url('../images/spider-web-header.png') center/cover no-repeat;
    opacity: var(--web-opacity);
    pointer-events: none;
}

.hero-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-stars::before,
.hero-stars::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--star-glow);
}

.hero-stars::before {
    width: 3px; height: 3px;
    top: 20%; left: 15%;
    box-shadow:
        80px 30px 0 0 rgba(255,255,255,0.4),
        200px 60px 0 0 rgba(255,255,255,0.3),
        350px 15px 0 0 rgba(255,255,255,0.5),
        500px 80px 0 0 rgba(255,255,255,0.25),
        120px 100px 0 0 rgba(255,255,255,0.35),
        300px 120px 0 0 rgba(255,255,255,0.2),
        450px 40px 0 0 rgba(255,255,255,0.45),
        50px 70px 0 0 rgba(255,255,255,0.3),
        600px 55px 0 0 rgba(255,255,255,0.35),
        700px 90px 0 0 rgba(255,255,255,0.2);
}

.hero-stars::after {
    width: 2px; height: 2px;
    top: 50%; right: 20%;
    box-shadow:
        -30px -20px 0 0 rgba(255,255,255,0.3),
        -150px 40px 0 0 rgba(255,255,255,0.2),
        -80px -60px 0 0 rgba(255,255,255,0.4),
        50px 30px 0 0 rgba(255,255,255,0.25),
        -200px -10px 0 0 rgba(255,255,255,0.35),
        100px -40px 0 0 rgba(255,255,255,0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    max-width: 700px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-style: italic;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.hero .cta-row {
    margin-top: 1.75rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-nav);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: #1A2A3A;
}
.btn-primary:hover {
    background: #D4B87A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ---- Section Layout ---- */
.section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-narrow {
    max-width: 720px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-deep);
    font-weight: 600;
    margin-bottom: 1rem;
}

[data-theme="dark"] .section-subtitle {
    color: var(--accent-gold);
}

.section p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.section a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}
.section a:hover {
    border-bottom-color: var(--link-color);
}

/* ---- Cards ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.12);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* ---- Soft Divider ---- */
.soft-divider {
    max-width: 1000px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--border-soft);
}

/* ---- Full-Width Image ---- */
.full-image-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.full-image-section img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0.75rem 2rem 0;
}

/* ---- Two Column ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.two-col img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

@media (max-width: 700px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ---- Service Offerings Section ---- */
.offerings-banner {
    background: var(--bg-accent);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: background-color var(--transition);
}

.offerings-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent-blue);
    line-height: 2.2;
}

.offerings-list a {
    color: var(--accent-blue);
    text-decoration: none;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    transition: background var(--transition);
}

.offerings-list a:hover {
    background: rgba(45, 95, 138, 0.1);
    text-decoration: underline;
}

.offerings-sep {
    color: var(--text-muted);
    margin: 0 0.35rem;
}

/* ---- Accordion (Principles) ---- */
.accordion {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.accordion-item {
    border-bottom: 1px solid var(--border-soft);
}
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
    width: 100%;
    background: var(--bg-secondary);
    border: none;
    font: inherit;
    text-align: left;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
    color: var(--text-primary);
}

.accordion-header:hover {
    background: var(--bg-accent);
}

.accordion-header:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: -3px;
}

.accordion-header h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

.accordion-icon {
    font-size: 0.85rem;
    color: var(--accent-blue);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.accordion-body p { margin-bottom: 0.75rem; }
.accordion-body p:last-child { margin-bottom: 0; }

/* ---- Principles Layout ---- */
.principles-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .principles-layout {
        grid-template-columns: 1fr;
    }
    .principles-memes { order: -1; }
}

/* ---- Meme Slideshow ---- */
.meme-slideshow {
    position: relative;
    width: 100%;
    max-width: 470px;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.meme-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.meme-slideshow img.active { opacity: 1; }

.slideshow-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.slideshow-controls button {
    padding: 0.3rem 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-nav);
    transition: all var(--transition);
}
.slideshow-controls button:hover {
    background: var(--bg-accent);
}
.slideshow-controls button[aria-pressed="true"] {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.meme-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}
.meme-caption a {
    color: var(--link-color);
    text-decoration: none;
}
.meme-caption a:hover { text-decoration: underline; }

/* ---- Testimonial / Quote ---- */
.quote-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
}

.quote-block blockquote {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent-deep);
    line-height: 1.6;
    position: relative;
    padding: 0 1rem;
}

[data-theme="dark"] .quote-block blockquote {
    color: var(--accent-gold);
}

.quote-block blockquote::before {
    content: open-quote;
    font-size: 3rem;
    color: var(--accent-gold);
    position: absolute;
    top: -0.5rem;
    left: -0.75rem;
    font-family: var(--font-heading);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-hero);
    color: rgba(255,255,255,0.9);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.site-footer .hero-web-overlay {
    opacity: 0.05;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-cta {
    text-align: center;
    margin-bottom: 2.5rem;
}

.footer-cta .btn-primary {
    font-size: 1rem;
    padding: 0.9rem 2.5rem;
}

.footer-newsletter {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-newsletter h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.9);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-nav);
    background: rgba(255,255,255,0.95);
    color: #1A2A3A;
}

.newsletter-form button {
    padding: 0.75rem 2rem;
    background: var(--accent-gold);
    color: #1A2A3A;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-nav);
    transition: all var(--transition);
}
.newsletter-form button:hover {
    background: #D4B87A;
    transform: translateY(-1px);
}

.footer-social {
    text-align: center;
    margin: 2rem 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: opacity var(--transition);
}
.social-icons a:hover { opacity: 0.7; }

.footer-legal {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    font-family: var(--font-nav);
}

.footer-legal a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.footer-legal a:hover { text-decoration: underline; }

/* ---- Accessibility Widget Panel ---- */
.a11y-panel {
    position: fixed;
    top: 60px;
    right: 1rem;
    z-index: 1000;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
    padding: 1.25rem;
    width: 260px;
    display: none;
    font-family: var(--font-nav);
    transition: background-color var(--transition);
}

.a11y-panel.open { display: block; }

.a11y-panel h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.a11y-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.a11y-option button {
    padding: 0.25rem 0.6rem;
    background: var(--bg-accent);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-nav);
    color: var(--text-primary);
    transition: all var(--transition);
}
.a11y-option button:hover {
    background: var(--accent-blue);
    color: #fff;
}
.a11y-option button.active {
    background: var(--accent-blue);
    color: #fff;
}

/* Font-size overrides */
body.font-large { font-size: 18px; }
body.font-xl { font-size: 20px; }
body.high-contrast {
    --text-primary: #000000;
    --text-secondary: #1A1A1A;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
}
[data-theme="dark"] body.high-contrast {
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --bg-primary: #000000;
    --bg-secondary: #111111;
}

body.dyslexic-font {
    --font-body: 'OpenDyslexicRegular', 'OpenDyslexic', 'Comic Sans MS', sans-serif;
}

/* ---- Credentials/List Styling ---- */
.credentials-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.credentials-list li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.credentials-list li::before {
    content: "~";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* ---- Outcome List ---- */
.outcome-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem 0;
}

.outcome-list li {
    padding: 0.3rem 0 0.3rem 1.25rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.outcome-list li::before {
    content: "~";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* ---- Tools list ---- */
.tools-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
}

.tools-list li {
    display: inline;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.tools-list li::after {
    content: " ~ ";
    color: var(--accent-gold);
}

.tools-list li:last-child::after {
    content: "";
}

/* ---- Footnotes ---- */
.footnote {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* ---- Web background decoration ---- */
.web-bg-section {
    position: relative;
}

.web-bg-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/spider-web-header.png') center/cover no-repeat;
    opacity: 0.03;
    pointer-events: none;
}

/* ---- Content Density Toggle (Lerner Spreche) ---- */
.content-toggle {
    background: none;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    font-family: var(--font-nav);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}
.content-toggle:hover {
    background: var(--bg-accent);
}
.content-toggle[aria-pressed="true"] {
    background: var(--accent-gold);
    color: #1A2A3A;
    border-color: var(--accent-gold);
}

/* In simple mode, hide detailed content and show simple */
.content-detailed { display: block; }
.content-simple { display: none; }

body.simple-mode .content-detailed { display: none; }
body.simple-mode .content-simple { display: block; }

/* Simple mode cards get a gentler look */
body.simple-mode .card p {
    font-size: 1rem;
    line-height: 1.8;
}

body.simple-mode .section p {
    font-size: 1.05rem;
    line-height: 1.9;
}

/* ---- Westover Labs Attribution ---- */
.wl-attribution {
    text-align: center;
    padding: 2rem 1rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    font-family: var(--font-nav);
}
.wl-attribution a {
    color: inherit;
    text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.6rem; }
    .hero .subtitle { font-size: 1rem; }
    .section { padding: 2.5rem 1.25rem; }
    .section-title { font-size: 1.3rem; }
    .card-grid { grid-template-columns: 1fr; }
}
