/**
 * Home Services Section — eFormax
 * Brand: #00332B · #004236 · #F7D15E · #E6F4F9 · #F0F8FB
 */

.hs-section {
    --hs-primary: #00332b;
    --hs-primary-mid: #004236;
    --hs-accent: #f7d15e;
    --hs-bg: #e6f4f9;
    --hs-card: #f0f8fb;
    --hs-text: #1a3d36;
    --hs-muted: #4a6b65;
    --hs-white: #ffffff;
    --hs-radius: 16px;
    --hs-shadow: 0 16px 48px rgba(0, 51, 43, 0.1);
    padding: 4.5rem 0 5rem;
    background: linear-gradient(180deg, var(--hs-white) 0%, var(--hs-bg) 55%, var(--hs-white) 100%);
    position: relative;
    overflow: hidden;
}

.hs-section__head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.75rem;
}

.hs-section__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hs-primary-mid);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 66, 54, 0.1);
    border-left: 3px solid var(--hs-accent);
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.hs-section__title {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--hs-primary);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.hs-section__subtitle {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--hs-muted);
    margin: 0;
}

.hs-section__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 2rem;
    margin-top: 2rem;
}

.hs-section__footer--cta-only {
    justify-content: center;
}

.hs-section__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hs-primary) !important;
    background: var(--hs-white);
    border: 2px solid rgba(0, 51, 43, 0.12);
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hs-section__link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hs-section__link:hover {
    transform: translateY(-2px);
    border-color: var(--hs-primary);
    box-shadow: 0 10px 28px rgba(0, 51, 43, 0.12);
    color: var(--hs-primary) !important;
}

.hs-slider {
    position: relative;
}

.hs-services-swiper {
    overflow: hidden;
    padding-bottom: 0.25rem;
}

.hs-services-swiper .swiper-wrapper {
    align-items: stretch;
}

.hs-services-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.hs-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: var(--hs-white);
    border-radius: var(--hs-radius);
    border: 1px solid rgba(0, 51, 43, 0.08);
    box-shadow: 0 4px 24px rgba(0, 51, 43, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hs-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hs-shadow);
    border-color: rgba(0, 51, 43, 0.14);
}

.hs-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.375rem 1.25rem 1.25rem;
    min-height: 108px;
}

.hs-card__head--1 {
    background: linear-gradient(135deg, rgba(247, 209, 94, 0.35) 0%, rgba(247, 209, 94, 0.15) 100%);
}

.hs-card__head--2 {
    background: linear-gradient(135deg, var(--hs-card) 0%, rgba(230, 244, 249, 0.9) 100%);
}

.hs-card__head--3 {
    background: linear-gradient(135deg, rgba(0, 66, 54, 0.06) 0%, rgba(230, 244, 249, 0.95) 100%);
}

.hs-card__head--4 {
    background: linear-gradient(135deg, rgba(247, 209, 94, 0.2) 0%, var(--hs-card) 100%);
}

.hs-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hs-white);
    border-radius: 12px;
    border: 1px solid rgba(0, 51, 43, 0.06);
    box-shadow: 0 4px 12px rgba(0, 51, 43, 0.06);
}

.hs-card__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.hs-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.hs-card__title a {
    color: var(--hs-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hs-card__title a:hover {
    color: var(--hs-primary-mid);
}

.hs-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 1.25rem 1.375rem;
}

.hs-card__text {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--hs-muted);
    margin: 0 0 1.125rem;
}

.hs-card__text p {
    margin: 0;
}

.hs-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hs-primary) !important;
    text-decoration: none !important;
    transition: gap 0.2s ease, color 0.2s ease;
}

.hs-card__link:hover {
    gap: 0.55rem;
    color: var(--hs-primary-mid) !important;
}

.hs-card__link svg {
    width: 16px;
    height: 16px;
}

.hs-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0;
}

.hs-slider__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 51, 43, 0.12);
    border-radius: 50%;
    background: var(--hs-white);
    color: var(--hs-primary);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hs-slider__arrow:hover {
    background: var(--hs-primary);
    border-color: var(--hs-primary);
    color: var(--hs-white);
    box-shadow: 0 8px 20px rgba(0, 51, 43, 0.18);
}

.hs-slider__arrow svg {
    width: 18px;
    height: 18px;
}

.hs-slider__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 12px;
}

.hs-slider__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: rgba(0, 51, 43, 0.2);
    opacity: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hs-slider__pagination .swiper-pagination-bullet-active {
    background: var(--hs-primary);
    transform: scale(1.25);
}

@media (min-width: 768px) {
    .hs-section__footer {
        justify-content: space-between;
    }

    .hs-section__footer--cta-only {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hs-section {
        padding: 3.5rem 0 4rem;
    }

    .hs-card {
        min-height: 260px;
    }

    .hs-section__footer {
        flex-direction: column;
    }

    .hs-section__link {
        width: 100%;
        justify-content: center;
    }
}
