/* ==========================================================================
   Service Pages Shared CSS
   Target: Analytics Foundation, Decision Intelligence, Analytics Continuity
   ========================================================================== */

/* Service Specific UX Refinements - Force Dark Theme Consistency */
:root {
    --color-foundation-accent: #3b82f6;
    --color-foundation-border: #222222;
    --color-success-soft: rgba(16, 185, 129, 0.1);
}

/* Reduced Section Spacing */
.section-rocket {
    padding: 80px 0;
    background: var(--bg-primary);
}

/* Hero Typography & Layout Overrides */
.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #7f63f6; /* Changed from var(--accent-blue) */
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(5px);
}

.hero .container {
    max-width: 1400px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 0;
    align-items: center;
    min-height: 75vh;
}

.hero-content {
    padding-right: 0;
}

.hero-title {
    font-size: 3.5rem;
    /* Standardized to 3.5rem from Foundation/Decision mix */
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    background: linear-gradient(130deg, #fff 0%, #c4b5ff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-visual {
    display: flex;
    justify-content: flex-start;
    padding-left: 0;
}

/* Enhanced Hero Visual with Animation */
.hero-foundation-visual {
    width: 100%;
    max-width: 450px;
    border-radius: 1.5rem;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    height: 300px;
    /* Standardized height */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    transform-origin: left center;
}

@keyframes pulse-ring {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes flow-pulse {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes pulse-core {

    0%,
    100% {
        filter: drop-shadow(0 0 5px var(--accent-blue));
        opacity: 0.6;
    }

    50% {
        filter: drop-shadow(0 0 20px var(--accent-blue));
        opacity: 1;
    }
}

.visual-core {
    animation: pulse-core 4s infinite ease-in-out;
}

.data-particle {
    filter: drop-shadow(0 0 2px var(--accent-blue));
}

/* Utilities */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title-alt {
    color: var(--text-primary);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Navigation Refinement */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px !important;
}

.nav-logo {
    margin-right: auto;
}

.nav-logo img {
    filter: brightness(0) invert(1);
}

.nav-links {
    margin-right: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* FAQ SECTION - NEW ENTERPRISE COMPONENT */
.faq-section {
    background: var(--bg-primary);
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header-title {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-header-title p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

/* FAQ Item - Card Style */
.faq-item {
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.2);
}

.faq-item.is-open {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.08);
}

/* Question Button */
.faq-question {
    width: 100%;
    padding: 1.5rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question:focus {
    outline: none;
    background: rgba(139, 92, 246, 0.05);
}

.faq-question-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

/* Toggle Icon */
.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.faq-toggle-icon {
    width: 14px;
    height: 14px;
    position: relative;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: '';
    position: absolute;
    background: #8b5cf6;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Horizontal line */
.faq-toggle-icon::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Vertical line */
.faq-toggle-icon::after {
    width: 2px;
    height: 14px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Open state - rotate */
.faq-item.is-open .faq-toggle {
    background: rgba(139, 92, 246, 0.2);
}

.faq-item.is-open .faq-toggle-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* Answer Container */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-answer {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 1.75rem 1.5rem 1.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Keyboard focus indicator */
.faq-question:focus-visible .faq-toggle {
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5);
}

/* Tabs with Enhanced Animation */
.transformation-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.tab-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.transformation-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1.5rem;
    padding: 3rem;
    min-height: 300px;
    display: none;
    animation: panelSwitch 0.5s ease forwards;
}

.transformation-panel.active {
    display: block;
}

@keyframes panelSwitch {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Outcome/Benefit Components */
.benefit-block {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    padding: 2rem;
}

.outcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.outcome-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.outcome-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Timeline Styles */
.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-week {
    min-width: 100px;
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.timeline-content {
    flex: 1;
    padding-bottom: 2rem;
    border-left: 2px solid var(--border-subtle);
    padding-left: 2rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.timeline-item:last-child .timeline-content {
    border-left: none;
}

/* Timeline Stepper (Process) */
.timeline-stepper {
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.step-nav {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.step-nav::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border-subtle);
    z-index: 1;
}

.step-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: var(--text-secondary);
    font-family: inherit;
}

.step-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.step-btn::after {
    content: attr(data-label);
    position: absolute;
    top: 60px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0.6;
}

.step-btn.active::after {
    opacity: 1;
    color: var(--text-primary);
}

.step-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 3.5rem;
    min-height: 280px;
    display: none;
    animation: slideIn 0.5s ease;
}

.step-panel.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stage-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 2rem;
    color: var(--accent-blue);
}

/* Payment Milestone Styles */
.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.payment-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
}

/* Milestone Container */
.milestone-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.milestone-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1.5rem;
    padding: 2rem;
}

.milestone-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    /* removed */
    border-bottom: none;
}

.milestone-row:last-child {
    border-bottom: none;
}

.milestone-num {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.milestone-percentage {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Testimonial & Metrics Styles */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 2.5rem;
    position: relative;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.testimonial-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.selector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
}

.selector-card.active {
    opacity: 1;
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.selector-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
}

.selector-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.selector-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.testimonial-main-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 2rem;
    padding: 3rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-content-area {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
}

.testimonial-quote-text {
    font-size: 1.85rem;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.author-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-elevated);
    margin-bottom: 1.5rem;
    border: 2px solid var(--accent-blue);
}

.linkedin-verified {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-stats {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
}

.quick-stat-item {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: 1.5rem;
    flex: 1;
    border: 1px solid var(--border-subtle);
}

.qs-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.qs-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.metrics-panel {
    background: rgba(255, 255, 255, 0.02);
    padding: 2.25rem !important;
    border-radius: 2rem;
    border: 1px solid var(--border-subtle);
}

.metric-item {
    margin-bottom: 2rem;
}

.metric-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.metric-bar-bg {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
}

.metric-bar-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-tag-box {
    margin-top: 3rem;
    padding-top: 2rem;
    /* removed */
    border-top: none;
}

/* Scanning Effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    animation: scan 4s linear infinite;
    opacity: 0.3;
    z-index: 5;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* ROI Calculator Styles */
.calc-input-group {
    margin-bottom: 2.5rem;
}

.calc-range {
    width: 100%;
    height: 6px;
    background: var(--border-subtle);
    border-radius: 3px;
    appearance: none;
    outline: none;
    cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    cursor: pointer;
}

.roi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.roi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    border-radius: 1rem;
    text-align: left;
    transition: all 0.2s ease;
}

.roi-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.roi-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.roi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.roi-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.roi-accent {
    color: var(--accent-blue);
}

@media (max-width: 768px) {
    .roi-grid {
        grid-template-columns: 1fr;
    }
}

/* Reduced Padding Global - Card Overrides */
.milestone-card,
.service-card,
.calc-card {
    padding: 2rem !important;
}

/* Footer Dividers & Refinement */
.footer-nav-col h4 {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    /* removed */
    /* removed */
    border: none !important;
    /* Technical divider */
    width: 100%;
}

.footer-divider-vertical {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nav-col {
    padding: 0 2rem;
    position: relative;
}

.footer-nav-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-nav-col:first-child {
    padding-left: 0;
}

.footer-nav-col:last-child {
    padding-right: 0;
}

.footer-nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-col ul li {
    margin-bottom: 0.75rem;
    white-space: nowrap;
}

.footer-nav-col ul li a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-nav-col ul li a:hover {
    color: var(--accent-blue);
}

.footer-dual-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Consolidated Styles from service-analytics-continuity.html */

/* Included Item (What You Actually Get / What's Included) */
.included-item {
    margin-bottom: 2rem;
}

.included-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    /* Added font-size for clarity */
    font-weight: 700;
}

.included-item h4::before {
    content: '\2713';
    /* Checkmark */
    color: #10b981;
    font-weight: 700;
}

.included-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 1.75rem;
    line-height: 1.6;
}

/* Capability List (Complete Analytics Transformation) */
.capability-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0;
}

.capability-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.capability-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Section Header Rocket */
.section-header-rocket {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header-rocket p {
    margin-left: auto;
    margin-right: auto;
}

.timeline-summary p {
    margin-left: auto;
    margin-right: auto;
}

.timeline-summary p:last-child {
    max-width: 900px;
}

/* Transformation Panel Fixes */
.transformation-panel {
    padding: 4rem !important;
    /* Force match continuity style */
    min-height: 400px !important;
}

.transformation-tabs {
    margin-bottom: 4rem !important;
}

/* =============================================
   SERVICE PAGES — 3D DEPTH & SHADOW ENHANCEMENTS
   ============================================= */

/* --- Hero Visuals --- */
.hero-foundation-visual,
.hero-decision-visual,
.hero-analytics-system,
.hero-visual>div {
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease !important;
}

.hero-foundation-visual:hover,
.hero-decision-visual:hover,
.hero-analytics-system:hover,
.hero-visual>div:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) translateY(-8px) scale(1.02) !important;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.9),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(59, 130, 246, 0.2) !important;
}

