/*=========================================================
MARAMATTA SAFARIS
OUR STORY PAGE

Visual direction:
• Editorial
• Premium
• Quiet
• Mobile-first
• Photography-led
• Generous whitespace
• Controlled image proportions

Uses:
• Global .ms-section
• Global .container
• Global .section-header
• Global .section-body
• Existing landing-hero system

=========================================================*/



/*=========================================================
01 · HERO

The hero is inherited from the global landing-hero system.

Only page-specific adjustments belong here.
=========================================================*/

.story-origin,
.story-purpose,
.story-beliefs,
.story-tanzania {

    position: relative;

}



/*=========================================================
02 · STORY ORIGIN
=========================================================*/

.story-origin {

    background: var(--ms-bg);

}


/*---------------------------------------------------------
LAYOUT
---------------------------------------------------------*/

.story-origin__layout {

    display: grid;

    grid-template-columns: 1fr;

    gap: var(--space-xl);

    align-items: center;

}


/*---------------------------------------------------------
MEDIA

Controlled image.
We deliberately avoid making the photograph
fill an enormous portion of the viewport.
---------------------------------------------------------*/

.story-origin__media {

    width: 100%;

    aspect-ratio: 4 / 3;

    margin: 0;

    overflow: hidden;

}


.story-origin__image {

    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;

    object-position: center;

    transform: scale(1.01);

    transition:
        transform 1.2s
        cubic-bezier(.22,.61,.36,1);

}


.story-origin__media:hover
.story-origin__image {

    transform: scale(1.035);

}


/*---------------------------------------------------------
EDITORIAL CONTENT
---------------------------------------------------------*/

.story-origin__content {

    max-width: 620px;

}


.story-origin__label {

    display: block;

    margin-bottom: var(--space-md);

    color: var(--ms-orange);

    font-size: .68rem;

    font-weight: 700;

    letter-spacing: .18em;

    line-height: 1.4;

    text-transform: uppercase;

}


.story-origin__title {

    max-width: 560px;

    margin: 0 0 var(--space-lg);

    color: var(--white);

    font-size: clamp(
        2rem,
        5vw,
        3.5rem
    );

    font-weight: 500;

    line-height: 1.05;

    letter-spacing: -.035em;

}


.story-origin__content p {

    max-width: 600px;

    margin: 0 0 var(--space-md);

    color: inherit;

    font-size: 1rem;

    line-height: 1.8;

}


.story-origin__content p:last-child {

    margin-bottom: 0;

}



/*=========================================================
03 · PURPOSE

Mission + Vision

These should feel like two editorial statements,
not corporate feature boxes.
=========================================================*/

.story-purpose {

    background: var(--ms-surface-soft);

}


/*---------------------------------------------------------
GRID
---------------------------------------------------------*/

.story-purpose__grid {

    display: grid;

    grid-template-columns: 1fr;

}


/*---------------------------------------------------------
PURPOSE ITEM
---------------------------------------------------------*/

.story-purpose__item {

    position: relative;

    padding:
        var(--space-xl)
        0;

}


.story-purpose__item + .story-purpose__item {

    border-top:
        1px solid
        rgba(39, 73, 33, .14);

}


/*---------------------------------------------------------
LABEL
---------------------------------------------------------*/

.story-purpose__label {

    display: block;

    margin-bottom: var(--space-md);

    color: var(--ms-orange);

    font-size: .68rem;

    font-weight: 700;

    letter-spacing: .18em;

    text-transform: uppercase;

}


/*---------------------------------------------------------
TITLE
---------------------------------------------------------*/

.story-purpose__title {

    max-width: 520px;

    margin: 0 0 var(--space-md);

    color: var(--ms-green);

    font-size: clamp(
        1.9rem,
        5vw,
        3rem
    );

    font-weight: 500;

    line-height: 1.06;

    letter-spacing: -.03em;

}


/*---------------------------------------------------------
TEXT
---------------------------------------------------------*/

.story-purpose__text {

    max-width: 560px;

    margin: 0;

    font-size: 1rem;

    line-height: 1.8;

}



/*=========================================================
04 · WHAT WE BELIEVE

This is the brand philosophy section.

Three cards.
No heavy borders.
No excessive decoration.
=========================================================*/

.story-beliefs {

    background: var(--ms-bg);

}


/*---------------------------------------------------------
GRID
---------------------------------------------------------*/

.story-beliefs__grid {

    display: grid;

    grid-template-columns: 1fr;

    gap: 0;

}


/*---------------------------------------------------------
CARD
---------------------------------------------------------*/

