/* =========================================
   EVERGREEN CLUB
   Main Website Styles
   Compact Version
   ========================================= */


/* =========================================
   RESET
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   COLOR VARIABLES
   ========================================= */

:root {

    /* Logo-inspired color palette */
    --primary: #238B57;
    --primary-dark: #145C3A;
    --primary-light: #EAF6EF;

    --blue: #176FA8;
    --blue-dark: #0E4F7A;
    --blue-light: #EAF3F8;

    --green: #3FA66A;
    --green-dark: #1D7048;
    --green-light: #EDF8F1;

    --gold: #D7A928;
    --gold-dark: #AD8318;
    --gold-light: #FFF6D8;

    /* Logo red is kept as a small accent only. */
    --brand-red: #C92A2A;

    --white: #FFFFFF;

    --background: #F7FAF8;

    --text: #26352D;
    --text-light: #66736D;

    --border: #DDE8E1;

    --shadow-small:
        0 4px 12px rgba(0, 0, 0, 0.08);

    --shadow:
        0 10px 30px rgba(0, 0, 0, 0.10);

    --shadow-large:
        0 20px 50px rgba(0, 0, 0, 0.15);

    --radius: 16px;
}


/* =========================================
   BODY
   ========================================= */

body {

    font-family: 'Poppins', sans-serif;

    color: var(--text);

    background: var(--background);

    line-height: 1.7;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


/* =========================================
   GENERAL
   ========================================= */

img {

    max-width: 100%;

    display: block;
}


a {

    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}


button {

    font-family: inherit;
}


/* =========================================
   NAVIGATION
   ========================================= */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 10px 5%;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--border);

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.06);
}


/* =========================================
   LOGO
   ========================================= */

.logo {

    display: inline-block;
}


.logo img {

    width: 180px;

    transition:
        transform 0.3s ease;
}


.logo img:hover {

    transform: scale(1.03);
}


/* =========================================
   NAVIGATION LINKS
   ========================================= */

.nav-links {

    display: flex;

    align-items: center;

    gap: 25px;

    list-style: none;
}


.nav-links a {

    position: relative;

    text-decoration: none;

    color: var(--primary);

    font-weight: 600;

    padding: 6px 0;
}


/* Gold underline */

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 0;

    height: 2px;

    background: var(--gold);

    transition:
        width 0.3s ease;
}


.nav-links a:hover::after {

    width: 100%;
}


.nav-links a:hover {

    color: var(--primary-dark);
}


/* =========================================
   NAVIGATION ACTIONS
   ========================================= */

.nav-actions {

    display: flex;

    align-items: center;

    gap: 10px;
}


/* =========================================
   DARK MODE BUTTON
   ========================================= */

#darkModeButton {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 50%;

    background: transparent;

    font-size: 20px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


#darkModeButton:hover {

    background: var(--blue-light);

    transform: scale(1.08);
}


body.dark #darkModeButton:hover {

    background: #20382B;
}


/* =========================================
   MENU BUTTON
   ========================================= */

#menuButton {

    display: none;

    font-size: 25px;

    background: none;

    border: none;

    color: var(--primary);

    cursor: pointer;
}


/* =========================================
   HERO
   ========================================= */

.hero {

    position: relative;

    min-height: 75vh;

    background:
        linear-gradient(
            120deg,
            rgba(29, 112, 72, 0.90),
            rgba(23, 111, 168, 0.62),
            rgba(215, 169, 40, 0.28)
        ),
        url("../images/hero.jpg");

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: white;

    overflow: hidden;
}


/* Hero overlay */

.hero::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            transparent 20%,
            rgba(0, 0, 0, 0.15)
        );

    pointer-events: none;
}


.hero > * {

    position: relative;

    z-index: 1;
}


.hero h1 {

    font-size:
        clamp(42px, 7vw, 68px);

    font-weight: 700;

    letter-spacing: -1px;

    text-shadow:
        0 4px 15px rgba(0, 0, 0, 0.25);

    animation:
        heroFade 1s ease;
}


.hero h2 {

    margin: 15px 0;

    font-size:
        clamp(20px, 3vw, 30px);

    font-weight: 400;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.2);
}


/* =========================================
   HERO ANIMATION
   ========================================= */

@keyframes heroFade {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }
}


/* =========================================
   BUTTONS
   ========================================= */

.btn {

    display: inline-block;

    padding: 11px 27px;

    margin: 12px 8px;

    border-radius: 30px;

    text-decoration: none;

    font-weight: 600;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


.btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.20);
}


