@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'VazirmatnExBold';
    src: url('/fonts/Vazirmatn-ExtraBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

:root {
    --purple-1: #C8ACD6;
    --purple-2: #433D8B;
    --purple-3: #2E236C;
    --muted: #333333;
    --card-border: rgba(90, 45, 115, 0.12);
    --card-bg: #fff;
    --page-bg: #f6f6f6;
    --container-width: 1328px;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--page-bg);
    color: #222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

.container {
    margin: 32px 56px 0 56px;
}

/* Header */
header.site-header {
    min-height: 90px;
    background: linear-gradient(180deg, var(--purple-1), var(--purple-1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 16px 0;
}

.topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.right-header {
    display: flex;
    gap: 66px;
    align-items: center;
}

.logo {
    margin-right: 52px;
    max-width: 100px;
    max-height: 100px;
    flex-shrink: 0;
}

.logo img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 6px;
    display: inline-block;
    object-fit: cover;
}

.site-title {
    font-weight: 700;
    color: var(--purple-3);
}

nav.primary {
    display: flex;
    gap: 49px;
    align-items: center;
    color: var(--purple-3);
}

nav.primary a {
    text-decoration: none;
    color: #000;
    font-weight: 800;
    font-size: 20px;
    transition: all linear 0.4s;
    white-space: nowrap;
}

nav.primary a:hover {
    color: #fff;
}

.cra-container {
    margin-left: 109px;
}

.cra-container a {
    padding: 0.5rem 2.5rem;
}

.cta {
    background: var(--purple-3);
    color: #fff;
    padding: 8px 14px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    white-space: nowrap;
}

/* Hero */
.hero {
    margin-top: 32px;
    padding: 64px 84px;
    min-height: 300px;
}

.hero h1 {
    font-size: 36px;
    margin: 0 0 14px;
    font-weight: 800;
    color: var(--muted);
    min-height: auto;
    display: block;
}

.hero p.lead {
    margin-top: 32px;
    max-width: 832px;
    color: var(--muted);
    font-size: 20px;
    line-height: 190%;
    min-height: auto;
}

/* Features heading */
.section-title {
    text-align: center;
    margin: 36px 0 47px;
    font-weight: 800;
    font-size: 32px;
    color: var(--muted);
}

/* Feature cards */
.cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--purple-1);
    width: 293px;
    min-height: 277px;
    padding: 24px 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.card .icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--purple-1);
    flex-shrink: 0;
}

.card .icon svg {
    width: 32px;
    height: 32px;
}

.card h4 {
    font-family: 'VazirmatnExBold';
    margin: 6px 0 0;
    font-size: 16px;
    color: var(--muted);
    font-weight: 800;
    min-height: 32px;
}

.card p {
    margin: 4px 0 0;
    color: #828282;
    font-size: 14px;
    line-height: 190%;
    min-height: auto;
}

/* Footer */
footer.site-footer {
    margin-top: 130px;
}

.footer-top {
    background: var(--purple-1);
    padding: 26px;
    display: flex;
    gap: 116px;
    flex-wrap: wrap;
    min-height: auto;
}

.footer-col {
    flex: 1 1 320px;
    min-width: 240px;
    min-height: auto;
}

.footer-col h5 {
    margin: 0 0 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: 22px;
    padding-top: 22px;
}

.footer-col p {
    max-width: 706px;
}

.footer-col p span {
    margin-top: 40px;
    display: inline-block;
}

.footer-col p,
.footer-col address {
    color: var(--muted);
    margin: 0;
    font-size: 20px;
    line-height: 190%;
}

.footer-bottom {
    background: var(--purple-3);
    color: #fff;
    padding: 20px 16px;
    text-align: center;
    font-size: 20px;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== Responsive Styles ==================== */

/* Tablets and Medium Screens */
@media (max-width: 1024px) {
    .container {
        margin: 24px 32px 0 32px;
    }

    .right-header {
        gap: 40px;
    }

    .logo {
        margin-right: 32px;
    }

    nav.primary {
        gap: 32px;
    }

    nav.primary a {
        font-size: 18px;
    }

    .cra-container {
        margin-left: 60px;
    }

    .hero {
        padding: 48px 56px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p.lead {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-top {
        gap: 60px;
    }
}

/* Small Tablets */
@media (max-width: 900px) {
    .container {
        margin: 20px 24px 0 24px;
    }

    header.site-header {
        min-height: auto;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .right-header {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .logo {
        margin-right: 0;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    nav.primary {
        order: 3;
        width: 100%;
        justify-content: space-around;
        gap: 16px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    nav.primary a {
        font-size: 16px;
    }

    .cra-container {
        margin-left: 0;
        width: 100%;
        order: 2;
    }

    .cta {
        font-size: 18px;
        padding: 12px 24px;
    }

    .hero {
        padding: 32px 24px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p.lead {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
        margin: 32px 0 32px;
    }

    .card {
        width: calc(50% - 15px);
        min-height: auto;
    }

    .footer-top {
        gap: 40px;
        padding: 20px;
    }

    .footer-col h5 {
        font-size: 20px;
    }

    .footer-col p,
    .footer-col address {
        font-size: 18px;
    }

    .footer-bottom {
        font-size: 18px;
        padding: 16px 12px;
    }
}

/* Mobile Phones */
@media (max-width: 560px) {
    .container {
        margin: 16px 16px 0 16px;
    }

    header.site-header {
        padding: 12px 8px;
    }

    .logo img {
        max-width: 60px;
        max-height: 60px;
    }

    nav.primary {
        gap: 12px;
        font-size: 14px;
    }

    nav.primary a {
        font-size: 14px;
    }

    .cta {
        font-size: 16px;
        padding: 10px 20px;
    }

    .hero {
        padding: 24px 16px;
        margin-top: 20px;
    }

    .hero h1 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .hero p.lead {
        font-size: 14px;
        margin-top: 16px;
    }

    .section-title {
        font-size: 20px;
        margin: 24px 0 24px;
    }

    .cards {
        gap: 20px;
    }

    .card {
        width: 100%;
        padding: 20px 24px;
    }

    .card .icon {
        width: 56px;
        height: 56px;
    }

    .card .icon svg {
        width: 28px;
        height: 28px;
    }

    .card h4 {
        font-size: 15px;
    }

    .card p {
        font-size: 13px;
    }

    footer.site-footer {
        margin-top: 60px;
    }

    .footer-top {
        gap: 24px;
        padding: 16px;
    }

    .footer-col {
        flex: 1 1 100%;
    }

    .footer-col h5 {
        font-size: 18px;
        padding-top: 12px;
    }

    .footer-col p,
    .footer-col address {
        font-size: 14px;
    }

    .footer-col p span {
        margin-top: 20px;
    }

    .footer-bottom {
        font-size: 14px;
        padding: 14px 8px;
        min-height: auto;
    }
}

/* Extra Small Devices */
@media (max-width: 380px) {
    .container {
        margin: 12px 12px 0 12px;
    }

    .logo img {
        max-width: 50px;
        max-height: 50px;
    }

    nav.primary a {
        font-size: 12px;
    }

    .cta {
        font-size: 14px;
        padding: 8px 16px;
    }

    .hero h1 {
        font-size: 18px;
    }

    .hero p.lead {
        font-size: 13px;
    }

    .section-title {
        font-size: 18px;
    }

    .card {
        padding: 16px 20px;
    }

    .footer-col h5 {
        font-size: 16px;
    }

    .footer-col p,
    .footer-col address {
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}
