/*
 * Dịch vụ chính trang chủ.
 * Bám reference GOLDEN CARGO: dải xanh, lưới ba dịch vụ phẳng và ảnh bo hai góc.
 */

.gc-home-services {
    overflow: hidden;
    color: var(--project-color-text);
    background: var(--project-color-background);
}

.gc-home-services__heading {
    position: relative;
    display: flex;
    min-height: 90px;
    align-items: center;
    background: var(--project-color-primary);
}

.gc-home-services__heading::after {
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 20px solid var(--project-color-primary);
    border-right: 20px solid transparent;
    border-left: 20px solid transparent;
    content: "";
    transform: translateX(-50%);
}

.gc-home-services__heading h2 {
    margin: 0;
    color: var(--project-color-inverse);
    font-size: var(--project-font-size-section-title);
    font-weight: var(--project-font-weight-regular);
    line-height: var(--project-line-height-heading);
    text-align: center;
    text-transform: uppercase;
}

.gc-home-services__content {
    padding-top: 34px;
    padding-bottom: 42px;
}

.gc-home-services__intro {
    max-width: 1120px;
    margin: 0 auto 22px;
    color: var(--project-color-text);
    font-size: 16px;
    font-weight: var(--project-font-weight-semibold);
    line-height: 1.65;
    text-align: center;
}

.gc-home-services__intro > :last-child {
    margin-bottom: 0;
}

.gc-home-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.gc-home-services__item {
    min-width: 0;
    text-align: center;
}

.gc-home-services__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1.47 / 1;
    border-radius: var(--project-radius-image);
    background: var(--project-color-surface);
}

.gc-home-services__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gc-home-services__item h3 {
    margin: 20px 0 10px;
    font-size: 24px;
    font-weight: var(--project-font-weight-regular);
    line-height: 1.35;
    text-transform: uppercase;
}

.gc-home-services__item h3 a {
    color: var(--project-color-text);
    text-decoration: none;
    transition: color var(--project-transition);
}

.gc-home-services__item h3 a:hover,
.gc-home-services__item h3 a:focus-visible {
    color: var(--project-color-primary);
}

.gc-home-services__description {
    color: var(--project-color-text);
    font-size: 14px;
    line-height: 1.75;
}

.gc-home-services__description > :last-child {
    margin-bottom: 0;
}

.gc-home-services__action {
    margin-top: 40px;
    text-align: center;
}

.gc-home-services__button {
    min-width: 245px;
}

.gc-home-services__button:hover,
.gc-home-services__button:active,
.gc-home-services__button:focus-visible {
    border-color: var(--project-color-accent);
    color: var(--project-color-inverse);
    background-color: var(--project-color-accent);
}

@media (max-width: 991px) {
    .gc-home-services__heading {
        min-height: 90px;
    }

    .gc-home-services__heading h2 {
        font-size: 30px;
    }

    .gc-home-services__content {
        padding-top: 36px;
        padding-bottom: 48px;
    }

    .gc-home-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 28px;
    }

    .gc-home-services__item h3 {
        font-size: 21px;
    }
}

@media (max-width: 575px) {
    .gc-home-services__heading {
        min-height: 76px;
    }

    .gc-home-services__heading::after {
        border-top-width: 18px;
        border-right-width: 18px;
        border-left-width: 18px;
    }

    .gc-home-services__heading h2 {
        font-size: 23px;
    }

    .gc-home-services__content {
        padding-top: 38px;
        padding-bottom: 44px;
    }

    .gc-home-services__intro {
        margin-bottom: 24px;
        font-size: 14px;
    }

    .gc-home-services__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .gc-home-services__item h3 {
        margin-top: 17px;
        font-size: 20px;
    }

    .gc-home-services__action {
        margin-top: 34px;
    }

    .gc-home-services__button {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gc-home-services__item h3 a {
        transition: none;
    }
}
