/**
 * servicii.css — Stiluri complete pagina /servicii
 * 
 * SELF-CONTAINED: definește toate clasele .bb-* folosite în servicii.php
 * Nu depinde de clase din site.css (doar de design-tokens.css pentru variabile)
 * 
 * Design system: V4 Black+Gold (Montserrat + Nunito)
 */


/* ═══════════════════════════════════════════
   LAYOUT: .bb-container, .bb-section
   ═══════════════════════════════════════════ */

.bb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.bb-section {
    padding: 80px 0;
}

.bb-section--white {
    background: #fff;
}

.bb-section--cream {
    background: #FAF9F7;
}

.bb-section--warm {
    background: #F5F3F0;
}

.bb-section__h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 30px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #0A0A0A;
    margin: 0 0 12px 0;
    text-align: center;
}

.bb-section__sub {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    color: #4A4A4A;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.bb-section__crosslink {
    text-align: center;
    margin-top: 40px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: #4A4A4A;
}


/* ═══════════════════════════════════════════
   BADGE
   ═══════════════════════════════════════════ */

.bb-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 16px auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    text-align: center;
}

.bb-badge--gold {
    background: rgba(200, 164, 78, 0.12);
    color: #C8A44E;
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.bb-btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 8px;
    transition: all 200ms ease;
    cursor: pointer;
    border: none;
}

.bb-btn--gold {
    background: #C8A44E;
    color: #fff;
}

.bb-btn--gold:hover {
    background: #A8882E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 164, 78, 0.3);
}

.bb-btn--white {
    background: #fff;
    color: #0A0A0A;
}

.bb-btn--white:hover {
    background: #F5F3F0;
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════
   LINKS
   ═══════════════════════════════════════════ */

.bb-link--gold {
    color: #C8A44E;
    text-decoration: none;
    font-weight: 700;
    transition: color 150ms ease;
}

.bb-link--gold:hover {
    color: #A8882E;
    text-decoration: underline;
}


/* ═══════════════════════════════════════════
   S1: HERO
   ═══════════════════════════════════════════ */

.bb-hero {
    padding: 100px 0 80px 0;
}

.bb-hero--centered {
    text-align: center;
}

.bb-hero--centered .bb-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bb-hero__h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 42px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #0A0A0A;
    margin: 0 0 16px 0;
    max-width: 800px;
}

.bb-hero__sub {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.7;
    color: #4A4A4A;
    max-width: 650px;
    margin: 0 0 32px 0;
}

.bb-hero__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bb-hero__microcopy {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #64748B;
}


/* ═══════════════════════════════════════════
   S2: MODULE SISTEM — Grid 3+2
   ═══════════════════════════════════════════ */

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.modules-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 66.6%;
    margin: 24px auto 0;
}

.card-module {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-top: 3px solid #C8A44E;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.card-module:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

.card-module__icon {
    margin-bottom: 16px;
}

.card-module__icon svg {
    width: 40px;
    height: 40px;
}

.card-module__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0A0A0A;
    margin: 0 0 12px 0;
}

.card-module__desc {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    color: #4A4A4A;
    margin: 0 0 16px 0;
}

.card-module__divider {
    height: 1px;
    background: #E2E8F0;
    margin: 0 0 14px 0;
}

.card-module__problem,
.card-module__benefit {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #4A4A4A;
    margin: 0 0 10px 0;
}

.card-module__label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 3px;
}

.card-module__label--problem {
    color: #A8882E;
}

.card-module__label--benefit {
    color: #C8A44E;
}


/* ═══════════════════════════════════════════
   S3: SERVICII TABS — 6 tab-uri
   ═══════════════════════════════════════════ */

.servicii-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid #C8A44E;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
    color: #C8A44E;
}

.tab-btn:hover {
    background: rgba(200, 164, 78, 0.1);
}

.tab-btn.active {
    background: #C8A44E;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.tab-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    color: #0A0A0A;
    margin: 0 0 4px 0;
}

.tab-metrics {
    display: flex;
    gap: 40px;
    margin: 16px 0 24px 0;
    padding: 16px 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.tab-metric {
    text-align: left;
}

.tab-metric-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 36px;
    color: #C8A44E;
    display: block;
    line-height: 1;
}

