@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/vazirmatn/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/vazirmatn/vazirmatn-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/vazirmatn/vazirmatn-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --navy: #071827;
    --petrol: #0b2a3a;
    --teal: #1dd3b0;
    --gold: #d8b45a;
    --ink: #17212b;
    --muted: #697586;
    --line: #dbe3ea;
    --soft: #f5f7fa;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 18px 55px rgba(7, 24, 39, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Vazirmatn, IRANSansX, Tahoma, Arial, sans-serif;
    line-height: 1.9;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1140px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(219, 227, 234, .82);
    backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
    box-shadow: 0 12px 32px rgba(7, 24, 39, .08);
}

.navbar .container,
.nav-panel,
.nav-list,
.brand,
.hero-actions,
.page-actions {
    display: flex;
    align-items: center;
}

.navbar {
    min-height: 78px;
}

.navbar .container {
    justify-content: flex-start;
    gap: 22px;
}

.brand {
    gap: 12px;
    min-width: max-content;
}

.brand-lockup {
    width: 154px;
    height: auto;
    flex: 0 0 154px;
    object-fit: contain;
}

.hero-brand-logo,
.footer-logo-lockup {
    width: auto;
    height: auto;
}

.hero-brand-logo {
    max-width: min(360px, 82vw);
    margin-bottom: 18px;
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, .28));
}

.nav-panel {
    flex: 1;
    justify-content: space-between;
    gap: 18px;
}

.nav-list {
    justify-content: flex-start;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: .92rem;
}

.nav-item {
    position: relative;
}

.has-submenu::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    z-index: 59;
    height: 14px;
}

.nav-entry {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
}

.has-submenu > .nav-entry::after {
    content: "";
    width: 7px;
    aspect-ratio: 1;
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: rotate(45deg);
    margin-block-start: -4px;
    opacity: .72;
}

.nav-list a {
    color: #243445;
}

.nav-list a:hover {
    color: #087b69;
}

.nav-submenu {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: calc(100% + 4px);
    z-index: 60;
    display: grid;
    gap: 4px;
    min-width: 270px;
    padding: 10px;
    margin: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.has-submenu:hover .nav-submenu,
.has-submenu:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-submenu a {
    display: block;
    border-radius: 8px;
    padding: 10px 12px;
    color: #243445;
    white-space: nowrap;
}

.nav-submenu a:hover,
.nav-submenu a:focus {
    color: #056957;
    background: rgba(29, 211, 176, .12);
}

.nav-toggle {
    display: none;
    width: 44px;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--navy);
}

.btn {
    --bs-btn-border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.btn-accent {
    color: var(--navy);
    border: 1px solid var(--teal);
    background: var(--teal);
}

.btn-accent:hover {
    color: var(--navy);
    background: #62e6cf;
    border-color: #62e6cf;
}

.btn-glass,
.btn-outline-light {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .08);
}

.hero {
    position: relative;
    min-height: 680px;
    color: var(--white);
    background-image: linear-gradient(90deg, rgba(7, 24, 39, .18), rgba(7, 24, 39, .72) 48%, rgba(7, 24, 39, .96)), var(--hero-image);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(7, 24, 39, .5));
    z-index: -1;
}

.hero-grid {
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 44px;
    padding-block: 96px 72px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0;
}

h1,
h2,
h3 {
    margin-block: 0 18px;
    color: inherit;
    line-height: 1.45;
    font-weight: 850;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.25rem, 4rem, 4rem);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-block: 0 18px;
}

.lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .86);
}

.hero-copy > p:not(.eyebrow):not(.lead) {
    color: rgba(255, 255, 255, .76);
}

.hero-actions,
.page-actions {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-metrics {
    display: grid;
    gap: 12px;
}

.hero-metrics div {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    padding: 18px;
    background: rgba(7, 24, 39, .48);
    backdrop-filter: blur(12px);
}

.hero-metrics strong {
    display: block;
    color: var(--teal);
    font-size: 1.8rem;
    line-height: 1.2;
}

.hero-metrics span {
    color: rgba(255, 255, 255, .78);
}

.section {
    padding-block: 86px;
}

.section-muted {
    background: var(--soft);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-heading h2 {
    color: var(--navy);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-grid.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card,
.article-card,
.stack-list article,
.contact-form,
.contact-note,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.service-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 24px;
}

.card-index {
    color: var(--teal);
    font-weight: 900;
}

.service-card h2,
.service-card h3 {
    color: var(--navy);
    font-size: 1.15rem;
}

.service-card p {
    color: var(--muted);
}

.service-card ul,
.stack-list ul,
.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.service-card li,
.stack-list li {
    position: relative;
    padding-inline-start: 18px;
    color: #344456;
}

.service-card li::before,
.stack-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: .85em;
    width: 7px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gold);
}

