/* ═══════════════════════════════════════════════════════════
   ROSA V3 — SERVICES & PRICING CSS
   Style: Modern B2B SaaS Premium Creative
   ═══════════════════════════════════════════════════════════ */

/* ─── SERVICES HERO ────────────────────────────────────── */
.services-hero {
    padding: calc(var(--nav-height) + 64px) 0 80px;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229, 93, 37, 0.04) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.services-hero h1 {
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.services-hero .section-subtitle {
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    position: relative;
    z-index: 1;
}

/* ─── SERVICE TABS ──────────────────────────────────────── */
.svc-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--space-md);
}

.svc-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.svc-tab::after {
    content: '';
    position: absolute;
    bottom: -17px; /* Align precisely with parent border */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.svc-tab:hover {
    color: var(--primary);
}

.svc-tab.active {
    color: var(--primary);
}

.svc-tab.active::after {
    transform: scaleX(1);
}

.svc-tab svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform var(--transition-fast);
}

.svc-tab:hover svg {
    transform: translateY(-1px);
}

/* Panel transitions */
.svc-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.svc-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ─── GRID-2 SERVICES LAYOUT ────────────────────────────── */
.svc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.svc-card-v2 {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.svc-card-v2:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-card-hover);
}

/* Slider / Media container within card */
.svc-slider-wrap,
.svc-video-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.svc-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Tag within card */
.svc-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background: rgba(17, 19, 24, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Card Body Content */
.svc-info {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.svc-info-top {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.svc-info-top h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.svc-info-top p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.svc-price-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    flex-shrink: 0;
}

.svc-price-chip small {
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 4px;
}

.svc-info-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    margin-top: auto;
}

.svc-badge-pill {
    background: var(--primary-glow);
    color: var(--primary);
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.svc-badge-pill--hot {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.svc-turn {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 500;
}

.svc-pricing-cta {
    text-align: center;
    margin-top: var(--space-2xl);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.svc-pricing-cta a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ─── WHAT'S INCLUDED & VOLUME TABLES ───────────────────── */
.value-pricing-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.table-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2xl);
}

.table-card:last-child {
    margin-bottom: 0;
}

.table-card-header {
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.table-card-header h3 {
    font-size: var(--font-size-md);
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.table-wrap th,
.table-wrap td {
    padding: var(--space-md) var(--space-xl);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table-wrap th {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-subtle);
}

.table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.table-wrap td.rosa-col {
    background: rgba(229, 93, 37, 0.03);
    font-weight: 600;
    color: var(--primary);
}

/* ─── STUDIOS & TEAMS SECTION ───────────────────────────── */
.studios-section {
    background: var(--bg-white);
}

.studios-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-3xl);
    align-items: center;
}

.studios-features {
    margin-top: var(--space-xl);
}

.studio-feature {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.studio-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.studio-feature h3 {
    font-size: var(--font-size-base);
    margin-bottom: 4px;
    color: var(--text);
}

.studio-feature p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.studios-visual {
    background: var(--bg-dark);
    border: 1px solid var(--bg-dark-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.studios-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(229, 93, 37, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.studios-stats-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.stat-block {
    text-align: center;
}

.stat-block .stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-block .stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-on-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: var(--space-xs);
    line-height: 1.3;
}

/* ─── BEFORE/AFTER IN CARD SPECIFIC OVERRIDES ───────────── */
.svc-slider-wrap .ba-slider {
    border-radius: 0;
}

/* ─── RESPONSIVE RULES ──────────────────────────────────── */
@media (max-width: 1024px) {
    .svc-grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .studios-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: calc(var(--nav-height) + 32px) 0 56px;
    }

    .svc-tabs {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    .svc-tab {
        padding: 8px 16px;
        font-size: var(--font-size-sm);
    }

    .table-wrap th,
    .table-wrap td {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-xs);
    }

    .studios-visual {
        padding: var(--space-xl);
    }

    .studios-stats-card {
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .svc-info-top {
        flex-direction: column;
    }

    .svc-price-chip {
        align-items: flex-start;
        margin-top: var(--space-xs);
    }

    .svc-info-meta {
        flex-wrap: wrap;
        gap: var(--space-xs);
        margin-bottom: var(--space-lg);
    }

    .studios-stats-card {
        grid-template-columns: 1fr;
    }
}