.tab-metric-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-top: 6px;
}

.tab-desc {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.7;
    color: #4A4A4A;
    margin: 0 0 12px 0;
}

.tab-complement {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    color: #4A4A4A;
    border-left: 3px solid #C8A44E;
    padding-left: 16px;
    margin: 4px 0 16px 0;
}

.ops-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.ops-item {
    padding: 6px 14px;
    background: rgba(200, 164, 78, 0.08);
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4A4A4A;
    white-space: nowrap;
}

.tab-orient {
    display: flex;
    gap: 24px;
    margin: 16px 0 24px 0;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: #64748B;
}

.tab-cta {
    display: inline-block;
    font-size: 13px;
    padding: 12px 28px;
}

.tab-image {
    align-self: start;
    position: sticky;
    top: 100px;
}

.tab-image__frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    background: #F8FAFC;
}

.tab-image__frame img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}


/* ═══════════════════════════════════════════
   S4: PROBLEME — 2 coloane (FĂRĂ SISTEM | CU BUSYBEAVER)
   ═══════════════════════════════════════════ */

.problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 40px;
}

.problems-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 24px;
}

.problems-header--problem {
    background: #0A0A0A;
    color: #ef4444;
}

.problems-header--solution {
    background: #0A0A0A;
    color: #C8A44E;
    border-left: 1px solid #333;
}

.problem-cell {
    padding: 18px 24px;
    border-bottom: 1px solid #E2E8F0;
    background: #FEF2F2;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #0A0A0A;
}

.solution-cell {
    padding: 18px 24px;
    border-bottom: 1px solid #E2E8F0;
    border-left: 1px solid #E2E8F0;
    background: #F0FDF4;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #4A4A4A;
}

.problem-cell:last-of-type,
.solution-cell:last-of-type {
    border-bottom: none;
}


/* ═══════════════════════════════════════════
   S5: FLUX INTEGRAT
   ═══════════════════════════════════════════ */

.flow-steps {
    display: flex;
    align-items: flex-start;
    margin-top: 48px;
}

.flow-step {
    flex: 1;
    text-align: center;
    padding: 0 8px;
}

.flow-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #C8A44E;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.flow-step-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0A0A0A;
    margin-bottom: 6px;
}

.flow-step-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: #4A4A4A;
}

.flow-arrow {
    flex-shrink: 0;
    color: #C8A44E;
    display: flex;
    align-items: center;
    padding-top: 12px;
}


/* ═══════════════════════════════════════════
   S6: CTA FINAL
   ═══════════════════════════════════════════ */

.bb-cta {
    padding: 80px 0;
    text-align: center;
}

.bb-cta--dark {
    background: linear-gradient(180deg, #0A0A0A 0%, #1E1E1E 50%, #2D2D2D 100%);
}

.bb-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bb-cta__h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 28px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 16px 0;
    max-width: 700px;
}

.bb-cta__sub {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 0 32px 0;
}

.bb-cta__microcopy {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
    display: block;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .bb-container { padding: 0 32px; }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .modules-row-2 { max-width: 100%; }
    .tab-content.active { gap: 32px; }
    .tab-image__frame img { max-height: 320px; }
    .bb-hero__h1 { font-size: 34px; }
}

