/*==================================================
COMPANY STORY
==================================================*/

.company-story{
    padding:120px 0;
    background:#F8F4EE;
    overflow:hidden;
}

.company-story .container{
    width:min(1400px,92%);
    margin:auto;
}

/*==================================================
SECTION HEADING
==================================================*/

.section-heading{
    max-width:760px;
    margin:0 auto 70px;
    text-align:center;
}

.section-subtitle{
    display:inline-block;
    color:#B88A5A;
    font-size:15px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:2px;
    margin-bottom:18px;
}

.section-heading h2{
    font-size:48px;
    color:#1E1E1E;
    line-height:1.2;
    margin-bottom:20px;
    font-weight:700;
}

.section-heading p{
    color:#666;
    font-size:17px;
    line-height:1.9;
}

/*==================================================
LAYOUT
==================================================*/

.company-story-wrapper{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:70px;
    align-items:center;
}

/*==================================================
LEFT CARD
==================================================*/

.story-card{
    background:#fff;
    padding:55px;
    border-radius:24px;
    box-shadow:0 15px 50px rgba(0,0,0,.08);
    transition:.35s;
}

.story-card:hover{
    transform:translateY(-8px);
}

.story-badge{
    display:inline-block;
    background:#B88A5A;
    color:#fff;
    padding:10px 22px;
    border-radius:40px;
    font-size:13px;
    font-weight:600;
    letter-spacing:1px;
    margin-bottom:25px;
}

.story-card h3{
    font-size:36px;
    color:#1E1E1E;
    line-height:1.3;
    margin-bottom:25px;
}

.story-card p{
    color:#666;
    line-height:1.9;
    font-size:16px;
    margin-bottom:20px;
}

/*==================================================
FEATURES
==================================================*/

.story-features{
    margin-top:40px;
    display:flex;
    flex-direction:column;
    gap:28px;
}

.story-feature{
    display:flex;
    align-items:flex-start;
    gap:18px;
}

.story-feature i{
    width:60px;
    height:60px;
    min-width:60px;
    border-radius:50%;
    background:#F4E7D8;
    color:#B88A5A;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    transition:.35s;
}

.story-feature:hover i{
    background:#B88A5A;
    color:#fff;
    transform:rotate(8deg);
}

.story-feature h4{
    font-size:20px;
    color:#1E1E1E;
    margin-bottom:6px;
}

.story-feature p{
    color:#777;
    line-height:1.7;
    margin:0;
}

/*==================================================
RIGHT IMAGES
==================================================*/

.story-images{
    display:grid;
    grid-template-columns:1fr;
    gap:30px;
    align-content:center;
}

.story-image{
    position:relative;
    overflow:hidden;
    border-radius:24px;
    background:#ddd;
    box-shadow:0 20px 60px rgba(0,0,0,.12);
}

.story-image.large{
    height:450px;
}

.story-image.small{
    width:82%;
    height:260px;
    margin-left:auto;
}

.story-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .7s ease;
}

.story-image:hover img{
    transform:scale(1.08);
}

.story-image::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.35),
        rgba(0,0,0,0)
    );
    opacity:0;
    transition:.35s;
    z-index:1;
}

.story-image:hover::before{
    opacity:1;
}

.story-image::after{
    content:"";
    position:absolute;
    inset:12px;
    border:1px solid rgba(255,255,255,.35);
    border-radius:18px;
    opacity:0;
    transition:.35s;
    z-index:2;
}

.story-image:hover::after{
    opacity:1;
}
/*==================================================
ANIMATION
==================================================*/

.story-content,
.story-images{
    opacity:1;
    transform:translateY(0);
    transition:all .8s ease;
}

.story-content.show{
    animation:storyFadeLeft .8s ease forwards;
}

.story-images.show{
    animation:storyFadeRight .8s ease forwards;
}

@keyframes storyFadeLeft{

    from{
        opacity:0;
        transform:translateX(-60px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}

@keyframes storyFadeRight{

    from{
        opacity:0;
        transform:translateX(60px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}

/*==================================================
RESPONSIVE
==================================================*/

@media (max-width:1200px){

    .company-story-wrapper{
        gap:50px;
    }

    .section-heading h2{
        font-size:40px;
    }

    .story-card{
        padding:45px;
    }

}

@media (max-width:992px){

    .company-story{
        padding:90px 0;
    }

    .company-story-wrapper{
        grid-template-columns:1fr;
        gap:45px;
    }

    .story-images{
        order:-1;
    }

    .story-image.large{
        height:420px;
    }

    .story-image.small{
        width:100%;
        height:260px;
        margin-left:0;
    }

}

@media (max-width:768px){

    .company-story{
        padding:70px 0;
    }

    .section-heading{
        margin-bottom:50px;
    }

    .section-heading h2{
        font-size:32px;
    }

    .section-heading p{
        font-size:16px;
    }

    .story-card{
        padding:30px 24px;
    }

    .story-card h3{
        font-size:28px;
    }

    .story-feature{
        gap:15px;
    }

    .story-feature i{
        width:52px;
        height:52px;
        min-width:52px;
        font-size:20px;
    }

    .story-feature h4{
        font-size:18px;
    }

    .story-image.large{
        height:300px;
    }

    .story-image.small{
        height:220px;
    }

}

@media (max-width:480px){

    .company-story{
        padding:60px 0;
    }

    .section-heading h2{
        font-size:28px;
    }

    .story-card{
        border-radius:18px;
    }

    .story-image{
        border-radius:18px;
    }

}