/* --- FAQ Items --- */
.faq-item {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.faq-item.is-open {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* --- Transformation Tabs --- */
.tab-btn {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.45),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
}

/* --- Panels, Cards & Sections --- */
.transformation-panel,
.outcome-card,
.benefit-block,
.step-panel,
.milestone-card,
.testimonial-main-box,
.diagnosis-text,
.diagnosis-conclusion,
.diagnosis-card,
.problem-card,
.comparison-card,
.quick-stat-item,
.calc-card,
.roi-card,
.service-3d-box {
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7),
        inset 0 1px 2.5px rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}

.transformation-panel:hover,
.outcome-card:hover,
.step-panel:hover,
.milestone-card:hover,
.diagnosis-text:hover,
.diagnosis-conclusion:hover,
.diagnosis-card:hover,
.problem-card:hover,
.comparison-card:hover,
.quick-stat-item:hover,
.calc-card:hover,
.roi-card:hover,
.service-3d-box:hover {
    transform: translateY(-5px) scale(1.01) !important;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(59, 130, 246, 0.15) !important;
}

/* --- Icons --- */
.outcome-icon,
.step-btn,
.milestone-num,
.selector-avatar,
.author-avatar-large {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4),
        inset 0 2px 3px rgba(255, 255, 255, 0.2);
}

