/**
 * Digitons Development — Dedicated Dynamic Service Detail Stylesheet
 * File: assets/css/service-detail-page.css
 * Scope: service-detail.php only
 */

/* ==========================================================================
   1. Breadcrumbs
   ========================================================================== */
.service-breadcrumb {
    background: #FAF9FC;
    padding: 16px 0;
    border-bottom: 1px solid #E2E8F0;
    font-size: 13.5px;
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
}

.service-breadcrumb .auto-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    color: #64748B;
}

.service-breadcrumb-list li a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-breadcrumb-list li a:hover {
    color: #AC218A;
}

.service-breadcrumb-list .breadcrumb-separator {
    color: #CBD5E1;
    margin: 0 4px;
    user-select: none;
}

.service-breadcrumb-list li[aria-current="page"] {
    color: #0F172A;
    font-weight: 600;
}

/* ==========================================================================
   2. Service Hero Section
   ========================================================================== */
.service-detail-hero {
    position: relative;
    padding: 80px 0 75px;
    background: #FAF9FC;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(172, 33, 138, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(108, 92, 231, 0.04) 0%, transparent 45%),
        linear-gradient(180deg, #FAF9FC 0%, #FFFFFF 100%);
    border-bottom: 1px solid #E2E8F0;
    overflow: hidden;
    isolation: isolate;
}

.service-detail-hero .auto-container {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 50px;
    align-items: center;
}

.service-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(172, 33, 138, 0.08);
    color: #831067;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(172, 33, 138, 0.20);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.service-hero-title {
    font-family: var(--font-family-barlow, 'Barlow', sans-serif);
    font-size: clamp(30px, 3.8vw, 46px);
    font-weight: 600;
    line-height: 1.2;
    color: #0F172A;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.service-hero-desc {
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 32px;
    max-width: 600px;
}

.service-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.service-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #AC218A;
    color: #FFFFFF !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(172, 33, 138, 0.22);
    min-height: 48px;
}

.service-hero-btn-primary:hover {
    background: #901772;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(172, 33, 138, 0.32);
}

.service-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #FFFFFF;
    color: #0F172A !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid #CBD5E1;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    min-height: 48px;
}

.service-hero-btn-secondary:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    transform: translateY(-2px);
}

/* Hero Image Card */
.service-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-hero-visual-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    max-width: 520px;
    width: 100%;
    overflow: hidden;
}

.service-hero-visual-card img {
    width: 100%;
    height: auto;
    max-height: 380px;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

/* Ambient Pattern Backgrounds */
.service-detail-hero .pattern-layer-one,
.service-detail-cta .pattern-layer-one {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.10;
}

.service-detail-hero .pattern-layer-one {
    background-position: left 5% center;
}

/* ==========================================================================
   3. Service Editorial Content Section
   ========================================================================== */
.service-detail-content-section {
    position: relative;
    padding: 75px 0 80px;
    background: #FFFFFF;
}

.service-detail-content-section .auto-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-content-block {
    margin-bottom: 60px;
}

.service-content-block:last-child {
    margin-bottom: 0;
}

.service-section-title {
    font-family: var(--font-family-barlow, 'Barlow', sans-serif);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: #0F172A;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.4px;
    position: relative;
    padding-bottom: 12px;
}

.service-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    background: #AC218A;
    border-radius: 2px;
}

.service-prose-text {
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
    font-size: 16px;
    line-height: 1.75;
    color: #475569;
}

.service-prose-text p {
    margin-bottom: 18px;
}

.service-prose-text p:last-child {
    margin-bottom: 0;
}

/* Deliverables Grid */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.deliverable-item-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #FAF9FC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 18px 20px;
    transition: all 0.2s ease;
}

.deliverable-item-card:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.deliverable-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(172, 33, 138, 0.1);
    color: #AC218A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.deliverable-text {
    font-size: 15px;
    line-height: 1.55;
    color: #334155;
    font-weight: 500;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.benefit-item-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    transition: all 0.2s ease;
}

.benefit-item-card:hover {
    border-color: rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.benefit-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(108, 92, 231, 0.1);
    color: #6C5CE7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

/* ==========================================================================
   Service Process Step Component (Structured Grid & Sequence Flow)
   ========================================================================== */
.service-process-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    position: relative;
}

.service-process-step {
    display: flex;
    flex-direction: column;
    position: relative;
}

.process-step-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.process-step-card:hover {
    border-color: #CBD5E1;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.process-step-num {
    font-family: var(--font-family-barlow, 'Barlow', sans-serif);
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    color: #AC218A;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    display: inline-block;
}

.process-step-text {
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
    margin: 0;
    font-weight: 400;
    flex-grow: 1;
}

