@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');


/* =========================
   VARIABLES
========================= */

:root{
    --bg:#f7f5ef;
    --paper:#ffffff;
    --ink:#153b30;
    --ink2:#1e5040;
    --gold:#c49a42;
    --gold-light:#ead9aa;
    --muted:#69756f;
    --line:#e6e0d3;
    --soft:#f0eee6;
    --soft-green:#e8f0eb;
    --shadow:0 14px 40px rgba(21,59,48,.08);
    --shadow-hover:0 20px 55px rgba(21,59,48,.14);
}


/* =========================
   RESET
========================= */

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:85px;
}

body{
    margin:0;
    padding:0;
    font-family:Vazirmatn,Tahoma,sans-serif;
    background:var(--bg);
    color:var(--ink);
    line-height:1.9;
    direction:rtl;
}

a{
    text-decoration:none;
    color:inherit;
}

img,
video{
    max-width:100%;
}

button,
input,
textarea,
select{
    font-family:inherit;
}

.container{
    width:min(1160px,92%);
    margin:auto;
}


/* =========================
   HEADER
========================= */

.site-header{
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(247,245,239,.95);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(230,224,211,.9);
}

.nav{
    min-height:78px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:800;
    white-space:nowrap;
}

.brand img{
    width:50px;
    height:50px;
    object-fit:contain;
    display:block;
}

.brand span{
    font-size:17px;
    color:var(--ink);
}

.nav nav{
    display:flex;
    align-items:center;
    gap:24px;
    font-size:14px;
    font-weight:600;
}

.nav nav a{
    position:relative;
    padding:8px 0;
    transition:.25s ease;
}

.nav nav a::after{
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    width:0;
    height:2px;
    background:var(--gold);
    transition:.25s ease;
}

.nav nav a:hover{
    color:var(--gold);
}

.nav nav a:hover::after{
    width:100%;
}

.menu{
    display:none;
    width:auto;
    border:0;
    background:transparent;
    font-size:27px;
    color:var(--ink);
    cursor:pointer;
    padding:5px 8px;
}


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

.hero{
    position:relative;
    overflow:hidden;
    padding:85px 0 65px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(196,154,66,.13),
            transparent 25%
        ),
        radial-gradient(
            circle at 10% 25%,
            #e4eee8 0,
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #fbfaf6,
            #f0eee6
        );
}

.hero::before{
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    border:1px solid rgba(196,154,66,.16);
    border-radius:50%;
    left:-130px;
    bottom:-170px;
}

.hero-grid{
    position:relative;
    display:grid;
    grid-template-columns:1.15fr .85fr;
    align-items:center;
    gap:60px;
}

.eyebrow{
    display:inline-block;
    color:var(--gold);
    font-size:12px;
    font-weight:800;
    letter-spacing:1.5px;
    border-right:3px solid var(--gold);
    padding-right:10px;
}

.hero h1{
    font-size:clamp(38px,6vw,70px);
    line-height:1.25;
    margin:15px 0 18px;
    letter-spacing:-1px;
}

.hero p{
    max-width:650px;
    font-size:18px;
    color:var(--muted);
    margin:0;
}

.actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:28px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:12px;
    padding:12px 22px;
    font:inherit;
    font-weight:700;
    cursor:pointer;
    transition:.25s ease;
}

.btn:hover{
    transform:translateY(-2px);
}

.primary{
    background:var(--ink);
    color:#fff;
    box-shadow:0 8px 20px rgba(21,59,48,.18);
}

.primary:hover{
    background:var(--ink2);
}

.ghost{
    border:1px solid var(--ink);
    color:var(--ink);
    background:rgba(255,255,255,.35);
}

.ghost:hover{
    background:var(--ink);
    color:#fff;
}

.danger{
    background:#8d302d;
    color:#fff;
}

.hero-card{
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-card img{
    width:min(390px,90%);
    display:block;
    object-fit:contain;
    filter:drop-shadow(0 25px 40px rgba(21,59,48,.18));
    animation:heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat{

    0%,
    100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-7px);
    }

}


