/* ==========================================================================
   styles-base.css
   Shared across ALL pages — header and footer styles only.
   Loaded by header.php on every page.
   ========================================================================== */

/* ==========================================================================
   1. Global Reset & Base */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: system-ui, Arial, sans-serif;
    background: #111;
    color: #fff;
}

img {
    max-width: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* ==========================================================================
   2. Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #111;
    border-bottom: 2px solid #222;
    width: 100%;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo .logo-img {
    height: 50px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    font-family: "Jersey 10", system-ui, sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.nav-item:hover,
.nav-item:focus {
    color: #cfcfcf;
}

.hamburger-btn {
    display: none;
    cursor: pointer;
}

.hamburger-img {
    height: 24px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Mobile header */
@media (max-width: 768px) {
    .header-inner {
        justify-content: center;
        position: relative;
        padding: 1rem;
    }

    .header-logo {
        margin: 0;
    }

    .hamburger-btn {
        display: block;
        position: absolute;
        right: 1rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        border-bottom: 2px solid #222;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem 0;
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s ease;
    }

    #menu-check:checked ~ .nav-links {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-item {
        font-size: 1.8rem;
        padding: 0.8rem 2rem;
        display: block;
    }
}

/* Desktop header */
@media (min-width: 769px) {
    .nav-links {
        transform: none;
        opacity: 1;
        pointer-events: auto;
        position: static;
    }
}

/* ==========================================================================
   3. Footer */

footer {
    background: #000;
    color: white;
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

footer .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

footer .links {
    display: flex;
    gap: 4rem;
}

footer .col h4 {
    margin-bottom: 1rem;
}

footer .col a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

footer .col a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

footer .socials {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.socials a {
    width: 32px;
    height: 32px;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    vertical-align: middle;
}

.socials a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Mobile footer */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .logo {
        margin-bottom: 3rem;
    }

    footer .links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        width: 100%;
        max-width: 500px;
        margin-bottom: 2rem;
    }

    footer .links .col:nth-child(3) {
        grid-column: 1 / -1;
    }

    footer .socials {
        justify-content: center;
        margin-top: 1rem;
    }
}