.service-process-fallback {
    margin-top: 20px;
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

.service-process-fallback p {
    margin-bottom: 14px;
}

.service-process-fallback p:last-child {
    margin-bottom: 0;
}

/* AI-Efficient Workflow Note */
.service-ai-callout {
    background: linear-gradient(135deg, #FAF9FC 0%, #F5F3F8 100%);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 26px 28px;
    margin-top: 45px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.service-ai-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(172, 33, 138, 0.1);
    color: #AC218A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.service-ai-title {
    font-family: var(--font-family-barlow, 'Barlow', sans-serif);
    font-size: 17px;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 6px;
}

.service-ai-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}

/* ==========================================================================
   4. FAQ Section
   ========================================================================== */
.service-faq-section {
    position: relative;
    padding: 75px 0 80px;
    background: #FAF9FC;
    border-top: 1px solid #E2E8F0;
}

.service-faq-section .auto-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.service-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-faq-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-faq-item.active {
    border-color: rgba(172, 33, 138, 0.35);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.service-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family-barlow, 'Barlow', sans-serif);
    font-size: 17px;
    font-weight: 600;
    color: #0F172A;
    transition: color 0.2s ease;
}

.service-faq-trigger:hover,
.service-faq-item.active .service-faq-trigger {
    color: #AC218A;
}

.service-faq-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FAF9FC;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #64748B;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.service-faq-item.active .service-faq-arrow {
    transform: rotate(180deg);
    background: #AC218A;
    color: #FFFFFF;
    border-color: #AC218A;
}

.service-faq-content {
    padding: 0 22px 22px;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

/* ==========================================================================
   5. Related Services Section
   ========================================================================== */
.service-related-section {
    position: relative;
    padding: 75px 0 80px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
}

.service-related-section .auto-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.related-section-title {
    font-family: var(--font-family-barlow, 'Barlow', sans-serif);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: #0F172A;
    margin: 0;
}

.related-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #AC218A;
    text-decoration: none !important;
    transition: gap 0.2s ease;
}

.related-all-link:hover {
    gap: 12px;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-service-card {
    background: #FAF9FC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none !important;
    transition: all 0.22s ease;
}

.related-service-card:hover {
    background: #FFFFFF;
    border-color: rgba(172, 33, 138, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.related-card-title {
    font-family: var(--font-family-barlow, 'Barlow', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 8px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.related-service-card:hover .related-card-title {
    color: #AC218A;
}

.related-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748B;
    margin: 0 0 16px;
    flex-grow: 1;
}

.related-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
    transition: color 0.2s ease, gap 0.2s ease;
}

.related-service-card:hover .related-card-link {
    color: #AC218A;
    gap: 10px;
}

/* ==========================================================================
   6. Final Conversion CTA Section (Dark)
   ========================================================================== */
.service-detail-cta {
    position: relative;
    padding: 85px 0;
    background: #0F172A;
    border-top: 1px solid #1E293B;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.service-detail-cta .auto-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.service-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(172, 33, 138, 0.16);
    color: #F472B6;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(172, 33, 138, 0.35);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.service-cta-title {
    font-family: var(--font-family-barlow, 'Barlow', sans-serif);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.service-cta-text {
    font-size: 16px;
    line-height: 1.7;
    color: #94A3B8;
    margin-bottom: 30px;
}

.service-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    background: #AC218A;
    color: #FFFFFF !important;
    font-size: 15.5px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(172, 33, 138, 0.35);
    min-height: 50px;
}

.service-cta-btn:hover {
    background: #901772;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(172, 33, 138, 0.45);
}

/* ==========================================================================
   7. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .service-detail-hero {
        padding: 70px 0 60px;
    }

    .service-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .service-process-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

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

@media (max-width: 768px) {
    .service-detail-hero {
        padding: 60px 0 50px;
    }

    .service-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .service-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

    .service-hero-visual {
        order: 2;
    }

    .service-hero-visual-card {
        margin: 0 auto;
    }

    .deliverables-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-process-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: relative;
        padding-left: 28px;
    }

    .service-process-list::before {
        content: '';
        position: absolute;
        top: 24px;
        bottom: 24px;
        left: 10px;
        width: 2px;
        background: #E2E8F0;
        z-index: 1;
    }

    .service-process-step {
        position: relative;
    }

    .service-process-step::before {
        content: '';
        position: absolute;
        top: 24px;
        left: -22px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #AC218A;
        border: 2px solid #FFFFFF;
        box-shadow: 0 0 0 2px #E2E8F0;
        z-index: 2;
    }

    .process-step-card {
        padding: 18px 16px;
        border-radius: 10px;
    }

    .process-step-num {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .process-step-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .service-ai-callout {
        flex-direction: column;
        padding: 22px 20px;
    }

    .related-services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .service-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .service-hero-btn-primary,
    .service-hero-btn-secondary {
        width: 100%;
    }

    .service-cta-btn {
        width: 100%;
    }

    .service-process-list {
        padding-left: 24px;
        gap: 12px;
    }

    .service-process-list::before {
        left: 8px;
    }

    .service-process-step::before {
        left: -18px;
    }

    .process-step-card {
        padding: 16px 14px;
    }

    .process-step-num {
        font-size: 20px;
        margin-bottom: 6px;
    }
}

@media (max-width: 390px) {
    .service-process-list {
        padding-left: 22px;
    }

    .service-process-step::before {
        left: -16px;
    }

    .process-step-card {
        padding: 14px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-step-card,
    .process-step-card:hover {
        transition: none;
        transform: none;
    }
}