/* =========================
   STATS
========================= */

.stats{
    position:relative;
    z-index:3;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    margin:-10px auto 0;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:var(--shadow);
    overflow:hidden;
}

.stats div{
    text-align:center;
    padding:21px 15px;
    border-left:1px solid var(--line);
}

.stats div:last-child{
    border-left:0;
}

.stats strong{
    display:block;
    color:var(--ink);
    font-size:30px;
    line-height:1.3;
}

.stats span{
    color:var(--muted);
    font-size:13px;
}


/* =========================
   SECTIONS
========================= */

.section{
    padding:85px 0;
}

.alt{
    background:var(--soft);
}

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

.section h2{
    position:relative;
    font-size:30px;
    line-height:1.5;
    margin:3px 0 0;
    padding-right:14px;
}

.section h2::before{
    content:"";
    position:absolute;
    right:0;
    top:10px;
    width:4px;
    height:25px;
    border-radius:5px;
    background:var(--gold);
}

.section-head .muted{
    margin:0;
}


/* =========================
   CARDS
========================= */

.cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.card,
.ad,
.event,
.about-box{
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 8px 28px rgba(21,59,48,.055);
    transition:.3s ease;
}

.card:hover,
.ad:hover,
.event:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow-hover);
}

.card > img{
    width:100%;
    height:230px;
    display:block;
    object-fit:cover;
    background:#e9e6dc;
}

.card-body{
    padding:21px;
}

.card h3{
    margin:0 0 8px;
    font-size:19px;
    line-height:1.8;
}

.card p{
    margin:0;
    color:var(--muted);
    line-height:2;
}

.card small{
    display:block;
    margin-top:12px;
    color:var(--gold);
    font-weight:700;
}

.muted{
    color:var(--muted);
    font-size:13px;
}


/* =========================
   IMAGE GALLERY
========================= */

.gallery{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
}

.gallery-item{
    overflow:hidden;
    border-radius:16px;
    background:#e9e6dc;
    border:1px solid var(--line);
    box-shadow:0 5px 20px rgba(21,59,48,.05);
}

.gallery-item img{
    width:100%;
    height:205px;
    object-fit:cover;
    display:block;
    background:#e9e6dc;
    transition:.3s ease;
}

.gallery-item:hover img{
    transform:scale(1.04);
}


/* =========================
   OLD THUMB SUPPORT
========================= */

.thumb{
    width:100%;
    height:210px;
    object-fit:cover;
    display:block;
    background:#e9e6dc;
}


/* =========================
   VIDEO
========================= */

.card video{
    display:block;
    width:100%;
    height:250px;
    max-height:390px;
    background:#101512;
    object-fit:contain;
}

.card video::-webkit-media-controls-panel{
    background:rgba(16,21,18,.85);
}


/* =========================
   EVENTS
========================= */

.events{
    display:grid;
    gap:14px;
}

.event{
    padding:20px 24px;
    display:grid;
    grid-template-columns:170px 1fr;
    gap:24px;
    align-items:center;
}

.event-date{
    color:var(--gold);
    font-weight:800;
    font-size:15px;
    padding-left:15px;
    border-left:2px solid var(--gold-light);
}

.event h3{
    margin:0 0 5px;
    font-size:18px;
}

.event p{
    margin:0;
    color:var(--muted);
}


/* =========================
   ADS
========================= */

.ads{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.ad{
    padding:24px;
    position:relative;
}

.ad::before{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:5px;
    height:100%;
    background:var(--gold);
}

.ad img{
    display:block;
    width:100%;
    max-height:300px;
    object-fit:cover;
    border-radius:14px;
    margin-bottom:18px;
}

.ad h3{
    margin:0 0 8px;
    font-size:20px;
}

.ad p{
    color:var(--muted);
    margin:0;
    line-height:2;
}


/* =========================
   ABOUT
========================= */

.about{
    padding-top:0;
}

.about-box{
    padding:40px;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(196,154,66,.10),
            transparent 25%
        ),
        var(--paper);
}

