/* ==========================================================
   TREECRAFT SERVICE PAGE
   Puude raie / hooldus
   ========================================================== */

.treecraft-page {
    --treecraft-purple: #4b416f;
    --treecraft-purple-dark: #38314f;
    --treecraft-yellow: #f2cb3d;

    --treecraft-text: #34343a;
    --treecraft-muted: #6f7078;

    --treecraft-bg: #f5f5f6;
    --treecraft-card: #ffffff;
    --treecraft-border: #e5e5e8;

    --treecraft-radius: 18px;
    --treecraft-shadow: 0 15px 40px rgba(30, 28, 40, 0.08);
}


/* ==========================================================
   INTRO
   ========================================================== */

.treecraft-intro {
    padding: 42px 0 30px;
}

.treecraft-intro__frame {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
    gap: 48px;
    align-items: stretch;

    padding: 44px;

    background: #fff;
    border: 1px solid var(--treecraft-border);
    border-radius: var(--treecraft-radius);

    box-shadow: var(--treecraft-shadow);
}

.treecraft-intro__copy {
    max-width: 850px;
}

.treecraft-intro__label,
.treecraft-services__eyebrow,
.treecraft-request__label {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;

    color: var(--treecraft-purple);
}

.treecraft-intro__title {
    margin: 0 0 20px;

    font-size: clamp(30px, 3.3vw, 46px);
    line-height: 1.12;
    font-weight: 700;

    color: var(--treecraft-purple-dark);
}

.treecraft-intro__copy p {
    margin: 0 0 17px;

    font-size: 16px;
    line-height: 1.75;

    color: var(--treecraft-text);
}

.treecraft-intro__lead {
    font-size: 16px !important;
}

.treecraft-intro__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 27px;
}

.treecraft-fact {
    display: inline-flex;
    align-items: center;

    min-height: 35px;

    padding: 7px 14px;

    background: #f6f5f9;
    border: 1px solid #e6e3ee;
    border-radius: 50px;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;

    color: var(--treecraft-purple-dark);
}


/* ==========================================================
   INTRO CONTACT CARD
   ========================================================== */

.treecraft-intro__contact {
    display: flex;
}

.treecraft-contact {
    position: relative;

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

    width: 100%;

    padding: 34px;

    overflow: hidden;

    background: var(--treecraft-purple-dark);
    border-radius: 15px;
}

.treecraft-contact::after {
    content: "";

    position: absolute;
    width: 150px;
    height: 150px;

    right: -60px;
    top: -60px;

    border-radius: 50%;

    background: rgba(255,255,255,.05);
}

.treecraft-contact__mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    margin-bottom: 26px;

    border-radius: 50%;

    background: var(--treecraft-yellow);

    font-size: 14px;
    font-weight: 800;

    color: var(--treecraft-purple-dark);
}

.treecraft-contact__title {
    position: relative;
    z-index: 1;

    margin: 0 0 13px;

    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;

    color: #fff;
}

.treecraft-contact__text {
    margin: 0 0 25px;

    font-size: 14px;
    line-height: 1.6;

    color: rgba(255,255,255,.77);
}

.treecraft-contact__actions {
    display: grid;
    gap: 10px;
}

.treecraft-contact__button {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 48px;

    padding: 11px 18px;

    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    color: #fff;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.treecraft-contact__button:hover,
.treecraft-contact__button:focus {
    color: #fff;
    text-decoration: none;

    background: rgba(255,255,255,.09);

    transform: translateY(-1px);
}

.treecraft-contact__button--primary {
    background: var(--treecraft-yellow);
    border-color: var(--treecraft-yellow);

    color: var(--treecraft-purple-dark);
}

.treecraft-contact__button--primary:hover,
.treecraft-contact__button--primary:focus {
    background: #e8bd27;
    border-color: #e8bd27;

    color: var(--treecraft-purple-dark);
}


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

.treecraft-services {
    padding: 55px 0 20px;
}

.treecraft-services__heading {
    max-width: 780px;

    margin: 0 auto 36px;

    text-align: center;
}

.treecraft-services__heading h2 {
    margin: 0 0 13px;

    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 700;

    color: var(--treecraft-purple-dark);
}

.treecraft-services__heading p {
    margin: 0;

    font-size: 16px;
    line-height: 1.65;

    color: var(--treecraft-muted);
}


/* ==========================================================
   SERVICE CARD
   ========================================================== */

.treecraft-service {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    min-height: 420px;

    margin-bottom: 32px;

    overflow: hidden;

    background: #fff;
    border: 1px solid var(--treecraft-border);
    border-radius: var(--treecraft-radius);

    box-shadow: 0 10px 35px rgba(30, 28, 40, .06);

    scroll-margin-top: 110px;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.treecraft-service:hover {
    transform: translateY(-3px);

    box-shadow: 0 18px 48px rgba(30, 28, 40, .10);
}


/* alternating block */

.treecraft-service--reverse .treecraft-service__media {
    order: 2;
}

.treecraft-service--reverse .treecraft-service__body {
    order: 1;
}


/* image */

.treecraft-service__media {
    position: relative;

    min-height: 420px;

    overflow: hidden;

    background: #ececef;
}

.treecraft-service__media::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0) 65%,
            rgba(0,0,0,.08) 100%
        );

    pointer-events: none;
}