/* --- Graph Bars (Visual Dept) --- */
.m-bar-fill,
.m-dash-bar-fill {
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

/* --- Selector Cards (Testimonials) --- */
.selector-card {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.selector-card.active {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

/* =============================================
   SERVICE PAGES — Light Theme Refinement
   Applies only to the three service pages
   ============================================= */
html[data-theme="light"] .section-rocket,
body.light-theme .section-rocket {
    background: var(--bg-primary) !important;
}

html[data-theme="light"] .hero-title,
body.light-theme .hero-title {
    opacity: 1 !important;
    background: linear-gradient(130deg, #111827 0%, #7f63f6 55%, #00b8f0 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
}

html[data-theme="light"] .hero-title span,
body.light-theme .hero-title span {
    opacity: 0.95 !important;
}

html[data-theme="light"] .hero-subtitle,
body.light-theme .hero-subtitle {
    color: #334155 !important;
}

html[data-theme="light"] .hero-description,
body.light-theme .hero-description {
    color: #475569 !important;
}

html[data-theme="light"] .hero-tag,
body.light-theme .hero-tag {
    background: rgba(15, 23, 42, 0.05) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #4f46e5 !important;
    box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.2) !important;
    backdrop-filter: none !important;
}

html[data-theme="light"] .hero-foundation-visual,
html[data-theme="light"] .hero-decision-visual,
html[data-theme="light"] .hero-analytics-system,
html[data-theme="light"] .hero-visual > div,
body.light-theme .hero-foundation-visual,
body.light-theme .hero-decision-visual,
body.light-theme .hero-analytics-system,
body.light-theme .hero-visual > div {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.18) !important;
    backdrop-filter: none !important;
}

html[data-theme="light"] .hero-foundation-visual:hover,
html[data-theme="light"] .hero-decision-visual:hover,
html[data-theme="light"] .hero-analytics-system:hover,
html[data-theme="light"] .hero-visual > div:hover,
body.light-theme .hero-foundation-visual:hover,
body.light-theme .hero-decision-visual:hover,
body.light-theme .hero-analytics-system:hover,
body.light-theme .hero-visual > div:hover {
    box-shadow: 0 24px 50px -22px rgba(15, 23, 42, 0.22) !important;
}

html[data-theme="light"] .hero-foundation-visual::before,
body.light-theme .hero-foundation-visual::before {
    opacity: 0.7 !important;
}

html[data-theme="light"] .testimonial-main-box,
html[data-theme="light"] .testimonial-card,
body.light-theme .testimonial-main-box,
body.light-theme .testimonial-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .testimonial-main-box::before,
html[data-theme="light"] .testimonial-main-box::after,
body.light-theme .testimonial-main-box::before,
body.light-theme .testimonial-main-box::after {
    opacity: 0.35 !important;
}

html[data-theme="light"] .testimonial-quote,
html[data-theme="light"] .testimonial-quote-text,
html[data-theme="light"] .testimonial-name,
html[data-theme="light"] .selector-name,
body.light-theme .testimonial-quote,
body.light-theme .testimonial-quote-text,
body.light-theme .testimonial-name,
body.light-theme .selector-name {
    color: #111827 !important;
}

html[data-theme="light"] .testimonial-role,
html[data-theme="light"] .selector-role,
body.light-theme .testimonial-role,
body.light-theme .selector-role {
    color: #475569 !important;
}

html[data-theme="light"] .selector-card,
body.light-theme .selector-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.16) !important;
}

