/* =============================
   Global
============================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
}

/* =============================
   Header
============================= */
.Header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 5vw, 64px);
    background: #ffffff;
    border-bottom: 1px solid #ccc;
    position: relative;
    z-index: 100;
}

.logo {
    height: clamp(55px, 8vw, 100px);
    width: auto;
}

/* =============================
   Desktop Navigation
============================= */
.desktop-nav {
    display: flex;
    align-items: stretch;
    gap: clamp(8px, 1.5vw, 16px);
    flex-wrap: nowrap;
    overflow: visible;
}

.Header-Navbar a,
.dropbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 1.2vw, 10px) clamp(12px, 1.8vw, 16px);
    border-radius: 8px;
    background: var(--scout-purple);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(14px, 1.6vw, 16px);
    box-shadow: inset 0 0 0 2px transparent;
    cursor: pointer;
    transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.Header-Navbar a:hover,
.dropbtn:hover {
    background: white;
    color: var(--scout-purple);
    box-shadow: inset 0 0 0 2px var(--scout-purple);
}

/* =============================
   Dropdown (desktop)
============================= */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: clamp(160px, 20vw, 220px);
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    z-index: 1000;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: clamp(8px, 1.2vw, 10px);
    color: #2b2b2b;
    background: none;
    border-radius: 6px;
}

.dropdown-content a:hover {
    background: var(--scout-purple-light);
    color: white;
}

/* =============================
   Hamburger (hidden on desktop)
============================= */
.hamburger {
    display: none;
    background: var(--scout-purple);
    color: white;
    border-radius: 8px;
    border: none;
    font-size: clamp(20px, 4vw, 26px);
    padding: clamp(6px, 1vw, 8px) clamp(10px, 1.5vw, 12px);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.Header.responsive-mobile .desktop-nav {
    display: none;
}

.Header.responsive-mobile .hamburger {
    display: flex !important;
}

/* =============================
   Mobile Menu Panel
   Fixed overlay — works regardless of parent position
============================= */
.Mobile-Menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    padding: 16px;
    /* Slide in from top */
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.Mobile-Menu.open {
    display: block;
}

.mobile-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    color: #333;
    margin-left: auto;
    padding: 0 4px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    background: var(--scout-purple);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.mobile-nav a:hover {
    background: var(--scout-purple-light);
}

.mobile-nav details {
    display: block;
    width: 100%;
}

.mobile-nav summary {
    list-style: none;
    cursor: pointer;
    background: var(--scout-purple);
    color: white;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-family: "Roboto", Arial, sans-serif;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav details a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    margin-top: 6px;
    background: rgba(116, 19, 220, 0.08);
    border-radius: 6px;
    color: #2b2b2b;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.mobile-nav details a:hover {
    background: var(--scout-purple-light);
    color: white;
}

/* =============================
   Footer
============================= */
.Footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: clamp(16px, 3vw, 28px) clamp(16px, 5vw, 64px);
    background-color: var(--scout-purple);
    color: white;
}

.Footer-Text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.Footer-Text p {
    margin: 0;
    font-size: clamp(13px, 1.6vw, 15px);
    line-height: 1.5;
    opacity: 0.9;
}

.Footer-Facebook {
    height: clamp(32px, 4vw, 44px);
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.Footer-Facebook:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* =============================
   Tablet  (≤ 768px)
============================= */
@media (max-width: 768px) {

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .Header {
        padding: 10px 20px;
    }
}

/* =============================
   Mobile  (≤ 480px)
============================= */
@media (max-width: 480px) {

    .Header {
        padding: 6px 14px;
    }

    .logo {
        height: clamp(38px, 11vw, 52px);
    }

    .Footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 16px;
    }

    .Footer-Facebook {
        height: 36px;
    }
}
