:root {
    --brand-color: #0b4d78;
    --accent-gold: #d9a226;
    --muted: #6c757d;
    --max-width: 1200px;
    --container-padding: 16px;
    --radius: 12px;
    --font-ui: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --font-display: 'Merriweather', serif;
}

/* global resets */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: var(--font-ui);
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-title {
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

/* nav */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 14px;
    align-items: center;
}

.main-nav .nav-link {
    text-decoration: none;
    color: var(--muted);
    padding: 8px 6px;
    border-radius: 6px;
}

    .main-nav .nav-link[aria-current="page"] {
        color: var(--brand-color);
        font-weight: 600;
    }

/* header actions */
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-color);
    color: #fff;
    border: 0;
}

.btn-outline {
    border: 1px solid #ddd;
    background: transparent;
    color: var(--brand-color);
}

.btn-donate {
    background: var(--accent-gold);
    color: #111;
    font-weight: 700;
    padding: 8px 16px;
}

/* mobile toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: 0;
}

.hamburger {
    width: 22px;
    height: 2px;
    background: #333;
    display: block;
    position: relative;
}

    .hamburger::before, .hamburger::after {
        content: "";
        display: block;
        height: 2px;
        background: #333;
        position: absolute;
        left: 0;
        right: 0;
    }

    .hamburger::before {
        top: -7px
    }

    .hamburger::after {
        top: 7px
    }

/* main */
.site-main {
    margin-top: 0;
}

/* footer */
.site-footer {
    background: var(--brand-color);
    color: #fff;
    padding: 24px 0 18px; /* reduced padding */
    margin-top: 40px; /* slightly smaller gap above */
    border-top: 3px solid var(--accent-gold);
}


.footer-inner .row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin: 8px 0;
    }

/* utility */
.text-center {
    text-align: center;
}

/* responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-inner {
        padding: 10px 0;
    }

    .features .row {
        display: block;
    }
}

/* --------------------
   Mobile off-canvas panel
   -------------------- */
.mobile-panel {
    position: fixed;
    inset: 0 0 0 100%; /* off-screen to the right by default */
    width: 320px;
    max-width: 80%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    transition: transform .32s cubic-bezier(.2,.9,.25,1);
    transform: translateX(0); /* we move it into view by changing left/inset */
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
    display: flex;
    flex-direction: column;
}

    /* panel inner content container */
    .mobile-panel .mobile-panel-inner {
        padding: 18px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* when open, make visible and slide in */
    .mobile-panel.open {
        pointer-events: auto;
        visibility: visible;
        transform: translateX(-100%); /* slide into viewport */
    }

/* keep page from scrolling when panel open */
body.no-scroll {
    overflow: hidden;
}

/* style the close button and links */
.mobile-close {
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    padding: 6px 8px;
    align-self: flex-end;
}

.mobile-panel ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

    .mobile-panel ul li {
        margin: 8px 0;
    }

.mobile-panel a {
    text-decoration: none;
    color: var(--brand-color);
    display: inline-block;
    padding: 8px 6px;
}

/* hide the bullet list on desktop (defensive) */
@media (min-width: 769px) {
    .mobile-panel {
        display: none !important;
    }
}
/* ------- Compact footer layout & styling (append) ------- */

/* top wrapper */
.footer-top {
    padding: 18px 0 12px;
}

/* grid: three columns on desktop, stacked on mobile */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 220px 260px;
    gap: 20px;
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* left column: more content */
.footer-left {
    min-width: 0;
}

    .footer-left .footer-title {
        margin-bottom: 8px;
    }

    .footer-left .footer-desc {
        margin: 0 0 10px;
        color: #e6eef3;
        font-size: 0.95rem;
    }

    .footer-left .footer-contact {
        color: #dce9f0;
        font-size: 0.92rem;
        margin-top: 6px;
    }

    .footer-left a {
        color: #fff;
        text-decoration: underline;
    }

/* center */
.footer-center {
    text-align: left;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .footer-links a {
        color: #fff;
        text-decoration: none;
        font-size: 0.95rem;
    }

        .footer-links a:hover {
            color: var(--accent-gold);
        }

/* right */
.footer-right {
    text-align: left;
}

.footer-donate {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 12px;
}

.footer-social {
    color: #fff;
    font-weight: 600;
}

    .footer-social a {
        color: #fff;
        text-decoration: none;
        margin: 0 6px;
    }

        .footer-social a:hover {
            color: var(--accent-gold);
        }

    .footer-social .dot {
        margin: 0 6px;
        color: rgba(255,255,255,0.6);
    }

/* decorative divider (thin gold line with subtle shadow) */
.footer-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold) 100%);
    box-shadow: 0 2px 0 rgba(0,0,0,0.06);
    margin: 0;
    border: none;
}

/* bottom bar (left / right content) */
.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 18px;
    max-width: var(--max-width);
    margin: 0 auto;
}

    .footer-bottom-bar small {
        color: #d8e6ed;
        font-size: 0.88rem;
    }

    /* link accent in bottom-left */
    .footer-bottom-bar a {
        color: var(--accent-gold);
        text-decoration: none;
        font-weight: 600;
    }

        .footer-bottom-bar a:hover {
            text-decoration: underline;
        }

/* reduce visual height (compact) */
.site-footer {
    padding-top: 8px; /* thin */
    padding-bottom: 6px;
}

/* responsive: stack columns for small screens */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-center {
        order: 3;
        margin-top: 12px;
    }

    .footer-right {
        order: 2;
        margin-top: 8px;
    }

    .footer-left {
        order: 1;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

        .footer-bottom-bar .bottom-right {
            order: 2;
        }
}

/* ensure donate button smaller on mobile */
@media (max-width: 576px) {
    .footer-donate {
        padding: 6px 10px;
        font-size: .95rem;
    }
}
