/* ========================================
   SERVICES PAGE STYLES
   ======================================== */

/* ── Hero Section ─────────────────────── */
.services-hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

/* Ambient glow decorations */
.services-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(67, 56, 202, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.services-hero-content {
    max-width: 600px;
}

.services-hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: var(--fw-extrabold);
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.services-hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.services-hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Secondary button — 'See Our Work' */
.services-hero-actions .btn-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: var(--fw-semibold);
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.services-hero-actions .btn-demo i {
    line-height: 1;
    font-size: 1.125rem;
}

.services-hero-actions .btn-demo:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 56, 202, 0.2);
}

/* Primary button — 'Book a Free Consultation' */
.services-hero-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: var(--fw-semibold);
    font-size: 1rem;
    text-decoration: none;
    border: none;
    background: linear-gradient(135deg, #4338CA 0%, #6366F1 100%);
    color: var(--white);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(67, 56, 202, 0.3);
}

.services-hero-actions .btn-primary i {
    line-height: 1;
    font-size: 1.125rem;
}

.services-hero-actions .btn-primary:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 28px rgba(67, 56, 202, 0.4);
}

/* Hero image — device mockup frame */
.services-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-single {
    width: 100%;
    max-width: 540px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
    background: var(--white);
    position: relative;
}

/* Browser chrome top bar */
.hero-image-single::before {
    content: '';
    display: block;
    height: 32px;
    background: #F3F4F6;
    border-bottom: 1px solid #E5E7EB;
    background-image:
        radial-gradient(circle at 16px 16px, #EF4444 5px, transparent 5px),
        radial-gradient(circle at 40px 16px, #F59E0B 5px, transparent 5px),
        radial-gradient(circle at 64px 16px, #10B981 5px, transparent 5px);
    background-size: 80px 32px;
    background-repeat: no-repeat;
}

.hero-image-single:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.hero-image-single img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Section Shared Styles ───────────── */
.services-section {
    padding: var(--spacing-3xl) 0;
}

.services-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--spacing-2xl);
}

.services-section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: var(--fw-extrabold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.services-section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Industries Section ──────────────── */
.services-industries {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.industry-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(67, 56, 202, 0.06);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(67, 56, 202, 0.1), 0 8px 16px rgba(0, 0, 0, 0.04);
    border-color: rgba(67, 56, 202, 0.15);
}

/* Card image */
.industry-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #F3F0FF 0%, #EEF2FF 100%);
}

.industry-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.industry-card:hover .industry-card-image img {
    transform: scale(1.08);
}

.industry-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(67, 56, 202, 0.03) 100%);
    pointer-events: none;
}

/* Card body */
.industry-card-body {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    position: relative;
}

.industry-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4338CA 0%, #6366F1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    margin-top: -40px;
    position: relative;
    z-index: 2;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.2);
    transition: transform 0.3s ease;
}

.industry-card:hover .industry-card-icon {
    transform: scale(1.08) rotate(-4deg);
}

.industry-card h3 {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    color: #0F172A;
    margin-bottom: var(--spacing-xs);
}

.industry-card p {
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.7;
    margin: 0;
}

/* ── Examples Section ────────────────── */
.services-examples {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

.services-examples .templates-categories-grid {
    max-width: 1100px;
}

/* ── How It Works Section ────────────── */
.services-process {
    background: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    margin: 0 auto var(--spacing-md);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.25);
}

.process-step-icon {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.process-step h3 {
    font-size: 1.125rem;
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Connector line between steps */
.process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 56px);
    right: calc(12.5% + 56px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(67, 56, 202, 0.2) 100%);
    z-index: 1;
}

/* ── Why Choose Section ──────────────── */
.services-benefits {
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.benefit-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(67, 56, 202, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(67, 56, 202, 0.08);
    border-color: rgba(67, 56, 202, 0.15);
    background: var(--white);
}

.benefit-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.benefit-card h3 {
    font-size: 1.125rem;
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.benefit-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ── Responsive ──────────────────────── */
@media (max-width: 1024px) {
    .services-hero .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .services-hero-content {
        max-width: 100%;
        text-align: center;
    }

    .services-hero-actions {
        justify-content: center;
    }

    .industries-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .process-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 6rem 0 3rem;
    }

    .services-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .services-hero-actions .btn-primary,
    .services-hero-actions .btn-demo {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .hero-image-single {
        max-width: 100%;
        border-radius: 10px;
    }

    .hero-image-single::before {
        height: 26px;
        background-size: 64px 26px;
        background-image:
            radial-gradient(circle at 13px 13px, #EF4444 4px, transparent 4px),
            radial-gradient(circle at 33px 13px, #F59E0B 4px, transparent 4px),
            radial-gradient(circle at 53px 13px, #10B981 4px, transparent 4px);
    }

    .services-section {
        padding: var(--spacing-2xl) 0;
    }

    .services-section-header {
        margin-bottom: var(--spacing-lg);
    }

    .industries-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 5rem 0 2rem;
    }

    .services-hero-content h1 {
        font-size: 1.75rem;
    }

    .services-hero-content p {
        font-size: 1rem;
    }
}