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

:root {
    --site-navy: #0c2d4a;
    --site-blue: #1a4d73;
    --site-teal: #2a7a8c;
    --site-bg: #f4f7fa;
    --site-surface: #ffffff;
    --site-text: #1f2d3d;
    --site-muted: #5c6b7a;
    --site-border: #d8e2ea;
    --site-accent: #1a6b8a;
    --site-accent-soft: #e8f3f7;
    --site-success: #1e7a55;
    --site-radius: 12px;
    --site-shadow: 0 8px 32px rgba(12, 45, 74, 0.08);
    --site-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.site-body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background: var(--site-bg);
    color: var(--site-text);
    line-height: 1.85;
    font-size: 16px;
}

a { color: var(--site-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--site-border);
    backdrop-filter: blur(10px);
}

.site-header-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}

.site-brand:hover { text-decoration: none; }

.site-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--site-navy), var(--site-teal));
    position: relative;
}

.site-brand-mark::after {
    content: '';
    position: absolute;
    inset: auto 8px 8px 8px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.85);
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.site-brand-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--site-navy);
}

.site-brand-text small {
    font-size: 0.72rem;
    color: var(--site-muted);
    font-weight: 400;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
}

.site-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--site-muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: var(--site-accent-soft);
    color: var(--site-navy);
    text-decoration: none;
}

.site-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--site-navy);
    color: #fff !important;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.site-header-cta:hover {
    background: var(--site-blue);
    text-decoration: none;
}

.site-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-right: auto;
}

.site-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--site-navy);
    border-radius: 1px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.home-hero {
    background: linear-gradient(160deg, var(--site-navy) 0%, var(--site-blue) 55%, var(--site-teal) 100%);
    color: #fff;
    padding: 72px 20px 80px;
}

.home-hero-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.home-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.home-hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 18px;
}

.home-hero-lead {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
    max-width: 36em;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
    background: #fff;
    color: var(--site-navy) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }

.btn-outline {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

.home-hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--site-radius);
    padding: 28px;
    backdrop-filter: blur(6px);
}

.home-hero-panel h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95);
}

.home-hero-panel ul {
    list-style: none;
}

.home-hero-panel li {
    position: relative;
    padding-right: 18px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.home-hero-panel li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.site-section {
    padding: 64px 20px;
}

.site-section-alt { background: var(--site-surface); }

.site-section-inner {
    max-width: var(--site-max);
    margin: 0 auto;
}

.section-head {
    margin-bottom: 36px;
    max-width: 640px;
}

.section-head h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--site-navy);
    margin-bottom: 10px;
}

.section-head p {
    color: var(--site-muted);
    font-size: 0.95rem;
}

/* ── Trust bar ──────────────────────────────────────────────────────────── */
.trust-bar {
    background: var(--site-surface);
    border-bottom: 1px solid var(--site-border);
    padding: 20px;
}

.trust-bar-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.trust-item {
    text-align: center;
    padding: 12px 8px;
}

.trust-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--site-navy);
    margin-bottom: 4px;
}

.trust-item span {
    font-size: 0.78rem;
    color: var(--site-muted);
}

/* ── Cards grid ─────────────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.site-card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 26px;
    box-shadow: var(--site-shadow);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}

.site-card:hover {
    border-color: #b8d4e0;
    transform: translateY(-2px);
}

.site-card-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--site-teal);
    background: var(--site-accent-soft);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
    width: fit-content;
}

.site-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--site-navy);
    margin-bottom: 10px;
}

.site-card p {
    font-size: 0.88rem;
    color: var(--site-muted);
    flex: 1;
    margin-bottom: 18px;
}

.site-card-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--site-accent) !important;
}

.site-card.is-soon { opacity: 0.85; }
.site-card.is-soon .site-card-link { color: var(--site-muted) !important; cursor: default; }

/* ── Pathway steps ──────────────────────────────────────────────────────── */
.pathway-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.pathway-step {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 28px 24px 24px;
    position: relative;
}

.pathway-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--site-accent-soft);
    color: #c5dde8;
    line-height: 1;
    margin-bottom: 12px;
}

.pathway-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--site-navy);
    margin-bottom: 8px;
}

.pathway-step p {
    font-size: 0.88rem;
    color: var(--site-muted);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
}

.faq-item {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--site-navy);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    float: left;
    font-weight: 400;
    color: var(--site-muted);
}

.faq-item[open] summary::after { content: '−'; }

.faq-item div {
    padding: 0 20px 18px;
    font-size: 0.88rem;
    color: var(--site-muted);
    line-height: 1.85;
}

/* ── Comments preview ───────────────────────────────────────────────────── */
.comments-preview {
    display: grid;
    gap: 14px;
}

.comment-preview {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 18px 20px;
}

.comment-preview-meta {
    font-size: 0.78rem;
    color: var(--site-muted);
    margin-bottom: 8px;
}

.comment-preview-meta strong {
    color: var(--site-navy);
    font-weight: 600;
}

.comment-preview p {
    font-size: 0.88rem;
    color: var(--site-text);
}

/* ── Placeholder page ───────────────────────────────────────────────────── */
.page-placeholder {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 20px 100px;
}

.page-placeholder h1 {
    font-size: 1.6rem;
    color: var(--site-navy);
    margin-bottom: 14px;
}

.page-placeholder p {
    color: var(--site-muted);
    margin-bottom: 24px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--site-navy);
    color: rgba(255, 255, 255, 0.82);
    padding: 48px 20px 28px;
}

.site-footer-inner {
    max-width: var(--site-max);
    margin: 0 auto;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

.site-footer-block h2,
.site-footer-block h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.site-footer-block p,
.site-footer-block li {
    font-size: 0.84rem;
    line-height: 1.8;
}

.site-footer-block ul {
    list-style: none;
}

.site-footer-block a {
    color: rgba(255, 255, 255, 0.82);
}

.site-footer-block a:hover { color: #fff; }

.site-footer-link {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    text-decoration: none !important;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
}

.site-disclaimer {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
    line-height: 1.7;
}

.site-footer-legal {
    margin-bottom: 8px;
}

.site-footer-legal a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.site-footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .home-hero-inner { grid-template-columns: 1fr; }
    .home-hero-panel { order: -1; }
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .pathway-steps { grid-template-columns: 1fr; }
    .trust-bar-inner { grid-template-columns: 1fr 1fr; }
    .site-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .site-nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--site-border);
        padding: 12px 16px 16px;
        box-shadow: var(--site-shadow);
    }

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

    .site-header-cta { display: none; }

    .site-header-inner { position: relative; flex-wrap: wrap; }

    .cards-grid { grid-template-columns: 1fr; }
    .trust-bar-inner { grid-template-columns: 1fr; }
    .home-hero { padding: 48px 20px 56px; }
}
