/*
HOME PAGE
*/

/* =====================================
   HERO (centered/gradient style)
===================================== */

.hero-centered{
    position:relative;
    overflow:hidden;
    min-height:calc(95vh - 110px);
    display:flex;
    align-items:center;
    color:white;
}

.hero-video{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
}

.hero-video-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.4);
    z-index:1;
}

.hero-fallback-image{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
    display:none;
}

.hero-centered.video-blocked .hero-video{
    display:none;
}

.hero-centered.video-blocked .hero-fallback-image{
    display:block;
}

.hero-bottom-shadow{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:120px;
    background:linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.45));
    z-index:1;
    pointer-events:none;
}

.hero-centered-content{
    position:relative;
    z-index:2;
    max-width:700px;
}

.hero-centered h1{
    font-size:48px;
    letter-spacing:1px;
    color:white;
    margin-bottom:35px;
}

.hero-line{
    display:block;
    line-height:1.25;
    margin-bottom:16px;
}

.hero-line:last-child{
    margin-bottom:0;
}

.hero-centered h1 .hero-highlight{
    color:var(--gold);
}

.hero-centered p{
    font-size:20px;
    line-height:1.6;
    margin-bottom:25px;
}

/* =====================================
   SCROLL REVEAL (base state)
===================================== */

.reveal{
    opacity:0;
    transform:translateY(25px);
    transition:opacity .7s ease, transform .7s ease;
}

.reveal.in-view{
    opacity:1;
    transform:translateY(0);
}

/* =====================================
   FEATURES
===================================== */

.features{
    background:var(--darkgreen);
    color:white;
    padding:90px 0;
}

.feature-grid{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:0;
}

.feature.reveal:nth-child(1){
    transition-delay:.1s;
}

.feature.reveal:nth-child(2){
    transition-delay:.2s;
}

.feature.reveal:nth-child(3){
    transition-delay:.3s;
}

.feature.reveal:nth-child(4){
    transition-delay:.4s;
}

.feature{
    flex:1;
    min-width:200px;
    text-align:center;
    padding:0 30px;
    border-left:1px solid rgba(184,155,94,.4);
}

.feature:first-child{
    border-left:none;
    padding-left:0;
}

.feature:last-child{
    padding-right:0;
}

.feature-icon{
    width:56px;
    height:56px;
    margin:0 auto 20px;
    color:var(--gold);
}

.feature-icon svg{
    width:100%;
    height:100%;
    display:block;
}

.feature h3{
    color:var(--gold);
    margin-bottom:10px;
}

/* =====================================
   ABOUT
===================================== */

.about{
    position:relative;
    background:#F8F4EA;
    padding:90px 0;
    overflow:hidden;
}

.about-decoration{
    position:absolute;
    top:0;
    left:0;
    width:340px;
    height:340px;
    opacity:.5;
    pointer-events:none;
}

.about-decoration.flip{
    top:auto;
    left:auto;
    bottom:0;
    right:0;
    transform:scale(-1,-1);
}

.about-decoration svg{
    width:100%;
    height:100%;
}

.about-grid{
    position:relative;
    display:flex;
    align-items:center;
    gap:70px;
}

.about-content{
    flex:1;
    min-width:280px;
}

.about-content.reveal{
    transition-delay:.1s;
}

.about-content .eyebrow{
    display:block;
    color:var(--gold);
    text-transform:uppercase;
    font-weight:600;
    font-size:13px;
    letter-spacing:1.5px;
    margin-bottom:15px;
}

.about-content h2{
    color:var(--darkgreen);
    font-size:34px;
    line-height:1.3;
    margin-bottom:20px;
}

.about-content p{
    color:#444;
    line-height:1.7;
    margin-bottom:25px;
    max-width:420px;
}

.about-image{
    flex:1;
    min-width:280px;
}

.about-image.reveal{
    transition-delay:.25s;
}

.about-image img{
    display:block;
    width:100%;
    height:auto;
    border:1px solid var(--gold);
}

/* =====================================
   SERVICES
===================================== */

.container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.services-section{
    padding:80px 0;
    text-align:center;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:24px;
    margin-top:40px;
    text-align:left;
}

.service.reveal:nth-child(1){
    transition-delay:.1s;
}

.service.reveal:nth-child(2){
    transition-delay:.2s;
}

.service.reveal:nth-child(3){
    transition-delay:.3s;
}

.service.reveal:nth-child(4){
    transition-delay:.4s;
}

.service.reveal:nth-child(5){
    transition-delay:.5s;
}

.service.reveal.settled{
    transition-delay:0s;
}

.service{
    border:1px solid #ddd;
    background:white;
    text-decoration:none;
    color:inherit;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transition:
        opacity .7s ease,
        transform .7s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.service:hover{
    transform:translateY(-8px);
    border-color:var(--green);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.service-image{
    width:100%;
    height:180px;
    overflow:hidden;
}

.service-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .25s ease;
    will-change:transform;
}

.service:hover .service-image img{
    transform:scale(1.08);
}

.service-content{
    padding:24px;
}

.service h3{
    color:var(--darkgreen);
    margin-bottom:10px;
}

.service p{
    color:#444;
    line-height:1.6;
}

/* =====================================
   MOBILE
===================================== */

@media(max-width:768px){

    .hero-centered{
        min-height:calc(90vh - 90px);
    }

    .hero-bottom-shadow{
        height:70px;
    }

    .hero-centered h1{
        font-size:clamp(2.3rem,5vw,4rem);
        letter-spacing:.5px;
    }
    
    .hero-line{
        line-height:1.15;
        margin-bottom:12px;
    }

    .hero-centered p{
        font-size:18px;
    }

    .feature-grid,
    .about-grid{
        flex-direction:column;
    }

    .service-grid{
        grid-template-columns:1fr;
    }

    .about-decoration,
    .about-decoration.flip{
        display:none;
    }

    .about-content p{
        max-width:none;
    }

    .feature{
        border-left:none;
        padding:0;
        border-top:1px solid rgba(184,155,94,.4);
        padding-top:30px;
    }

    .feature:first-child{
        border-top:none;
        padding-top:0;
    }

}