/* Scope of Services Page Styling */

.scope-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 4rem 6rem;
}

.intro-section {
    text-align: center;
    margin-bottom: 5rem;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.quick-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-nav-btn {
    background: white;
    color: var(--navy);
    border: 2px solid var(--gray-lighter);
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.quick-nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

/* Detail Sections */
.detail-section {
    margin-bottom: 6rem;
    scroll-margin-top: 100px;
}

.detail-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Service Categories Grid */
.service-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border: 2px solid var(--gray-lighter);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 8px 24px rgba(11, 17, 32, 0.08);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.category-card h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.category-card ul {
    list-style: none;
    padding: 0;
}

.category-card li {
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--gray);
    line-height: 1.6;
}

.category-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
}

.category-card .note {
    margin-top: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-left: 3px solid #F97316;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--navy);
    line-height: 1.6;
}

.category-card .referral {
    margin-top: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--navy);
    line-height: 1.6;
}

/* Section-specific styling */
.included-section .category-card {
    border-color: rgba(34, 197, 94, 0.3);
}

.included-section .category-card:hover {
    border-color: #22C55E;
}

.project-section .category-card {
    border-color: rgba(14, 165, 233, 0.3);
}

.project-section .category-card:hover {
    border-color: var(--accent);
}

.excluded-section .category-card {
    border-color: rgba(239, 68, 68, 0.3);
}

.excluded-section .category-card:hover {
    border-color: #EF4444;
}

/* Fair Use Notice */
.fair-use-notice {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 2px solid #F59E0B;
    border-radius: 16px;
    padding: 2rem;
}

.fair-use-notice h4 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 800;
}

.fair-use-notice p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.fair-use-notice ul {
    list-style: none;
    padding: 0;
}

.fair-use-notice li {
    padding: 0.5rem 0;
    color: var(--gray);
    padding-left: 1.75rem;
    position: relative;
}

.fair-use-notice li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #F59E0B;
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1;
}

/* Project Process */
.project-process {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 16px;
    padding: 2.5rem;
}

.project-process h4 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 2rem;
    font-weight: 800;
    text-align: center;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 1rem;
}

.step h5 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Honesty Box */
.honesty-box {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 2px solid #22C55E;
    border-radius: 16px;
    padding: 2rem;
}

.honesty-box h4 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 800;
}

.honesty-box p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Document Section */
.document-section {
    background: white;
    border: 2px solid var(--gray-lighter);
    border-radius: 18px;
    padding: 3rem;
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.document-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 1rem;
}

.document-viewer {
    margin-top: 2rem;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-lighter);
    flex-wrap: wrap;
    gap: 1rem;
}

.viewer-header h3 {
    font-size: 1.3rem;
    color: var(--navy);
    font-weight: 700;
}

.viewer-actions {
    display: flex;
    gap: 1rem;
}

.btn-download {
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.pdf-embed-container {
    background: var(--gray-lighter);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.pdf-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem;
}

.fallback-content {
    text-align: center;
    max-width: 400px;
}

.fallback-content svg {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.fallback-content h4 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.fallback-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.document-details {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-lighter);
    flex-wrap: wrap;
}

.detail-item {
    color: var(--gray);
    font-size: 0.95rem;
}

.detail-item strong {
    color: var(--navy);
    font-weight: 700;
}

/* Scope CTA */
.scope-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
    border-radius: 18px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.scope-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.scope-cta h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.scope-cta p {
    color: var(--gray-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.scope-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-categories {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .scope-content {
        padding: 3rem 1.5rem;
    }

    .intro-section {
        margin-bottom: 3rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .quick-nav {
        flex-direction: column;
    }

    .quick-nav-btn {
        width: 100%;
        text-align: center;
    }

    .detail-section {
        margin-bottom: 4rem;
    }

    .detail-section h2 {
        font-size: 2rem;
    }

    .service-categories {
        gap: 1.5rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .category-card h3 {
        font-size: 1.2rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .document-section {
        padding: 2rem 1.5rem;
    }

    .document-section h2 {
        font-size: 2rem;
    }

    .viewer-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .viewer-header h3 {
        font-size: 1.1rem;
    }

    .pdf-embed-container iframe {
        height: 500px;
    }

    .scope-cta {
        padding: 2rem 1.5rem;
    }

    .scope-cta h3 {
        font-size: 1.8rem;
    }

    .scope-cta .cta-buttons {
        flex-direction: column;
    }

    .scope-cta .cta-buttons .btn-primary,
    .scope-cta .cta-buttons .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .detail-section h2 {
        font-size: 1.6rem;
    }

    .document-section h2 {
        font-size: 1.6rem;
    }

    .scope-cta h3 {
        font-size: 1.5rem;
    }

    .pdf-embed-container iframe {
        height: 400px;
    }
}