.service-card a {
    margin-top: auto;
    color: #087b69;
    font-weight: 800;
}

.band {
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--petrol));
    padding-block: 72px;
}

.band-grid,
.content-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 40px;
}

.band-grid,
.content-grid,
.contact-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
}

.band p {
    color: rgba(255, 255, 255, .78);
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--petrol));
    padding-block: 98px 74px;
}

.page-hero .container {
    max-width: 860px;
}

.page-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--gold);
    font-weight: 850;
}

.page-brand img {
    width: 48px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .18));
}

.page-hero p:not(.eyebrow) {
    color: rgba(255, 255, 255, .78);
    font-size: 1.1rem;
}

.stack-list {
    display: grid;
    gap: 16px;
}

.stack-list article {
    padding: 24px;
}

.stack-list h3,
.prose h2 {
    color: var(--navy);
}

.pill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pill-grid span {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--navy);
    background: var(--soft);
    font-weight: 750;
}

.timeline {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.timeline span {
    display: grid;
    place-items: center;
    width: 38px;
    aspect-ratio: 1;
    border-radius: 8px;
    color: var(--navy);
    background: var(--teal);
    font-weight: 900;
}

.narrow {
    max-width: 820px;
}

.prose {
    font-size: 1.06rem;
}

.prose blockquote {
    margin: 34px 0 0;
    border-inline-start: 4px solid var(--teal);
    padding: 18px 22px;
    color: var(--navy);
    background: var(--soft);
    font-size: 1.35rem;
    font-weight: 850;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    color: var(--navy);
    font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(29, 211, 176, .2);
}

.contact-form small {
    color: #b42318;
}

.form-alert {
    border: 1px solid rgba(29, 211, 176, .35);
    border-radius: 8px;
    padding: 12px 14px;
    color: #056957;
    background: rgba(29, 211, 176, .1);
}

.contact-note {
    display: grid;
    gap: 8px;
    margin-top: 26px;
    padding: 18px;
}

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

.article-card {
    padding: 24px;
}

.article-card time {
    color: var(--muted);
}

.article-card h2 {
    font-size: 1.25rem;
    color: var(--navy);
}

.article-card p,
.empty-state p {
    color: var(--muted);
}

.empty-state {
    padding: 40px;
    text-align: center;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px;
    background: var(--white);
}

.faq-list summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 800;
}

.faq-list p {
    margin: 12px 0 0;
    color: var(--muted);
}

.article-detail img {
    margin-block: 28px;
    border-radius: 8px;
}

.site-footer {
    color: rgba(255, 255, 255, .78);
    background: var(--navy);
    padding-block: 56px 24px;
}

.footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
}

.footer-brand {
    color: var(--white);
    margin-bottom: 18px;
}

.footer-logo-lockup {
    max-width: 285px;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .22));
}

.site-footer h2 {
    color: var(--white);
    font-size: 1rem;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: var(--teal);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 36px;
    padding-top: 20px;
    font-size: .9rem;
}

@media (max-width: 1180px) {
    .nav-toggle {
        display: block;
        margin-inline-start: auto;
    }

    .nav-panel {
        position: absolute;
        inset-inline: 16px;
        inset-block-start: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 16px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-panel.is-open {
        display: flex;
    }

    .nav-list {
        display: grid;
        gap: 10px;
    }

    .nav-entry {
        min-height: 34px;
    }

    .has-submenu::before {
        display: none;
    }

    .nav-submenu {
        position: static;
        min-width: 0;
        margin-top: 6px;
        padding: 8px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        background: var(--soft);
    }

    .nav-submenu a {
        white-space: normal;
    }

    .nav-panel .btn {
        color: var(--navy);
    }
}

@media (max-width: 960px) {
    .hero,
    .hero-grid {
        min-height: auto;
    }

    .hero {
        background-image: linear-gradient(180deg, rgba(7, 24, 39, .92), rgba(7, 24, 39, .74)), var(--hero-image);
    }

    .hero-grid,
    .band-grid,
    .content-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .service-grid.five,
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    .hero-grid {
        padding-block: 64px 42px;
    }

    .section {
        padding-block: 58px;
    }

    .service-grid,
    .service-grid.five,
    .article-grid,
    .pill-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
