@import url('https://fonts.bunny.net/css?family=vazirmatn:400,500,600,700,800,900&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% 12%, rgba(184, 146, 75, .14), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f6f7f5 48%, #ece8df 100%);
    color: #102138;
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(18, 50, 74, .06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(18, 50, 74, .05) 1px, transparent 1px);
    background-size: 96px 96px;
    opacity: .45;
}

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

.services-page {
    position: relative;
    z-index: 1;
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 36px 0 52px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand img {
    width: 174px;
    height: auto;
    max-height: 88px;
    object-fit: contain;
    filter:
        drop-shadow(1px 0 0 rgba(255, 255, 255, .95))
        drop-shadow(-1px 0 0 rgba(255, 255, 255, .95))
        drop-shadow(0 1px 0 rgba(255, 255, 255, .95))
        drop-shadow(0 -1px 0 rgba(255, 255, 255, .95));
}

.brand strong {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.brand span span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    font-weight: 500;
}

.main-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-inline: auto;
    padding: 0;
}

.main-menu a,
.main-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 7px;
    color: rgba(248, 253, 255, .86);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.menu-group {
    position: relative;
}

.menu-group summary {
    cursor: pointer;
    list-style: none;
}

.menu-group summary::-webkit-details-marker {
    display: none;
}

.submenu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 5;
    display: grid;
    min-width: 210px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 38px rgba(2, 22, 34, .22);
}

.submenu a {
    justify-content: flex-start;
    color: #46586d;
}

.nav-toggle,
.mobile-menu-button {
    display: none;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.button {
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .72);
    color: #172033;
    font-size: 14px;
    font-weight: 800;
}

.button.primary {
    border-color: #12324a;
    background: #12324a;
    color: #fff;
}

.services-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: stretch;
    min-height: 430px;
    padding: 42px;
    border: 1px solid #d8ddd5;
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    color: #111827;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .1);
}

.services-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.services-hero-content > span,
.services-intro span,
.services-cta span {
    display: inline-flex;
    padding: 7px 14px;
    border: 1px solid #d8ddd5;
    border-radius: 999px;
    background: #fff;
    color: #12324a;
    font-size: 13px;
    font-weight: 900;
}

.services-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.25;
    letter-spacing: 0;
}

.services-hero p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    font-weight: 800;
    line-height: 2.1;
}

.services-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.services-hero-actions a,
.services-cta a,
.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    background: #12324a;
    color: #fff;
    font-weight: 900;
}

.services-hero-actions a + a {
    border: 1px solid #cfd8df;
    background: #fff;
    color: #12324a;
}

.services-hero-media {
    min-height: 300px;
}

.services-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    object-fit: contain;
    padding: 24px;
    background: #fff;
}

.services-hero-card {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
}

.services-hero-card {
    display: grid;
    place-content: center;
    gap: 12px;
    border: 1px solid #d8ddd5;
    background: #fff;
    text-align: center;
}

.services-hero-card strong {
    font-size: 34px;
}

.services-hero-card span {
    color: #4b5563;
    font-weight: 900;
}

.services-intro {
    display: grid;
    grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
    gap: 28px;
    margin-top: 24px;
    padding: 28px;
    border: 1px solid #d8ddd5;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 45px rgba(17, 24, 39, .08);
}

.services-intro span,
.services-cta span {
    border-color: #d8ddd5;
    color: #8a6a2f;
}

.services-intro h2,
.services-cta h2 {
    margin: 14px 0 0;
    color: #071b33;
    font-size: 30px;
    line-height: 1.5;
}

.services-intro p,
.services-cta p {
    margin: 0;
    color: #496276;
    font-size: 16px;
    font-weight: 800;
    line-height: 2.2;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: 24px;
    border: 1px solid #d8ddd5;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 38px rgba(17, 24, 39, .08);
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #12324a;
    color: #fff;
    font-size: 24px;
}

.service-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff9ec;
    color: #8a6a2f;
    font-size: 12px;
    font-weight: 900;
}

.service-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 18px;
    border-radius: 8px;
    object-fit: cover;
}

.service-subtitle {
    margin-top: 18px;
    color: #8a6a2f;
    font-size: 13px;
    font-weight: 900;
}

.service-card h2 {
    margin: 10px 0 8px;
    color: #071b33;
    font-size: 25px;
    line-height: 1.5;
}

.service-card p {
    margin: 0;
    color: #50677a;
    font-size: 15px;
    font-weight: 800;
    line-height: 2;
}

.service-details {
    margin-top: 16px;
}

.service-details summary {
    cursor: pointer;
    color: #12324a;
    font-weight: 900;
}

.service-description {
    margin-top: 12px;
    color: #32495d;
    font-weight: 800;
    line-height: 2;
}

.service-link {
    width: fit-content;
    margin-top: auto;
}

.services-cta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-top: 24px;
    padding: 30px;
    border: 1px solid #d8ddd5;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 45px rgba(17, 24, 39, .08);
}

.services-cta div {
    max-width: 850px;
}

@media (max-width: 1100px) {
    .services-hero,
    .services-intro {
        grid-template-columns: 1fr;
    }

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

    .topbar {
        align-items: flex-start;
        position: relative;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 8px;
        cursor: pointer;
    }

    .mobile-menu-button span,
    .mobile-menu-button span::before,
    .mobile-menu-button span::after {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
        content: "";
    }

    .mobile-menu-button span::before {
        transform: translateY(-7px);
    }

    .mobile-menu-button span::after {
        transform: translateY(5px);
    }

    .main-menu,
    .top-actions {
        display: none;
    }

    .nav-toggle:checked ~ .main-menu,
    .nav-toggle:checked ~ .top-actions {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        z-index: 10;
        display: grid;
        gap: 8px;
        padding: 14px;
        border-radius: 8px;
        background: rgba(7, 56, 74, .98);
        box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
    }

    .nav-toggle:checked ~ .top-actions {
        top: calc(100% + 260px);
    }

    .submenu {
        position: static;
        margin-top: 6px;
        min-width: 100%;
    }
}

@media (max-width: 720px) {
    .services-page {
        width: min(100% - 24px, 560px);
        padding-top: 20px;
    }

    .services-hero {
        padding: 24px;
    }

    .services-hero-media {
        min-height: 260px;
    }

    .services-hero-media img,
    .services-hero-card {
        min-height: 260px;
    }

    .services-hero h1 {
        font-size: 34px;
    }

    .services-hero p,
    .services-intro p,
    .services-cta p {
        font-size: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
