@font-face {
    font-family: 'Yekan Bakh FaNum';
    src: url('/fonts/yekan-bakh/YekanBakhFaNum-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh FaNum';
    src: url('/fonts/yekan-bakh/YekanBakhFaNum-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh FaNum';
    src: url('/fonts/yekan-bakh/YekanBakhFaNum-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh FaNum';
    src: url('/fonts/yekan-bakh/YekanBakhFaNum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html, body {
    font-family: 'Yekan Bakh FaNum', Tahoma, sans-serif;
    direction: rtl;
    margin: 0;
    scroll-behavior: smooth;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.site-nav-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.88;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link.active {
    opacity: 1;
}

.hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(21, 101, 192, 0.22), transparent 42%),
        radial-gradient(circle at 85% 10%, rgba(0, 131, 143, 0.18), transparent 38%),
        linear-gradient(160deg, #f4f8fc 0%, #e8f1f8 45%, #dfeaf4 100%);
}

.mud-theme-dark .hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(33, 150, 243, 0.2), transparent 42%),
        radial-gradient(circle at 85% 10%, rgba(0, 172, 193, 0.16), transparent 38%),
        linear-gradient(160deg, #0f1720 0%, #132033 45%, #101820 100%);
}

.hero-inner {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
    padding: 5.5rem 0 3.5rem;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    animation: fade-up 0.7s ease both;
}

.hero-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 14px;
}

.hero-site-name {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-headline {
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 600;
    max-width: 34ch;
    margin: 0 0 1rem;
    animation: fade-up 0.8s ease 0.08s both;
}

.hero-lead {
    max-width: 48ch;
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: 0.86;
    margin: 0 0 2rem;
    animation: fade-up 0.85s ease 0.16s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: fade-up 0.9s ease 0.24s both;
}

.section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3.5rem 0;
}

.section-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.section-lead {
    margin: 0 0 2rem;
    max-width: 60ch;
    line-height: 1.8;
    opacity: 0.85;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.service-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.25rem 0.25rem 1.5rem;
    border-bottom: 1px solid rgba(21, 101, 192, 0.14);
    transition: transform 0.25s ease, border-color 0.25s ease;
    animation: fade-up 0.65s ease both;
}

.service-item:hover {
    transform: translateY(-3px);
    border-color: rgba(21, 101, 192, 0.45);
}

.service-item-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin: 0 0 0.25rem;
}

.service-item h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.service-item p {
    margin: 0;
    line-height: 1.75;
    opacity: 0.82;
    font-size: 0.95rem;
}

.page-banner {
    padding: 4.5rem 0 1.5rem;
    background:
        linear-gradient(180deg, rgba(21, 101, 192, 0.08), transparent);
}

.page-banner-media {
    display: block;
    width: 100%;
    max-height: 280px;
    height: min(40vw, 280px);
    object-fit: cover;
    margin: 0 0 1.5rem;
}

.page-banner-inner,
.content-wrap {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.prose {
    line-height: 2;
    font-size: 1.05rem;
    white-space: pre-line;
    max-width: 70ch;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-meta p {
    margin: 0 0 0.75rem;
    line-height: 1.8;
}

.site-footer {
    margin-top: auto;
    padding: 2rem 0;
    border-top: 1px solid rgba(127, 127, 127, 0.2);
}

.site-footer-inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: inherit;
    opacity: 0.85;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 1;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 800px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-logo {
        width: 56px;
        height: 56px;
    }
}
