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

:root {
    font-family: Vazirmatn, Arial, sans-serif;
    background: #031625;
    color: #f6f5f0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

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


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

.hero {
    height: 100svh;
    min-height: 650px;

    position: relative;
    overflow: hidden;

    border-bottom: 1px solid rgba(216, 168, 79, .35);
}

.hero-image,
.hero-vignette {
    position: absolute;
    inset: 0;
}

.hero-image {
    background:
    url('assets/navco-hero.webp')
    center center / cover
    no-repeat;
}

.hero-vignette {
    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 10, 20, .48) 0%,
            rgba(0, 10, 20, .26) 22%,
            transparent 48%
        ),
        linear-gradient(
            90deg,
            rgba(0, 11, 22, .55),
            rgba(0, 12, 24, .02) 53%,
            rgba(0, 10, 20, .38)
        ),
        linear-gradient(
            0deg,
            rgba(0, 12, 22, .38),
            transparent 35%
        );
}


/* =========================
   NAVIGATION
========================= */

.nav {
    height: 76px;
    position: absolute;
    z-index: 10;
    inset: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 35px;

    background: rgba(1, 14, 25, .63);
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    backdrop-filter: blur(6px);

    direction: ltr;
}

.hamburger {
    display: none;

    justify-self: start;
    width: 32px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;

    align-content: center;
    gap: 6px;

    cursor: pointer;
}

.hamburger i {
    display: block;
    width: 29px;
    height: 2px;
    background: #f5f5f2;
}

.links {
    display: flex;
    gap: 38px;
    align-items: stretch;

    height: 100%;

    font-size: 14px;
    font-weight: 600;

    direction: rtl;
}

.links a {
    position: relative;
    display: flex;
    align-items: center;
    color: #eee;
}

.links a.active {
    color: #e9b23b;
}

.links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;

    height: 2px;
    background: #e5a92e;
}

.portal {
    position: absolute;
    right: 35px;
    top: 50%;

    transform: translateY(-50%);

    border: 1px solid #e6a61e;
    border-radius: 26px;

    padding: 9px 18px;

    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;

    direction: rtl;
}

.portal span {
    font-size: 23px;
    line-height: 0;
    margin-right: 10px;
    font-family: Arial;
}


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

.hero-logo {
    position: absolute;
    z-index: 2;

    width: min(360px, 38vw);
    height: auto;

    top: 55%;
    left: 50%;

    transform: translate(-50%, -50%);
    opacity: 0.5;

    mix-blend-mode: normal;

    filter:
        brightness(1.15)
        contrast(1.12)
        drop-shadow(0 5px 10px rgba(0, 0, 0, .8))
        drop-shadow(0 14px 28px rgba(0, 0, 0, .55));
}


/* =========================
   SCROLL INDICATOR
========================= */

.scroll-cue {
    position: absolute;
    z-index: 2;

    bottom: 14px;
    left: 50%;

    display: grid;
    gap: 4px;
    justify-items: center;

    transform: translateX(-50%);
    color: #fff;
}

.scroll-cue b {
    display: block;

    height: 38px;
    width: 23px;

    border: 1.5px solid rgba(255, 255, 255, .9);
    border-radius: 16px;

    position: relative;
}

.scroll-cue b::after {
    content: '';

    position: absolute;

    right: 50%;
    top: 7px;

    width: 3px;
    height: 8px;

    border-radius: 4px;
    background: #fff;
}

.scroll-cue i {
    font-style: normal;
    font-size: 22px;
    line-height: 10px;
}


/* =========================
   PURPOSE / SERVICES
========================= */

.purpose {
    min-height: 0;

    background:
        radial-gradient(
            ellipse at 84% 85%,
            #12314a 0,
            transparent 42%
        ),
        #031725;

    padding: 25px 0 22px;
}

.purpose-inner {
    width: min(1510px, calc(100% - 70px));
    margin: auto;

    display: grid;

    /*
       کارت‌ها سمت راست
       متن سمت چپ
    */
    grid-template-columns: 62% 38%;
    grid-template-areas: "cards intro";

    gap: 32px;
    align-items: center;

    direction: ltr;
}


/* =========================
   INTRO TEXT
========================= */

.intro {
    grid-area: intro;

    direction: rtl;
    text-align: right;

    padding: 5px 0 0 14px;
}

