/*
|--------------------------------------------------------------------------
| Masjawa v2.1 - Locked Homepage
|--------------------------------------------------------------------------
| Visual baseline: approved elegant ivory / sage homepage mockup.
|--------------------------------------------------------------------------
*/

:root{
    --home-ivory:#fbfaf6;
    --home-soft:#f6f5ef;
    --home-sage:#596b57;
    --home-sage-dark:#435446;
    --home-text:#2e312e;
    --home-muted:#777b76;
    --home-line:#e5e4de;
}

body{
    background:var(--home-ivory);
    color:var(--home-text);
}

/* Header */

.topbar{
    background:rgba(251,250,246,.94);
    border-bottom:1px solid rgba(229,228,222,.76);
}

.nav-shell{
    min-height:72px;
}

.logo{
    font-size:25px;
}

.main-nav{
    gap:40px;
}

.main-nav a{
    font-family:Georgia,"Times New Roman",serif;
    font-size:13px;
    color:#343833;
}

.main-nav a.active::after{
    bottom:-10px;
    background:#6b7b6b;
}

/* Hero */

.home-locked-hero{
    position:relative;
    min-height:478px;
    overflow:hidden;
    background:
        linear-gradient(
            90deg,
            rgba(251,250,246,1) 0%,
            rgba(251,250,246,.99) 27%,
            rgba(251,250,246,.70) 39%,
            rgba(251,250,246,0) 53%
        ),
        #f7f4ed;
}

.home-hero-visual{
    position:absolute;
    inset:0 0 0 34%;
    background-image:url('/assets/images/home-hero-locked.webp');
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center center;
}

.home-hero-inner{
    position:relative;
    z-index:2;
    min-height:478px;
    display:flex;
    align-items:center;
}

.home-hero-copy{
    width:46%;
    max-width:490px;
    padding:15px 0 5px;
}

.home-kicker{
    margin:0 0 21px;
    color:#657067;
    font-size:9px;
    font-weight:400;
    letter-spacing:.27em;
    text-transform:uppercase;
}

.home-hero-copy h1{
    max-width:500px;
    margin:0;
    font-family:Georgia,"Times New Roman",serif;
    font-size:61px;
    font-weight:400;
    line-height:1.03;
    letter-spacing:-.042em;
    color:#242724;
}

.home-intro{
    max-width:445px;
    margin:21px 0 0;
    color:#626762;
    font-family:Georgia,"Times New Roman",serif;
    font-size:16px;
    line-height:1.55;
}

.home-actions{
    display:flex;
    align-items:center;
    gap:24px;
    margin-top:26px;
}

.home-primary,
.home-secondary{
    display:inline-flex;
    align-items:center;
    gap:13px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:14px;
}

.home-primary{
    min-height:49px;
    padding:0 22px;
    border-radius:7px;
    background:var(--home-sage);
    color:#fff;
}

.home-primary:hover{
    background:var(--home-sage-dark);
}

.home-secondary{
    color:#536056;
    padding-bottom:4px;
    border-bottom:1px solid #9ca49c;
}

/* Shared homepage sections */

.home-tools-section,
.home-blogs-section{
    padding:38px 0 42px;
}

.home-tools-section{
    background:rgba(255,255,255,.42);
}

.home-blogs-section{
    padding-top:38px;
    background:
        linear-gradient(
            180deg,
            rgba(245,247,241,.58),
            rgba(251,250,246,.42)
        );
}

.home-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:35px;
    margin-bottom:25px;
}

.home-section-head .home-kicker{
    margin-bottom:9px;
}

.home-section-head h2{
    margin:0;
    font-family:Georgia,"Times New Roman",serif;
    font-size:35px;
    font-weight:400;
    line-height:1.1;
    letter-spacing:-.035em;
}

.home-section-copy{
    margin:7px 0 0;
    color:var(--home-muted);
    font-family:Georgia,"Times New Roman",serif;
    font-size:13px;
    line-height:1.5;
}

.home-view-link{
    flex:0 0 auto;
    margin-bottom:3px;
    padding-bottom:3px;
    border-bottom:1px solid #a9aea9;
    color:#59635b;
    font-family:Georgia,"Times New Roman",serif;
    font-size:11px;
}

/* Tools */

.home-tools-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
}