.about-box h2{
    font-size:30px;
    line-height:1.5;
    margin:5px 0 12px;
}

.about-box p{
    color:var(--muted);
    max-width:900px;
    margin:8px 0;
}


/* =========================
   FOOTER
========================= */

footer{
    background:var(--paper);
}

.footer{
    padding:38px 0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    border-top:1px solid var(--line);
}

footer strong{
    font-size:16px;
}

footer p{
    margin:3px 0;
    color:var(--muted);
}

.admin-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    border:1px solid var(--line);
    padding:9px 16px;
    border-radius:11px;
    cursor:pointer;
    font-family:inherit;
    color:var(--muted);
    transition:.25s ease;
}

.admin-link:hover{
    border-color:var(--gold);
    color:var(--ink);
    background:#fffdf8;
}


/* =========================
   OLD MODAL SUPPORT
========================= */

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(9,20,16,.65);
    z-index:200;
    padding:25px;
    overflow:auto;
}

.modal.open{
    display:block;
}

.modal-box{
    width:min(650px,100%);
    margin:30px auto;
    background:var(--paper);
    border-radius:20px;
    padding:28px;
    position:relative;
}

.close{
    position:absolute;
    left:18px;
    top:14px;
    border:0;
    background:none;
    font-size:30px;
    cursor:pointer;
}

.tabs{
    display:flex;
    gap:8px;
    margin:20px 0;
    flex-wrap:wrap;
}

.tab{
    border:1px solid var(--line);
    background:var(--soft);
    padding:8px 14px;
    border-radius:9px;
    cursor:pointer;
    font-family:inherit;
}

.tab.active{
    background:var(--ink);
    color:#fff;
}

label{
    display:block;
    font-weight:700;
    font-size:13px;
    margin:12px 0;
}

input,
textarea{
    width:100%;
    margin-top:6px;
    border:1px solid var(--line);
    border-radius:10px;
    padding:11px;
    font:inherit;
    background:#fff;
}

input:focus,
textarea:focus{
    outline:none;
    border-color:var(--gold);
    box-shadow:0 0 0 3px rgba(196,154,66,.12);
}

textarea{
    resize:vertical;
}

.admin-actions{
    margin-top:20px;
    padding-top:18px;
    border-top:1px solid var(--line);
}


/* =========================
   TABLET
========================= */

@media(max-width:900px){

    .nav nav{
        display:none;
    }

    .menu{
        display:block;
    }

    .hero{
        padding:55px 0 45px;
    }

    .hero-grid{
        grid-template-columns:1fr;
        text-align:center;
        gap:35px;
    }

    .hero p{
        margin:auto;
    }

    .hero .eyebrow{
        border-right:0;
        border-bottom:2px solid var(--gold);
        padding:0 0 5px;
    }

    .actions{
        justify-content:center;
    }

    .hero-card{
        order:-1;
    }

    .hero-card img{
        width:240px;
    }

.stats{
        grid-template-columns:repeat(2,1fr);
        border-radius:16px;
    }

    .stats div{
        border-bottom:1px solid var(--line);
    }

    .stats div:nth-child(2),
    .stats div:nth-child(4){
        border-left:0;
    }

    .stats div:nth-child(3),
    .stats div:nth-child(4){
        border-bottom:0;
    }

    .cards{
        grid-template-columns:repeat(2,1fr);
    }

    .gallery{
        grid-template-columns:repeat(2,1fr);
    }

    .ads{
        grid-template-columns:1fr;
    }

    .event{
        grid-template-columns:1fr;
        gap:6px;
    }

    .event-date{
        border-left:0;
        border-bottom:1px solid var(--gold-light);
        padding:0 0 7px;
    }

    .section{
        padding:65px 0;
    }

}


/* =========================
   MOBILE
========================= */

