@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #0c4f7f;
    --color-primary-dark: #072f4f;
    --color-secondary: #16a6a0;
    --color-heading: #071d30;
    --color-text: #526273;
    --color-light: #f3f9fc;
    --color-border: #dce8ee;
    --color-white: #ffffff;
    --container-width: 1180px;
    --shadow-soft: 0 15px 45px rgba(8, 38, 60, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: #ffffff;
    font-family: Vazirmatn, IRANSans, "Segoe UI", Tahoma, sans-serif;
    direction: rtl;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(calc(100% - 40px), var(--container-width));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    min-height: 82px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(7, 29, 48, 0.06);
    box-shadow: 0 4px 25px rgba(7, 29, 48, 0.035);
    backdrop-filter: blur(16px);
}

.navbar {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.brand-symbol {
    display: inline-grid;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, #0d5a91, #18aaa4);
    border-radius: 13px;
    place-items: center;
    font-size: 1.35rem;
    font-weight: 900;
    transform: rotate(-4deg);
}

.brand-name {
    color: var(--color-heading);
    font-size: 1.5rem;
    font-weight: 900;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 42px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .navigation a {
        position: relative;
        display: inline-flex;
        padding: 30px 0 25px;
        color: #182b3a;
        font-size: 0.95rem;
        font-weight: 700;
        transition: color 180ms ease;
    }

        .navigation a::after {
            position: absolute;
            right: 0;
            bottom: 19px;
            width: 0;
            height: 2px;
            content: "";
            background: var(--color-primary);
            border-radius: 100px;
            transition: width 180ms ease;
        }

        .navigation a:hover,
        .navigation a.active {
            color: var(--color-primary);
        }

            .navigation a:hover::after,
            .navigation a.active::after {
                width: 100%;
            }

.header-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    justify-content: center;
    padding: 0 19px;
    color: #ffffff;
    background: var(--color-primary-dark);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(7, 47, 79, 0.17);
    font-size: 0.88rem;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease;
}

    .header-action:hover {
        color: #ffffff;
        background: var(--color-primary);
        transform: translateY(-2px);
    }

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    color: var(--color-primary-dark);
    background: #edf6fa;
    border: 0;
    border-radius: 10px;
    font-size: 1.7rem;
}

/* Footer */

.site-footer {
    padding: 70px 0 20px;
    color: rgba(255, 255, 255, 0.74);
    background: radial-gradient( circle at 20% 0, rgba(15, 125, 159, 0.18), transparent 35% ), #062c4a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.8fr 0.9fr 1.35fr 1.6fr;
    gap: 45px;
}

.footer-column h2 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

.footer-column ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column a {
    transition: color 180ms ease;
}

    .footer-column a:hover {
        color: #62d0ca;
    }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    margin-top: 4px;
    color: #53c2c0;
}

.footer-about p {
    margin: 20px 0;
    line-height: 2;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.4rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

    .social-links a {
        display: grid;
        width: 38px;
        height: 38px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        place-items: center;
        transition: transform 180ms ease, background 180ms ease;
    }

        .social-links a:hover {
            color: #ffffff;
            background: var(--color-secondary);
            transform: translateY(-3px);
        }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 55px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}

    .footer-bottom p {
        margin: 0;
    }

/* Responsive header and footer */

@media (max-width: 950px) {
    .mobile-menu-button {
        display: grid;
        place-items: center;
    }

    .main-menu {
        position: absolute;
        top: calc(100% + 1px);
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        gap: 20px;
        padding: 24px;
        background: #ffffff;
        border: 1px solid var(--color-border);
        border-radius: 16px;
        box-shadow: var(--shadow-soft);
    }

    .main-menu--open {
        display: flex;
        flex-direction: column;
    }

    .navigation {
        align-items: stretch;
        flex-direction: column;
        gap: 2px;
    }

        .navigation a {
            display: block;
            padding: 12px;
            border-radius: 8px;
        }

            .navigation a::after {
                display: none;
            }

            .navigation a:hover,
            .navigation a.active {
                background: #eff7fb;
            }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .container {
        width: min(calc(100% - 28px), var(--container-width));
    }

    .site-header,
    .navbar {
        min-height: 72px;
    }

    .brand-symbol {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