.treecraft-service__media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform .6s ease;
}

.treecraft-service:hover .treecraft-service__media img {
    transform: scale(1.025);
}


/* text */

.treecraft-service__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    padding: clamp(34px, 5vw, 62px);
}

.treecraft-service__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 46px;
    height: 29px;

    margin-bottom: 20px;

    padding: 0 10px;

    border-radius: 30px;

    background: var(--treecraft-yellow);

    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;

    color: var(--treecraft-purple-dark);
}

.treecraft-service__title {
    margin: 0 0 19px;

    font-size: clamp(25px, 2.7vw, 34px);
    line-height: 1.2;
    font-weight: 700;

    color: var(--treecraft-purple-dark);
}

.treecraft-service__body p {
    margin: 0 0 14px;

    max-width: 620px;

    font-size: 15.5px;
    line-height: 1.7;

    color: var(--treecraft-text);
}

.treecraft-service__body p:last-of-type {
    margin-bottom: 28px;
}


/* CTA */

.treecraft-service__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    min-height: 46px;

    padding: 11px 21px;

    background: var(--treecraft-purple);
    border: 1px solid var(--treecraft-purple);
    border-radius: 7px;

    color: #fff;

    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        gap .2s ease;
}

.treecraft-service__button span {
    font-size: 19px;
    line-height: 1;
}

.treecraft-service__button:hover,
.treecraft-service__button:focus {
    gap: 18px;

    background: var(--treecraft-purple-dark);
    border-color: var(--treecraft-purple-dark);

    color: #fff;
    text-decoration: none;
}


/* ==========================================================
   FAQ
   Existing TreesFaq markup
   ========================================================== */

.treecraft-page .faq-section {
    margin-top: 55px;

    padding-top: 0;
}

.treecraft-page .faq-section .faq-title {
    margin: 0 0 28px;

    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 700;

    color: var(--treecraft-purple-dark);
}

.treecraft-page .faq-container {
    overflow: hidden;

    background: #fff;
    border: 1px solid var(--treecraft-border);
    border-radius: var(--treecraft-radius);

    box-shadow: 0 10px 35px rgba(30,28,40,.05);
}

.treecraft-page .faq-item {
    border-bottom: 1px solid var(--treecraft-border);
}

.treecraft-page .faq-item:last-child {
    border-bottom: 0;
}

.treecraft-page .faq-question {
    position: relative;

    width: 100%;

    padding: 21px 58px 21px 24px;

    border: 0;

    background: #fff;

    text-align: left;

    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;

    color: var(--treecraft-purple-dark);

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease;
}

.treecraft-page .faq-question::after {
    content: "+";

    position: absolute;

    right: 23px;
    top: 50%;

    width: 28px;
    height: 28px;

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

    transform: translateY(-50%);

    border-radius: 50%;

    background: #f4f2f8;

    font-size: 20px;
    line-height: 1;

    color: var(--treecraft-purple);
}

.treecraft-page .faq-question:hover {
    background: #faf9fc;
}

.treecraft-page .faq-question.active::after {
    content: "−";

    background: var(--treecraft-yellow);

    color: var(--treecraft-purple-dark);
}

.treecraft-page .faq-answer {
    max-height: 0;

    overflow: hidden;

    padding: 0 24px;

    transition:
        max-height .32s ease,
        padding-bottom .32s ease;
}

.treecraft-page .faq-answer p {
    max-width: 900px;

    margin: 0;

    font-size: 15px;
    line-height: 1.7;

    color: var(--treecraft-muted);
}


/* ==========================================================
   REQUEST FORM
   ========================================================== */

.treecraft-request {
    padding: 60px 0 15px;
}

