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


/* ==================================================
   SERVICES HERO
================================================== */

.services-hero-section {
    position: relative;
    padding: 105px 0 115px;
    background:
        linear-gradient(
            110deg,
            #f7faf8 0%,
            #ffffff 58%,
            #f0f6f1 100%
        );
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.services-hero-section::before {
    content: "";
    position: absolute;
    top: -260px;
    right: -150px;
    width: 680px;
    height: 680px;
    border: 1px solid rgba(46, 125, 50, 0.11);
    border-radius: 50%;
}

.services-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 90px;
}

.services-hero-content h1 {
    max-width: 800px;
    font-size: clamp(3rem, 5vw, 4.7rem);
}

.services-hero-description {
    max-width: 710px;
    margin-top: 27px;
    font-size: 1.08rem;
    line-height: 1.85;
}

.services-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}


/* ==================================================
   HERO SYSTEM VISUAL
================================================== */

.services-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-system-card {
    width: min(100%, 520px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.service-system-topbar {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 22px;
    color: #849087;
    background: #f4f7f5;
    border-bottom: 1px solid var(--border);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-system-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 30px;
    text-align: center;
}

.system-core-label {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-system-core strong {
    margin-top: 10px;
    color: var(--dark);
    font-family: "Poppins", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-system-core small {
    margin-top: 7px;
    color: var(--text);
    font-size: 0.73rem;
}

.service-system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.system-module {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.system-module span {
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
}

.system-module strong {
    margin-top: 7px;
    color: var(--dark);
    font-size: 0.78rem;
}


/* ==================================================
   COMMON HEADINGS
================================================== */

.services-section-heading {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    align-items: end;
    gap: 80px;
    margin-bottom: 55px;
}

.services-section-heading h2 {
    max-width: 720px;
}

.services-section-heading > p {
    max-width: 510px;
    line-height: 1.85;
}

.centered-services-heading {
    max-width: 790px;
    margin: 0 auto 58px;
    text-align: center;
}

.centered-services-heading > p:last-child {
    max-width: 650px;
    margin: 20px auto 0;
    line-height: 1.85;
}


/* ==================================================
   SERVICE OVERVIEW
================================================== */

.service-overview-section {
    padding: 115px 0;
    background: var(--white);
}

.service-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.overview-card {
    position: relative;
    min-height: 300px;
    padding: 34px;
    background: var(--white);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.overview-card:hover {
    z-index: 2;
    background: var(--off-white);
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.overview-number {
    position: absolute;
    top: 28px;
    right: 28px;
    color: #adb7b1;
    font-size: 0.72rem;
    font-weight: 700;
}

.overview-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 27px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.overview-card h3 {
    margin-bottom: 14px;
    font-size: 1.18rem;
}

.overview-card p {
    max-width: 270px;
    font-size: 0.87rem;
    line-height: 1.8;
}

.overview-arrow {
    position: absolute;
    bottom: 30px;
    left: 34px;
    color: var(--primary);
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.overview-card:hover .overview-arrow {
    transform: translateX(5px);
}


/* ==================================================
   SERVICE DETAIL SECTIONS
================================================== */

.service-detail-section {
    padding: 115px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.alternate-service-section {
    background: var(--off-white);
}

.marketing-service-section {
    color: #b7c2bb;
    background: #18211c;
    border-top: 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 85px;
}

.service-detail-heading {
    position: sticky;
    top: 125px;
}

.service-detail-number {
    margin-bottom: 16px;
    color: #9da8a1;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-detail-heading h2 {
    max-width: 560px;
}

.service-detail-heading > p:last-child {
    max-width: 520px;
    margin-top: 22px;
    line-height: 1.85;
}

.service-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.service-capability {
    min-height: 225px;
    padding: 30px;
    background: var(--white);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.alternate-service-section .service-capability {
    background: #fbfcfb;
}

.service-capability h3 {
    margin-bottom: 14px;
    font-size: 1.04rem;
    line-height: 1.5;
}

.service-capability p {
    font-size: 0.85rem;
    line-height: 1.8;
}

.marketing-service-section .service-detail-heading h2,
.marketing-service-section .service-capability h3 {
    color: var(--white);
}

.marketing-service-section .service-detail-heading > p:last-child {
    color: #aeb9b2;
}

.marketing-service-section .service-capability-grid {
    border-color: rgba(255, 255, 255, 0.13);
}

.marketing-service-section .service-capability {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.13);
}

.marketing-service-section .service-capability p {
    color: #aeb9b2;
}


/* ==================================================
   DELIVERY PROCESS
================================================== */

.service-process-section {
    padding: 115px 0;
    background: var(--off-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.service-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.service-process-card {
    min-height: 250px;
    padding: 32px;
    background: var(--white);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.service-process-card span {
    display: block;
    margin-bottom: 35px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.service-process-card h3 {
    margin-bottom: 14px;
    font-size: 1.08rem;
}

.service-process-card p {
    font-size: 0.85rem;
    line-height: 1.8;
}


/* ==================================================
   ENGAGEMENT MODELS
================================================== */

.engagement-section {
    padding: 115px 0;
    background: var(--white);
}

.engagement-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 85px;
}

.engagement-heading p:last-child {
    max-width: 490px;
    margin-top: 22px;
    line-height: 1.85;
}

.engagement-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.engagement-card {
    position: relative;
    min-height: 180px;
    padding: 32px 75px 32px 90px;
    background: var(--off-white);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.engagement-number {
    position: absolute;
    top: 36px;
    left: 30px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.engagement-card h3 {
    margin-bottom: 13px;
    font-size: 1.08rem;
}

.engagement-card p {
    max-width: 650px;
    font-size: 0.87rem;
    line-height: 1.8;
}


/* ==================================================
   FINAL CTA
================================================== */

.services-cta-section {
    padding: 100px 0;
    background: #edf3ef;
}

.services-cta-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 70px;
}

.services-cta-layout h2 {
    max-width: 760px;
}

.services-cta-layout p:last-child {
    max-width: 660px;
    margin-top: 20px;
    line-height: 1.8;
}

.services-cta-actions {
    min-width: 245px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1050px) {

    .services-hero-grid {
        grid-template-columns: 1fr 0.85fr;
        gap: 50px;
    }

    .service-detail-grid,
    .engagement-layout {
        gap: 55px;
    }

}


@media (max-width: 900px) {

    .services-hero-section {
        padding: 80px 0;
    }

    .services-hero-grid,
    .service-detail-grid,
    .engagement-layout {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .services-section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .service-detail-heading {
        position: static;
    }

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

    .services-cta-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .services-cta-actions {
        min-width: 0;
        max-width: 320px;
    }

}


@media (max-width: 620px) {

    .services-hero-section,
    .service-overview-section,
    .service-detail-section,
    .service-process-section,
    .engagement-section,
    .services-cta-section {
        padding: 75px 0;
    }

    .services-hero-content h1 {
        font-size: clamp(2.45rem, 11vw, 3.5rem);
    }

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

    .services-hero-visual {
        display: none;
    }

    .service-overview-grid,
    .service-capability-grid,
    .service-process-grid {
        grid-template-columns: 1fr;
    }

    .overview-card {
        min-height: 275px;
    }

    .service-capability {
        min-height: auto;
        padding: 28px 25px;
    }

    .engagement-card {
        min-height: auto;
        padding: 60px 25px 28px;
    }

    .engagement-number {
        top: 27px;
        left: 25px;
    }

    .services-cta-actions {
        max-width: none;
    }

}