/* ============================================
   OLAF IT Solutions — Service Detail Pages
   Extends ../index.css design tokens
   ============================================ */

/* ---------- Service Hero ---------- */
.service-hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.service-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(224, 64, 251, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.service-hero-inner {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    transition: all var(--transition-fast);
}

.breadcrumb:hover {
    color: var(--text-secondary);
    border-color: var(--border-glow);
    background: rgba(124, 77, 255, 0.08);
}

.breadcrumb svg {
    flex-shrink: 0;
}

.service-hero-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    display: block;
    line-height: 1;
}

.service-hero h1 {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.service-hero-tagline {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.service-hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
}

/* ---------- Content Sections ---------- */
.service-section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.service-section-alt {
    background-color: var(--bg-section);
}

.service-prose {
    max-width: 760px;
}

.service-prose h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.25;
}

.service-prose p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
}

.service-prose p:last-child {
    margin-bottom: 0;
}

/* ---------- Two-column layout ---------- */
.service-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.service-two-col.reverse {
    direction: rtl;
}

.service-two-col.reverse>* {
    direction: ltr;
}

/* ---------- Benefits / Icon List ---------- */
.benefit-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.benefit-item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.benefit-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateX(4px);
}

.benefit-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 77, 255, 0.1);
    border-radius: var(--radius-md);
}

.benefit-text h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.benefit-text p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Steps / How we do it ---------- */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    counter-reset: steps;
}

.step-item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1.5px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--purple);
}

.step-body h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.step-body p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Info Box (Case Study / Example) ---------- */
.info-box {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.info-box-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--purple);
    margin-bottom: var(--space-md);
}

.info-box h3 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.info-box p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
}

.info-box p:last-child {
    margin-bottom: 0;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.result-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.25);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--blue-light);
}

/* ---------- Video Section ---------- */
.video-section {
    padding: var(--space-5xl) 0;
}

.video-section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.video-section-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.video-section-header p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Responsive 16:9 video wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Instagram embed centering */
.instagram-wrapper {
    display: flex;
    justify-content: center;
    max-width: 540px;
    margin: 0 auto;
}

/* Video placeholder (when no URL set) */
.video-placeholder {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: var(--text-base);
    text-align: center;
    padding: var(--space-2xl);
}

.video-placeholder span.vid-icon {
    font-size: 3rem;
    opacity: 0.4;
}

.video-placeholder p {
    max-width: 360px;
}

/* ---------- CTA Banner ---------- */
.service-cta {
    background: var(--bg-section);
    padding: var(--space-5xl) 0;
}

.service-cta .cta-box {
    text-align: center;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-4xl) var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.service-cta .cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(79, 195, 247, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 80% 50%, rgba(224, 64, 251, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.service-cta .cta-box h2 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    position: relative;
}

.service-cta .cta-box p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
    position: relative;
}

.service-cta .cta-buttons {
    position: relative;
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- "Learn more" link on service cards (index pages) ---------- */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--purple);
    transition: all var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.service-link:hover {
    color: var(--blue-light);
    gap: 0.6rem;
    border-bottom-color: rgba(79, 195, 247, 0.3);
}

.service-link svg {
    transition: transform var(--transition-fast);
}

.service-link:hover svg {
    transform: translateX(3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .service-two-col {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .service-two-col.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 130px 0 70px;
    }

    .service-hero h1 {
        font-size: var(--text-4xl);
    }

    .service-hero-tagline {
        font-size: var(--text-lg);
    }

    .service-prose h2 {
        font-size: var(--text-2xl);
    }

    .info-box {
        padding: var(--space-xl);
    }

    .service-cta .cta-box {
        padding: var(--space-3xl) var(--space-xl);
    }

    .service-cta .cta-box h2 {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 480px) {
    .service-hero h1 {
        font-size: var(--text-3xl);
    }

    .service-hero-icon {
        font-size: 2.5rem;
    }
}