/* ============================================
   District 39 Theme - Main Stylesheet
   Kessel - Dodge - Kempenich
   ============================================ */

/* --- CSS Variables --- */
:root {
    --brown-dark: #2C1810;
    --brown-mid: #5C3D1A;
    --brown-wood: #6B4423;
    --brown-light: #8B6914;
    --gold: #C9A84C;
    --gold-bright: #D4A730;
    --gold-muted: #B8941F;
    --cream: #F5F0E1;
    --cream-dark: #E8DFC8;
    --parchment: #F0E6D0;
    --white: #FAFAF5;
    --text-dark: #2C1810;
    --text-body: #3D2B1F;
    --text-light: #F5F0E1;

    --font-display: 'Cinzel', 'Georgia', serif;
    --font-body: 'Source Sans Pro', 'Segoe UI', sans-serif;

    --nav-height: 80px;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--brown-mid);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brown-dark);
    text-align: center;
    margin-bottom: 48px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #3D2209 0%, #5C3D1A 40%, #6B4423 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    height: var(--nav-height);
}

/* Wood grain texture overlay via CSS */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(0,0,0,0.03) 3px,
            rgba(0,0,0,0.03) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(255,255,255,0.02) 8px,
            rgba(255,255,255,0.02) 9px
        );
    pointer-events: none;
}

/* Top and bottom edge "worn wood" borders */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2C1810, #6B4423, #8B6914, #6B4423, #2C1810);
}

.main-nav {
    height: 100%;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.nav-logo img {
    height: 56px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-menu li a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--gold);
    background: rgba(255,255,255,0.08);
}

/* Donate Button */
.btn-donate {
    background: linear-gradient(180deg, #D4A730 0%, #B8941F 100%) !important;
    color: var(--brown-dark) !important;
    padding: 10px 24px !important;
    border-radius: 4px;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid #A07A10;
    transition: all 0.3s ease !important;
}

.btn-donate:hover {
    background: linear-gradient(180deg, #E0B840 0%, #C9A84C 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--cream);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--nav-height);
    overflow: hidden;
    background:
        linear-gradient(180deg,
            rgba(44, 24, 16, 0.3) 0%,
            rgba(44, 24, 16, 0.1) 30%,
            rgba(139, 105, 20, 0.15) 60%,
            rgba(201, 168, 76, 0.25) 80%,
            rgba(44, 24, 16, 0.6) 100%
        ),
        linear-gradient(180deg,
            #1a0f08 0%,
            #2C1810 5%,
            #5C3D1A 15%,
            #8B6914 30%,
            #D4A730 45%,
            #F0C040 50%,
            #D4A730 55%,
            #8B6914 65%,
            #5C3D1A 80%,
            #2C1810 95%
        );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        /* Subtle landscape silhouette effect */
        linear-gradient(0deg,
            rgba(44, 24, 16, 0.8) 0%,
            rgba(44, 24, 16, 0.4) 15%,
            transparent 40%,
            transparent 55%,
            rgba(44, 24, 16, 0.2) 100%
        );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
}

.hero-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5));
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Meet the Team Section --- */
.team-section {
    padding: 80px 0;
    background: var(--cream);
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background:
        linear-gradient(135deg, rgba(240, 230, 208, 0.9), rgba(232, 223, 200, 0.95)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23F0E6D0" width="100" height="100"/></svg>');
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(44, 24, 16, 0.15),
        0 1px 3px rgba(44, 24, 16, 0.1),
        inset 0 0 0 1px rgba(139, 105, 20, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(139, 105, 20, 0.2);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 32px rgba(44, 24, 16, 0.2),
        0 2px 6px rgba(44, 24, 16, 0.15),
        inset 0 0 0 1px rgba(139, 105, 20, 0.25);
}

.card-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(180deg, #8B6914 0%, #D4A730 50%, #5C3D1A 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform-origin: center top;
}

/* Per-candidate card framing — align heads at consistent height across cards */
.team-card--kessel .card-image img {
    transform: scale(1.35) translateY(-22%);
}
.team-card--dodge .card-image img {
    transform: scale(1.05);
}
.team-card--kempenich .card-image img {
    /* New image is well-framed; no zoom needed. */
    object-position: center center;
}

/* Bottom gradient fade on card image */
.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(0deg, rgba(240, 230, 208, 0.95) 0%, transparent 100%);
}

.card-content {
    padding: 20px 24px 28px;
    text-align: center;
}

.card-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brown-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.card-name span {
    font-size: 1.8rem;
    display: block;
}

.card-tagline {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-body);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-learn-more {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brown-dark);
    background: linear-gradient(180deg, #D4A730 0%, #B8941F 100%);
    padding: 10px 28px;
    border: 1px solid #A07A10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    background: linear-gradient(180deg, #E0B840 0%, #C9A84C 100%);
    color: var(--brown-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.btn-learn-more span {
    margin-left: 4px;
    font-size: 1.1em;
}

/* --- Issues Section --- */
.issues-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #3D2209 0%, #5C3D1A 50%, #3D2209 100%);
    position: relative;
}

/* Wood grain texture */
.issues-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            rgba(0,0,0,0.04) 4px,
            rgba(0,0,0,0.04) 5px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 12px,
            rgba(255,255,255,0.015) 12px,
            rgba(255,255,255,0.015) 13px
        );
    pointer-events: none;
}