/* =========================================
   PRIMARY BUTTON
   ========================================= */

.primary {

    background: var(--primary);

    color: white;
}


.primary:hover {

    background: var(--primary-dark);

    color: white;
}


/* =========================================
   SECONDARY BUTTON
   ========================================= */

.secondary {

    border: 2px solid white;

    color: white;

    background: transparent;
}


.secondary:hover {

    background: white;

    color: var(--green-dark);
}


/* =========================================
   MISSION / CONTENT SECTIONS
   ========================================= */

.mission {

    padding: 15px 10%;

    text-align: center;

    background: white;
}


.mission h2 {

    color: var(--primary);

    font-size: 32px;

    margin-bottom: 12px;
}


.mission p {

    max-width: 800px;

    margin: auto;

    color: var(--text-light);

    font-size: 16px;
}


/* =========================================
   STATISTICS
   ========================================= */

.stats {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--green-dark)
        );

    color: white;

    padding: 45px 8%;

    text-align: center;
}


.stats div {

    padding: 10px;

    transition:
        transform 0.3s ease;
}


.stats div:hover {

    transform: translateY(-5px);
}


.stats h2 {

    font-size: 40px;

    color: var(--gold);

    margin-bottom: 5px;
}


.stats p {

    font-size: 15px;

    opacity: 0.9;
}


/* =========================================
   CARDS
   ========================================= */

.cards {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;

    padding: 45px 10%;
}


.card {

    background: white;

    padding: 26px;

    border-radius: var(--radius);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-small);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow);
}


.card h2,
.card h3 {

    color: var(--primary);

    margin-bottom: 10px;
}


.card p {

    color: var(--text-light);
}


.card a {

    display: inline-block;

    margin-top: 12px;

    color: var(--primary);

    font-weight: 600;

    text-decoration: none;
}


.card a:hover {

    color: var(--gold);
}


/* =========================================
   PAGE BANNER
   ========================================= */

.page-banner {

    background:
        linear-gradient(
            135deg,
            var(--green-dark),
            var(--blue),
            var(--green)
        );

    color: white;

    text-align: center;

    padding: 15px 20px;
}


.page-banner h1 {

    font-size:
        clamp(38px, 6vw, 55px);

    margin-bottom: 8px;

    color: white;
}


.page-banner p {

    font-size: 18px;

    opacity: 0.95;
}


/* =========================================
   FOOTER
   ========================================= */

footer {

    background:
        linear-gradient(
            135deg,
            var(--green-dark),
            #124632
        );

    color: white;

    text-align: center;

    padding: 30px 20px;

    margin-top: 25px;
}


footer img {

    margin: 0 auto 12px;
}


footer p {

    opacity: 0.9;
}


/* =========================================
   DARK MODE
   ========================================= */

body.dark {

    --background: #0C1712;

    --white: #14221A;

    --text: #EAF2ED;

    --text-light: #B8C8BE;

    --border: #294238;

    background: var(--background);

    color: var(--text);
}


/* =========================================
   DARK NAVIGATION
   ========================================= */

body.dark .navbar {

    background:
        rgba(12, 23, 18, 0.96);

    border-bottom-color:
        var(--border);
}


body.dark .nav-links a {

    color: #8FD3A9;
}


body.dark #menuButton {

    color: white;
}


/* =========================================
   DARK MISSION
   ========================================= */

body.dark .mission {

    background: #14221A;
}


body.dark .mission h2 {

    color: #8FD3A9;
}


/* =========================================
   DARK CARDS
   ========================================= */

body.dark .card {

    background: #14221A;

    border-color: var(--border);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}


body.dark .card h2,
body.dark .card h3 {

    color: #8FD3A9;
}


/* =========================================
   DARK PAGE-SPECIFIC CARDS
   ========================================= */

body.dark .member-card,
body.dark .contact-card,
body.dark .video-card,
body.dark .featured-video,
body.dark .contact-form-section {

    background: #14221A;

    border-color: var(--border);

    color: var(--text);
}


body.dark .member-card h3,
body.dark .contact-card h3,
body.dark .video-info h3,
body.dark .featured-info h2,
body.dark .contact-form-section h2 {

    color: #8FD3A9;
}


body.dark .member-description,
body.dark .contact-card p,
body.dark .video-info p,
body.dark .featured-info p,
body.dark .contact-form-section > p {

    color: var(--text-light);
}


