/* ==========================================================================
   FARNIKWEB — Single Service
   Version: 1.2
   ========================================================================== */


/* ==========================================================================
   Page
   ========================================================================== */

.fw-service-single {
    overflow: hidden;
    background: var(--fw-bg);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.fw-service-hero {
    position: relative;
    overflow: hidden;

    padding-top: 88px;
    padding-bottom: 84px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(120, 153, 212, 0.11),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            var(--fw-bg) 0%,
            var(--fw-white) 100%
        );
}

.fw-service-hero__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(360px, 0.92fr);

    align-items: center;

    gap: 72px;

    min-height: 390px;
}


/* ==========================================================================
   Hero Content
   ========================================================================== */

.fw-service-hero__content {
    position: relative;
    z-index: 2;

    max-width: 700px;
}

.fw-service-hero__eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color: var(--fw-primary);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.fw-service-hero__eyebrow::before {
    content: "";

    display: block;

    width: 28px;
    height: 2px;

    flex: 0 0 auto;

    border-radius: var(--fw-radius-pill);

    background: var(--fw-primary);
}

.fw-service-hero__title {
    max-width: 680px;

    margin-top: 0;
    margin-bottom: 20px;

    color: var(--fw-navy);

    font-size: clamp(44px, 4.4vw, 62px);
    font-weight: 800;
    line-height: 1.28;

    letter-spacing: -0.02em;
}

.fw-service-hero__description {
    max-width: 650px;

    margin-bottom: 30px;

    color: var(--fw-text-secondary);

    font-size: 17px;
    font-weight: 400;
    line-height: 1.95;
}

.fw-service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px;
}

.fw-service-hero__actions .fw-button {
    min-height: 50px;

    padding-inline: 26px;
}


/* ==========================================================================
   Hero Visual
   ========================================================================== */

.fw-service-hero__visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    min-height: 390px;
}


/*
 * No image has been assigned to the service.
 *
 * The visual column intentionally remains empty so a service vector
 * can be uploaded later from the FARNIKWEB service manager.
 */
.fw-service-hero__visual--empty {
    border: 0;

    background: transparent;

    box-shadow: none;
}


/*
 * Service image/vector exists.
 */
.fw-service-hero__visual--has-image {
    overflow: visible;

    border: 0;

    background: transparent;

    box-shadow: none;
}

.fw-service-hero__image {
    display: block;
    visibility: visible;
    opacity: 1;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 390px;

    margin-inline: auto;

    object-fit: contain;
    object-position: center;
    content-visibility: visible;
}


/* ==========================================================================
   Summary
   ========================================================================== */

.fw-service-summary {
    position: relative;
    z-index: 5;

    margin-top: -28px;
}

.fw-service-summary__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    overflow: hidden;

    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius-card);

    background: var(--fw-white);

    box-shadow:
        0 14px 40px rgba(16, 29, 54, 0.055);
}

.fw-service-summary__item {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;

    min-height: 104px;

    padding: 23px 30px;
}

.fw-service-summary__item:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 24px;
    bottom: 24px;
    left: 0;

    width: 1px;

    background: var(--fw-border);
}

.fw-service-summary__label {
    color: var(--fw-text-secondary);

    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}

.fw-service-summary__value {
    color: var(--fw-navy);

    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
}


/* ==========================================================================
   Main Service Content
   ========================================================================== */

.fw-service-content {
    padding-top: 92px;
    padding-bottom: 92px;
}

.fw-service-content__layout {
    display: grid;

    grid-template-columns:
        minmax(260px, 0.72fr)
        minmax(0, 1.28fr);

    align-items: start;

    gap: 80px;
}

.fw-service-content__heading {
    position: sticky;
    top: 110px;
}

.fw-service-content__eyebrow {
    display: block;

    margin-bottom: 12px;

    color: var(--fw-primary);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.fw-service-content__heading h2 {
    max-width: 420px;

    margin-top: 0;
    margin-bottom: 0;

    color: var(--fw-navy);

    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
}

.fw-service-content__body {
    max-width: 720px;

    color: var(--fw-text-secondary);

    font-size: 17px;
    font-weight: 400;
    line-height: 2;
}

.fw-service-content__body > *:first-child {
    margin-top: 0;
}

.fw-service-content__body > *:last-child {
    margin-bottom: 0;
}

.fw-service-content__body p {
    margin-bottom: 20px;
}

.fw-service-content__body h2,
.fw-service-content__body h3,
.fw-service-content__body h4 {
    color: var(--fw-navy);
}

.fw-service-content__body h2 {
    margin-top: 46px;
    margin-bottom: 18px;

    font-size: 29px;
    line-height: 1.5;
}

.fw-service-content__body h3 {
    margin-top: 38px;
    margin-bottom: 14px;

    font-size: 23px;
    line-height: 1.55;
}

.fw-service-content__body h4 {
    margin-top: 30px;
    margin-bottom: 12px;

    font-size: 20px;
    line-height: 1.6;
}

.fw-service-content__body ul,
.fw-service-content__body ol {
    margin-top: 18px;
    margin-bottom: 24px;

    padding-right: 24px;
}

.fw-service-content__body li {
    margin-bottom: 8px;
}

.fw-service-content__body a {
    color: var(--fw-primary);

    text-decoration: underline;
    text-underline-offset: 4px;
}


/* ==========================================================================
   Final CTA
   ========================================================================== */

.fw-service-cta {
    padding-top: 72px;
    padding-bottom: 80px;
}


/*
 * When "full service description" is empty,
 * CTA follows Summary directly.
 */
.fw-service-summary + .fw-service-cta {
    padding-top: 64px;
}

.fw-service-cta__inner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 48px;

    min-height: 210px;

    overflow: hidden;

    padding: 42px 52px;

    border-radius: var(--fw-radius-large);

    background: var(--fw-navy);
}

