/* --- FONT DECLARATIONS --- */
@font-face {
    font-family: "National Park";
    font-weight: 400;
    font-style: normal;
    src: url("../fonts/NationalPark-Regular.woff2") format("woff2");
}
@font-face {
    font-family: "National Park";
    font-weight: 700;
    font-style: normal;
    src: url("../fonts/NationalPark-Bold.woff2") format("woff2");
}
@font-face {
    font-family: "National Park";
    font-weight: 500;
    font-style: normal;
    src: url("../fonts/NationalPark-Medium.woff2") format("woff2");
}
@font-face {
    font-family: "National Park";
    font-weight: 200;
    font-style: normal;
    src: url("../fonts/NationalPark-Light.woff2") format("woff2");
}
@font-face {
    font-family: "National Park";
    font-weight: 600;
    font-style: normal;
    src: url("../fonts/NationalPark-SemiBold.woff2") format("woff2");
}

/* --- CSS VARIABLES --- */
:root {
    --yellow-accent: #ffe954;
    --yellow-text: rgba(248, 234, 139, 0.73);
    --dark-green-bg: #102917;
    --brand-green: rgba(43, 112, 34, 0.77);
    --brand-green-bg: rgba(43, 112, 34, 0.86);
    --card-bg: rgba(6, 19, 53, 0.5);
    --card-bg-dark: rgba(6, 19, 53, 0.59);
    --card-border: rgba(255, 233, 84, 0.6);
}

/* --- GLOBAL STYLES & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #2b7022;
    font-family: "National Park", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--yellow-text);
    overflow-x: hidden;
}


/* --- BACKGROUND VIDEO --- */
.background-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    object-fit: cover;
    -o-object-fit: cover;
    -webkit-object-fit: cover;
    opacity: 0.61;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/textures/noise.png");
    background-size: 512px 512px;
    animation: noisemove 0.8s steps(4, end) infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes noisemove {
    0% { background-position: 0px 0px; }
    33.33% { background-position: 80px 140px; }
    66.66% { background-position: 200px 30px; }
    100% { background-position: 0px 0px; }
}

/* --- FIXED HEADER --- */
.fixed-header {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Added background to prevent content from showing through on overlap */
    background: var(--brand-green-bg);
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);

}

.logo-link {
    display: block;
}

.logo-icon {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 233, 84, 0.5));
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-text h1 {
    font-family: "National Park", sans-serif;
    font-style: normal;
    font-weight: 700;
    margin: 0;
    font-size: 2.5rem;
    line-height: 0.9;
    color: var(--brand-green);
    filter: drop-shadow(-0.2rem -0.2rem 0.00rem var(--yellow-accent));
}

/* --- MENU TOGGLE BUTTON --- */
.menu-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 101;
    background: var(--brand-green-bg);
    border: 2px solid var(--yellow-accent);
    border-radius: 0.5rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.menu-toggle:hover {
    background: var(--dark-green-bg);
    transform: scale(1.05);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--yellow-accent);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* --- SLIDE-OUT MENU --- */
.slide-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--dark-green-bg);
    z-index: 102;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.slide-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--brand-green-bg);
    border-bottom: 2px solid var(--yellow-accent);
}

.menu-header h2 {
    color: var(--yellow-accent);
    margin: 0;
}

.menu-close {
    background: transparent;
    border: none;
    color: var(--yellow-accent);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
}