.line {
    width: 39px;
    height: 3px;

    background: #dfa42d;

    display: block;
    margin-bottom: 18px;
}

.intro h1 {
    font-size: clamp(27px, 2.4vw, 42px);
    line-height: 1.48;
    letter-spacing: -1.5px;

    margin: 0;

    font-weight: 700;
}

.intro em {
    color: #e9ad32;
    font-style: normal;
}

.statement {
    font-size: 18px;

    margin: 14px 0;

    color: #e9ebec;
}

.about {
    margin: 8px 0 0;

    max-width: 570px;

    font-size: 14px;
    line-height: 1.95;

    color: #d1d9de;
}


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

.cards {
    grid-area: cards;

    direction: rtl;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}

.card {
    height: 300px;

    border: 1px solid rgba(168, 188, 204, .43);
    border-radius: 10px;

    position: relative;
    overflow: hidden;

    background: #071d2e;
}

.card > img,
.shade {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.shade {
    background:
        linear-gradient(
            180deg,
            rgba(2, 15, 26, .03) 24%,
            rgba(2, 15, 26, .86) 72%,
            #041928 100%
        );
}

.card-body {
    position: absolute;
    z-index: 1;

    right: 18px;
    left: 18px;
    bottom: 13px;

    direction: rtl;
}

.icon {
    display: grid;
    place-items: center;

    width: 39px;
    height: 39px;

    border: 2px solid #e7a917;
    border-radius: 7px;

    color: #f4b225;

    font-size: 24px;

    margin-bottom: 7px;

    background: rgba(0, 15, 27, .45);
}

.card h2 {
    margin: 0;

    font-size: 17px;
    line-height: 1.5;
}

.card p {
    margin: 4px 0 7px;

    font-size: 12px;
    line-height: 1.75;

    color: #e2e7e9;

    min-height: 42px;
}

.card a {
    font-family: Arial;
    font-size: 31px;
    line-height: .65;
}


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

@media (max-width: 1050px) {

    .links {
        gap: 19px;
        font-size: 12px;
    }

    .hero {
        height: 60vh;
    }

    .purpose-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "cards";

        direction: rtl;
    }

    .intro {
        padding: 5px 0;
    }

    .cards {
        direction: rtl;
    }
}


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

@media (max-width: 700px) {

    .hero {
        height: 100svh;
        min-height: 520px;
    }

    /* HEADER موبایل */
    .nav {
        height: 68px;
        padding: 0 18px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        direction: ltr;
    }

    /* همبرگری فقط موبایل */
    .hamburger {
        display: grid;

        position: static;

        width: 32px;
        height: 28px;

        padding: 0;
        margin: 0;

        align-content: center;
        gap: 6px;

        flex-shrink: 0;
    }

    .hamburger i {
        width: 29px;
        height: 2px;
    }

    /* ورود به سامانه */
    .portal {
        position: static;

        transform: none;

        margin: 0;

        font-size: 12px;
        padding: 8px 14px;

        flex-shrink: 0;
    }

    /* منوی بازشونده */
    .links {
        display: none;

        position: absolute;

        top: 68px;
        left: 0;
        right: 0;

        width: 100%;
        height: auto;

        padding: 15px 22px 20px;

        background: rgba(2, 17, 29, .97);
        backdrop-filter: blur(12px);

        border-bottom: 1px solid rgba(230, 166, 30, .25);

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        direction: rtl;

        z-index: 11;
    }

    .links.open {
        display: flex;
    }

    .links a {
        display: block;

        padding: 14px 5px;

        font-size: 14px;

        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .links a:last-child {
        border-bottom: none;
    }

    /* خط زرد صفحه اصلی داخل منوی موبایل لازم نیست */
    .links a.active::after {
        display: none;
    }

    /* لوگو */
    .hero-logo {
        width: min(285px, 68vw);

        top: 50%;
        left: 50%;

        transform: translate(-50%, -50%);
    }

    .hero-image {
        background-position: 58% center;
    }

    /* بخش دوم */
    .purpose {
        padding: 30px 0;
    }

    .purpose-inner {
        width: calc(100% - 36px);

        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "cards";

        gap: 25px;
    }

    .intro h1 {
        font-size: 31px;
    }

    .statement {
        font-size: 17px;
    }

    .about {
        font-size: 14px;
    }

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

    .card {
        height: 390px;
    }
}