@media(max-width:600px){

    .container{
        width:min(94%,1160px);
    }

    .nav{
        min-height:68px;
    }

    .brand{
        gap:8px;
    }

    .brand img{
        width:43px;
        height:43px;
    }

    .brand span{
        font-size:14px;
    }

    .hero{
        padding:45px 0 35px;
    }

    .hero h1{
        font-size:36px;
        letter-spacing:-.5px;
    }

    .hero p{
        font-size:16px;
        line-height:2;
    }

    .hero-card img{
        width:200px;
    }

    .actions{
        width:100%;
        gap:9px;
    }

    .actions .btn{
        width:100%;
    }

    .stats{
        margin-top:-5px;
    }

    .stats strong{
        font-size:25px;
    }

    .stats span{
        font-size:12px;
    }

    .section{
        padding:52px 0;
    }

    .section h2{
        font-size:25px;
    }

    .section-head{
        align-items:flex-start;
        flex-direction:column;
        margin-bottom:22px;
    }

    .cards{
        grid-template-columns:1fr;
        gap:16px;
    }

    .card > img{
        height:220px;
    }

    .card video{
        height:230px;
    }

    .gallery{
        grid-template-columns:repeat(2,1fr);
        gap:9px;
    }

    .gallery-item{
        border-radius:11px;
    }

    .gallery img{
        height:145px;
        border-radius:11px;
    }

    .thumb{
        height:200px;
    }

    .card-body{
        padding:17px;
    }

    .card h3{
        font-size:17px;
    }

    .ads{
        gap:14px;
    }

    .ad{
        padding:20px;
    }

    .ad img{
        max-height:230px;
    }

    .about-box{
        padding:25px 20px;
    }

    .about-box h2{
        font-size:25px;
    }

    .footer{
        flex-direction:column;
        text-align:center;
        padding:30px 0;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media(max-width:380px){

    .hero h1{
        font-size:32px;
    }

    .brand span{
        font-size:13px;
    }

    .gallery img{
        height:125px;
    }

    .stats strong{
        font-size:23px;
    }

    .stats span{
        font-size:11px;
    }

    .card > img{
        height:200px;
    }

    .card video{
        height:210px;
    }

}
/* =========================
   MOBILE MENU
========================= */

@media(max-width:900px){

    .nav{
        position:relative;
    }

    .nav nav.mobile-open{
        display:flex;
        position:absolute;
        top:calc(100% + 1px);
        right:0;
        left:0;
        width:100%;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        padding:10px;
        background:rgba(255,255,255,.98);
        border:1px solid var(--line);
        border-top:0;
        border-radius:0 0 16px 16px;
        box-shadow:0 15px 35px rgba(21,59,48,.12);
    }

    .nav nav.mobile-open a{
        display:block;
        width:100%;
        padding:12px 14px;
        border-radius:10px;
        font-size:14px;
    }

    .nav nav.mobile-open a:hover{
        background:var(--soft-green);
        color:var(--ink);
    }

    .nav nav.mobile-open a::after{
        display:none;
    }

}
/* =========================
   GALLERY LIGHTBOX
========================= */

.lightbox{
    display:none;
    position:fixed;
    inset:0;
    z-index:9999;
    background:rgba(8,18,14,.92);
    align-items:center;
    justify-content:center;
    padding:25px;
}

.lightbox.active{
    display:flex;
}

.lightbox img{
    max-width:95%;
    max-height:90vh;
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:12px;
    box-shadow:0 20px 60px rgba(0,0,0,.45);
}

.lightbox-close{
    position:absolute;
    top:18px;
    left:18px;
    width:45px;
    height:45px;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-size:24px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.lightbox-close:hover{
    background:rgba(255,255,255,.25);
}

.gallery-image{
    cursor:zoom-in;
}
/* =========================
   CONTACT
========================= */

#contact .cards{
    grid-template-columns:repeat(2,1fr);
}

#contact .card{
    transition:.25s ease;
}

#contact .card:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow-hover);
}

#contact .card h3{
    margin-bottom:8px;
}

#contact .card p{
    margin-bottom:4px;
}

#contact .card a{
    transition:.25s ease;
}

#contact .card a:hover{
    color:var(--ink) !important;
}

@media(max-width:600px){

    #contact .cards{
        grid-template-columns:1fr;
    }

}