:root {
    --nav-height: 90px;
    --brand-blue: #f2e4d5; /* light roast */
    --brand-dark: #1d1b1a; /* deep brown text */
    --accent: #d29f71;     /* caramel accent */
    --white: #ffffff;
    --divider: rgba(0, 0, 0, 0.12);
    --menu-card-bg: #fefaf6;
    --menu-card-hover: #f2e4d5;
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--menu-card-bg);
    color: var(--brand-dark);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--nav-height);
    background: var(--brand-blue);
    z-index: 1000;
    padding: 0 2vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.logo-link {
    display: flex;
    align-items: center;
    height: 75px;
}
.logo-img {
    height: 75px;
    width: 75px;
    border-radius: 50%;
    object-fit: contain;
}
.navbar-left { flex: 1; }
.navbar-right { flex: 1; }
.navbar-center {
    flex: 2;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
}
.navbar-center li { display: inline-block; }
.navbar-center a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-dark);
    border-bottom: 2.5px solid transparent;
    transition: color 0.2s, border 0.2s;
    padding: 6px 2px 2px 2px;
}
.navbar-center a:hover,
.navbar-center a.active {
    color: var(--accent);
    border-bottom: 2.5px solid var(--accent);
}

/* ========== DROPDOWN (MORE) ========== */
.more-dropdown {
    position: relative;
    display: inline-block;
}

.more-dropdown .more-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3em;
    user-select: none;
}

.chevron {
    font-size: 1em;
    color: var(--accent);
    margin-left: 0.12em;
}

.more-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--brand-blue);
    box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.10);
    z-index: 2000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0;
    border-radius: 0 0 18px 18px;
    white-space: nowrap;
    min-width: fit-content;
    max-width: 100vw;
}

.more-dropdown:hover .dropdown-content,
.more-dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown-content li {
    list-style: none;
    display: inline-block;
}

.dropdown-content a {
    color: var(--brand-dark);
    padding: 0.6rem 1.4rem;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.16s, color 0.16s;
}

.dropdown-content a:hover {
    background: var(--menu-card-hover);
    color: var(--accent);
    border-radius: 0.5rem;
}

/* === HAMBURGER & MOBILE NAV STYLES === */
.navbar-mobile-menu {
    display: none; /* Hide by default (show via media query) */
}
.hamburger {
    display: none;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 12px 20px;
    color: var(--brand-dark);
    background: none;
    border: none;
    outline: none;
    z-index: 1200;
    transition: color 0.2s;
}
.hamburger:active, .hamburger:focus {
    color: var(--accent);
}
.mobile-nav-links {
    display: none; /* Will be set to flex in JS when active */
    flex-direction: column;
    align-items: stretch;
    background: var(--brand-blue);
    position: absolute;
    top: var(--nav-height);
    right: 0;
    width: max-content;
    min-width: 200px;
    padding: 0.5rem 1.2rem 1rem 1.2rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.13);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 1200;
    border-top: 2px solid var(--accent);
    animation: fadeInDown 0.24s;
}
.mobile-nav-links a {
    padding: 1.1rem 1.7rem;
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 1.11rem;
    border-bottom: 1px solid #e2d3c2;
    letter-spacing: 0.01em;
    transition: background 0.18s, color 0.18s;
    border-radius: 0;
}
.mobile-nav-links a:last-child { border-bottom: none; }
.mobile-nav-links a:hover, .mobile-nav-links a:focus {
    background: var(--menu-card-hover);
    color: var(--accent);
    border-radius: 12px;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-18px);}
    to   { opacity: 1; transform: translateY(0);}
}
/* === MEDIA QUERIES FOR RESPONSIVE NAVBAR === */
@media (max-width: 950px) {
    .navbar {
        padding: 0 2vw;
        justify-content: space-between;
    }
    .navbar-left {
        display: flex !important;
        align-items: center;
        z-index: 1500;
    }
    .logo-link {
        margin-left: 12px;
    }
    .navbar-mobile-menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        height: var(--nav-height);
        position: relative;
        flex: 1;
        z-index: 1300;
    }
    .hamburger {
        display: block;
        font-size: 2.8rem;         
        padding: 18px 20px 18px 18px; 
        margin-right: 8px;
        background: none;
        border: none;
        outline: none;
        color: var(--brand-dark);
        cursor: pointer;
        border-radius: 14px;
        transition: background 0.13s, color 0.13s;
    }
    .hamburger:active, .hamburger:focus {
        background: var(--menu-card-hover);
        color: var(--accent);
    }
    /* Hide horizontal nav, right side, ONLY logo and hamburger */
    .navbar-center,
    .navbar-right {
        display: none !important;
    }
}
/* --- Keep horizontal navbar only on desktop --- */
@media (min-width: 951px) {
    .navbar-mobile-menu {
        display: none !important;
    }
}

