/* =========================================================
   PJ TRAVEL & TOURS
   Services Page Styles
   ========================================================= */


/* =========================================================
   1. SERVICES HERO
   ========================================================= */

.services-hero {
    min-height: 78svh;
}


.services-hero .page-hero__content {
    max-width: 850px;
}


.services-hero h1 {
    max-width: 800px;

    margin-bottom: 1.5rem;
}


/* =========================================================
   2. SERVICES INTRO
   ========================================================= */

.services-intro {
    background: var(--color-white);
}


.services-intro__grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 7rem;

    align-items: end;
}


.services-intro .section-title {
    margin-bottom: 0;
}


.services-intro .section-description {
    max-width: 540px;

    margin-bottom: 1.75rem;
}


/* =========================================================
   3. SERVICES LIST
   ========================================================= */

.services-list {
    background: var(--color-off-white);
}


.services-list__header {
    max-width: 800px;

    margin-bottom: 4rem;
}


.services-list__header .section-title {
    margin-bottom: 0;
}


.services-list__grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1px;

    background: var(--color-border);

    border:
        1px solid
        var(--color-border);
}


/* =========================================================
   4. SERVICE DETAIL CARD
   ========================================================= */

.service-detail {
    position: relative;

    display: grid;

    grid-template-columns:
        55px
        65px
        1fr;

    gap: 1.5rem;

    min-height: 340px;

    padding: 3rem;

    background: var(--color-white);

    transition:
        background var(--transition),
        transform var(--transition);
}


.service-detail:hover {
    background: var(--color-sand);

    z-index: 2;
}


.service-detail__number {
    align-self: start;

    color: var(--color-accent);

    font-family: var(--font-display);

    font-size: 0.95rem;

    font-weight: 500;

    letter-spacing: 0.04em;
}


.service-detail__icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--color-sand);

    color: var(--color-primary);

    font-family: var(--font-display);

    font-size: 1.35rem;

    transition:
        background var(--transition),
        transform var(--transition);
}


.service-detail:hover
.service-detail__icon {
    background: var(--color-accent);

    transform:
        rotate(-8deg)
        scale(1.05);
}


.service-detail__content {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.service-detail h3 {
    margin-bottom: 0.85rem;

    color: var(--color-primary);

    font-family: var(--font-display);

    font-size: 2rem;

    line-height: 1.1;

    letter-spacing: -0.02em;
}


.service-detail p {
    max-width: 390px;

    margin-bottom: 1.75rem;

    color: var(--color-text-muted);

    font-size: 0.88rem;

    line-height: 1.8;
}


.service-detail .text-link {
    margin-top: auto;
}


/* =========================================================
   5. SERVICE PROCESS
   ========================================================= */

.service-process {
    background: var(--color-primary);

    color: var(--color-white);
}


.service-process__grid {
    display: grid;

    grid-template-columns:
        0.85fr
        1.15fr;

    gap: 8rem;

    align-items: start;
}


.service-process .section-label {
    color: var(--color-accent-light);
}


.service-process .section-title {
    color: var(--color-white);

    margin-bottom: 1.5rem;
}


.service-process .section-description {
    color: rgba(
        255,
        255,
        255,
        0.62
    );
}


.process-list {
    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.14
        );
}


.process-item {
    display: grid;

    grid-template-columns:
        55px
        1fr;

    gap: 1.5rem;

    padding-block: 2.25rem;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.14
        );
}


.process-item > span {
    color: var(--color-accent);

    font-family: var(--font-display);

    font-size: 1rem;
}


.process-item h3 {
    margin-bottom: 0.6rem;

    color: var(--color-white);

    font-family: var(--font-display);

    font-size: 1.75rem;
}


.process-item p {
    max-width: 500px;

    color: rgba(
        255,
        255,
        255,
        0.62
    );

    font-size: 0.85rem;

    line-height: 1.8;
}


/* =========================================================
   6. SERVICES CTA
   ========================================================= */

.services-cta {
    position: relative;

    overflow: hidden;

    padding-block:
        clamp(
            6rem,
            10vw,
            9rem
        );

    background:
        linear-gradient(
            135deg,
            var(--color-sand),
            var(--color-off-white)
        );
}


.services-cta::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -300px;
    right: -100px;

    border:
        1px solid
        rgba(
            16,
            42,
            67,
            0.08
        );

    border-radius: 50%;
}


.services-cta::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    bottom: -220px;
    left: -100px;

    border:
        1px solid
        rgba(
            16,
            42,
            67,
            0.06
        );

    border-radius: 50%;
}


.services-cta__content {
    position: relative;

    z-index: 2;

    max-width: 800px;

    margin-inline: auto;

    text-align: center;
}


.services-cta .section-label {
    justify-content: center;

    color: var(--color-secondary);
}


.services-cta .section-label::before {
    display: none;
}


.services-cta h2 {
    margin-bottom: 1.25rem;

    color: var(--color-primary);

    font-family: var(--font-display);

    font-size: clamp(
        3rem,
        6vw,
        5.5rem
    );

    line-height: 1;

    letter-spacing: -0.035em;
}


.services-cta p {
    max-width: 560px;

    margin:
        0
        auto
        2rem;

    color: var(--color-text-muted);

    font-size: var(--text-lg);

    line-height: 1.8;
}


/* =========================================================
   7. HOVER ACCENT
   ========================================================= */

.service-detail::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 3px;

    background: var(--color-accent);

    transition:
        width 400ms
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.service-detail:hover::after {
    width: 100%;
}


/* =========================================================
   8. TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .services-intro__grid {
        gap: 4rem;
    }


    .service-process__grid {
        gap: 4rem;
    }


    .service-detail {
        grid-template-columns:
            45px
            55px
            1fr;

        padding: 2.5rem 2rem;
    }


    .service-detail h3 {
        font-size: 1.75rem;
    }

}


/* =========================================================
   9. MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* Hero */

    .services-hero {
        min-height: 72svh;
    }


    /* Intro */

    .services-intro__grid {
        grid-template-columns: 1fr;

        gap: 2rem;
    }


    /* Services */

    .services-list__header {
        margin-bottom: 3rem;
    }


    .services-list__grid {
        grid-template-columns: 1fr;
    }


    .service-detail {
        grid-template-columns:
            45px
            55px
            1fr;

        min-height: 300px;

        padding: 2rem 1.5rem;
    }


    .service-detail h3 {
        font-size: 1.65rem;
    }


    .service-detail p {
        font-size: 0.82rem;
    }


    /* Process */

    .service-process__grid {
        grid-template-columns: 1fr;

        gap: 4rem;
    }


    .process-item {
        grid-template-columns:
            45px
            1fr;

        gap: 1rem;
    }


    .process-item h3 {
        font-size: 1.55rem;
    }


    /* CTA */

    .services-cta {
        padding-block: 6rem;
    }


    .services-cta h2 {
        font-size: 3.4rem;
    }

}


/* =========================================================
   10. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .service-detail {
        grid-template-columns:
            35px
            48px
            1fr;

        gap: 1rem;

        padding:
            1.75rem 1.25rem;
    }


    .service-detail__icon {
        width: 46px;
        height: 46px;

        font-size: 1.1rem;
    }


    .service-detail h3 {
        font-size: 1.45rem;
    }


    .service-detail p {
        line-height: 1.7;
    }


    .services-cta h2 {
        font-size: 3rem;
    }

}


/* =========================================================
   11. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .service-detail,
    .service-detail__icon,
    .service-detail::after {
        transition: none;
    }

}