.fw-service-cta__inner::before {
    content: "";

    position: absolute;
    top: 0;
    right: 32px;
    left: 32px;

    height: 3px;

    border-radius: 0 0 999px 999px;

    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--fw-misty-blue) 20%,
        var(--fw-primary) 50%,
        var(--fw-misty-blue) 80%,
        transparent 100%
    );

    pointer-events: none;
}

.fw-service-cta__content {
    position: relative;
    z-index: 2;

    max-width: 700px;
}

.fw-service-cta__eyebrow {
    display: block;

    margin-bottom: 9px;

    color: var(--fw-misty-blue);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

.fw-service-cta h2 {
    margin-top: 0;
    margin-bottom: 10px;

    color: var(--fw-white);

    font-size: 32px;
    font-weight: 700;
    line-height: 1.45;
}

.fw-service-cta p {
    max-width: 650px;

    margin-bottom: 0;

    color:
        rgba(255, 255, 255, 0.70);

    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
}

.fw-service-cta .fw-button {
    position: relative;
    z-index: 2;

    flex: 0 0 auto;

    min-height: 50px;

    padding-inline: 26px;

    color: var(--fw-primary);

    background: var(--fw-white);
}

.fw-service-cta .fw-button:hover {
    color: var(--fw-primary);

    background: var(--fw-ice-blue);
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1024px) {

    .fw-service-hero {
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .fw-service-hero__grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, 0.82fr);

        gap: 44px;

        min-height: 340px;
    }

    .fw-service-hero__visual {
        min-height: 340px;
    }

    .fw-service-hero__image {
        max-height: 340px;
    }


    /* Content */

    .fw-service-content {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .fw-service-content__layout {
        gap: 52px;
    }


    /* CTA */

    .fw-service-cta {
        padding-top: 64px;
        padding-bottom: 72px;
    }

    .fw-service-summary + .fw-service-cta {
        padding-top: 56px;
    }

    .fw-service-cta__inner {
        padding: 38px 42px;
    }
}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 767px) {

    /* Hero */

    .fw-service-hero {
        padding-top: 56px;
        padding-bottom: 64px;
    }

    .fw-service-hero__grid {
        grid-template-columns: 1fr;

        gap: 38px;

        min-height: 0;
    }

    .fw-service-hero__content {
        max-width: none;
    }

    .fw-service-hero__eyebrow {
        margin-bottom: 16px;

        font-size: 13px;
    }

    .fw-service-hero__eyebrow::before {
        width: 22px;
    }

    .fw-service-hero__title {
        margin-bottom: 18px;

        font-size: 38px;
        line-height: 1.35;
    }

    .fw-service-hero__description {
        margin-bottom: 26px;

        font-size: 16px;
        line-height: 1.9;
    }

    .fw-service-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fw-service-hero__actions .fw-button {
        width: 100%;
    }


    /*
     * If no vector exists, do not create a large empty
     * area on mobile.
     */
    .fw-service-hero__visual--empty {
        display: none;
    }

    .fw-service-hero__visual--has-image {
        min-height: 260px;
    }

    .fw-service-hero__image {
        max-height: 280px;
    }


    /* Summary */

    .fw-service-summary {
        margin-top: -18px;
    }

    .fw-service-summary__grid {
        grid-template-columns: 1fr;
    }

    .fw-service-summary__item {
        min-height: auto;

        padding: 20px 22px;
    }

    .fw-service-summary__item:not(:last-child)::after {
        top: auto;
        right: 22px;
        bottom: 0;
        left: 22px;

        width: auto;
        height: 1px;
    }


    /* Main Content */

    .fw-service-content {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .fw-service-content__layout {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .fw-service-content__heading {
        position: static;
    }

    .fw-service-content__heading h2 {
        font-size: 29px;
    }

    .fw-service-content__body {
        max-width: none;

        font-size: 16px;
        line-height: 1.95;
    }


    /* CTA */

    .fw-service-cta,
    .fw-service-summary + .fw-service-cta {
        padding-top: 52px;
        padding-bottom: 60px;
    }

    .fw-service-cta__inner {
        flex-direction: column;
        align-items: stretch;

        min-height: 0;

        gap: 26px;

        padding: 32px 26px;
    }

    .fw-service-cta h2 {
        font-size: 28px;
    }

    .fw-service-cta p {
        font-size: 15px;
    }

    .fw-service-cta .fw-button {
        width: 100%;
    }
}


/* ==========================================================================
   Small Mobile
   ========================================================================== */

@media (max-width: 480px) {

    .fw-service-hero__title {
        font-size: 34px;
    }

    .fw-service-hero__visual--has-image {
        min-height: 220px;
    }

    .fw-service-hero__image {
        max-height: 240px;
    }

    .fw-service-cta__inner {
        padding: 28px 22px;
    }
}
/* ==========================================================================
   Structured service content
   ========================================================================== */
.fw-service-details {
    padding-block: 64px;
}
.fw-service-details > .fw-container {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 64px;
}
.fw-service-details h2 {
    position: sticky;
    top: 110px;
    margin: 0;
    color: var(--fw-navy);
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.fw-service-details h2::before {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin-bottom: 18px;
    background: var(--fw-primary);
    border-radius: var(--fw-radius-pill);
}
.fw-service-details__list {
    display: grid;
    gap: 16px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fw-service-details__list > li {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 24px 28px;
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius-small);
    background: var(--fw-white);
}
.fw-service-details h3 {
    margin: 0 0 8px;
    color: var(--fw-navy);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.fw-service-details p {
    margin: 0;
    color: var(--fw-text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 2;
    overflow-wrap: anywhere;
}
.fw-service-details--features .fw-service-details__list > li {
    padding-inline-start: 52px;
}
.fw-service-details--features li::before {
    content: "";
    position: absolute;
    inset-inline-start: 25px;
    top: 35px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--fw-primary);
}
.fw-service-details--process {
    background: var(--fw-white);
}
.fw-service-details--process .fw-service-details__list {
    counter-reset: fw-service-step;
    gap: 0;
}
.fw-service-details--process li {
    counter-increment: fw-service-step;
    padding: 28px 0;
    padding-inline-start: 64px;
    border: 0;
    border-bottom: 1px solid var(--fw-border);
    border-radius: 0;
    background: transparent;
}
.fw-service-details--process li:first-child { padding-top: 0; }
.fw-service-details--process li:last-child { border-bottom: 0; padding-bottom: 0; }
.fw-service-details--process li::before {
    content: counter(fw-service-step, decimal-leading-zero);
    position: absolute;
    inset-inline-start: 0;
    top: 28px;
    color: var(--fw-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
}
.fw-service-details--process li:first-child::before { top: 0; }
.fw-service-details--audience .fw-service-details__list > li {
    border-color: transparent;
    background: var(--fw-ice-blue);
}
.fw-service-faq { min-width: 0; width: 100%; }
.fw-service-faq details {
    padding-block: 22px;
    border-bottom: 1px solid var(--fw-border);
}
.fw-service-faq details:first-child { padding-top: 0; }
.fw-service-faq summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    color: var(--fw-navy);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.9;
    list-style: none;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.fw-service-faq summary::-webkit-details-marker { display: none; }
.fw-service-faq summary::marker { content: ""; }
.fw-service-faq summary::after {
    content: "+";
    flex: 0 0 24px;
    color: var(--fw-primary);
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    line-height: 1;
}
.fw-service-faq details[open] summary::after { content: "−"; }
.fw-service-faq details[open] p { margin-top: 14px; padding-inline-end: 48px; }
.fw-service-faq summary:hover { color: var(--fw-primary); }
.fw-service-faq summary:focus-visible {
    outline: 2px solid var(--fw-primary);
    outline-offset: 6px;
    border-radius: 2px;
}
@media (max-width: 1024px) {
    .fw-service-details > .fw-container { gap: 40px; }
}
@media (max-width: 767px) {
    .fw-service-details { padding-block: 40px; }
    .fw-service-details > .fw-container { grid-template-columns: 1fr; gap: 28px; }
    .fw-service-details h2 { position: static; font-size: 26px; }
    .fw-service-details h2::before { margin-bottom: 12px; }
    .fw-service-details__list > li { padding: 20px; }
    .fw-service-details--features .fw-service-details__list > li { padding-inline-start: 44px; }
    .fw-service-details--features li::before { inset-inline-start: 20px; top: 31px; }
    .fw-service-details--process li { padding: 24px 0; padding-inline-start: 48px; }
    .fw-service-details--process li::before { top: 24px; font-size: 21px; }
    .fw-service-details h3 { font-size: 18px; }
    .fw-service-faq summary { font-size: 16px; gap: 16px; }
    .fw-service-faq details[open] p { padding-inline-end: 0; }
}