.menu-content {
    padding: 2rem;
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-section h3 {
    color: var(--yellow-accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.menu-section ul {
    list-style: none;
    padding: 0;
}

.menu-section ul li {
    margin-bottom: 0.75rem;
}

.menu-section ul li a {
    color: var(--yellow-text);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 0.3rem;
}

.menu-section ul li a:hover {
    background: rgba(255, 233, 84, 0.1);
    color: var(--yellow-accent);
    padding-left: 1rem;
}

.menu-section ul li a i {
    margin-right: 0.5rem;
    width: 20px;
    display: inline-block;
}

/* --- MENU OVERLAY --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- LAYOUT & STRUCTURE --- */
.page-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: 15%;
    padding: 10rem 3rem 3rem 3rem;
}

.page-section {
    background-color: var(--brand-green-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0.1rem 0.1rem 0.5rem 0rem rgba(222, 209, 0, 0.75);
    margin-bottom: 3rem;
}

.page-section-dark {
    background-color: var(--dark-green-bg);
}

.page-section-highlight {
    background-color: var(--dark-green-bg);
    border: 2px solid var(--yellow-accent);
}

/* --- TYPOGRAPHY --- */
h2 {
    font-family: "National Park", sans-serif;
    font-style: normal;
    font-weight: 500;
    margin: 0 0 1rem 0;
    color: #ffff00;
    font-size: 1.8rem;
    line-height: 1.2;
    filter: drop-shadow(0.1rem 0.1rem 0.24rem rgba(157, 157, 195, 0.77));
}

.small-caps {
    font-variant: small-caps;
    text-transform: lowercase;
}

.operational-heading {
    color: var(--yellow-accent);
    font-size: 2rem;
}

hr {
    background: var(--yellow-text);
    border: 0;
    height: 3px;
    display: block;
    margin: 1.5rem 0;
}

.caption {
    font-size: 1.3rem;
    font-weight: 200;
    line-height: 1.6;
    color: var(--yellow-text);
}

.caption b {
    font-weight: 600;
}

.caption .highlight {
    color: rgb(255, 233, 84);
}

/* --- SOCIAL ICONS --- */
.social-icons-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #fefe93;
    background-color: #102917;
    border-radius: 50%;
    box-shadow: 1px 1px 4px #18642e;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0px 4px 12px rgba(255, 233, 84, 0.4);
}

.social-icon i {
    font-size: 1.1rem;
}

/* --- GALLERY --- */
.gallery {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.gallery img {
    max-width: 150px;
    height: auto;
    border: 0.2rem solid rgba(157, 157, 195, 0.77);
    border-radius: 0.5rem;
    filter: drop-shadow(0.2rem 0.2rem 0.20rem rgba(157, 157, 195, 0.77));
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

.photo-gallery {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.photo-gallery img {
    max-width: 100%;
    height: auto;
    border: 0.2rem solid rgba(157, 157, 195, 0.77);
    border-radius: 0.5rem;
    filter: drop-shadow(0.2rem 0.2rem 0.20rem rgba(157, 157, 195, 0.77));
}

/* --- RATIONS SECTION --- */
.rations-container {
    margin-top: 3rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ration-card {
    background-color: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 233, 84, 0.3);
}

.ration-image {
    width: 100%;
    margin-bottom: 1rem;
}

.ration-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.ration-card h3 {
    font-family: 'National Park', sans-serif;
    font-weight: 700;
    color: var(--yellow-accent);
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.ration-card .price {
    font-weight: 600;
    color: #fefefe;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.ration-card .quantity {
    font-weight: 400;
    color: rgba(248, 234, 139, 0.9);
    font-size: 1rem;
    margin: 0;
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: var(--card-bg-dark);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0.1rem 0.1rem 0.20rem 0.1rem rgba(222, 209, 0, 0.75);
    border: 2px solid var(--yellow-accent);
    text-align: left;
    margin-bottom: 3rem;
}

.cta-head {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--yellow-accent);
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 3rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cta-column {
    flex: 1;
    min-width: 250px;
}

.action-sub-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--yellow-text);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.cta-button {
    display: inline-block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 700;
    text-align: center;
}

.cta-button.patreon {
    background-color: #d63323;
}

.cta-button.patreon:hover {
    background-color: #f16d43;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 51, 35, 0.4);
}

.cta-button.coffee {
    background-color: #ffff00;
    color: #102917;
}

.cta-button.coffee:hover {
    background-color: #ffe954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 0, 0.4);
}

.cta-icon {
    margin-right: 0.5rem;
}

.support-message {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 200;
    font-style: italic;
    color: var(--yellow-accent);
    margin-top: 2rem;
    animation: 3.5s infinite ease blink;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* --- CONTACT FORM --- */
.contact-section {
    background-color: var(--brand-green-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0.1rem 0.1rem 0.5rem 0rem rgba(222, 209, 0, 0.75);
    margin-bottom: 3rem;
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--yellow-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--card-border);
    border-radius: 0.5rem;
    color: var(--yellow-text);
    font-family: "National Park", sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow-accent);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    background: var(--yellow-accent);
    color: var(--dark-green-bg);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "National Park", sans-serif;
}

.submit-button:hover {
    background: #ffff00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 233, 84, 0.4);
}

.submit-button i {
    margin-right: 0.5rem;
}

.form-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1rem;
    color: var(--yellow-text);
}

.form-note a {
    color: var(--yellow-accent);
    text-decoration: none;
    font-weight: 600;
}

.form-note a:hover {
    text-decoration: underline;
}

/* --- SCROLL ANIMATION --- */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1400px) {
    .page-container {
        margin-right: 10%;
    }
}

@media (max-width: 1200px) {
    .page-container {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        padding: 10rem 2rem 2rem 2rem;
    }
    
    .rations-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .slide-menu {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 768px) {
    .fixed-header {
        top: 1rem;
        left: 1rem;
        gap: 1rem;
        /* Ensure the entire header width is managed */
        width: calc(100% - 2rem);
        justify-content: space-between;
    }
    
    .logo-icon {
        width: 80px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        /* Position relative to the flow, not the viewport */
        position: static;
        margin-left: auto; /* Push it to the right */
    }
    
    .page-container {
        max-width: 100%;
        margin: 0;
        /* Adjusted padding to avoid overlap with new header layout */
        padding: 8rem 1rem 1rem 1rem;
    }
    
    .page-section {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .caption {
        font-size: 1.1rem;
    }
    
    .social-icons-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-icons {
        width: 100%;
        justify-content: center;
    }
    
    .gallery {
        gap: 1rem;
    }
    
    .gallery img {
        max-width: 100px;
    }
    
    .rations-container {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cta-column {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fixed-header {
        /* This ensures the logo and text stay in a row */
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem;
    }
    
    .logo-link {
        /* Allow the logo to shrink if needed */
        flex-shrink: 0;
    }

    .logo-icon {
        width: 60px; /* Made icon smaller */
    }
    
    .logo-text {
        /* Allow text to take up available space but not push out the menu button */
        flex-grow: 1;
        min-width: 0;
    }

    .logo-text h1 {
        font-size: 1rem; /* Made text smaller */
        line-height: 1;
        filter: drop-shadow(-0.1rem -0.1rem 0.00rem var(--yellow-accent));
        /* Hide overflow if text is too long */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        /* Prevent the button from shrinking */
        flex-shrink: 0;
    }
    
    .menu-toggle span {
        width: 20px;
    }

    .page-container {
        /* Adjusted top padding to match the new header height */
        padding-top: 7rem;
    }
}