.issues-section .section-title {
    color: var(--cream);
    position: relative;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.issue-item {
    text-align: center;
    padding: 24px 16px;
}

.issue-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--gold);
}

.issue-icon svg {
    width: 100%;
    height: 100%;
}

.issue-item h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.issue-item p {
    font-size: 0.9rem;
    color: rgba(245, 240, 225, 0.8);
    line-height: 1.6;
}

/* Vertical dividers between issue items */
.issue-item + .issue-item {
    border-left: 1px solid rgba(201, 168, 76, 0.3);
}

/* --- District Section --- */
.district-section {
    padding: 80px 0;
    background: var(--cream);
}

.district-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.district-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-body);
}

/* --- Get Involved / CTA Section --- */
.cta-section {
    padding: 80px 0;
    background:
        linear-gradient(180deg, rgba(245, 240, 225, 0.97), rgba(245, 240, 225, 0.97)),
        var(--cream);
    border-top: 4px solid var(--gold);
}

.cta-text {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-body);
    max-width: 700px;
    margin: -24px auto 40px;
    line-height: 1.7;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(44, 24, 16, 0.1);
    border: 1px solid rgba(139, 105, 20, 0.15);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brown-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.required {
    color: #C0392B;
}

.optional {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
    color: #888;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D0C8B0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-body);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    margin-bottom: 24px;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-body);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brown-mid);
    cursor: pointer;
}

.form-status {
    margin-bottom: 16px;
    padding: 0;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    padding: 12px 16px;
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.form-status.error {
    display: block;
    padding: 12px 16px;
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brown-dark);
    background: linear-gradient(180deg, #D4A730 0%, #B8941F 100%);
    border: 1px solid #A07A10;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(180deg, #E0B840 0%, #C9A84C 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --- Footer --- */
.site-footer {
    background: linear-gradient(180deg, #2C1810 0%, #3D2209 50%, #2C1810 100%);
    padding: 48px 0 24px;
    position: relative;
}

/* Wood grain texture */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(0,0,0,0.03) 3px,
            rgba(0,0,0,0.03) 4px
        );
    pointer-events: none;
}

/* Top border */
.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2C1810, #8B6914, #D4A730, #8B6914, #2C1810);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    position: relative;
}

.footer-logo img {
    height: 80px;
    margin: 0 auto 24px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-social a {
    color: var(--cream);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-disclaimer {
    margin-bottom: 12px;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    color: rgba(245, 240, 225, 0.6);
    font-style: italic;
}

.footer-copyright p {
    font-size: 0.8rem;
    color: rgba(245, 240, 225, 0.4);
}

/* ============================================
   Candidate Bio Page Styles
   ============================================ */

.bio-page {
    margin-top: var(--nav-height);
}

.bio-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #3D2209, #5C3D1A);
}

.bio-hero-image {
    position: absolute;
    inset: 0;
}

.bio-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Per-candidate hero framing — adjust % to reposition the photo within the banner */
.bio-hero--kessel .bio-hero-image img { object-position: center 65%; }
.bio-hero--dodge .bio-hero-image img { object-position: center 45%; }
.bio-hero--kempenich .bio-hero-image img { object-position: center 45%; }

.bio-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(44, 24, 16, 0.85) 0%, rgba(44, 24, 16, 0.3) 50%, rgba(44, 24, 16, 0.1) 100%);
}

.bio-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.bio-hero-content h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.bio-hero-content .bio-role {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--gold);
    font-style: italic;
    margin-top: 8px;
}

.bio-body {
    padding: 60px 0;
    background: var(--cream);
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.bio-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-body);
}

.bio-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brown-mid);
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.bio-back:hover {
    color: var(--gold);
}

.bio-back svg {
    width: 16px;
    height: 16px;
}

/* Key facts sidebar-style block */
.bio-facts {
    background: var(--parchment);
    border: 2px solid rgba(139, 105, 20, 0.2);
    border-radius: 8px;
    padding: 32px;
    margin-top: 40px;
}