@media (max-width: 768px) {
    .bb-container { padding: 0 20px; }
    .bb-hero { padding: 80px 0 60px 0; }
    .bb-hero__h1 { font-size: 26px; }
    .bb-hero__sub { font-size: 14px; padding: 0; }
    .bb-section { padding: 48px 0; }
    .bb-section__h2 { font-size: 22px; text-align: center; }
    .bb-section__sub { font-size: 14px; margin-bottom: 28px; text-align: center; }

    /* ── Module cards: more visual separation ── */
    .modules-grid, .modules-row-2 {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 16px;
    }
    .card-module {
        border: 1px solid #E2E8F0;
        border-left: 3px solid #C8A44E;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        padding: 20px 16px;
    }
    .card-module__title { font-size: 14px; }
    .card-module__desc { font-size: 13px; }
    .card-module__problem, .card-module__benefit { font-size: 12px; }
    .card-module__icon svg { width: 32px; height: 32px; }

    /* ── Tabs: 2 rows of 3, all visible ── */
    .servicii-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        justify-content: center;
        overflow-x: visible;
        flex-wrap: wrap;
        padding-bottom: 0;
    }
    .tab-btn {
        padding: 8px 4px;
        font-size: 10px;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
        border-width: 1.5px;
    }

    /* ── Tab content: stack, image INSIDE container ── */
    .tab-content.active {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tab-image {
        order: -1;
        position: static;
        border-radius: 10px;
        overflow: hidden;
    }
    .tab-image__frame {
        border-radius: 10px;
        margin: 0;
    }
    .tab-image__frame img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: center;
        aspect-ratio: auto;
        display: block;
    }

    /* Tab text — prevent text clipping */
    .tab-text {
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .tab-title { font-size: 20px; }
    .tab-metrics { gap: 20px; padding: 12px 0; }
    .tab-metric-number { font-size: 26px; }
    .tab-metric-label { font-size: 10px; }
    .tab-desc { font-size: 14px; line-height: 1.6; }
    .tab-complement { font-size: 13px; word-wrap: break-word; }
    .tab-orient { font-size: 13px; gap: 16px; flex-wrap: wrap; }
    .tab-cta { font-size: 12px; padding: 10px 24px; }

    /* Ops: wrap on mobile instead of scroll */
    .ops-list {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .ops-item { font-size: 11px; padding: 4px 10px; }

    /* ── Probleme: stack pe mobile ── */
    .problems-grid { grid-template-columns: 1fr; }
    .problems-header--solution { display: none; }
    .problems-header--problem { font-size: 12px; border-radius: 8px 8px 0 0; }
    .problem-cell { font-size: 13px; padding: 14px 16px; }
    .solution-cell {
        font-size: 13px;
        padding: 14px 16px 14px 36px;
        border-left: none;
        position: relative;
    }
    .solution-cell::before {
        content: '✔';
        position: absolute;
        left: 14px;
        top: 14px;
        color: #C8A44E;
        font-weight: 700;
    }

    /* ── Flow: vertical, arrows DOWN ── */
    .flow-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .flow-step { padding: 12px 0; }
    .flow-step-num { width: 40px; height: 40px; font-size: 16px; }
    .flow-step-title { font-size: 12px; }
    .flow-step-desc { font-size: 11px; max-width: 260px; }
    .flow-arrow { transform: none; padding: 0; }
    .flow-arrow svg { display: none; }
    .flow-arrow::after {
        content: '↓';
        font-size: 20px;
        color: #C8A44E;
        font-weight: 700;
        line-height: 1;
    }

    /* CTA */
    .bb-cta { padding: 48px 0; }
    .bb-cta__h2 { font-size: 20px; }
    .bb-cta__sub { font-size: 14px; }

    /* Cross-link */
    .bb-section__crosslink { font-size: 14px; }
}

@media (max-width: 480px) {
    .bb-hero__h1 { font-size: 22px; }
    .bb-hero__sub { font-size: 13px; }
    .tab-image__frame img { height: 160px; }
    .tab-metric-number { font-size: 22px; }
    .tab-title { font-size: 18px; }
    .tab-btn { font-size: 9px; padding: 6px 4px; }
    .flow-step-num { width: 36px; height: 36px; font-size: 14px; }
    .card-module { padding: 16px 14px; }
}


/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── TRUST BAR — METRICI NOMENCLATOR ── */
.bb-svc-trust {
    padding: 36px 0;
    background: #FDFCF9;
    border-top: 1px solid #E8E3D8;
    border-bottom: 1px solid #E8E3D8;
}
.bb-svc-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.bb-svc-trust-item {
    position: relative;
    padding: 8px 12px;
}
.bb-svc-trust-item + .bb-svc-trust-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 36px;
    background: #E8E3D8;
}
.bb-svc-trust-num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #C8A44E;
    line-height: 1;
    margin-bottom: 6px;
}
.bb-svc-trust-label {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .bb-svc-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .bb-svc-trust-item + .bb-svc-trust-item::before { display: none; }
    .bb-svc-trust-item {
        border-bottom: 1px solid #E8E3D8;
        padding: 14px 8px;
    }
    .bb-svc-trust-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
    .bb-svc-trust-num { font-size: 28px; }
}