/* =========================================================
   SERVICE DETAIL PAGE
   ========================================================= */


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.service-detail-hero {
    padding: 110px 0 90px;
    background: var(--gray-50);
}

.service-detail-hero .container {
    max-width: 900px;
}

.service-detail-hero h1 {
    max-width: 850px;
    margin: 12px 0 24px;
    color: var(--navy);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;

    font-family: "Times New Roman","Tahoma", serif;
}

.service-detail-hero p:last-child {
    max-width: 800px;
    margin: 0;
    color: var(--gray-600);
    font-size: 1.08rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.service-detail-content {
    padding: 100px 0;
}

.service-detail-content .container {
    max-width: 900px;
}

.service-detail-content h2 {
    margin: 0 0 35px;
    color: var(--navy);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.2;
}


/* ---------------------------------------------------------
   SERVICE LIST
   --------------------------------------------------------- */

.service-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    color: var(--gray-700);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    line-height: 1.6;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.service-detail-list li:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
    box-shadow: 0 10px 25px rgba(11, 31, 58, 0.07);
}


/* ---------------------------------------------------------
   LIST BULLET
   --------------------------------------------------------- */

.service-detail-list__bullet {
    position: relative;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 8px;
    background: var(--orange);
    border-radius: 50%;
}


/* ---------------------------------------------------------
   BEST FOR
   --------------------------------------------------------- */

.service-detail-best-for {
    margin-top: 55px;
    padding: 32px;
    background: var(--gray-50);
    border-left: 4px solid var(--orange);
    border-radius: 0 12px 12px 0;
}

.service-detail-best-for h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.2rem;
}

.service-detail-best-for p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.8;
}


/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.service-detail-cta {
    display: flex;
    justify-content: flex-start;
    margin-top: 35px;
}

.service-detail-cta .button {
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.service-detail-cta .button:hover {
    transform: translateX(4px);
}


/* ---------------------------------------------------------
   REVEAL ANIMATION
   --------------------------------------------------------- */

.service-detail-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.service-detail-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------------------------------------------------------
   STAGGERED LIST
   --------------------------------------------------------- */


/* ---------------------------------------------------------
   STAGGERED LIST
   --------------------------------------------------------- */

.service-detail-stagger li {
    opacity: 0;
    transform: translateY(20px);

    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        border-color 0.15s ease,
        box-shadow 0.25s ease;
}

.service-detail-stagger.is-visible li {
    opacity: 1;
    transform: translateY(0);
}

/* 
   Delay ONLY opacity and transform.
   Border and shadow respond immediately.
*/

.service-detail-stagger.is-visible li:nth-child(1) {
    transition-delay: 0.04s, 0.04s, 0s, 0s;
}

.service-detail-stagger.is-visible li:nth-child(2) {
    transition-delay: 0.08s, 0.08s, 0s, 0s;
}

.service-detail-stagger.is-visible li:nth-child(3) {
    transition-delay: 0.12s, 0.12s, 0s, 0s;
}

.service-detail-stagger.is-visible li:nth-child(4) {
    transition-delay: 0.16s, 0.16s, 0s, 0s;
}

.service-detail-stagger.is-visible li:nth-child(5) {
    transition-delay: 0.20s, 0.20s, 0s, 0s;
}

.service-detail-stagger.is-visible li:nth-child(6) {
    transition-delay: 0.24s, 0.24s, 0s, 0s;
}

.service-detail-stagger.is-visible li:nth-child(7) {
    transition-delay: 0.28s, 0.28s, 0s, 0s;
}

.service-detail-stagger.is-visible li:nth-child(8) {
    transition-delay: 0.32s, 0.32s, 0s, 0s;
}

.service-detail-stagger.is-visible li:nth-child(9) {
    transition-delay: 0.36s, 0.36s, 0s, 0s;
}

.service-detail-stagger.is-visible li:nth-child(10) {
    transition-delay: 0.40s, 0.40s, 0s, 0s;
}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .service-detail-reveal,
    .service-detail-stagger li,
    .service-detail-list li,
    .service-detail-cta .button {
        transition: none;
    }

    .service-detail-reveal,
    .service-detail-stagger li {
        opacity: 1;
        transform: none;
    }
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .service-detail-hero {
        padding: 90px 0 75px;
    }

    .service-detail-content {
        padding: 80px 0;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 640px) {

    .service-detail-hero {
        padding: 70px 0 60px;
    }

    .service-detail-hero h1 {
        font-size: 2.35rem;
    }

    .service-detail-hero p:last-child {
        font-size: 1rem;
    }

    .service-detail-content {
        padding: 65px 0;
    }

    .service-detail-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-detail-list li {
        padding: 16px;
    }

    .service-detail-best-for {
        margin-top: 40px;
        padding: 25px;
    }

    .service-detail-cta {
        margin-top: 28px;
    }
}


/* =========================================================
   SERVICE DETAIL HERO — SMALL EYEBROW LABEL
   Example: OUR SERVICES
   ========================================================= */

.service-detail-eyebrow {

    /* Layout */
    display: inline-flex;
    align-items: center;
    gap: 12px;

    /* Spacing */
    margin: 0 0 24px;

    /* Typography */
    color: #ffb87a;

    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 700;

    letter-spacing: 0.17em;
    line-height: 1.5;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   DOUBLE ORANGE LINE — BEFORE LABEL
   --------------------------------------------------------- */

.service-detail-eyebrow::before {
    content: "";

    /* Customizable orange */
    --kc-orange: var(--orange, #e87524);

    display: inline-block;
    flex-shrink: 0;

    /* Decoration dimensions */
    width: 30px;
    height: 8px;

    /* Two horizontal orange lines */
    background:
        linear-gradient(
            var(--kc-orange),
            var(--kc-orange)
        ) center top / 30px 2px no-repeat,

        linear-gradient(
            var(--kc-orange),
            var(--kc-orange)
        ) center bottom / 30px 2px no-repeat;
}