.bio-facts h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--brown-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}

.bio-facts ul {
    list-style: none;
}

.bio-facts li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 105, 20, 0.1);
    font-size: 1rem;
    color: var(--text-body);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.bio-facts li:last-child {
    border-bottom: none;
}

.bio-facts li::before {
    content: '\2726';
    color: var(--gold);
    font-size: 0.8em;
    flex-shrink: 0;
}

/* ============================================
   Get Involved Page (standalone)
   ============================================ */
.get-involved-page {
    margin-top: var(--nav-height);
    padding: 60px 0;
    background: var(--cream);
    min-height: calc(100vh - var(--nav-height));
}

.get-involved-page .section-title {
    margin-bottom: 16px;
}

/* ============================================
   404 Page
   ============================================ */
.page-404 {
    margin-top: var(--nav-height);
    padding: 120px 0;
    text-align: center;
    background: var(--cream);
    min-height: calc(100vh - var(--nav-height));
}

.page-404 h1 {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--brown-dark);
    margin-bottom: 16px;
}

.page-404 p {
    font-size: 1.2rem;
    color: var(--text-body);
    margin-bottom: 32px;
}

.page-404 .btn-home {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brown-dark);
    background: linear-gradient(180deg, #D4A730 0%, #B8941F 100%);
    padding: 12px 32px;
    border: 1px solid #A07A10;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-404 .btn-home:hover {
    background: linear-gradient(180deg, #E0B840 0%, #C9A84C 100%);
    transform: translateY(-1px);
}

/* ============================================
   Responsive Design
   ============================================ */

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

    .issue-item + .issue-item {
        border-left: none;
    }

    /* Add top border for 2-col layout */
    .issue-item:nth-child(n+3) {
        border-top: 1px solid rgba(201, 168, 76, 0.3);
        padding-top: 32px;
    }

    .issue-item:nth-child(even) {
        border-left: 1px solid rgba(201, 168, 76, 0.3);
    }

    .team-cards {
        gap: 24px;
    }

    .bio-hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .nav-logo img {
        height: 44px;
    }

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

    .nav-menu {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, #3D2209, #5C3D1A);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 40px 24px;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 16px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    }

    .nav-donate {
        margin-top: 16px;
    }

    .nav-donate .btn-donate {
        display: block;
        text-align: center;
    }

    /* Hamburger animation when open */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-logo {
        max-width: 300px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 32px;
    }

    /* Team cards stack on mobile */
    .team-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .card-image {
        height: 280px;
    }

    /* Mobile cards are wider/shorter than desktop, so the desktop transforms
       tuned for narrow cards crop Kessel's face out. Override to show face. */
    .team-card--kessel .card-image img {
        transform: none;
        object-position: center bottom;
    }

    /* Issues stack on mobile */
    .issues-grid {
        grid-template-columns: 1fr;
    }

    .issue-item + .issue-item {
        border-left: none;
    }

    .issue-item:nth-child(even) {
        border-left: none;
    }

    .issue-item:nth-child(n+2) {
        border-top: 1px solid rgba(201, 168, 76, 0.3);
        padding-top: 24px;
    }

    /* Form responsive */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    /* Bio page responsive */
    .bio-hero {
        height: 300px;
    }

    /* On mobile the Kessel photo is near-square like the hero box, so `cover`
       barely zooms and his face lands below the overlay text. Pin to bottom. */
    .bio-hero--kessel .bio-hero-image img { object-position: center bottom; }

    .bio-hero-content h1 {
        font-size: 2rem;
    }

    .bio-hero-content {
        padding: 24px;
    }

    .bio-content p {
        font-size: 1rem;
    }

    .page-404 h1 {
        font-size: 4rem;
    }

    .footer-logo img {
        height: 60px;
    }
}

/* --- Scroll Animations --- */
.animate-ready {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger team cards */
.team-card.animate-ready:nth-child(2) { transition-delay: 0.15s; }
.team-card.animate-ready:nth-child(3) { transition-delay: 0.3s; }

/* Stagger issue items */
.issue-item.animate-ready:nth-child(2) { transition-delay: 0.1s; }
.issue-item.animate-ready:nth-child(3) { transition-delay: 0.2s; }
.issue-item.animate-ready:nth-child(4) { transition-delay: 0.3s; }

/* Small mobile */
@media (max-width: 480px) {
    .hero {
        height: 45vh;
        min-height: 300px;
    }

    .hero-logo {
        max-width: 240px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card-name span {
        font-size: 1.4rem;
    }
}

/* --- Accessibility utilities --- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: var(--cream);
    color: var(--text-dark);
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--gold);
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
    color: var(--text-dark);
}