.story-beliefs__card {

    display: grid;

    grid-template-columns: 42px minmax(0, 1fr);

    column-gap: var(--space-md);

    padding:
        var(--space-xl)
        0;

    border-top:
        1px solid
        rgba(39, 73, 33, .14);

}


.story-beliefs__card:last-child {

    border-bottom:
        1px solid
        rgba(39, 73, 33, .14);

}


/*---------------------------------------------------------
NUMBER
---------------------------------------------------------*/

.story-beliefs__number {

    padding-top: .15rem;

    color: var(--ms-orange);

    font-size: .68rem;

    font-weight: 700;

    letter-spacing: .12em;

}


/*---------------------------------------------------------
LABEL
---------------------------------------------------------*/

.story-beliefs__label {

    display: block;

    margin-bottom: .65rem;

    color: var(--ms-orange);

    font-size: .65rem;

    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;

}


/*---------------------------------------------------------
TITLE
---------------------------------------------------------*/

.story-beliefs__title {

    margin: 0 0 var(--space-sm);

    color: var(--ms-green);

    font-size: clamp(
        1.35rem,
        3vw,
        1.8rem
    );

    font-weight: 500;

    line-height: 1.15;

    letter-spacing: -.02em;

}


/*---------------------------------------------------------
TEXT
---------------------------------------------------------*/

.story-beliefs__text {

    max-width: 560px;

    margin: 0;

    font-size: .95rem;

    line-height: 1.75;

}



/*=========================================================
05 · OUR TANZANIA

This is the visual climax.

Unlike the Story image, this image is intentionally
large because it closes the narrative emotionally.
=========================================================*/

.story-tanzania {

    padding-top: 0;

    padding-bottom: 0;

}


/*---------------------------------------------------------
STAGE
---------------------------------------------------------*/

.story-tanzania__stage {

    position: relative;

    min-height: clamp(
        560px,
        72vh,
        760px
    );

    overflow: hidden;

}


/*---------------------------------------------------------
MEDIA
---------------------------------------------------------*/

.story-tanzania__media {

    position: absolute;

    inset: 0;

    margin: 0;

    overflow: hidden;

}


.story-tanzania__image {

    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;

    object-position: center;

    transform: scale(1.01);

    transition:
        transform 1.6s
        cubic-bezier(.22,.61,.36,1);

}


.story-tanzania__stage:hover
.story-tanzania__image {

    transform: scale(1.025);

}


/*---------------------------------------------------------
OVERLAY

Quiet, cinematic.
---------------------------------------------------------*/

.story-tanzania__overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(20, 30, 17, .72) 0%,
            rgba(20, 30, 17, .45) 35%,
            rgba(20, 30, 17, .12) 68%,
            rgba(20, 30, 17, .02) 100%
        );

}


/*---------------------------------------------------------
CONTENT
---------------------------------------------------------*/

.story-tanzania__content {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    justify-content: center;

    width: min(
        100%,
        680px
    );

    min-height: clamp(
        560px,
        72vh,
        760px
    );

    padding:
        var(--space-3xl)
        var(--space-lg);

    color: var(--ms-white);

}


/*---------------------------------------------------------
EYEBROW
---------------------------------------------------------*/

.story-tanzania__eyebrow {

    display: inline-flex;

    align-items: center;

    width: fit-content;

    margin-bottom: var(--space-lg);

    color: var(--ms-white);

    font-size: .68rem;

    font-weight: 700;

    letter-spacing: .18em;

    text-transform: uppercase;

}


.story-tanzania__eyebrow::before {

    content: "";

    width: 30px;

    height: 1px;

    margin-right: .75rem;

    background: currentColor;

    opacity: .7;

}


/*---------------------------------------------------------
TITLE
---------------------------------------------------------*/

.story-tanzania__content > .story-tanzania__title {

    max-width: 620px;

    margin: 0 0 var(--space-lg);

    color: var(--ms-white);

    font-size: clamp(
        2.5rem,
        6vw,
        5rem
    );

    font-weight: 500;

    line-height: .98;

    letter-spacing: -.04em;

}


/*---------------------------------------------------------
TEXT
---------------------------------------------------------*/

.story-tanzania__text {

    max-width: 560px;

    margin: 0 0 var(--space-md);

    color:
        rgba(255,255,255,.9);

    font-size: 1rem;

    line-height: 1.75;

}


.story-tanzania__text:last-of-type {

    margin-bottom: var(--space-xl);

}


/*---------------------------------------------------------
ACTIONS
---------------------------------------------------------*/

