/* ============================================
   GLOBAL RESET & BASE
   ============================================ */

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

body {
    margin: 0;
    padding: 0;
}

/* ============================================
   WRAPPER (80% WIDTH DESKTOP, FULL WIDTH MOBILE)
   ============================================ */

.wrapper {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
    overflow: visible !important; /* allow hybrid overlays */
}

/* ============================================
   MOBILE WRAPPER — FULL WIDTH, NO PADDING
   ============================================ */

@media (max-width: 600px) {
    .wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;        /* ⭐ Option B: remove mobile padding */
        box-sizing: border-box !important;
    }
}

/* ============================================
   HEADER IMAGE (DEFAULT FULL-WIDTH)
   ============================================ */

.site-header img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   NAVIGATION (FULL-WIDTH + WRAPS)
   ============================================ */

.site-nav {
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

.site-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav ul li a {
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 600px) {
    .site-nav ul {
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* ============================================
   CONTENT
   ============================================ */

.site-content {
    padding: 20px 0;
}

/* ============================================
   FOOTER (FULL-WIDTH BACKGROUND IMAGE)
   ============================================ */

.site-footer {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================
   FIX: REMOVE WHITE BACKGROUND FROM HEADER
   ============================================ */

header.site-header {
    background: transparent !important;
    position: relative;
    z-index: 10;
    text-align: center;

    padding-top: calc(var(--nav-spacing) / 2);
    padding-bottom: calc(var(--nav-spacing) / 2);
}

/* Header art scaling */
header.site-header img.header-image {
    width: 80%;
    max-width: 900px;
    display: block;
    margin: 0 auto;
}

/* ============================================
   ⭐ NEW SYSTEM: NAV SPACING (Admin-controlled)
   ============================================ */

.site-header {
    margin-bottom: var(--nav-spacing);
}

/* ============================================
   ⭐ NEW SYSTEM: HEADER IMAGE SCALING (no cropping)
   ============================================ */

.header-image {
    width: 100%;
    height: auto;
    max-height: var(--header-max-height);
    object-fit: contain;
    display: block;
}

/* ============================================
   ⭐ NEW SYSTEM: FOOTER IMAGE SCALING (no cropping)
   ============================================ */

.site-footer.image-footer {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    max-height: var(--footer-max-height);
}

/* ============================================
   ⭐ RESPONSIVE HEADER & FOOTER
   ============================================ */

@media (max-width: 900px) {
    .header-image {
        max-height: calc(var(--header-max-height) * 0.7);
    }
    .site-footer.image-footer {
        max-height: calc(var(--footer-max-height) * 0.7);
    }
}

@media (max-width: 600px) {
    .header-image {
        max-height: calc(var(--header-max-height) * 0.5);
    }
    .site-footer.image-footer {
        max-height: calc(var(--footer-max-height) * 0.5);
    }
}

/* ============================================
   ⭐ OPTIONAL: WRAPPER SPACING
   ============================================ */

.wrapper {
    padding-top: var(--nav-spacing);
}

/* ============================================
   ⭐ SLIDER — DYNAMIC AUTO-SIZING (BOTTOM SPACING FIX)
   ============================================ */

.slider-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 600px) {
    .slider-container {
        max-height: none;
    }
    .slider-container img {
        max-height: none;
    }
}

.slider-container {
    margin-bottom: 0;
}

/* ============================================
   ⭐ MINIMAL CONTENT → FOOTER SPACING
   ============================================ */

.wrapper,
.site-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.static-center-image {
    margin-bottom: 0 !important;
}

/* ============================================
   ⭐ NEW: FOOTER SPACING CONTROL
   ============================================ */

.site-footer {
    margin-top: var(--footer-spacing) !important;
}
