/* =========================
   Services — NETA Unified Premium Cards
   Matches Hero / Shared System
========================= */

.services-section {
    position: relative;
    padding: var(--neta-section-padding, 112px 0);

    background:
        radial-gradient(
            ellipse 56% 42% at 76% 16%,
            color-mix(in srgb, var(--neta-white, #fffaf1) 78%, transparent),
            transparent 62%
        ),
        radial-gradient(
            circle at 18% 80%,
            color-mix(in srgb, var(--neta-brass, #8f7b5d) 10%, transparent),
            transparent 34%
        ),
        linear-gradient(
            150deg,
            var(--neta-paper-light, #fffaf1) 0%,
            var(--neta-paper, #eee6d8) 56%,
            var(--neta-linen, #ded4c2) 100%
        );

    overflow: hidden;
    isolation: isolate;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 10%;
    left: 10%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--neta-line, rgba(36, 25, 15, 0.14)),
        transparent
    );

    pointer-events: none;
}

.services-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;
    opacity: 0.032;
    mix-blend-mode: multiply;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.services-section .container {
    position: relative;
    z-index: 2;
}

/* =========================
   Head
========================= */

.services-section__head {
    max-width: var(--neta-section-head-width, 820px);
    margin: 0 auto 58px;
    text-align: center;
}

.services-section__head .section-label {
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
}

.services-section__head h2 {
    max-width: 780px;
    margin: 0 auto;

    color: var(--neta-walnut, #24190f);
    font-family: var(--font-display, serif);
    font-size: var(--neta-title-size, clamp(52px, 7vw, 92px));
    font-weight: 650;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.services-section__head p {
    max-width: 680px;
    margin: 24px auto 0;

    color: var(--neta-walnut-soft, #4d4035);
    font-family: var(--font-body, sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.85;
}

/* =========================
   Grid
========================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;

    margin-top: 0;
}

/* =========================
   Card
========================= */

.service-card {
    position: relative;

    min-height: 300px;
    padding: 34px;
    border-radius: var(--neta-card-radius, 28px);

    overflow: hidden;
    isolation: isolate;

    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--neta-white, #fffaf1) 88%, transparent),
            color-mix(in srgb, var(--neta-paper-light, #fffaf1) 66%, transparent)
        );

    border: 1px solid color-mix(in srgb, var(--neta-line-soft, rgba(36, 25, 15, 0.08)) 92%, transparent);

    box-shadow:
        0 24px 70px rgba(36, 25, 15, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    text-align: right;

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 1;

    border: 1px solid color-mix(in srgb, var(--neta-white, #fffaf1) 42%, transparent);
    border-radius: calc(var(--neta-card-radius, 28px) - 10px);

    pointer-events: none;
}

.service-card::after {
    content: "";
    position: absolute;
    top: -18%;
    right: -18%;
    z-index: 0;

    width: 180px;
    height: 180px;
    border-radius: 999px;

    background: color-mix(in srgb, var(--neta-brass, #8f7b5d) 10%, transparent);
    filter: blur(4px);
    opacity: 0.65;

    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--neta-brass, #8f7b5d) 34%, transparent);

    box-shadow:
        0 34px 86px rgba(36, 25, 15, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

/* =========================
   Icon
========================= */

.service-card__icon {
    position: relative;
    z-index: 2;

    width: 58px;
    height: 58px;
    margin-bottom: 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--neta-white, #fffaf1) 82%, transparent),
            color-mix(in srgb, var(--neta-paper, #eee6d8) 70%, transparent)
        );

    border: 1px solid color-mix(in srgb, var(--neta-line-soft, rgba(36, 25, 15, 0.08)) 90%, transparent);

    color: var(--neta-walnut, #24190f);

    box-shadow:
        0 12px 28px rgba(36, 25, 15, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.service-card__icon i {
    font-size: 27px;
    line-height: 1;
    color: currentColor;
}

.service-card__icon img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
    filter: sepia(0.35) saturate(1.05) contrast(0.98);
}

/* =========================
   Text
========================= */

.service-card h3 {
    position: relative;
    z-index: 2;

    margin: 0 0 14px;

    color: var(--neta-walnut, #24190f);
    font-family: var(--font-display, serif);
    font-size: 26px;
    font-weight: 650;
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.service-card p {
    position: relative;
    z-index: 2;

    max-width: 310px;
    margin: 0;

    color: var(--neta-walnut-soft, #4d4035);
    font-family: var(--font-body, sans-serif);
    font-size: 16.2px;
    font-weight: 400;
    line-height: 1.82;
}

/* =========================
   Tablet
========================= */

@media (max-width: 1024px) {
    .services-section {
        padding: 88px 0;
    }

    .services-section__head {
        margin-bottom: 46px;
    }

    .services-section__head h2 {
        font-size: clamp(46px, 7vw, 76px);
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .service-card {
        min-height: 280px;
        padding: 32px;
    }
}

/* =========================
   Mobile
========================= */

@media (max-width: 899px) {
    .services-section {
        padding: var(--neta-section-padding-mobile, 58px 0 64px);
    }

    .services-section__head {
        max-width: 430px;
        margin-bottom: 32px;
    }

    .services-section__head .section-label {
        margin: 0 auto 14px;
        justify-content: center;

        font-size: 11px;
        letter-spacing: 0.2em;
    }

    .services-section__head .section-label::before {
        width: 28px;
    }

    .services-section__head h2 {
        max-width: 390px;

        font-size: var(--neta-title-size-mobile, clamp(36px, 10vw, 52px));
        line-height: 1.04;
        letter-spacing: -0.05em;
    }

    .services-section__head p {
        max-width: 380px;
        margin-top: 16px;

        font-size: 15.8px;
        line-height: 1.65;
    }

    .services-grid {
        width: min(100%, 430px);
        margin: 0 auto;

        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        min-height: auto;
        padding: 24px;
        border-radius: 22px;

        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 0 16px;
        align-items: start;

        text-align: right;
    }

    .service-card::before {
        inset: 10px;
        border-radius: 14px;
    }

    .service-card::after {
        width: 130px;
        height: 130px;
        opacity: 0.52;
    }

    .service-card__icon {
        grid-column: 1;
        grid-row: 1 / span 2;

        width: 52px;
        height: 52px;
        margin: 0;

        border-radius: 16px;
    }

    .service-card__icon i {
        font-size: 24px;
    }

    .service-card h3 {
        grid-column: 2;
        grid-row: 1;

        margin: 0 0 8px;

        font-size: 22px;
        line-height: 1.15;
    }

    .service-card p {
        grid-column: 2;
        grid-row: 2;

        max-width: none;

        font-size: 14.8px;
        line-height: 1.58;
    }
}

/* =========================
   Small Mobile
========================= */

@media (max-width: 560px) {
    .services-section {
        padding: 52px 0 58px;
    }

    .services-section__head {
        margin-bottom: 28px;
    }

    .services-section__head h2 {
        max-width: 350px;
        font-size: clamp(34px, 10vw, 46px);
    }

    .services-section__head p {
        max-width: 340px;
        font-size: 15.2px;
        line-height: 1.62;
    }

    .services-grid {
        width: 100%;
        gap: 10px;
    }

    .service-card {
        padding: 22px 20px;
        grid-template-columns: 50px 1fr;
        gap: 0 14px;
    }

    .service-card__icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .service-card__icon i {
        font-size: 23px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 14.2px;
        line-height: 1.55;
    }
}

/* =========================
   Very Small Mobile
========================= */

@media (max-width: 390px) {
    .services-section {
        padding: 46px 0 52px;
    }

    .services-section__head h2 {
        font-size: 32px;
    }

    .services-section__head p {
        font-size: 14.8px;
    }

    .service-card {
        padding: 20px 18px;
        grid-template-columns: 46px 1fr;
        gap: 0 12px;
    }

    .service-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .service-card__icon i {
        font-size: 21px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 13.8px;
        line-height: 1.52;
    }
}

/* =========================
   Touch / Reduced Motion
========================= */

@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none !important;
    }

    .service-card:hover {
        transform: none;
    }
}