/* -----------------------------
   Global safety & defaults
------------------------------*/

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
}


/* -----------------------------
   Welcome / Hero Section
------------------------------*/

.Welcome-Section {
    position: relative;
    min-height: clamp(380px, 55vh, 800px);
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background-color: #f0f0f0;
    overflow: hidden;
}

.Welcome-Section .Image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(40%);
    z-index: 0;
}

.Welcome-Section > * {
    position: relative;
    z-index: 1;
}

.Welcome-Section h1 {
    font-weight: bold;
    font-size: clamp(40px, 6vw, 70px);
    color: white;
    margin: 0;
    max-width: 90%;
}

.Welcome-Section h2 {
    font-weight: normal;
    font-size: clamp(22px, 4vw, 40px);
    color: white;
    margin-top: clamp(8px, 1.5vw, 12px);
    max-width: 90%;
}

.Welcome-Section .Buttons {
    display: flex;
    gap: clamp(16px, 3vw, 40px);
    margin-top: clamp(20px, 4vw, 40px);
    flex-wrap: wrap;
    justify-content: center;
}

.Welcome-Section a {
    font-size: clamp(17px, 2.5vw, 22px);
    font-weight: 600;
    padding: clamp(14px, 2vw, 18px) clamp(24px, 3vw, 32px);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    background: var(--scout-purple);
    border: 0;
    cursor: pointer;
    line-height: 1.4;
    transition: background-color .2s ease, transform .1s ease;
}

.Welcome-Section a:hover {
    transform: translateY(-2px);
}


/* -----------------------------
   Our Sections
------------------------------*/

.Our-Sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(32px, 6vw, 60px) clamp(16px, 3vw, 20px);
    background-color: #f0f0f0;
}

.Our-Sections h1 {
    font-weight: bold;
    font-size: clamp(32px, 5vw, 60px);
    text-align: center;
    color: var(--scout-purple);
    margin-bottom: clamp(24px, 4vw, 40px);
}


/* -----------------------------
   Section Grid
------------------------------*/

.Section-Grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: clamp(20px, 4vw, 40px);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.Section-Grid a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 1040px) {
    .Section-Grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* -----------------------------
   Section Cards
------------------------------*/

.Section-Card-Beavers,
.Section-Card-Cubs,
.Section-Card-Scouts,
.Section-Card-yl {
    position: relative;
    min-height: clamp(160px, 22vw, 250px);
    padding: clamp(12px, 2vw, 20px);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.Section-Card-Beavers p,
.Section-Card-Cubs p,
.Section-Card-Scouts p,
.Section-Card-yl p {
    font-weight: bold;
    font-size: clamp(20px, 3vw, 30px);
    color: white;
    margin: 0;
    text-align: center;
}

.Section-Card-Beavers { background-color: var(--scout-beaver-blue); }
.Section-Card-Cubs    { background-color: var(--scout-cub-green); }
.Section-Card-Scouts  { background-color: var(--scout-scout-green); }
.Section-Card-yl      { background-color: var(--scout-explorer-navy); }

.Section-Card-Beavers img,
.Section-Card-Cubs img,
.Section-Card-Scouts img {
    max-height: clamp(50px, 8vw, 80px);
    width: auto;
    max-width: 90%;
    margin-bottom: auto;
}

.Section-Image--dofe {
    position: absolute;
    top: 15%;
    left: 10%;
    max-height: clamp(60px, 10vw, 100px);
    max-width: 50%;
}

.Section-Image--yl {
    position: absolute;
    top: 5%;
    right: 5%;
    max-height: clamp(60px, 10vw, 100px);
    max-width: 90%;
}


/* -----------------------------
   Tablet  (≤ 768px)
------------------------------*/

@media (max-width: 768px) {

    .Section-Grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .Section-Card-Beavers,
    .Section-Card-Cubs,
    .Section-Card-Scouts,
    .Section-Card-yl {
        min-height: 160px;
    }

    .Section-Card-Beavers img,
    .Section-Card-Cubs img,
    .Section-Card-Scouts img {
        max-height: 64px;
    }

    .Section-Image--dofe,
    .Section-Image--yl {
        max-height: 72px;
    }
}


/* -----------------------------
   Mobile  (≤ 480px)
------------------------------*/

@media (max-width: 480px) {

    /* Hero fills visible screen height on phones */
    .Welcome-Section {
        padding: 20px 16px;
        min-height: 100svh;
        justify-content: center;
    }

    .Welcome-Section h1 {
        font-size: clamp(45px, 9vw, 44px);
        max-width: 100%;
    }

    .Welcome-Section h2 {
        font-size: clamp(22px, 5.5vw, 26px);
        max-width: 100%;
    }

    .Welcome-Section .Buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin-top: 24px;
    }

    .Welcome-Section a {
        width: 100%;
        max-width: 300px;
        font-size: 25px;
        padding: 14px 20px;
        text-align: center;
    }

    .Our-Sections h1 {
        font-size: clamp(26px, 7vw, 36px);
        margin-bottom: 20px;
    }

    /* Cards go single column, stacked layout */
    .Section-Grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .Section-Card-Beavers,
    .Section-Card-Cubs,
    .Section-Card-Scouts,
    .Section-Card-yl {
        min-height: 120px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 16px 20px;
    }

    .Section-Card-Beavers img,
    .Section-Card-Cubs img,
    .Section-Card-Scouts img {
        max-height: 64px;
        width: auto;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .Section-Card-Beavers p,
    .Section-Card-Cubs p,
    .Section-Card-Scouts p,
    .Section-Card-yl p {
        font-size: 20px;
        text-align: center;
    }

    /* YL/DoFE images pulled out of absolute positioning */
    .Section-Image--dofe,
    .Section-Image--yl {
        position: static;
        max-height: 48px;
        max-width: none;
        flex-shrink: 0;
    }
}
