/* -------------------------------------------------
   MISSION SECTION – DESKTOP FIRST
------------------------------------------------- */
#mission {
    /* height: calc(100vh - 114px); */
    overflow: hidden;
    color: var(--primary-color);
}

.mission-content {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;               /* vertical centering of columns */
}

/* ---------- TEXT COLUMN ---------- */
.mission-text {
    padding: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 4vw, 3.125rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
}

/* Scalable heading */
.mission-text h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);   /* 28-40 px */
}

/* Scalable paragraph */
.mission-text p {
    font-size: 1.5em;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Button */
.samstorybtn {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
.samstorybtn a {
    text-decoration: none;
    animation: btnMove 5s infinite;
    font-size: 1.4em;
    padding: 0.75rem 1.5rem;
}
@keyframes btnMove {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* ---------- IMAGE COLUMN ---------- */
.mission-image {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
}

/* Wrapper that guarantees 50 px top/bottom margin */
.mission-image .img-wrapper {
    width: 100%;
    margin: 50px 0;                     /* 50 px top & bottom */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* The actual <img> */
.mission-image img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 114px - 80px - 100px);
    object-fit: contain;
    /* border-radius: 12px; */
}



/* -------------------------------------------------
   MOBILE RESPONSIVE
------------------------------------------------- */
@media screen and (max-width: 1332px) {
    #mission {
        height: auto;
        min-height: calc(100vh - 114px);
    }

    .mission-content {
        grid-template-columns: 1fr;
        height: auto;
    }

    .mission-text {
        padding: 2.5rem 1.25rem;
        text-align: center;
    }

    .mission-text h2 { margin-bottom: 1.5rem; }

    .mission-text p { font-size: clamp(1rem, 2.8vw, 1.25rem);}

    .mission-image {
        padding: 1.25rem;
        height: auto;
        min-height: 300px;
    }

    .mission-image .img-wrapper {
        margin: 30px 0;                 /* smaller margin on mobile */
    }

    .mission-image img {
        max-height: 400px;
    }

    .samstorybtn a {
        padding: 0.6rem 1.2rem;
        font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    }
}

@media screen and (max-height: 900px) {
    #mission {
        height: fit-content;
    }
}