/* ==========================================================================
   Services Page — Kaxo Technologies
   Hero with flow field, alternating service sections, social proof,
   process flow, CSS-only FAQ accordion, final CTA
   ========================================================================== */

/* ===== HERO ===== */
.services-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#flow-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(
        ellipse at center,
        rgba(10, 22, 40, 0.4) 0%,
        rgba(10, 22, 40, 0.8) 100%
    );
}

.services-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 8rem 2rem 6rem;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.services-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-gold {
    color: var(--gold);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CTA BUTTONS ===== */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gold);
    color: var(--navy);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.cta-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--gold);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--gold);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.cta-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* ===== SERVICE SECTIONS ===== */
.service-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.06);
}

.service-section:last-of-type {
    border-bottom: none;
}

.service-section--reversed .service-content {
    order: 2;
}

.service-section--reversed .service-visual {
    order: 1;
}

.service-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 700;
    color: rgba(212, 175, 55, 0.07);
    line-height: 1;
    margin-bottom: -0.5rem;
    display: block;
}

.service-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.service-stat-callout {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--gold);
    background: rgba(212, 175, 55, 0.04);
    border-radius: 0 6px 6px 0;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-light);
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--gray-light);
    line-height: 1.6;
}

.service-features li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.55rem;
    top: 0.5em;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.85rem;
}

/* Service visual card */
.service-visual-card {
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    transition: border-color 0.3s ease;
}

.service-visual-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
}

.service-visual-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.service-icon-placeholder {
    width: 120px;
    height: 120px;
    color: var(--gold);
    opacity: 0.35;
}

.service-icon-placeholder svg {
    width: 100%;
    height: 100%;
}

/* ===== SOCIAL PROOF STRIP ===== */
.social-proof {
    background: var(--navy-mid);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 4rem 2rem;
}

.social-proof-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.proof-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.proof-label {
    font-size: 0.85rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== PROCESS SECTION ===== */
.process-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4rem;
}

.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.process-step {
    flex: 1;
    max-width: 220px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    background: var(--navy);
    position: relative;
    z-index: 2;
}

.process-step h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray-light);
    padding: 0 0.5rem;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: rgba(212, 175, 55, 0.25);
    margin-top: 23px;
    flex-shrink: 0;
}

/* ===== FAQ SECTION (CSS-only accordion) ===== */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.faq-section .section-title {
    margin-bottom: 2.5rem;
}

.faq-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-item:first-child {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s ease;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
    content: '';
}

.faq-item summary::after {
    content: '+';
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--gold);
}

.faq-answer {
    padding: 0 0 1.5rem;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-light);
}

/* ===== FINAL CTA ===== */
.final-cta {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.final-cta-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.final-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-light);
    margin-bottom: 2.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .service-section {
        gap: 3rem;
        padding: 4rem 2rem;
    }

    .social-proof-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-hero {
        min-height: 85vh;
    }

    .services-hero-content {
        padding: 7rem 1.5rem 4rem;
    }

    .service-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }

    .service-section--reversed .service-content {
        order: 1;
    }

    .service-section--reversed .service-visual {
        order: 2;
    }

    .service-number {
        font-size: 3rem;
    }

    .service-visual-card {
        min-height: 200px;
        padding: 2rem;
    }

    .social-proof {
        padding: 3rem 1.5rem;
    }

    .social-proof-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .process-section {
        padding: 4rem 1.5rem;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
    }

    .process-step {
        max-width: 300px;
    }

    .process-connector {
        width: 2px;
        height: 30px;
        margin-top: 0;
    }

    .faq-section {
        padding: 0 1.5rem 4rem;
    }

    .faq-item summary {
        font-size: 1rem;
    }

    .final-cta {
        padding: 4rem 1.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
}
