/* ==============================================================
   home-services.css — seção Serviços Especializados (home)
   Variação do design de Soluções: tinta teal + barra LATERAL
   esquerda no hover (em vez de barra superior) + featured card
   com gradient navy→secondary (mais escuro que o de Soluções).
   Escopo: .services, .service-card
   ============================================================== */

.services {
    position: relative;
    padding: 110px 0 100px;
    /* Mantém o bg gray sutil do template (bg-gray-100) para contrastar
       com a seção Soluções (branca) e criar ritmo visual diferente */
    overflow: hidden;
    isolation: isolate;
}

/* Fundo decorativo — glows em posições opostas aos de Soluções */
.services::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(125, 211, 239, 0.1), transparent 70%);
    filter: blur(70px);
    z-index: 0;
    pointer-events: none;
}

.services::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(31, 111, 170, 0.08), transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.services > .container {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------
   Grid (3 colunas em desktop)
   -------------------------------------------------------------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --------------------------------------------------------------
   Card de cada serviço
   -------------------------------------------------------------- */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 30px 36px 34px;   /* um pouco mais de padding-left p/ barra */
    background:
        radial-gradient(circle at 100% 100%, rgba(125, 211, 239, 0.12), transparent 55%),
        radial-gradient(circle at 0% 0%, rgba(31, 111, 170, 0.06), transparent 55%),
        linear-gradient(150deg, #ffffff 0%, #f3f9fa 55%, #e5f1f3 100%);
    border: 1px solid rgba(45, 182, 222, 0.14);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(10, 58, 104, 0.05);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease,
                background 0.35s ease;
}

/* VARIAÇÃO DE LAYOUT: barra LATERAL (vertical) à esquerda, em vez de
   barra superior. Distinguishes services from solutions cards. */
.service-card::before {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, #2DB6DE, #7DD3EF);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease, top 0.4s ease, bottom 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(45, 182, 222, 0.4);
    box-shadow: 0 22px 48px rgba(10, 58, 104, 0.14);
    background:
        radial-gradient(circle at 100% 100%, rgba(125, 211, 239, 0.18), transparent 55%),
        radial-gradient(circle at 0% 0%, rgba(31, 111, 170, 0.08), transparent 55%),
        linear-gradient(150deg, #ffffff 0%, #ecf5f7 55%, #d7e9ec 100%);
    text-decoration: none;
    color: inherit;
}

.service-card:hover::before {
    transform: scaleY(1);
    top: 0;
    bottom: 0;
}

/* --- Ícone line-art puro (sem container colorido) --- */
.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: transform 0.35s ease;
}

.service-card:hover .service-card__icon {
    transform: scale(1.08);
}

.service-card__icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.service-card__title {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-primary);
    margin: 0 0 12px;
}

.service-card__desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-gray);
    margin: 0 0 22px;
    flex: 1;
}

.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.01em;
    transition: gap 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-card__cta {
    gap: 12px;
    color: var(--color-accent);
}

.service-card__arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__arrow {
    transform: translateX(4px);
}

/* --------------------------------------------------------------
   Card "Ver todos" — featured com gradient NAVY→SECONDARY
   (mais escuro/corporativo, distingue do featured de Soluções)
   -------------------------------------------------------------- */
.service-card--featured {
    background:
        radial-gradient(500px 280px at 15% -10%, rgba(125, 211, 239, 0.22), transparent 65%),
        linear-gradient(135deg, #0A3A68 0%, #1F6FAA 100%);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--color-white);
    box-shadow: 0 14px 36px rgba(10, 58, 104, 0.25);
}

/* Barra lateral do featured com cores claras */
.service-card--featured::before {
    background: linear-gradient(180deg, #7DD3EF, #ffffff, #7DD3EF);
}

.service-card--featured .service-card__icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.service-card--featured .service-card__icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.service-card--featured .service-card__title,
.service-card--featured .service-card__desc {
    color: var(--color-white);
}

.service-card--featured .service-card__desc {
    opacity: 0.9;
}

.service-card--featured .service-card__cta {
    color: #7DD3EF;
}

.service-card--featured:hover {
    /* Preserva o gradient (evita sobrescrita do hover padrão) */
    background:
        radial-gradient(500px 280px at 15% -10%, rgba(125, 211, 239, 0.3), transparent 65%),
        linear-gradient(135deg, #0A3A68 0%, #1F6FAA 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 22px 56px rgba(10, 58, 104, 0.35),
                0 0 0 1px rgba(125, 211, 239, 0.2);
}

.service-card--featured:hover .service-card__cta {
    color: var(--color-white);
}

/* --------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .services { padding: 80px 0 72px; }
    .services__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .service-card { padding: 30px 24px 30px 28px; }
    .service-card__icon { margin-bottom: 18px; }
    .service-card__icon img { width: 52px; height: 52px; }

    .service-card--featured .service-card__icon { width: 56px; height: 56px; }
    .service-card--featured .service-card__icon img { width: 28px; height: 28px; }
}

@media (max-width: 575.98px) {
    .services { padding: 64px 0; }
    .services__grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 26px 22px 26px 26px; border-radius: 14px; }
}
