:root {
    --primary-red: #b22222;
    --mustard-yellow: #ffdb58;
    --navy: #0a192f;
    --white: #f4f4f4;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--navy);
    line-height: 1.6;
}

/* Main navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 25, 47, 0.95);
    color: white;
    border-bottom: 3px solid var(--mustard-yellow);
}

.nav-logo {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-logo:hover {
    color: var(--mustard-yellow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--mustard-yellow);
}

.nav-cta {
    background: var(--primary-red);
    padding: 0.4rem 1rem;
    border-radius: 4px;
}

.nav-cta:hover {
    background: #8b0000;
    color: white;
}

@media (max-width: 600px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 25, 47, 0.98);
        padding: 1rem;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.open .nav-links {
        max-height: 360px;
    }

    .nav-links li {
        padding: 0.5rem 0;
    }
}

/* Hero Section */
header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    border-bottom: 10px solid var(--mustard-yellow);
    margin-top: 0;
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    margin-bottom: 20px;
}

/* Manifesto Section */
.manifesto {
    max-width: 800px;
    margin: -50px auto 50px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.manifesto h2 {
    color: var(--primary-red);
    font-family: 'Oswald', sans-serif;
    border-bottom: 2px solid var(--mustard-yellow);
    display: inline-block;
}

/* Video section */
.video-section {
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
    text-align: center;
}

.video-section h2 {
    color: var(--primary-red);
    font-family: 'Oswald', sans-serif;
    border-bottom: 2px solid var(--mustard-yellow);
    display: inline-block;
    margin-top: 0;
}

.video-intro {
    margin-bottom: 1.25rem;
    color: #555;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* TikTok embeds are vertical – constrain width so it doesn’t stretch */
.video-wrapper-tiktok {
    max-width: 400px;
    margin: 0 auto;
    padding-bottom: 177.78%;
}

/* Policy Grid */
.policies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.policy-card {
    background: var(--navy);
    color: white;
    padding: 25px;
    border-left: 5px solid var(--primary-red);
    transition: transform 0.3s;
}

.policy-card:hover {
    transform: translateY(-5px);
}

.policy-card h3 {
    margin-top: 0;
}

/* Testimonials section */
.testimonials-section {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    padding: 50px 20px;
    text-align: center;
}

.testimonials-section h2 {
    color: var(--primary-red);
    font-family: 'Oswald', sans-serif;
    border-bottom: 2px solid var(--mustard-yellow);
    display: inline-block;
    margin-top: 0;
}

.testimonials-section .section-intro {
    margin-bottom: 2rem;
    font-style: italic;
    color: #555;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    margin: 0;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--mustard-yellow);
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    color: var(--navy);
}

.testimonial-card footer {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-card cite {
    font-style: normal;
    font-weight: bold;
    color: var(--primary-red);
}

.testimonial-role {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #888;
}

/* Membership Roll section */
.members-section {
    max-width: 900px;
    margin: 0 auto 50px auto;
    padding: 50px 20px;
    text-align: center;
}

.members-section h2 {
    color: var(--primary-red);
    font-family: 'Oswald', sans-serif;
    border-bottom: 2px solid var(--mustard-yellow);
    display: inline-block;
    margin-top: 0;
}

.members-section .section-intro {
    margin-bottom: 2rem;
    color: #555;
}

.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.member-card {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid var(--mustard-yellow);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-name {
    font-weight: bold;
    color: var(--navy);
    font-size: 1.05rem;
}

.member-role {
    color: var(--primary-red);
    font-size: 0.9rem;
}

.member-status {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
}

.member-joined {
    font-size: 0.8rem;
    color: #888;
}

.members-note {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

.members-empty {
    color: #666;
    grid-column: 1 / -1;
}

/* FAQ section */
.faq-section {
    max-width: 700px;
    margin: 0 auto 50px auto;
    padding: 50px 20px;
}

.faq-section h2 {
    color: var(--primary-red);
    font-family: 'Oswald', sans-serif;
    border-bottom: 2px solid var(--mustard-yellow);
    display: inline-block;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-bottom: none;
    background: white;
}

.faq-item:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    color: var(--navy);
    background: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-question[aria-expanded="true"] {
    background: #fffef5;
    color: var(--primary-red);
}

.faq-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary-red);
    transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    overflow: hidden;
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer p {
    margin: 0;
    padding: 0 1.25rem 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    border-top: 1px solid #f0f0f0;
}

/* Donate section */
.donate-section {
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 60px 20px;
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.donate-section h2 {
    color: var(--primary-red);
    font-family: 'Oswald', sans-serif;
    border-bottom: 2px solid var(--mustard-yellow);
    display: inline-block;
    margin-top: 0;
}

.donate-section p {
    margin-bottom: 1rem;
}

.btn-donate {
    margin-top: 0.5rem;
}

/* Donation modal */
.modal-donate.modal {
    max-width: 520px;
}

.modal-donate .donate-subtitle,
.modal-donate .donate-note {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.donate-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.donate-amount-btn {
    flex: 1 1 calc(50% - 10px);
    min-width: 80px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: bold;
    background: var(--white);
    color: var(--navy);
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.donate-amount-btn:hover {
    border-color: var(--mustard-yellow);
    background: #fffef5;
}

.donate-amount-btn.selected {
    background: var(--mustard-yellow);
    border-color: var(--mustard-yellow);
    color: var(--navy);
}

.donate-custom {
    margin-bottom: 1rem;
}

.donate-custom label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--navy);
}

.donate-custom input {
    width: 100%;
    padding: 0.6rem;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.donate-custom input:focus {
    outline: none;
    border-color: var(--mustard-yellow);
}

.donate-selected {
    font-weight: bold;
    margin: 1rem 0 0.5rem;
    min-height: 1.5em;
}

.btn-paypal {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    background: #0070ba;
    color: white !important;
}

.btn-paypal:hover {
    background: #005ea6;
    color: white !important;
}

.btn-paypal.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.donate-note {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.modal-donate .donate-option {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-donate .donate-option:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.modal-donate .donate-option h3 {
    margin: 0 0 0.5rem 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-red);
}

.snag-donate-form label {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--navy);
}

.snag-donate-form input,
.snag-donate-form textarea {
    width: 100%;
    padding: 0.6rem;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.snag-donate-form input:focus,
.snag-donate-form textarea:focus {
    outline: none;
    border-color: var(--mustard-yellow);
}

.btn-snags {
    width: 100%;
    margin-top: 1rem;
    background: var(--primary-red);
    color: white !important;
}

.btn-snags:hover {
    background: #8b0000;
    color: white !important;
}

/* Contact section */
.contact-section {
    max-width: 600px;
    margin: 0 auto 50px auto;
    padding: 50px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-section h2 {
    color: var(--primary-red);
    font-family: 'Oswald', sans-serif;
    border-bottom: 2px solid var(--mustard-yellow);
    display: inline-block;
    margin-top: 0;
}

.contact-section > p {
    margin-bottom: 1.5rem;
    color: #555;
}

.contact-form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--navy);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--mustard-yellow);
}

.contact-form button[type="submit"] {
    margin-top: 1.25rem;
}

/* Call to Action */
.cta {
    text-align: center;
    background: var(--primary-red);
    color: white;
    padding: 80px 20px;
}

.cta h2 {
    color: white;
    border-bottom-color: var(--mustard-yellow);
}

.btn {
    display: inline-block;
    background: var(--mustard-yellow);
    color: var(--navy);
    padding: 15px 40px;
    border: none;
    font-family: inherit;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50px;
    margin-top: 20px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    background: #eee;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--navy);
    padding: 0;
}

.modal-close:hover {
    color: var(--primary-red);
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Volunteer form */
.volunteer-form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--navy);
}

.volunteer-form input,
.volunteer-form select,
.volunteer-form textarea {
    width: 100%;
    padding: 0.6rem;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.volunteer-form input:focus,
.volunteer-form select:focus,
.volunteer-form textarea:focus {
    outline: none;
    border-color: var(--mustard-yellow);
}

.volunteer-form button[type="submit"] {
    width: 100%;
    margin-top: 1.5rem;
}

.form-success {
    text-align: center;
    padding: 1rem 0;
}

.form-success .success-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    margin: 0.25rem 0;
}

/* Gallery page */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1558030006-4502153934b6?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    border-bottom: 10px solid var(--mustard-yellow);
    margin-top: 0;
}

.page-header .tagline {
    margin-bottom: 0;
}

.gallery-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.gallery-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    color: #444;
}

.gallery-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #777;
}

.gallery-note code {
    background: #eee;
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.85em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    margin: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.gallery-link {
    display: block;
    line-height: 0;
}

.gallery-link img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 1rem;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #eee;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--mustard-yellow);
}

.lightbox img {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 1rem;
    color: white;
    font-size: 0.95rem;
    text-align: center;
    max-width: 600px;
}