.treecraft-request__box {
    display: grid;
    grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr);

    gap: 45px;

    padding: 42px;

    background: #f7f6f9;
    border: 1px solid var(--treecraft-border);
    border-radius: var(--treecraft-radius);
}

.treecraft-request__heading {
    align-self: start;
}

.treecraft-request__title {
    margin: 0 0 13px;

    font-size: clamp(27px, 3vw, 37px);
    line-height: 1.15;
    font-weight: 700;

    color: var(--treecraft-purple-dark);
}

.treecraft-request__heading p {
    margin: 0;

    font-size: 15px;
    line-height: 1.65;

    color: var(--treecraft-muted);
}

.treecraft-request__form {
    min-width: 0;
}


/* remove old FAQ card styling only inside form if AjaxForm
   is wrapped with generic faq-container somewhere */

.treecraft-request .faq-container {
    overflow: visible;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991px) {

    .treecraft-intro {
        padding-top: 30px;
    }

    .treecraft-intro__frame {
        grid-template-columns: 1fr;

        gap: 28px;

        padding: 32px;
    }

    .treecraft-contact {
        padding: 30px;
    }

    .treecraft-service {
        min-height: 360px;
    }

    .treecraft-service__media {
        min-height: 360px;
    }

    .treecraft-service__body {
        padding: 36px;
    }

    .treecraft-request__box {
        grid-template-columns: 1fr;

        gap: 28px;

        padding: 34px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .treecraft-intro {
        padding: 22px 0 10px;
    }

    .treecraft-intro__frame {
        gap: 20px;

        padding: 22px;

        border-radius: 13px;

        box-shadow: 0 8px 25px rgba(30,28,40,.07);
    }

    .treecraft-intro__title {
        font-size: 28px;
    }

    .treecraft-intro__copy p,
    .treecraft-intro__lead {
        font-size: 15px !important;
        line-height: 1.65;
    }

    .treecraft-intro__facts {
        margin-top: 22px;
    }

    .treecraft-fact {
        font-size: 12px;
    }

    .treecraft-contact {
        padding: 25px 22px;

        border-radius: 11px;
    }

    .treecraft-contact__mark {
        margin-bottom: 17px;
    }

    .treecraft-contact__title {
        font-size: 21px;
    }


    /* services */

    .treecraft-services {
        padding-top: 38px;
    }

    .treecraft-services__heading {
        margin-bottom: 24px;

        text-align: left;
    }

    .treecraft-service,
    .treecraft-service--reverse {
        grid-template-columns: 1fr;

        min-height: 0;

        margin-bottom: 22px;

        border-radius: 13px;

        transform: none;
    }

    .treecraft-service:hover {
        transform: none;
    }

    .treecraft-service__media,
    .treecraft-service--reverse .treecraft-service__media {
        order: 1;

        min-height: 0;

        aspect-ratio: 16 / 10;
    }

    .treecraft-service__body,
    .treecraft-service--reverse .treecraft-service__body {
        order: 2;

        padding: 27px 23px 29px;
    }

    .treecraft-service__number {
        margin-bottom: 15px;
    }

    .treecraft-service__title {
        margin-bottom: 15px;

        font-size: 25px;
    }

    .treecraft-service__body p {
        font-size: 14.5px;
        line-height: 1.65;
    }

    .treecraft-service__button {
        width: 100%;

        margin-top: 2px;
    }


    /* FAQ */

    .treecraft-page .faq-section {
        margin-top: 38px;
    }

    .treecraft-page .faq-question {
        padding: 18px 54px 18px 19px;

        font-size: 15px;
    }

    .treecraft-page .faq-question::after {
        right: 17px;
    }

    .treecraft-page .faq-answer {
        padding-left: 19px;
        padding-right: 19px;
    }


    /* form */

    .treecraft-request {
        padding-top: 40px;
    }

    .treecraft-request__box {
        gap: 24px;

        padding: 24px 20px;

        border-radius: 13px;
    }

}


/* ==========================================================
   VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 420px) {

    .treecraft-intro__frame {
        padding: 19px;
    }

    .treecraft-intro__title {
        font-size: 25px;
    }

    .treecraft-service__title {
        font-size: 23px;
    }

    .treecraft-service__media {
        aspect-ratio: 4 / 3;
    }

}


/* ==========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================== */

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

    .treecraft-service,
    .treecraft-service__media img,
    .treecraft-service__button,
    .treecraft-contact__button,
    .treecraft-page .faq-answer {
        transition: none;
    }

}