/*==================================================
MARRIAGE PAGE
Jessica Feldman
==================================================*/

/*==================================================
GENERAL
==================================================*/

.marriage-hero,
.marriage-intro,
.appreciation,
.marriage-journal,
.transition,
.framework-banner,
.marriage-continue{
    padding:90px 0;
}

/*==================================================
MARRIAGE HERO
==================================================*/

.marriage-hero{
    position:relative;
    height:82vh;
    min-height:650px;
    padding:0;
    overflow:hidden;
    background:var(--deep-teal);
}

.hero-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    animation:heroZoom 22s ease-in-out infinite alternate;
}

@keyframes heroZoom{
    from{
        transform:scale(1);
    }

    to{
        transform:scale(1.08);
    }
}

.hero-panel{
    position:absolute;
    left:50%;
    bottom:30px;
    transform:translateX(-50%);
    width:min(760px,88%);
    padding:22px 36px;
    border-radius:22px;
    background:rgba(248,248,238,.92);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    box-shadow:var(--shadow);
}

.hero-panel h2{
    margin:0;
    color:var(--deep-teal);
    font-size:clamp(2rem,3.8vw,3.2rem);
    line-height:1.15;
    text-align:left;
}

.hero-panel h2 span{
    display:block;
    margin-top:8px;
    color:var(--magenta);
    font-size:.72em;
    text-align:right;
}

/*==================================================
MARRIAGE INTRO
==================================================*/

.marriage-intro{
    padding:110px 0 90px;
    background:var(--cream);
}

.marriage-intro h2{
    max-width:650px;
    margin-bottom:40px;
    color:var(--deep-teal);
    font-size:clamp(2.2rem,4vw,3rem);
    text-align:left;
}

.marriage-intro p{
    width:72%;
    margin-left:auto;
    margin-bottom:28px;
    color:var(--brown);
    font-size:1.15rem;
    line-height:2;
}

/*==================================================
APPRECIATION
==================================================*/

.appreciation{
    padding:70px 0;
    background:
        linear-gradient(
            135deg,
            rgba(19,96,94,.10),
            rgba(22,207,191,.06)
        ),
        var(--cream);
}

.counter-scene{
    position:relative;
    max-width:1050px;
    margin:auto;
}

.counter-scene img{
    width:100%;
    border-radius:24px;
    box-shadow:var(--shadow);
}

.ending{
    color:var(--deep-teal);
    font-weight:600;
}

/*==================================================
JOURNAL
==================================================*/

.marriage-journal{
    padding:80px 0;
    background:var(--cream);
}

.journal-scene{
    position:relative;
    max-width:900px;
    margin:auto;
}

.journal-scene img{
    width:100%;
    border-radius:24px;
    box-shadow:var(--shadow);
}

/*==================================================
TRANSITION
==================================================*/

.transition{
    text-align:center;
    background:var(--deep-teal);
    color:var(--cream);
}

.transition h2{
    margin-bottom:28px;
    color:var(--teal);
    font-size:clamp(2rem,4vw,2.8rem);
}

.transition p{
    max-width:700px;
    margin:auto;
    color:var(--cream);
    font-size:1.15rem;
    line-height:1.9;
}

/*==================================================
FRAMEWORK BANNER
==================================================*/

.framework-banner{
    margin:90px 0;
    padding:0;
}

.framework-background{
    position:relative;
    max-width:1200px;
    margin:auto;
    overflow:hidden;
    border-radius:30px;
    box-shadow:var(--shadow);
}

.framework-background > img{
    width:100%;
    height:650px;
    object-fit:cover;
}

.framework-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    padding:60px 0;
    background:linear-gradient(
        rgba(248,248,238,.18),
        rgba(248,248,238,.84)
    );
}

.framework-heading{
    margin-bottom:60px;
    text-align:center;
}

.framework-heading h2{
    margin-bottom:20px;
    color:var(--deep-teal);
    font-size:2.6rem;
}

.framework-heading h3{
    max-width:700px;
    margin:auto;
    color:var(--brown);
    font-size:1.5rem;
}

.framework-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:26px;
    margin-bottom:50px;
}

.framework-panel{
    padding:34px;
    border-top:6px solid var(--teal);
    border-radius:22px;
    background:rgba(248,248,238,.96);
    box-shadow:0 16px 40px rgba(0,0,0,.12);
    transition:var(--transition);
}

.framework-panel:nth-child(2){
    border-top-color:var(--magenta);
}

.framework-panel:nth-child(3){
    border-top-color:var(--deep-teal);
}

.framework-panel:hover{
    transform:translateY(-8px);
}

.framework-panel h3{
    margin-bottom:14px;
    color:var(--deep-teal);
}

.framework-panel p{
    color:var(--brown);
    line-height:1.7;
}

/*==================================================
CONTINUE / NEXT STEPS
The shared grid/card sizing lives in style.css.
Marriage only adds its page color.
==================================================*/

.marriage-continue{
    position:relative;
    background:rgba(19,96,94,.08);
}

.marriage-continue::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:8px;
    background:var(--deep-teal);
}

.marriage-continue h2{
    color:var(--deep-teal);
    text-align:center;
}

.marriage-continue .continue-card{
    border:2px solid rgba(19,96,94,.18);
}

.marriage-continue .continue-card:hover{
    border-color:var(--deep-teal);
}

.marriage-continue .continue-card:hover h3{
    color:var(--magenta);
}

/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:900px){
    .framework-grid{
        grid-template-columns:1fr;
    }

    .framework-background > img{
        height:760px;
    }

    .marriage-intro p{
        width:85%;
    }
}

@media(max-width:800px){
    .counter-scene img{
        height:420px;
        object-fit:cover;
        object-position:65% center;
    }
}

@media(max-width:700px){
    .marriage-intro,
    .appreciation,
    .marriage-journal,
    .transition,
    .marriage-continue{
        padding:65px 0;
    }

    .marriage-hero{
        height:auto;
        min-height:0;
        padding:0;
        overflow:visible;
        background:var(--cream);
    }

    .hero-video{
        position:relative;
        inset:auto;
        width:100%;
        height:430px;
        object-fit:cover;
        animation:none;
    }

    .hero-panel{
        position:relative;
        left:auto;
        bottom:auto;
        transform:none;
        width:auto;
        margin:0;
        padding:26px 22px;
        border-radius:0;
        background:var(--cream);
        box-shadow:none;
        backdrop-filter:none;
        -webkit-backdrop-filter:none;
    }

    .hero-panel h2{
        font-size:1.8rem;
        text-align:left;
    }

    .hero-panel h2 span{
        text-align:left;
    }

    .marriage-intro{
        padding-top:75px;
    }

    .marriage-intro h2{
        font-size:2rem;
    }

    .marriage-intro p{
        width:100%;
        margin-left:0;
        font-size:1rem;
        line-height:1.8;
    }

    .counter-scene img{
        height:360px;
        object-position:65% center;
    }

    .transition p{
        font-size:1rem;
    }

    .framework-background > img{
        height:900px;
    }

    .framework-overlay{
        align-items:flex-start;
        overflow-y:auto;
        padding:45px 0;
    }

    .framework-heading{
        margin-bottom:35px;
    }

    .framework-heading h2{
        font-size:2rem;
    }

    .framework-heading h3{
        font-size:1.15rem;
    }
}

/*==================================================
REDUCED MOTION
==================================================*/

@media(prefers-reduced-motion:reduce){
    .hero-video{
        animation:none;
    }

    .framework-panel{
        transition:none;
    }

    .framework-panel:hover{
        transform:none;
    }
}