/* Homepage Uzmanlıklar — premium specialty grid */
.home-expertise {
    --hx-pink: #e31c79;
    --hx-purple: #702082;
    --hx-deep: #4a1560;
    --hx-ink: #1c1028;
    --hx-muted: rgba(28, 16, 40, 0.68);
    --hx-line: rgba(112, 32, 130, 0.12);
    position: relative;
    isolation: isolate;
    margin: 28px 0 40px;
    padding: 64px 0 72px;
    overflow: hidden;
    background: transparent !important;
}

.home-expertise__atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(80% 60% at 0% 0%, rgba(227, 28, 121, 0.07), transparent 55%),
        radial-gradient(70% 50% at 100% 30%, rgba(112, 32, 130, 0.08), transparent 50%),
        linear-gradient(180deg, #fffafc 0%, #f6f0f8 100%);
}

.home-expertise__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}

.home-expertise__eyebrow {
    display: inline-flex;
    margin: 0 0 10px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(227, 28, 121, 0.2);
    background: rgba(227, 28, 121, 0.08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hx-pink);
}

.home-expertise__title {
    margin: 0 0 10px;
    font-family: Saira, Quicksand, sans-serif;
    font-size: clamp(1.7rem, 3.2vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--hx-deep);
}

.home-expertise__lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--hx-muted);
}

.home-expertise__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.hx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hx-line);
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 10px 28px rgba(42, 16, 56, 0.06);
    transform: translateY(22px);
    opacity: 0;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        opacity 0.55s ease;
}

.home-expertise.is-inview .hx-card {
    opacity: 1;
    transform: translateY(0);
}

.home-expertise.is-inview .hx-card:nth-child(1) { transition-delay: 0.04s; }
.home-expertise.is-inview .hx-card:nth-child(2) { transition-delay: 0.1s; }
.home-expertise.is-inview .hx-card:nth-child(3) { transition-delay: 0.16s; }
.home-expertise.is-inview .hx-card:nth-child(4) { transition-delay: 0.22s; }
.home-expertise.is-inview .hx-card:nth-child(5) { transition-delay: 0.28s; }
.home-expertise.is-inview .hx-card:nth-child(6) { transition-delay: 0.34s; }
.home-expertise.is-inview .hx-card:nth-child(7) { transition-delay: 0.4s; }
.home-expertise.is-inview .hx-card:nth-child(8) { transition-delay: 0.46s; }

.hx-card:hover {
    transform: translateY(-8px);
    border-color: rgba(227, 28, 121, 0.28);
    box-shadow: 0 22px 44px rgba(112, 32, 130, 0.16);
}

.hx-card__media {
    position: relative;
    display: block;
    height: 0;
    padding-bottom: 78%;
    overflow: hidden;
    background: linear-gradient(145deg, #702082, #e31c79);
}

.hx-card__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hx-card:hover .hx-card__media img {
    transform: scale(1.08);
}

.hx-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(30, 10, 42, 0.35) 100%);
    opacity: 0.85;
    transition: opacity 0.35s ease, background 0.35s ease;
    pointer-events: none;
}

.hx-card:hover .hx-card__media::after {
    background: linear-gradient(180deg, rgba(112, 32, 130, 0.15) 0%, rgba(227, 28, 121, 0.45) 100%);
    opacity: 1;
}

.hx-card__body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 16px 18px;
    background: #fff;
    transition: background 0.35s ease;
}

.hx-card:hover .hx-card__body {
    background: linear-gradient(137deg, #e31c79 0%, #702082 100%);
}

.hx-card__title {
    margin: 0;
    font-family: Saira, Quicksand, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hx-ink);
    transition: color 0.35s ease;
}

.hx-card:hover .hx-card__title {
    color: #fff;
}

.hx-card__arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 28, 121, 0.1);
    color: var(--hx-pink);
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.hx-card__arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.hx-card:hover .hx-card__arrow {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateX(3px);
}

@media (max-width: 1199.98px) {
    .home-expertise__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .home-expertise__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 575.98px) {
    .home-expertise {
        padding: 40px 0 48px;
        margin: 16px 0 28px;
    }

    .home-expertise__grid {
        grid-template-columns: 1fr;
    }

    .hx-card__media {
        padding-bottom: 62%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hx-card,
    .hx-card__media img,
    .hx-card__arrow {
        transition: none !important;
    }

    .hx-card {
        opacity: 1;
        transform: none;
    }
}
