/* ===== reset & base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f2f8fe;
    color: #0a1e3c;
    padding: 0;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 30px 60px -20px rgba(0, 20, 50, 0.12);
    overflow: hidden;
    padding: 0 0 3rem 0;
}

/* ===== header ===== */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 1.8rem;
    padding: 1.2rem 2.8rem 1rem;
    border-bottom: 2px solid rgba(26, 60, 140, 0.06);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.92);
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, #0b2a6b, #2850b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.logo .sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: #4f6a92;
    display: block;
    -webkit-text-fill-color: #4f6a92;
    margin-top: 2px;
}

.nav-pill {
    display: flex;
    flex-wrap: wrap;
    background: #ecf3fe;
    padding: 0.2rem 0.6rem;
    border-radius: 60px;
    gap: 0.1rem;
    border: 1px solid #d2e0fa;
}

.nav-pill a {
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    color: #1a3570;
    text-decoration: none;
    transition: 0.15s;
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-pill a:hover {
    background: #ffffff80;
}

.nav-pill a.active {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 20, 60, 0.06);
}

/* ===== content sections ===== */
.content-wrap {
    padding: 0 2.8rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.8rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    scroll-margin-top: 100px;
}

.section-title small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #3b5b8a;
    background: #eaf1fd;
    padding: 0.2rem 1.4rem;
    border-radius: 60px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 0.2rem;
}

.service-card {
    background: #ffffff;
    border-radius: 2rem;
    padding: 1.8rem 1.4rem 1.6rem;
    border: 1px solid #e9f0fc;
    box-shadow: 0 10px 24px -12px rgba(0, 20, 50, 0.08);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: #b8ceff;
    box-shadow: 0 24px 44px -18px rgba(20, 60, 150, 0.16);
}
.service-card .icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 0.2rem;
}
.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0b244f;
    margin: 0.5rem 0 0.2rem;
}
.service-card .tag {
    background: #eaf1fd;
    border-radius: 40px;
    padding: 0.1rem 1.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1f4290;
    border: 1px solid #d3e0fc;
    margin: 0.2rem 0 0.7rem;
}
.service-card p {
    color: #314f7a;
    font-size: 0.95rem;
    flex: 1;
    margin: 0.2rem 0 1rem;
}
.btn-ghost {
    border: 1px solid #c5d7fc;
    background: transparent;
    padding: 0.3rem 1.4rem;
    border-radius: 40px;
    font-weight: 500;
    color: #1b3d80;
    cursor: default;
    font-size: 0.85rem;
    transition: 0.1s;
    margin-top: 0.2rem;
}
.btn-ghost:hover {
    background: #ecf3ff;
    border-color: #6e93e6;
}

/* ===== بنرها ===== */
.banner-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-radius: 2.2rem;
    padding: 1.8rem 2.5rem;
    margin: 2.5rem 0 1rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.banner-row .banner-icon {
    font-size: 4.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 20, 40, 0.05));
    flex-shrink: 0;
}
.banner-row .banner-text {
    flex: 1;
}
.banner-row .banner-text h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0b1e4a;
}
.banner-row .banner-text p {
    color: #2d4b78;
    margin-top: 0.3rem;
}
.banner-row .banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    margin-top: 0.8rem;
}
.banner-row .banner-features span {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.2rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    color: #0a2860;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.banner-row .banner-tag {
    background: #1d3f83;
    color: white;
    padding: 0.4rem 2rem;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    cursor: default;
    transition: 0.2s;
}
.banner-row .banner-tag:hover {
    transform: scale(1.03);
}

/* ===== contact ===== */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 1.5rem;
    background: #f6faff;
    border-radius: 2.2rem;
    padding: 2.2rem 2.5rem;
    border: 1px solid #e2ebfd;
}
.contact-info {
    flex: 1 1 260px;
}
.contact-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0b1e4a;
    margin-bottom: 0.5rem;
}
.contact-info p {
    color: #2d4b78;
    margin-bottom: 1.2rem;
}
.contact-info .detail {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #1a3870;
}
.contact-info .detail span {
    font-size: 1.4rem;
}

/* ===== footer ===== */
.footer-area {
    margin-top: 3.5rem;
    padding: 1.8rem 2.8rem 1.5rem;
    border-top: 2px solid #e9f0fc;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem 1.5rem;
    color: #2c4a78;
}
.footer-area .trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
}
.footer-area .trust span {
    background: #f0f6ff;
    padding: 0.1rem 1.4rem;
    border-radius: 60px;
    border: 1px solid #dae5fa;
    font-size: 0.8rem;
}

/* ===== back to top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #1d3f83;
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(29, 63, 131, 0.25);
    transition: 0.25s;
    z-index: 100;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.back-to-top:hover {
    background: #0b2a6b;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(29, 63, 131, 0.35);
}

/* ===== responsive ===== */
@media (max-width: 760px) {
    .header {
        padding: 0.8rem 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .content-wrap {
        padding: 0 1.2rem;
    }
    .section-title {
        font-size: 1.5rem;
        scroll-margin-top: 130px;
    }
    .grid-4 {
        gap: 1.2rem;
    }
    .banner-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
    }
    .banner-row .banner-icon {
        font-size: 3rem;
    }
    .banner-row .banner-text h4 {
        font-size: 1.2rem;
    }
    .contact-wrapper {
        flex-direction: column;
        padding: 1.5rem;
    }
    .footer-area {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 1.2rem 0;
    }
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
}

@media (max-width: 420px) {
    .nav-pill a {
        padding: 0.2rem 0.7rem;
        font-size: 0.75rem;
    }
    .logo h1 {
        font-size: 1.6rem;
    }
    .section-title {
        scroll-margin-top: 140px;
        font-size: 1.3rem;
    }
    .section-title small {
        font-size: 0.7rem;
        padding: 0.1rem 1rem;
    }
    .banner-row {
        padding: 1rem;
    }
    .banner-row .banner-icon {
        font-size: 2.5rem;
    }
}