/* ============================================
   FITNFLEX — Services Page
   Clean card design with SVG icons
   ============================================ */

/* ── Hero ── */
.svc-hero {
    padding-top: 160px;
    padding-bottom: 60px;
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    text-align: center;
}

.svc-hero-inner {
    max-width: 640px;
    margin: 0 auto;
}

.svc-tag {
    display: inline-block;
    background: rgba(0, 217, 255, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.svc-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.svc-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.highlight {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section wrapper ── */
.svc-section {
    padding: 4rem 0 6rem;
}

/* ── Grid ── */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ── Card ── */
.svc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(11, 32, 56, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem 1.25rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.svc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.06), rgba(0, 217, 255, 0.06));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.svc-card:hover {
    border-color: rgba(0, 217, 255, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 217, 255, 0.15);
}

.svc-card:hover::before {
    opacity: 1;
}

/* ── SVG Icon wrapper ── */
.svc-icon-wrap {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.18), rgba(0, 217, 255, 0.18));
    border: 1px solid rgba(0, 217, 255, 0.22);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.svc-icon-wrap svg {
    width: 26px;
    height: 26px;
    color: var(--accent-cyan);
    stroke: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.svc-card:hover .svc-icon-wrap {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.3), rgba(0, 217, 255, 0.3));
    border-color: rgba(0, 217, 255, 0.45);
}

.svc-card:hover .svc-icon-wrap svg {
    transform: scale(1.12);
}

/* ── Card body ── */
.svc-body {
    flex: 1;
    width: 100%;
}

.svc-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
    line-height: 1.3;
}

.svc-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.875rem;
}

.svc-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-cyan);
    opacity: 0.85;
}

.svc-duration svg {
    width: 12px;
    height: 12px;
    stroke: var(--accent-cyan);
    flex-shrink: 0;
}

/* ── Arrow ── */
.svc-arrow {
    position: absolute;
    bottom: 1.1rem;
    right: 1.1rem;
    width: 28px;
    height: 28px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.svc-arrow svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-cyan);
}

.svc-card:hover .svc-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* 4-col on wide screens */
@media (min-width: 1200px) {
    .svc-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2-col on tablet */
@media (max-width: 900px) {
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    .svc-hero {
        padding-top: 110px;
        padding-bottom: 32px;
    }

    .svc-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .svc-hero p {
        font-size: 0.9rem;
    }

    .svc-section {
        padding: 2rem 0 3.5rem;
    }

    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .svc-card {
        padding: 1rem 0.875rem 0.875rem;
        border-radius: 14px;
        gap: 0;
    }

    .svc-icon-wrap {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin-bottom: 0.7rem;
    }

    .svc-icon-wrap svg {
        width: 20px;
        height: 20px;
    }

    .svc-body h3 {
        font-size: 0.82rem;
        margin-bottom: 0.3rem;
    }

    .svc-body p {
        font-size: 0.72rem;
        margin-bottom: 0.55rem;
        line-height: 1.45;
    }

    .svc-duration {
        font-size: 0.65rem;
    }

    .svc-duration svg {
        width: 10px;
        height: 10px;
    }

    /* Always show arrow on mobile (no hover) */
    .svc-arrow {
        opacity: 0.5;
        width: 22px;
        height: 22px;
        bottom: 0.75rem;
        right: 0.75rem;
    }

    .svc-arrow svg {
        width: 11px;
        height: 11px;
    }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    .svc-hero {
        padding-top: 100px;
        padding-bottom: 24px;
    }

    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
    }

    .svc-card {
        padding: 0.875rem 0.75rem 2.25rem;
    }

    .svc-icon-wrap {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        margin-bottom: 0.55rem;
    }

    .svc-icon-wrap svg {
        width: 18px;
        height: 18px;
    }

    .svc-body h3 {
        font-size: 0.78rem;
    }

    .svc-body p {
        font-size: 0.68rem;
        margin-bottom: 0.4rem;
    }

    .svc-duration {
        font-size: 0.6rem;
    }
}

/* ── Very small phones (≤360px) — single column ── */
@media (max-width: 360px) {
    .svc-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .svc-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .svc-icon-wrap {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .svc-body h3 {
        font-size: 0.85rem;
    }

    .svc-body p {
        font-size: 0.72rem;
    }

    .svc-arrow {
        display: none;
    }
}
