/* ========================================
   SERVICES SECTION STYLES
   ======================================== */

/* Section Container */
.services {
    padding: var(--space-lg) var(--space-md);
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-subtle);
}

.services-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 12px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Philosophy Banner */
.philosophy-banner {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
}

.philosophy-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.philosophy-icon svg {
    width: 18px;
    height: 18px;
}

.philosophy-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.philosophy-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Journey Indicator */
.journey-indicator {
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.journey-indicator::-webkit-scrollbar {
    display: none;
}

.journey-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) var(--space-md);
    min-height: var(--touch-min);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.journey-step:active {
    transform: scale(0.97);
}

.journey-step.active {
    background: var(--accent-bg);
    color: var(--accent);
}

.journey-step-num {
    width: 22px;
    height: 22px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.journey-step.active .journey-step-num {
    background: var(--accent);
    color: white;
}

.journey-arrow {
    color: var(--bg-elevated);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.journey-arrow svg {
    width: 14px;
    height: 14px;
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--space-sm) var(--space-md);
    min-height: var(--touch-min);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.tab:active {
    transform: scale(0.97);
}

.tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.tab-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon svg {
    width: 16px;
    height: 16px;
}

/* Content Panels */
.content-container {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.panel {
    display: none;
    animation: panelFadeIn 0.4s var(--ease-out);
}

.panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel Header */
.panel-header {
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
}

.panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    padding: 4px 10px;
    background: var(--accent-bg);
    border-radius: 4px;
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.panel-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Panel Body */
.panel-body {
    display: flex;
    flex-direction: column;
}

/* Story Sections */
.story-section {
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--border);
}

.story-section:last-child {
    border-bottom: none;
}

.story-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.story-label.before { color: var(--red); }
.story-label.process { color: var(--text-muted); }
.story-label.after { color: var(--accent); }

.story-label-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-label.before .story-label-icon { background: var(--red-bg); }
.story-label.process .story-label-icon { background: var(--bg-elevated); }
.story-label.after .story-label-icon { background: var(--accent-bg); }

.story-label-icon svg {
    width: 10px;
    height: 10px;
}

/* Pain Points */
.pain-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.pain-point {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--red-bg);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.pain-point-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin-top: 1px;
}

.pain-point-icon svg {
    width: 10px;
    height: 10px;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.process-step {
    display: flex;
    gap: var(--space-md);
}

.process-step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--bg-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.process-step-content {
    flex: 1;
    padding-top: 2px;
}

.process-step-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.process-step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Results Section */
.results-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

/* Outcome List */
.outcome-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--accent-bg);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.outcome-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: rgba(5, 150, 105, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-top: 1px;
}

.outcome-icon svg {
    width: 10px;
    height: 10px;
}

.outcome-item strong {
    color: var(--accent);
    font-weight: 600;
}

/* Deliverables */
.deliverables {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.deliverables-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.deliverables-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.deliverable {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.deliverable-icon {
    color: var(--accent);
    display: flex;
}

.deliverable-icon svg {
    width: 12px;
    height: 12px;
}

/* CTA Section */
.panel-cta {
    padding: var(--space-lg) var(--space-md);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);
    border-top: 1px solid var(--border);
    text-align: center;
}

.cta-text {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.cta-text strong {
    color: var(--accent);
}

/* Services-specific button overrides */
.services .btn {
    width: 100%;
    padding: 16px var(--space-lg);
    min-height: 52px;
    border-radius: 12px;
    font-size: 1rem;
}

/* Focus states */
.tab:focus-visible,
.journey-step:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ========== TABLET (640px+) ========== */
@media (min-width: 640px) {
    .services {
        padding: var(--space-xl) var(--space-lg);
    }

    .section-header {
        margin-bottom: var(--space-xl);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .philosophy-banner {
        display: flex;
        gap: var(--space-md);
        align-items: flex-start;
        padding: var(--space-lg);
    }

    .philosophy-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .journey-indicator {
        justify-content: center;
        padding: var(--space-md);
    }

    .tabs-container {
        justify-content: center;
        gap: var(--space-sm);
    }

    .panel-header {
        padding: var(--space-xl) var(--space-lg);
    }

    .panel-title {
        font-size: 1.5rem;
    }

    .story-section {
        padding: var(--space-xl) var(--space-lg);
    }

    .pain-points {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .outcome-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .panel-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-lg);
        padding: var(--space-lg);
        text-align: left;
    }

    .cta-text {
        margin-bottom: 0;
        flex: 1;
    }

    .services .btn {
        width: auto;
        padding: 16px 28px;
        flex-shrink: 0;
    }
}

/* ========== DESKTOP (1024px+) ========== */
@media (min-width: 1024px) {
    .services {
        padding: var(--space-2xl) var(--space-xl);
    }

    .section-header {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-xl);
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }

    .philosophy-banner {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding: var(--space-lg) var(--space-xl);
    }

    .philosophy-icon {
        width: 48px;
        height: 48px;
    }

    .philosophy-icon svg {
        width: 22px;
        height: 22px;
    }

    .philosophy-title {
        font-size: 1rem;
    }

    .philosophy-text {
        font-size: 0.9rem;
    }

    .tabs-container {
        gap: var(--space-md);
    }

    .tab {
        padding: var(--space-md) var(--space-lg);
    }

    .tab:hover:not(.active) {
        border-color: var(--accent);
        color: var(--accent);
    }

    .content-container {
        border-radius: 24px;
    }

    .panel-header {
        padding: var(--space-xl);
    }

    .panel-title {
        font-size: 1.75rem;
    }

    .panel-body {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .story-section {
        padding: var(--space-xl);
        border-bottom: none;
        border-right: 1px solid var(--border);
    }

    .story-section:last-child {
        border-right: none;
    }

    .pain-points {
        grid-template-columns: 1fr;
    }

    .outcome-list {
        grid-template-columns: 1fr;
    }

    .panel-cta {
        padding: var(--space-lg) var(--space-xl);
    }
}

/* ========== LARGE DESKTOP (1280px+) ========== */
@media (min-width: 1280px) {
    .panel-header {
        padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    }

    .story-section {
        padding: var(--space-xl) var(--space-2xl);
    }

    .panel-cta {
        padding: var(--space-xl) var(--space-2xl);
    }
}