/* ================================================================
   Services section
   ================================================================ */
.services-section {
    padding: 120px 0;
}

/* ---- Section header (reusable pattern) ---- */
.section-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 60px;
}

.section-header__left { max-width: 589px; }

.section-header__line {
    display: block;
    width: 64px;
    height: 4px ;
    background-color: var(--color-accent-primary);
    margin-bottom: 20px;
}

.section-header__title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 700;
    color: var(--color-text-primary);
}

.section-header__desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-top: 20px;
}

.section-header__btn {
    flex-shrink: 0;
    padding: 0 24px;
}

.mobile-section__btn {
    display: none;
}

/* ---- Cards grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ---- Single card ---- */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 20px;
    min-height: 180px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    height: 100%;
}

.service-card:hover {
    border-color: var(--color-accent-primary);
    box-shadow: 0 4px 16px rgba(39, 6, 160, .08);
}

/* Decorative rhombus shape */
.service-card__deco {
    position: absolute;
    top: -40px;
    right: -20px;
    width: 135px;
    height: 135px;
    background-color: #0F513226;
    transform: rotate(45deg);
    pointer-events: none;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    position: relative;
    line-height: 28px;
    z-index: 1;
}

.service-card__desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 22px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 51px;
    font-size: 10px;
    padding: 0 4px;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent-primary);
    margin-top: 20px;
    position: relative;
    z-index: 1;
    transition: gap var(--transition);
}

.service-card:hover .service-card__link { gap: 10px; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .mobile-section__btn {
        display: flex;
        margin: 20px auto 0;
        padding: 0 24px;
        width: max-content;
    }

    .section-header__btn {
        display: none;
    }

    .section-header {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .services-section {
        background-color: #fff;
    }

    .services-section { padding-block: 60px 0; }

    .section-header {
        flex-direction: column;
        gap: 16px;
    }

    .mobile-section__btn {
        width: 100%;
    }


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