.story-tanzania__actions {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: var(--space-md);

}


/*---------------------------------------------------------
PRIMARY BUTTON
---------------------------------------------------------*/

.story-tanzania__button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: .8rem;

    min-height: 52px;

    padding:
        .85rem
        1.3rem;

    background: var(--ms-white);

    color: var(--ms-green);

    font-size: .7rem;

    font-weight: 700;

    letter-spacing: .14em;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;

}


.story-tanzania__button span {

    font-size: 1rem;

    transition:
        transform .3s ease;

}


.story-tanzania__button:hover {

    background: var(--ms-orange);

    color: var(--ms-white);

    transform: translateY(-2px);

}


.story-tanzania__button:hover span {

    transform: translateX(4px);

}


/*---------------------------------------------------------
SECONDARY LINK
---------------------------------------------------------*/

.story-tanzania__link {

    display: inline-flex;

    align-items: center;

    gap: .6rem;

    padding-bottom: .35rem;

    border-bottom:
        1px solid
        rgba(255,255,255,.55);

    color: var(--ms-white);

    font-size: .7rem;

    font-weight: 700;

    letter-spacing: .14em;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        gap .3s ease,
        opacity .3s ease;

}


.story-tanzania__link:hover {

    gap: .9rem;

    opacity: .75;

}



/*=========================================================
06 · TABLET
=========================================================*/

@media (min-width: 700px) {


    /*-----------------------------------------------------
    STORY
    -----------------------------------------------------*/

    .story-origin__layout {

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: var(--space-3xl);

    }


    .story-origin__media {

        aspect-ratio: 4 / 3;

    }


    /*-----------------------------------------------------
    PURPOSE
    -----------------------------------------------------*/

    .story-purpose__grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: var(--space-3xl);

    }


    .story-purpose__item {

        padding:
            var(--space-xl)
            0;

    }


    .story-purpose__item + .story-purpose__item {

        border-top: 0;

        border-left:
            1px solid
            rgba(39, 73, 33, .14);

        padding-left: var(--space-3xl);

    }


    /*-----------------------------------------------------
    BELIEFS
    -----------------------------------------------------*/

    .story-beliefs__grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        column-gap: var(--space-xl);

    }


    .story-beliefs__card {

        display: block;

        padding:
            var(--space-xl)
            var(--space-lg);

        border-top:
            1px solid
            rgba(39, 73, 33, .14);

    }


    .story-beliefs__card:last-child {

        border-bottom: 0;

    }


    .story-beliefs__number {

        display: block;

        margin-bottom: var(--space-xl);

    }


    /*-----------------------------------------------------
    TANZANIA
    -----------------------------------------------------*/

    .story-tanzania__actions {

        flex-direction: row;

        align-items: center;

    }

}



/*=========================================================
07 · DESKTOP
=========================================================*/

@media (min-width: 1100px) {


    /*-----------------------------------------------------
    STORY

    Create a deliberate editorial imbalance.
    Image gets slightly less visual weight than text.
    -----------------------------------------------------*/

    .story-origin__layout {

        grid-template-columns:
            minmax(420px, .9fr)
            minmax(420px, 1.1fr);

        gap: clamp(
            var(--space-3xl),
            7vw,
            8rem
        );

    }


    .story-origin__media {

        aspect-ratio: 5 / 4;

    }


    .story-origin__content {

        padding-right:
            var(--space-xl);

    }


    /*-----------------------------------------------------
    PURPOSE
    -----------------------------------------------------*/

    .story-purpose__item {

        padding:
            var(--space-2xl)
            var(--space-xl);

    }


    .story-purpose__item:first-child {

        padding-left: 0;

    }


    .story-purpose__item + .story-purpose__item {

        padding-left:
            var(--space-2xl);

    }


    /*-----------------------------------------------------
    BELIEFS
    -----------------------------------------------------*/

    .story-beliefs__grid {

        column-gap: var(--space-2xl);

    }


    .story-beliefs__card {

        min-height: 300px;

        padding:
            var(--space-2xl)
            var(--space-xl);

    }


    .story-beliefs__card:first-child {

        padding-left: 0;

    }


    .story-beliefs__card:last-child {

        padding-right: 0;

    }


    /*-----------------------------------------------------
    TANZANIA

    Keep content in the left third.
    Photography remains dominant.
    -----------------------------------------------------*/

    .story-tanzania__content {

        padding-left:
            clamp(
                var(--space-xl),
                7vw,
                7rem
            );

    }


    .story-tanzania__title {

        max-width: 620px;

    }

}