html[data-theme="light"] .selector-card.active,
body.light-theme .selector-card.active {
    background: rgba(37, 99, 235, 0.05) !important;
    border-color: rgba(37, 99, 235, 0.18) !important;
    box-shadow: 0 16px 32px -22px rgba(37, 99, 235, 0.22) !important;
}

html[data-theme="light"] .metrics-panel,
body.light-theme .metrics-panel {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="light"] .metric-info,
body.light-theme .metric-info {
    color: #475569 !important;
}

html[data-theme="light"] .metric-info b,
body.light-theme .metric-info b {
    color: #111827 !important;
}

html[data-theme="light"] .metric-bar-bg,
body.light-theme .metric-bar-bg {
    background: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .industry-tag-box,
body.light-theme .industry-tag-box {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
}

html[data-theme="light"] .quick-stat-item,
html[data-theme="light"] .milestone-card,
html[data-theme="light"] .calc-card,
html[data-theme="light"] .roi-card,
html[data-theme="light"] .transformation-panel,
body.light-theme .quick-stat-item,
body.light-theme .milestone-card,
body.light-theme .calc-card,
body.light-theme .roi-card,
body.light-theme .transformation-panel {
    border-radius: 16px !important;
    box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.16) !important;
}

html[data-theme="light"] .milestone-container > div:last-child,
body.light-theme .milestone-container > div:last-child {
    background: #f5f7fb !important;
    padding: 40px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .included-item,
body.light-theme .included-item {
    background: transparent !important;
}

html[data-theme="light"] .included-item h4,
body.light-theme .included-item h4 {
    color: #111827 !important;
}

html[data-theme="light"] .included-item p,
body.light-theme .included-item p {
    color: #475569 !important;
}

html[data-theme="light"] .btn-primary,
body.light-theme .btn-primary {
    box-shadow: 0 14px 30px -18px rgba(37, 99, 235, 0.45) !important;
}

html[data-theme="light"] .btn-secondary,
body.light-theme .btn-secondary {
    border-color: rgba(15, 23, 42, 0.18) !important;
    color: #111827 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.14) !important;
}

/* =============================================
   SERVICE MOBILE EXPERIENCE UPGRADE
   Keeps desktop intact while rebuilding mobile flow.
   ============================================= */

@media (max-width: 1024px) {
    .service-hero {
        padding-top: calc(var(--nav-height) + 2.75rem) !important;
        padding-bottom: 3.5rem !important;
        overflow: hidden !important;
    }

    .service-hero .hero-grid {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        gap: 2.25rem !important;
        align-items: start !important;
    }

    .service-hero .hero-content {
        order: 1 !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .service-hero .hero-visual {
        order: 2 !important;
        width: 100% !important;
        justify-content: center !important;
        padding-left: 0 !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding-top: calc(var(--nav-height) + 2rem) !important;
        padding-bottom: 3rem !important;
    }

    .service-hero .container {
        width: min(100% - 32px, 1400px) !important;
    }

    .hero-tag,
    .service-tag {
        padding: 0.42rem 0.85rem !important;
        margin-bottom: 1.2rem !important;
        font-size: 0.68rem !important;
        letter-spacing: 0.09em !important;
    }

    .service-hero .hero-title {
        font-size: clamp(2.15rem, 10vw, 3rem) !important;
        line-height: 1.06 !important;
        margin-bottom: 1.1rem !important;
        letter-spacing: 0 !important;
    }

    .service-hero .hero-subtitle {
        max-width: 100% !important;
        font-size: 1rem !important;
        line-height: 1.58 !important;
        margin-bottom: 1rem !important;
    }

    .service-hero .hero-description {
        max-width: 100% !important;
        font-size: 0.94rem !important;
        line-height: 1.7 !important;
        margin-bottom: 1.6rem !important;
    }

    .service-hero .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        max-width: 330px !important;
    }

    .service-hero .hero-actions .btn-primary,
    .service-hero .hero-actions .btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-foundation-visual,
    .hero-decision-visual,
    .hero-analytics-system,
    .service-hero .hero-visual > div {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 280px !important;
        max-height: none !important;
        padding: 1rem !important;
        border-radius: 18px !important;
        transform: none !important;
        transform-origin: center center !important;
        overflow: hidden !important;
    }

    .hero-foundation-visual,
    .hero-decision-visual {
        aspect-ratio: 1 / 1.04;
    }

    .hero-analytics-system {
        aspect-ratio: 1 / 1.12;
    }

    .service-hero .hero-visual svg {
        width: 100% !important;
        height: auto !important;
        max-height: 315px !important;
    }

    .section-rocket,
    .faq-section {
        padding: 3.5rem 0 !important;
    }

    .section-title-alt,
    .faq-header-title h2 {
        font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
        line-height: 1.12 !important;
        margin-bottom: 1.25rem !important;
    }

    .section-lead,
    .section-description,
    .faq-header-title p {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }

    .milestone-container,
    .pricing-grid,
    .included-grid,
    .roi-grid,
    .quick-stats-grid,
    .testimonial-grid,
    .card-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .section-rocket [style*="minmax(400px"],
    .section-rocket [style*="minmax(350px"],
    .section-rocket [style*="minmax(300px"],
    .section-rocket [style*="minmax(200px"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .diagnosis-card,
    .calc-card,
    .roi-grid,
    .roi-card,
    .testimonial-main-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .testimonial-main-box .scan-line,
    .scan-line {
        left: 0 !important;
        width: 100% !important;
    }

    .milestone-card,
    .calc-card,
    .roi-card,
    .transformation-panel,
    .testimonial-card,
    .included-item,
    .quick-stat-item {
        padding: 1.2rem !important;
        border-radius: 16px !important;
    }

    .metrics-panel {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .faq-item {
        padding: 1rem 0 !important;
    }
}

@media (max-width: 420px) {
    .service-hero .container {
        width: min(100% - 24px, 1400px) !important;
    }

    .service-hero .hero-title {
        font-size: clamp(2rem, 10vw, 2.55rem) !important;
    }

    .hero-foundation-visual,
    .hero-decision-visual,
    .hero-analytics-system,
    .service-hero .hero-visual > div {
        min-height: 245px !important;
    }

    .service-hero .hero-visual svg {
        max-height: 270px !important;
        overflow: hidden !important;
    }
}