/* MAIN */
main {
    margin-top: var(--nav-height);
    padding-bottom: 2rem;
}

/* HERO (BLACK BAND) */
.foodbank-hero {
    width: 100%;
    background: var(--brand-dark);
    color: var(--white);
    padding: 1.05rem 1.5rem;
    font-size: 1.12rem;
    text-align: center;
    letter-spacing: 0.01em;
    font-weight: 500;
}

/* GALLERY SECTION */
.foodbank-gallery-section {
    background: var(--menu-card-bg);
    padding: 2.7rem 1.2rem 1.7rem 1.2rem;
    text-align: center;
    max-width: 1280px;
    margin: 0 auto;
}
.foodbank-gallery-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.3rem;
    color: var(--brand-dark);
}
.gallery-row {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.gallery-card {
    background: var(--white);
    padding: 1.1rem;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
    max-width: 410px;
    width: 100%;
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 400px;
}
.gallery-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.gallery-card p {
    font-weight: 600;
    font-size: 1.08rem;
    color: var(--brand-dark);
    text-align: center;
}
.about-summary {
    font-size: 1.15rem;
    color: #4a3a2c;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    margin-top: 1.5rem;
}

/* ARTISTIC BREAKLINE */
.artistic-breakline {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2.5rem 0 2.2rem 0;
}
.artistic-breakline span {
    display: block;
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d29f7188 40%, #d29f71 60%, transparent);
    max-width: 150px;
}
.artistic-breakline svg {
    margin: 0 1.2rem;
    display: block;
}

/* INTRO FUTURISTIC SECTION */
.foodbank-intro {
    position: relative;
    background: var(--white);
    border-radius: 2rem;
    max-width: 650px;
    margin: 3.2rem auto 2.2rem auto;
    box-shadow: 0 4px 32px 0 rgba(210,159,113,0.07), 0 1.5px 10px 0 rgba(29,27,26,0.05);
    padding: 2.6rem 2.2rem 2.3rem 2.2rem;
    color: var(--brand-dark);
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(2px);
}
.intro-glow {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 330px; height: 110px;
    transform: translate(-50%, -40%);
    background: radial-gradient(ellipse at center, #d29f7133 0%, #fff0 80%);
    filter: blur(5px);
    z-index: 0;
    pointer-events: none;
}
.foodbank-intro h2 {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d29f7122;
    color: #d29f71;
    font-size: 1.55em;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    margin-right: 0.4em;
    box-shadow: 0 1px 7px #d29f7120;
}
.intro-text {
    position: relative;
    z-index: 2;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #39312a;
    margin: 0 auto;
    max-width: 520px;
    font-weight: 500;
}
.foodbank-intro b {
    color: var(--brand-dark);
    font-weight: 700;
}
.highlight {
    color: var(--accent);
    font-weight: 600;
    font-style: italic;
    font-size: 1.08em;
    display: inline-block;
    margin-bottom: 0.2em;
}

/* FOOTER */
footer {
    background: var(--brand-blue);
    color: var(--brand-dark);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 1rem;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    margin-top: 2.5rem;
}
.footer-content p {
    margin: 0.3rem 0;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .gallery-row {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        max-width: 98vw;
    }
    .gallery-card {
        max-width: 98vw;
        min-width: 0;
        height: auto;
    }
    .gallery-card img {
        height: 200px;
    }
}
@media (max-width: 768px) {
    .navbar-center {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .foodbank-intro {
        padding: 1.4rem 0.7rem 1.3rem 0.7rem;
        max-width: 99vw;
    }
    .intro-text {
        font-size: 1rem;
        padding: 0 0.2rem;
    }
}