.home-tool-card{
    min-height:145px;
    padding:17px;
    display:flex;
    gap:18px;
    border:1px solid var(--home-line);
    border-radius:6px;
    background:rgba(255,255,255,.44);
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.home-tool-card:hover{
    transform:translateY(-2px);
    border-color:#cdd1ca;
    background:rgba(255,255,255,.72);
}

.home-tool-icon{
    width:55px;
    height:55px;
    flex:0 0 55px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#eef0e9;
    color:#566653;
    font-family:Georgia,"Times New Roman",serif;
    font-size:24px;
    line-height:1;
}

.home-tool-content{
    min-width:0;
    display:flex;
    flex-direction:column;
}

.home-tool-content h3{
    margin:2px 0 6px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:16px;
    font-weight:400;
    line-height:1.25;
}

.home-tool-content p{
    margin:0;
    color:#747974;
    font-family:Georgia,"Times New Roman",serif;
    font-size:11px;
    line-height:1.45;
}

.home-tool-meta{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:auto;
    padding-top:10px;
    color:#7a807a;
    font-family:Georgia,"Times New Roman",serif;
    font-size:9px;
}

.home-tool-meta i{
    font-style:normal;
    opacity:.65;
}

.home-tools-empty,
.home-blogs-empty{
    grid-column:1/-1;
    padding:28px 0;
    color:var(--home-muted);
    font-family:Georgia,"Times New Roman",serif;
    font-size:12px;
}

/* Blogs */

.blogs-heading{
    margin-bottom:22px;
}

.home-blog-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.home-blog-card{
    min-height:178px;
    display:grid;
    grid-template-columns:104px minmax(0,1fr);
    overflow:hidden;
    border:1px solid var(--home-line);
    border-radius:6px;
    background:rgba(255,255,255,.43);
}

.home-blog-image{
    min-height:178px;
    overflow:hidden;
    background:#ecebe5;
}

.home-blog-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.home-blog-copy{
    min-width:0;
    padding:14px 14px 12px;
    display:flex;
    flex-direction:column;
}

.home-blog-date{
    color:#858985;
    font-family:Georgia,"Times New Roman",serif;
    font-size:9px;
}

.home-blog-copy h3{
    margin:8px 0 7px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:13px;
    font-weight:400;
    line-height:1.35;
}

.home-blog-copy p{
    margin:0;
    color:#737873;
    font-family:Georgia,"Times New Roman",serif;
    font-size:10px;
    line-height:1.45;
}

.home-read-link{
    width:max-content;
    margin-top:auto;
    padding-top:10px;
    padding-bottom:2px;
    border-bottom:1px solid #b8bbb6;
    color:#657065;
    font-family:Georgia,"Times New Roman",serif;
    font-size:10px;
}

.home-read-link i{
    margin-left:8px;
    font-style:normal;
}

/* Footer locked */

.footer-locked{
    background:var(--home-ivory);
}

.footer-quote-row{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:38px;
    padding-top:30px;
}

.footer-quote-row p{
    margin:0;
    color:#838681;
    font-family:Georgia,"Times New Roman",serif;
    font-size:12px;
    font-style:italic;
}

.footer-line{
    height:1px;
    background:#d4d5d0;
}

.footer-inner{
    min-height:66px;
}

/* Tablet */

@media (max-width:920px){
    .home-locked-hero{
        min-height:440px;
    }

    .home-hero-visual{
        inset:0 0 0 41%;
    }

    .home-hero-inner{
        min-height:440px;
    }

    .home-hero-copy{
        width:51%;
    }

    .home-hero-copy h1{
        font-size:51px;
    }

    .home-tools-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .home-blog-grid{
        grid-template-columns:1fr;
    }

    .home-blog-card{
        grid-template-columns:150px 1fr;
    }
}

/* Mobile */

@media (max-width:760px){
    .nav-shell{
        min-height:62px;
    }

    .logo{
        font-size:22px;
    }

    .home-locked-hero{
        min-height:auto;
        padding-top:0;
        background:var(--home-ivory);
    }

    .home-hero-visual{
        position:relative;
        inset:auto;
        width:100%;
        height:300px;
        background-size:cover;
        background-position:59% center;
        order:2;
    }

    .home-hero-inner{
        min-height:auto;
        padding-top:62px;
        padding-bottom:42px;
    }

    .home-hero-copy{
        width:100%;
        max-width:560px;
    }

    .home-hero-copy h1{
        font-size:49px;
    }

    .home-intro{
        max-width:480px;
        font-size:15px;
    }

    .home-actions{
        flex-wrap:wrap;
    }

    .home-section-head{
        align-items:flex-start;
        flex-direction:column;
        gap:11px;
    }

    .home-tools-section,
    .home-blogs-section{
        padding:34px 0 40px;
    }

    .home-section-head h2{
        font-size:31px;
    }

    .home-tools-grid{
        grid-template-columns:1fr;
    }

    .home-tool-card{
        min-height:132px;
    }

    .footer-quote-row{
        grid-template-columns:1fr;
        gap:10px;
        text-align:center;
    }

    .footer-quote-row .footer-line{
        display:none;
    }
}

@media (max-width:500px){
    .home-hero-copy h1{
        font-size:43px;
    }

    .home-hero-visual{
        height:260px;
    }

    .home-actions{
        gap:18px;
    }

    .home-primary{
        min-height:46px;
        padding:0 19px;
    }

    .home-blog-card{
        grid-template-columns:104px minmax(0,1fr);
    }

    .home-blog-image{
        min-height:170px;
    }
}
