/**
 * Service Detail Page Styling
 */

.service-detail-section {
    padding: 8rem 2rem;
    background: #000;
    color: #fff;
}

.service-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.narrative-content {
    max-width: 1120px;
    margin: 0 auto;
}

/* New Hero Section with Image */
.service-detail-hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12rem 2rem 6rem;
    overflow: hidden;
    background: #000;
}

.service-detail-hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.service-detail-hero-section .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 1s ease;
}

.service-detail-hero-section:hover .hero-bg img {
    transform: scale(1.05);
}

.service-detail-hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, 0) 70%,
            #000 100%);
    z-index: 1;
}

.service-detail-hero-section .service-detail-container {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Redefine section for narrative */
.service-narrative-section {
    padding: 4rem 2rem 8rem;
    background: #000;
    color: #fff;
    position: relative;
    z-index: 20;
}

/* Detail Hero */
.service-detail-hero {
    text-align: center;
    margin-bottom: 6rem;
}

.service-detail-hero .service-number {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #facc15;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
}

.service-detail-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.service-offer-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 100px;
    color: #facc15;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.service-detail-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    margin: 0 auto;
}

/* Narrative Sections */
.narrative-section {
    padding: 3.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.narrative-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.narrative-section h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #facc15;
    /* Muted gold */
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Manifesto Style (Solves) */
.manifesto-text {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.3;
    color: #fff;
    margin-bottom: 2.5rem;
    max-width: 52ch;
}

.manifesto-list {
    list-style: none;
    padding: 0;
}

.manifesto-list li {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* .manifesto-list li::before removed to avoid ticks in horizontal icon sections */

/* Capability Grid (What we do) */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* 4-card variation for specific services is now 3 columns on desktop too */
.capability-grid.four-cards {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {

    .capability-grid,
    .capability-grid.four-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 992px) {

    .capability-grid,
    .capability-grid.four-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .capability-grid,
    .capability-grid.four-cards {
        grid-template-columns: 1fr;
    }
}

.capability-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.capability-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(250, 204, 21, 0.3);
    transform: translateY(-5px);
}

.capability-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.capability-card:hover::after {
    transform: translateX(100%);
}

.capability-card .capability-icon {
    width: 3rem;
    height: 3rem;
    color: #facc15;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.capability-card .capability-number {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(250, 204, 21, 0.5);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.capability-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.capability-card .capability-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.capability-sub-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.capability-card .sub-item {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Image Containers */
.featured-image-container {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin: 4rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #0a0a0a;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.featured-image-container:hover .featured-image {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Deliverables Card Refinement */
.deliverables-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 5rem;
    position: relative;
}

.deliverables-card::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.deliverables-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem;
    margin-top: 4rem;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 4rem;
}

.deliverable-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.deliverable-item .check {
    color: #facc15;
}

.footnote {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Suitability Section (Horizontal Row with Icons) */
.suitability-grid {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.suitability-col h2 {
    margin-bottom: 4rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #facc15;
}

.manifesto-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.manifesto-list li {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.suitability-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 12px;
    color: #facc15;
    margin-bottom: 0.5rem;
}

.suitability-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

@media (max-width: 768px) {
    .manifesto-list {
        gap: 2rem;
    }

    .manifesto-list li {
        max-width: 100%;
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .suitability-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* Engagement Blocks */
.engagement-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 2rem;
}

.spec-block h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
}

.timeline-list,
.format-list {
    list-style: none;
    padding: 0;
}

.timeline-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
}

.timeline-list li span {
    color: #facc15;
}

.format-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 500;
}

/* Process Timeline (Horizontal) */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 2rem;
    right: 2rem;
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.process-step .step-number {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    background: #000;
    border: 1px solid #facc15;
    color: #facc15;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.process-step .step-number svg {
    display: none !important;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.process-step p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem 2rem;
    }

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

@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding-left: 0;
        /* Remove padding as we'll center */
    }

    .process-timeline::after {
        display: none;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }

    .process-step .step-number {
        margin-bottom: 0.5rem;
        flex-shrink: 0;
        width: 3rem !important;
        height: 3rem !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: #000 !important;
        z-index: 1;
        font-size: 1rem;
    }

    .process-step .step-number svg {
        display: none !important;
    }

    .process-step div {
        flex: none;
        padding-top: 0;
    }

    .process-step h3 {
        margin-bottom: 0.5rem;
        font-size: 1.25rem;
    }

    .process-step p {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 280px;
        margin: 0 auto;
        min-height: 4.5em;
        /* Ensure consistent 3-line height */
    }
}



.detail-col ul {
    list-style: none;
    padding: 0;
}

.detail-col ul li {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
}

.detail-col ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #facc15;
}

.detail-info-group {
    margin-bottom: 2rem;
}

.detail-info-group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.detail-info-group p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* CTA Section */
.service-cta {
    padding: 6rem 2rem;
    background: #000000;
    text-align: center;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 2rem;
    border: 1px solid #fff;
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.btn-pill:hover {
    background: #fff;
    color: #000;
}

.btn-pill svg {
    transition: transform 0.3s ease;
}

.btn-pill:hover svg {
    transform: translateX(5px);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-col:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .service-detail-section {
        padding: 5rem 1.25rem;
    }

    .capability-card {
        padding: 2rem 1.5rem;
    }

    .capability-header {
        gap: 1.5rem;
    }

    .capability-sub-items {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-top: 1rem;
    }

    .deliverables-card {
        padding: 2.5rem 1.5rem;
    }

    .deliverables-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .engagement-specs {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .manifesto-text {
        font-size: 1.5rem;
        margin-bottom: 3rem;
    }

    .manifesto-list li {
        font-size: 1rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-col:last-child {
        grid-column: auto;
    }

    .service-detail-hero h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        margin-bottom: 1.5rem;
    }

    .service-detail-description {
        font-size: 1.1rem;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .service-detail-hero .service-number {
        font-size: 1rem;
    }

    .narrative-section h2 {
        margin-bottom: 2rem;
    }

    .capability-card h3 {
        font-size: 1.25rem;
    }
}

/* FAQ Section */
.service-faq-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 2.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    gap: 2rem;
    transition: color 0.3s ease;
    /* Ensure no browser-default padding interferes with alignment */
    padding-left: 0;
    padding-right: 0;
    /* Visibility fixes for long questions */
    white-space: normal;
    line-height: 1.4;
}

.faq-question span:first-child {
    flex: 1;
    display: block;
    /* Ensure the span behaves correctly */
    min-width: 0;
    /* Prevent flex item from overflowing */
}

.faq-question:hover {
    color: #facc15;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #facc15;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.6);
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding-bottom: 2.25rem;
    padding-left: 0;
}

.faq-answer-inner {
    line-height: 1.6;
    font-size: 1rem;
    /* Removed max-width to allow perfect left-alignment with question text */

}