/*=========================================================
08 · LARGE DESKTOP
=========================================================*/

@media (min-width: 1500px) {


    .story-origin__layout {

        grid-template-columns:
            minmax(500px, .85fr)
            minmax(500px, 1.15fr);

        gap: 8rem;

    }


    .story-origin__media {

        aspect-ratio: 5 / 4;

    }


    .story-beliefs__card {

        min-height: 320px;

    }


    .story-tanzania__content {

        padding-left: 8rem;

    }

}


/*=========================================================
TABLET
700px — 1099px
=========================================================*/

@media (min-width: 700px) and (max-width: 1099px) {

    /*-----------------------------------------------------
    OUR STORY
    -----------------------------------------------------*/

    .story-origin__layout {

        grid-template-columns:
            minmax(0, .9fr)
            minmax(0, 1.1fr);

        align-items: center;

        gap: clamp(
            2.5rem,
            6vw,
            5rem
        );

    }


    .story-origin__media {

        aspect-ratio: 4 / 3;

        width: 100%;

    }


    .story-origin__content {

        max-width: 560px;

    }


    .story-origin__title {

        font-size:
            clamp(
                2rem,
                4vw,
                3rem
            );

        line-height: 1.05;

    }


    .story-origin__content p {

        font-size: .96rem;

        line-height: 1.75;

    }


    /*-----------------------------------------------------
    WHAT WE BELIEVE
    -----------------------------------------------------*/

    .story-beliefs__grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 2rem;

        row-gap: 0;

    }


    .story-beliefs__card {

        min-height: 280px;

    }

}


/*=========================================================
09 · MOBILE

Mobile is the primary experience.

No oversized typography.
No cramped grids.
No unnecessary horizontal movement.
=========================================================*/

@media (max-width: 699px) {


    /*-----------------------------------------------------
    SECTION RHYTHM
    -----------------------------------------------------*/

    .story-origin,
    .story-purpose,
    .story-beliefs {

        padding-block:
            clamp(
                4rem,
                12vw,
                6rem
            );

    }


    /*-----------------------------------------------------
    STORY IMAGE
    -----------------------------------------------------*/

    .story-origin__media {

        aspect-ratio: 4 / 3;

    }


    /*-----------------------------------------------------
    STORY CONTENT
    -----------------------------------------------------*/

    .story-origin__title {

        font-size:
            clamp(
                2rem,
                9vw,
                2.8rem
            );

    }


    .story-origin__content p {

        font-size: .95rem;

        line-height: 1.75;

    }


    /*-----------------------------------------------------
    PURPOSE
    -----------------------------------------------------*/

    .story-purpose__item {

        padding:
            var(--space-xl)
            0;

    }


    .story-purpose__title {

        font-size:
            clamp(
                1.8rem,
                8vw,
                2.5rem
            );

    }


    /*-----------------------------------------------------
    BELIEFS
    -----------------------------------------------------*/

    .story-beliefs__card {

        grid-template-columns:
            34px minmax(0, 1fr);

        padding:
            var(--space-lg)
            0;

    }


    .story-beliefs__number {

        font-size: .62rem;

    }


    .story-beliefs__title {

        font-size: 1.35rem;

    }


    .story-beliefs__text {

        font-size: .9rem;

    }


    /*-----------------------------------------------------
    TANZANIA

    On mobile, let the image still breathe,
    but don't make it ridiculously tall.
    -----------------------------------------------------*/

    .story-tanzania__stage {

        min-height: 620px;

    }


    .story-tanzania__content {

        min-height: 620px;

        justify-content: flex-end;

        padding:
            var(--space-2xl)
            var(--space-md)
            var(--space-xl);

    }


    .story-tanzania__overlay {

        background:
            linear-gradient(
                to top,
                rgba(20,30,17,.78) 0%,
                rgba(20,30,17,.42) 48%,
                rgba(20,30,17,.08) 100%
            );

    }


    .story-tanzania__title {

        font-size:
            clamp(
                2.4rem,
                11vw,
                3.5rem
            );

    }


    .story-tanzania__text {

        font-size: .94rem;

    }


    .story-tanzania__actions {

        width: 100%;

    }


    .story-tanzania__button {

        width: 100%;

    }


    .story-tanzania__link {

        margin-top: .25rem;

    }

}



/*=========================================================
10 · REDUCED MOTION
=========================================================*/

@media (prefers-reduced-motion: reduce) {

    .story-origin__image,
    .story-tanzania__image,
    .story-tanzania__button,
    .story-tanzania__link {

        transition: none;

    }

}