/* Leah Birn — exact Figma textures + global scroll-to-top */

.hero-pl::before {
    background-color: #eadfce;
    background-image: linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.1)), url("/assets/images/wood-texture3.png");
    background-position: center;
    background-size: cover;
}

/* About page only: preserve the Figma 1440 × 277 tile and repeat it across the 2700px canvas. */
.about-page .services-section--wood::before {
    right: auto;
    left: 50%;
    width: min(100vw, var(--canvas-width));
    opacity: 1;
    background-color: #eadfce;
    background-image: url("../images/about-services-wood.png");
    background-repeat: repeat-x;
    background-position: center top;
    background-size: 1440px 277px;
    transform: translateX(-50%);
}



/* Preserve the Figma 1440 × 38 strip and repeat it across the 2700px canvas. */
@media (min-width: 1181px) {
    .ready-cta::after {
        opacity: 1;
        background-color: #eadfce;
        background-image: url("../images/wood-footer-strip.png");
        background-repeat: repeat-x;
        background-position: center;
        background-size: 1440px 88px;
    }
    .ready-cta--packages::after {
        background-image: url("/assets/images/wood-texture5.png");
        background-position: center, center, center;
        background-size: 100% 100%, cover, cover;    
    }
}

.scroll-to-top {
    position: fixed;
    z-index: 1200;
    right: 28px;
    bottom: 28px;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(163, 114, 70, .42);
    border-radius: 50%;
    background: rgba(250, 250, 250, .92);
    box-shadow: 0 14px 38px rgba(67, 40, 22, .16);
    color: #432816;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(.92);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease,
        background-color .2s ease, border-color .2s ease, color .2s ease,
        box-shadow .2s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    border-color: #432816;
    background: #432816;
    box-shadow: 0 16px 42px rgba(67, 40, 22, .24);
    color: #fafafa;
    outline: none;
    transform: translateY(-3px) scale(1.03);
}

.scroll-to-top svg {
    display: block;
    width: 34px;
    height: 34px;
    overflow: visible;
}

.scroll-to-top__arrow {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scroll-to-top__leaf {
    fill: currentColor;
    opacity: .42;
}

@media (max-width: 640px) {
    .scroll-to-top {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }

    .scroll-to-top svg {
        width: 30px;
        height: 30px;
    }
    
.ready-cta::after {
  background-size: 100% 96px !important;
}    
    
}

@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: opacity .01ms linear, visibility .01ms linear;
    }
}

/* Homepage only: header + hero fill exactly one viewport. */
.home-page {
    --home-header-height: 118px;
}

.home-page .home-hero {
    height: calc(100vh - var(--home-header-height));
    height: calc(100dvh - var(--home-header-height));
    aspect-ratio: auto;
}

@media (max-width: 900px) {
    .home-page {
        --home-header-height: 84px;
    }
}


/* Shared desktop Ready CTA — match the Figma proportions/positioning on every page using the common footer CTA. */
@media (min-width: 1181px) {
    .ready-cta > .ready-cta__inner {
        top: 78px;
        width: min(1230px, 85.4166667%);
        height: 310px;
        min-height: 310px;
        padding: 80px 107px 80px 103px;
    }

    .ready-cta > .ready-cta__inner > .ready-cta__divider {
        grid-row: 1 / 3;
        align-self: center;
        margin: 0 0 0 26px;
    }

    .ready-cta > .ready-cta__inner > p {
        align-self: center;
    }

    .ready-cta__title {
        position: relative;
        top: 20px;
    }    
    
}