/* =========================================
   DARK FORM
   ========================================= */

body.dark .form-group label {

    color: var(--text);
}


body.dark .form-group input,
body.dark .form-group textarea {

    background: #0C1712;

    color: var(--text);

    border-color: var(--border);
}


body.dark .form-group input::placeholder,
body.dark .form-group textarea::placeholder {

    color: #91A79A;
}


/* =========================================
   DARK CONTACT LINKS
   ========================================= */

body.dark .contact-card a {

    color: #8FD3A9;
}


body.dark .contact-card a:hover {

    color: var(--gold);
}


/* =========================================
   DARK VIDEO CATEGORY
   ========================================= */

body.dark .video-category {

    background: #17372A;

    color: #8FD3A9;
}


/* =========================================
   DARK GALLERY
   ========================================= */

body.dark .gallery-item {

    background: #14221A;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}


body.dark .gallery-intro h2 {

    color: #8FD3A9;
}


body.dark .gallery-intro p {

    color: var(--text-light);
}


/* =========================================
   DARK MOBILE MENU
   ========================================= */

body.dark .nav-links {

    background: #0C1712;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 800px) {

    .navbar {

        padding: 10px 6%;
    }


   .logo img {

        width: 160px;
    }


    #menuButton {

        display: block;
    }


    .nav-actions {

        gap: 5px;
    }


    .nav-links {

        display: none;

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        flex-direction: column;

        align-items: center;

        gap: 0;

        padding: 10px 0;

        background: white;

        box-shadow:
            0 10px 20px rgba(0, 0, 0, 0.10);
    }


    .nav-links li {

        width: 100%;

        text-align: center;
    }


    .nav-links a {

        display: block;

        padding: 11px;
    }


    .nav-links.show {

        display: flex;
    }


    /* Dark mobile menu */

    body.dark .nav-links {

        background: #0C1712;
    }


    .stats {

        grid-template-columns:
            1fr 1fr;

        padding: 40px 5%;
    }


    .cards {

        grid-template-columns: 1fr;

        padding: 40px 7%;
    }


    .hero {

        min-height: 65vh;

        padding: 40px 20px;
    }


    .hero h1 {

        font-size: 42px;
    }


    .hero h2 {

        font-size: 20px;
    }


    .mission {

        padding: 45px 7%;
    }


    .mission h2 {

        font-size: 28px;
    }


    .page-banner {

        padding: 45px 20px;
    }


    .page-banner h1 {

        font-size: 40px;
    }


    .page-banner p {

        font-size: 17px;
    }

}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 480px) {

    .stats {

        grid-template-columns: 1fr;
    }


    .stats h2 {

        font-size: 36px;
    }


    .hero h1 {

        font-size: 36px;
    }


    .btn {

        display: block;

        margin: 10px auto;

        max-width: 240px;
    }


    .mission {

        padding: 40px 6%;
    }


    .page-banner {

        padding: 40px 15px;
    }


    .page-banner h1 {

        font-size: 34px;
    }

}

/* =========================================
   LOGO / BRAND POLISH
   ========================================= */

/* The current logo is displayed cleanly and proportionally.
   Keep it clean and proportional in the navigation. */
.logo img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    object-position: center;
}

footer img {
    width: 180px;
    height: auto;
    object-fit: contain;
}


/* =========================================
   LOGO-COLOR OVERRIDES FOR PAGE COMPONENTS
   ========================================= */

.gallery-intro h2 {
    color: var(--primary) !important;
}

.gallery-intro p {
    color: var(--text-light) !important;
}

.gallery-item {
    border: 1px solid var(--border);
}

.video-category {
    background: var(--green-light);
    color: var(--green-dark);
}

.contact-card a {
    color: var(--primary);
}

.contact-card a:hover {
    color: var(--green);
}


/* =========================================
   ACCESSIBILITY / FOCUS
   ========================================= */

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


/* =========================================
   DARK MODE BRAND OVERRIDES
   ========================================= */

body.dark .gallery-intro h2 {
    color: var(--primary) !important;
}

body.dark .gallery-intro p {
    color: var(--text-light) !important;
}

body.dark .video-category {
    background: #17372A;
    color: #8FD3A9;
}

body.dark .contact-card a {
    color: var(--primary);
}

body.dark .contact-card a:hover {
    color: var(--green);
}


/* =========================================
   REDUCED MOTION
   ========================================= */

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