/*
 * Services Landing - optional extras (MSH Studios, 2026-09-28).
 * Loaded only on pages that fill one of the optional fields (hero subline/body/note,
 * repairs subheading + flip tiles, service body/note). Pages that do not use them
 * never load this file.
 */

/* Hero */
.block-services-hero__subline {
    font-family: var(--font-content);
    font-weight: 600;
    font-size: 20px !important;
    line-height: 28px !important;
    color: var(--primary) !important;
    opacity: 1 !important;
    margin: 12px 0 0;
}

/* Longer intro copy needs a stronger scrim than the one-line default to stay readable on the photo. */
.block-services-hero:has(.block-services-hero__body)::before {
    background: linear-gradient(90deg,
            rgba(18, 18, 17, 0.82) 0%,
            rgba(18, 18, 17, 0.6) 70%,
            rgba(18, 18, 17, 0) 95%);
}

/* With a longer intro the heading steps down so the buttons stay near the first screen. */
.block-services-hero:has(.block-services-hero__body) {
    padding-top: 100px;
}

.block-services-hero:has(.block-services-hero__body) .block-services-hero__content {
    padding-bottom: 56px;
}

.page-template-page-services-landing-page .block-services-hero:has(.block-services-hero__body) h1 {
    font-size: clamp(64px, 5vw, 84px);
    line-height: 0.95;
    overflow-wrap: break-word;
}

.block-services-hero__body {
    max-width: 680px;
    margin: 20px 0 24px;
}

.block-services-hero__body p {
    opacity: 0.95 !important;
}

.block-services-hero__body p {
    margin-bottom: 12px;
}

.block-services-hero__body p:last-child {
    margin-bottom: 0;
}

.block-services-hero__note {
    margin-top: 16px;
}

.block-services-hero__note p {
    font-size: 14px !important;
    line-height: 20px !important;
    opacity: 0.9 !important;
    margin-bottom: 4px;
}

.block-services-hero__note a {
    color: var(--primary);
    text-decoration: underline;
}

/* Repairs: subheading */
.block-services-repairs__subheading {
    font-family: var(--font-content);
    font-weight: 500;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: -0.02em;
    color: #494948;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

/* Repairs: flip tiles */
.block-services-repairs__services .bp-flip {
    height: 100%;
    perspective: 1200px;
    border-radius: 20px;
    outline: none;
    cursor: pointer;
}

.bp-flip__card {
    display: grid;
    height: 100%;
    min-height: 260px;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.bp-flip__face {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    border-radius: 20px;
    text-align: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bp-flip__front {
    background: var(--white);
    border: 1px solid rgba(18, 18, 17, 0.08);
    box-shadow: 0 10px 30px rgba(18, 18, 17, 0.08);
}

.bp-flip__front img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.page-template-page-services-landing-page .bp-flip__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 40px;
    line-height: 38px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--dark);
    margin: 0 0 16px;
}

.bp-flip__hint {
    font-family: var(--font-content);
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bp-flip__hint::after {
    content: "\2192";
    color: var(--secondary);
}

.bp-flip__back {
    background: var(--dark);
    color: var(--white);
    transform: rotateY(180deg);
    justify-content: center;
}

.bp-flip__back-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 30px;
    line-height: 30px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 10px;
}

.bp-flip__text {
    font-family: var(--font-content);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.01em;
    color: var(--white);
    margin: 0;
}

.bp-flip:focus-within .bp-flip__card,
.bp-flip:focus .bp-flip__card {
    transform: rotateY(180deg);
}

.page-template-page-services-landing-page .bp-flip:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .bp-flip:hover .bp-flip__card {
        transform: rotateY(180deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bp-flip__card {
        transition: none;
    }
}

/* Service (closing) section */
.block-services-service__content__body {
    max-width: 600px;
    margin: 12px 0 24px;
}

.block-services-service__content__body p,
.block-services-service__content__note p {
    color: var(--white) !important;
    opacity: 1 !important;
}

.block-services-service__content__note {
    margin-top: 16px;
}

.block-services-service__content__note p {
    font-size: 14px !important;
    line-height: 20px !important;
    margin-bottom: 4px !important;
}

.page-template-page-services-landing-page .block-services-service__content__note a {
    color: var(--dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-template-page-services-landing-page .block-services-service__content__note a:hover {
    color: var(--dark);
    text-decoration-thickness: 2px;
}

.page-template-page-services-landing-page .block-services-service__content__note a:focus-visible,
.page-template-page-services-landing-page .block-services-hero__note a:focus-visible {
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 1199px) {
    .block-services-hero:has(.block-services-hero__body)::before {
        background: rgba(18, 18, 17, 0.72);
    }
}

@media (max-width: 767px) {
    .block-services-hero:has(.block-services-hero__body) {
        padding-top: 96px;
    }
    .page-template-page-services-landing-page .block-services-hero:has(.block-services-hero__body) h1 {
        font-size: 56px;
        line-height: 54px;
    }
    .bp-flip__card {
        min-height: 240px;
    }
    .page-template-page-services-landing-page .bp-flip__title {
        font-size: 36px;
        line-height: 34px;
    }
}

/* Contact section heading + subline (MSH Studios, 2026-10-02). The longer approved heading is
 * set smaller than the template's 136px so it stays a short block beside the form. */
.block-services-contact__headline h2 {
    font-size: 88px;
    line-height: 0.92;
}

.block-services-contact__subline {
    font-family: var(--font-content);
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin: 20px 0 0;
}

.block-services-contact__subline a {
    color: var(--dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.block-services-contact__subline a:hover {
    color: var(--dark);
    text-decoration-thickness: 2px;
}

/* Reviews slider dots (MSH Studios, 2026-10-02). The site also loads slick-theme, whose dots are
 * absolutely placed with a bullet glyph; these rules put them in the flow as plain round dots. */
.block-services-reviews__reviews__content__slider .slick-dots {
    position: static;
    width: auto;
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.block-services-reviews__reviews__content__slider .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.block-services-reviews__reviews__content__slider .slick-dots li button::before {
    content: none;
}

.block-services-reviews__reviews__content__slider .slick-dots button {
    display: block;
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.block-services-reviews__reviews__content__slider .slick-dots .slick-active button {
    background: var(--primary);
}

.block-services-reviews__reviews__content__slider .slick-dots button:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .block-services-contact__headline {
        margin-bottom: 40px;
    }
    /* the longer heading must not squeeze the round logo beside it */
    .block-services-contact__content__info__logo {
        flex-shrink: 0;
    }
    .block-services-contact__headline h2 {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .block-services-contact__headline {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .block-services-contact__headline h2 {
        font-size: 56px;
        line-height: 1;
    }
    .block-services-contact__subline {
        font-size: 18px;
        line-height: 27px;
    }
}
