:root {
    --maintro-blue: #1557d6;
    --maintro-blue-dark: #0d3d9e;
    --maintro-gold: #f5b700;
    --maintro-ink: #17212b;
    --maintro-muted: #586574;
    --maintro-line: #dfe6ef;
}

.maintro-hero {
    align-items: center;
    background-color: #f7faff;
    background-image: url('../landing-images/maintro/hero-ai-home-services.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    height: clamp(500px, 62vh, 620px);
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.maintro-hero__inner {
    align-items: center;
    display: flex;
    height: 100%;
    position: relative;
    z-index: 1;
}

.maintro-hero__content {
    max-width: 590px;
    padding-block: 48px;
}

.maintro-hero__eyebrow {
    align-items: center;
    color: var(--maintro-blue-dark);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 9px;
    letter-spacing: 0;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.maintro-hero__eyebrow i {
    color: var(--maintro-gold);
}

.maintro-hero h1 {
    color: var(--maintro-ink);
    font-size: clamp(2.35rem, 4vw, 4.6rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.03;
    margin: 0;
    max-width: 680px;
    text-wrap: balance;
}

.maintro-hero__content > p {
    color: var(--maintro-muted);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.7;
    margin: 22px 0 0;
    max-width: 560px;
}

.maintro-hero__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.maintro-btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    min-height: 52px;
    padding: 13px 22px;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.maintro-btn:hover {
    transform: translateY(-2px);
}

.maintro-btn--primary {
    background: var(--maintro-blue);
    border: 1px solid var(--maintro-blue);
    color: #fff;
}

.maintro-btn--primary:hover {
    background: var(--maintro-blue-dark);
    border-color: var(--maintro-blue-dark);
    color: #fff;
}

.maintro-btn--secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--maintro-line);
    color: var(--maintro-ink);
}

.maintro-btn--secondary:hover {
    background: #fff;
    border-color: var(--maintro-blue);
    color: var(--maintro-blue);
}

.maintro-hero__trust {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.maintro-hero__trust li {
    align-items: center;
    color: #364453;
    display: flex;
    font-size: 0.83rem;
    font-weight: 600;
    gap: 7px;
}

.maintro-hero__trust i {
    color: var(--maintro-blue);
}

body .section-padding {
    padding-block: clamp(64px, 8vw, 104px);
}

body .iq-title-box h2,
body .iq-title-box h3 {
    color: var(--maintro-ink);
    font-weight: 750;
    letter-spacing: 0;
}

body .category-section .category-box-list,
body .category-box-list,
body .service-box-card {
    border: 1px solid var(--maintro-line);
    border-radius: 8px !important;
    box-shadow: 0 14px 34px rgba(28, 50, 82, 0.07);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body .category-section .category-box-list:hover,
body .category-box-list:hover,
body .service-box-card:hover {
    border-color: rgba(21, 87, 214, 0.35);
    box-shadow: 0 18px 42px rgba(21, 87, 214, 0.13);
    transform: translateY(-4px);
}

body .our-service.bg-light {
    background-color: #f5f8fc !important;
}

body .footer {
    background-color: #121e2c;
}

html[dir="rtl"] .maintro-hero {
    background-position: center center;
}

html[dir="rtl"] .maintro-hero__inner {
    direction: ltr;
}

html[dir="rtl"] .maintro-hero__content {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .maintro-hero__actions i {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .maintro-hero {
        background-position: 58% center;
        height: 560px;
    }

    .maintro-hero::before {
        background: rgba(255, 255, 255, 0.78);
        content: '';
        inset: 0;
        position: absolute;
        z-index: 0;
    }

    .maintro-hero__content {
        max-width: 620px;
    }
}

@media (max-width: 575.98px) {
    .maintro-hero {
        align-items: flex-start;
        background-position: 64% center;
        height: 570px;
    }

    .maintro-hero::before {
        background: rgba(255, 255, 255, 0.84);
    }

    .maintro-hero__content {
        padding-block: 42px 28px;
    }

    .maintro-hero h1 {
        font-size: 2.35rem;
        line-height: 1.08;
    }

    .maintro-hero__content > p {
        font-size: 0.98rem;
        line-height: 1.6;
        margin-top: 16px;
    }

    .maintro-hero__actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 22px;
    }

    .maintro-btn {
        width: 100%;
    }

    .maintro-hero__trust {
        gap: 8px 14px;
        margin-top: 20px;
    }

    .maintro-hero__trust li {
        font-size: 0.76rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maintro-btn,
    body .category-box-list,
    body .service-box-card {
        transition: none;
    }
}
