/* ═══════════════════════════════════════════════════════
   services.css — PiratesGaming
═══════════════════════════════════════════════════════ */

/* ── Keyframes ─────────────────────────────────────── */
@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes barExpand {
    from {
        opacity: 0;
        transform: scaleX(0.4);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* ── Header ────────────────────────────────────────── */
.services-hero {
    padding: 1.8rem 2rem 0;
    text-align: center;
}

.services-tag {
    display: none;
}

.services-eyebrow {
    font-family: var(--f-main);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 165, 0, 0.55);
    margin: 0 0 0.45rem;
    opacity: 0;
    animation: titleReveal 0.5s cubic-bezier(0.16,1,0.3,1) 0s forwards;
}

.services-title {
    font-family: 'Barlow Condensed', var(--f-main), sans-serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 0.95;
    margin: 0 0 0.5rem;
    opacity: 0;
    animation: titleReveal 0.6s cubic-bezier(0.16,1,0.3,1) 0.12s forwards;
}

    .services-title .hl {
        color: var(--orange);
        -webkit-text-stroke: 1px rgba(255,165,0,0.4);
    }

.services-subtitle {
    font-family: var(--f-main);
    font-size: clamp(0.72rem, 1.2vw, 0.82rem);
    font-weight: 400;
    color: rgba(255,255,255,0.38);
    line-height: 1.6;
    margin: 0 auto 0;
    max-width: 340px;
    opacity: 0;
    animation: titleReveal 0.6s cubic-bezier(0.16,1,0.3,1) 0.28s forwards;
}

.services-title-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0.7rem auto 0;
    opacity: 0;
    animation: barExpand 0.6s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}

    .services-title-bar::before,
    .services-title-bar::after {
        content: '';
        height: 2px;
        border-radius: 2px;
        background: rgba(255,255,255,0.18);
        width: 48px;
    }

.services-title-bar-center {
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--orange);
    box-shadow: 0 0 14px rgba(255,165,0,0.6), 0 0 32px rgba(255,165,0,0.25);
}

/* ── Grid ──────────────────────────────────────────── */
.services-section {
    padding: 1.2rem 0 9rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ═══════════════════════════════════════════════════
   CARD — entrance controlled by JS (.is-visible)
═══════════════════════════════════════════════════ */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(10,10,10,0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.07);
    /* start state */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.4s ease;
}
    /* revealed state */
    .service-card.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card:hover {
        border-color: rgba(255,165,0,0.28);
        box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,165,0,0.10);
        transform: translateY(-7px);
    }
    /* keep hover lift only after visible */
    .service-card.is-visible:hover {
        transform: translateY(-7px);
    }

    .service-card.featured {
        background: rgba(14,13,8,0.78);
        backdrop-filter: blur(12px);
        border-color: rgba(255,165,0,0.15);
    }

    /* top glow line */
    .service-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,165,0,0.55), transparent);
        opacity: 0;
        transition: opacity 0.35s;
    }

    .service-card:hover::after,
    .service-card.featured::after {
        opacity: 1;
    }

/* ── Card hero ─────────────────────────────────────── */
.card-hero {
    padding: 2.2rem 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    background: linear-gradient(150deg, rgba(255,165,0,0.05) 0%, transparent 55%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.service-card.featured .card-hero {
    background: linear-gradient(150deg, rgba(255,165,0,0.10) 0%, transparent 55%);
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--f-main);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0a0a0a;
    background: var(--orange);
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
}

.card-tier {
    font-family: var(--f-main);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255,165,0,0.42);
    margin-bottom: 0.55rem;
    transition: color 0.3s;
}

.service-card:hover .card-tier {
    color: rgba(255,165,0,0.75);
}

.card-price {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    line-height: 1;
}

.card-price-amount {
    font-family: var(--f-main);
    font-size: 4.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: rgba(195,115,5,0.58);
    line-height: 1;
    transition: color 0.3s;
}

.service-card:hover .card-price-amount,
.service-card.featured .card-price-amount {
    color: var(--orange);
}

.card-price-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 0.5rem;
    gap: 0.04rem;
}

.card-price-currency {
    font-family: var(--f-main);
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,165,0,0.42);
}

.card-price-unit {
    font-family: var(--f-main);
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,165,0,0.26);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Specs ─────────────────────────────────────────── */
.card-specs-section {
    padding: 0.5rem 0 1rem;
    flex: 1;
}

.card-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
}

    .card-specs li {
        display: grid;
        grid-template-columns: 18px 1fr;
        align-items: center;
        gap: 0.8rem;
        padding: 0.62rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.034);
        /* start hidden — JS adds .is-visible to parent card */
        opacity: 0;
        transform: translateX(-8px);
        transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s;
    }

        .card-specs li:last-child {
            border-bottom: none;
        }

/* When card is visible, specs reveal with stagger via JS inline delay */
.service-card.is-visible .card-specs li {
    opacity: 1;
    transform: translateX(0);
}

.card-specs li i {
    font-size: 0.82rem;
    color: rgba(170,100,0,0.36);
    text-align: center;
    justify-self: center;
    transition: color 0.25s;
}

.service-card:hover .card-specs li i {
    color: rgba(255,165,0,0.55);
}

.spec-text {
    display: flex;
    flex-direction: column;
    gap: 0.03rem;
}

.spec-label {
    font-family: var(--f-main);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.17);
}

.spec-value {
    font-family: var(--f-main);
    font-size: 0.83rem;
    font-weight: 500;
    color: rgba(210,210,210,0.38);
    line-height: 1.3;
    transition: color 0.25s;
}

.service-card:hover .spec-value {
    color: rgba(210,210,210,0.82);
}

.card-specs li:first-child .spec-value {
    font-weight: 600;
    color: rgba(210,210,210,0.56);
}

.service-card:hover .card-specs li:first-child .spec-value {
    color: rgba(255,200,55,0.95);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2,1fr);
        max-width: 780px;
    }
}

@media (max-width: 580px) {
    .cards-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .card-price-amount {
        font-size: 3.4rem;
    }
}


/* ── Background — same system as ProPlayer ──────────── */

/* Nav & footer above fixed bg */
footer, .main-nav {
    position: relative;
    z-index: 50 !important;
}

.mobile-bottom-nav {
    z-index: 999 !important;
}

/* BG wrap — true fixed fullscreen */
.svc-bg-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Image — smooth cinematic scale-in */
.svc-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    will-change: transform, opacity;
    animation: bgScaleIn 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bgScaleIn {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1.0);
    }
}

/* Overlay — solid dark, same as ProPlayer */
.svc-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.65);
}

/* Page content above bg + overlay */
.services-page-bg {
    position: relative;
    z-index: 10;
}
