/**
 * Home page (templates/Pages/home.php).
 */
.page-home {
    background: #fffdf9;
}

.page-home .main {
    margin-bottom: 0;
}

.page-home .main > .container {
    max-width: none;
    padding: 0;
}

.page-home .site-footer {
    display: none;
}

.landing-page {
    --home-ink: #3a2a24;
    --home-text: #5b4740;
    --home-muted: #7a6257;
    --home-accent: #ad6a46;
    --home-accent-dark: #7f472d;
    --home-clay: #c77a55;
    --home-cream: #fffaf4;
    --home-panel: #fffdf9;
    --home-line: #ead9cc;
    --home-soft: #f7eee6;
    --home-sage: #8a8f6a;
    --home-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --home-sans: Raleway, "Helvetica Neue", Arial, sans-serif;
    width: min(1440px, calc(100% - clamp(3rem, 6vw, 7rem)));
    margin: 0 auto;
    padding: 2rem 0 0;
    color: var(--home-text);
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
}

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page p {
    letter-spacing: 0;
}

.landing-page h1,
.landing-page h2 {
    color: var(--home-ink);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.landing-page h1 {
    margin: 0 0 1.15rem;
    max-width: 37rem;
    font-size: 4.6rem;
    line-height: 0.98;
}

.landing-page h2 {
    margin: 0;
    font-size: 3rem;
    line-height: 1.08;
}

.landing-page h3 {
    margin: 0;
    color: var(--home-ink);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1.2;
}

.landing-page p {
    margin: 0;
    color: var(--home-text);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.65;
}

.home-hero,
.home-services,
.home-why,
.home-contact-banner,
.home-footer {
    border: 1px solid rgba(234, 217, 204, 0.82);
    background: var(--home-panel);
    box-shadow: 0 16px 42px rgba(58, 42, 36, 0.04);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
    gap: 4.4rem;
    align-items: center;
    min-height: 55rem;
    padding: 2.15rem 3.8rem 2.15rem 2.15rem;
    border-radius: 8px;
}

.home-hero-media {
    height: 100%;
    min-height: 50rem;
    overflow: hidden;
    border-radius: 8px;
    background: var(--home-soft);
}

.home-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 50rem;
    object-fit: cover;
    object-position: center;
}

.home-hero-content {
    display: flex;
    max-width: 58rem;
    flex-direction: column;
    align-items: flex-start;
}

.home-hero-content > .home-eyebrow {
    margin: 0 0 1.1rem;
    letter-spacing: 0.1em;
    gap: 0.5rem;
    font-size: 1.38rem;
}

.home-hero-content .home-eyebrow-icon {
    color: var(--home-accent-dark);
}

.home-hero-content > h1 {
    margin: 0 0 1.25rem;
    line-height: 1.06;
    font-size: 5.52rem;
}

.home-hero-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    max-width: min(42rem, 100%);
    margin: 0 0 1.65rem;
}

.home-hero-divider__line {
    flex: 1;
    min-width: 2rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(141, 90, 59, 0.65), rgba(141, 90, 59, 0.08));
}

.home-hero-divider__dot {
    flex-shrink: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #8d5a3b;
}

.home-hero-content > .home-hero-copy {
    margin: 0 0 2rem;
    max-width: 42rem;
    font-size: 1.4175rem;
}

.home-hero-content > .home-actions {
    margin: 0 0 3rem;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 1.4rem;
    color: var(--home-accent-dark);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-eyebrow-icon,
.home-section-leaf {
    width: 2.1rem;
    height: 2.1rem;
    color: var(--home-sage);
    stroke-width: 2;
}

.home-hero-copy {
    max-width: 42rem;
    font-size: 0.945rem;
    line-height: 1.62;
}

.home-hero-content .home-btn {
    font-size: 1.62rem;
}

.home-actions,
.home-contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.15rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 12.6rem;
    min-height: 4.15rem;
    padding: 0.78rem 1.35rem;
    border: 1px solid var(--home-accent);
    border-radius: 999px;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.home-btn__icon {
    width: 1.28rem;
    height: 1.28rem;
    flex-shrink: 0;
}

.home-btn__label {
    display: inline-block;
}

.home-btn--primary .home-btn__icon {
    color: #ffffff;
}

.home-btn--secondary .home-btn__icon {
    color: var(--home-accent-dark);
}

.home-btn:hover,
.home-btn:focus {
    text-decoration: none;
}

.home-btn--primary {
    background: var(--home-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(173, 106, 70, 0.24);
}

.home-btn--primary:hover,
.home-btn--primary:focus {
    background: var(--home-accent-dark);
    border-color: var(--home-accent-dark);
    color: #fff;
}

.home-btn--secondary {
    background: #fffdf9;
    color: var(--home-accent-dark);
}

.home-btn--secondary:hover,
.home-btn--secondary:focus {
    background: #fff5ec;
    color: var(--home-accent-dark);
}

.home-hero-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 2.2rem;
    border-top: 1px solid var(--home-line);
}

.home-mini-feature {
    min-width: 0;
    padding: 0.45rem 1.5rem 0.2rem;
    text-align: center;
}

.home-mini-feature + .home-mini-feature {
    border-left: 1px solid var(--home-line);
}

.home-mini-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--home-accent);
    stroke-width: 1.55;
}

.home-mini-feature h2 {
    margin: 0 0 0.55rem;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

.home-mini-feature p {
    color: var(--home-muted);
    font-size: 1.2rem;
    line-height: 1.55;
}

.home-services {
    margin-top: 2rem;
    padding: 3.2rem 3.6rem 3.8rem;
    border-radius: 8px;
}

.home-section-head {
    margin: 0 auto 2.2rem;
    text-align: center;
}

.home-section-head .home-eyebrow {
    margin-bottom: 0.55rem;
    justify-content: center;
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.home-service-card {
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 16px 34px rgba(58, 42, 36, 0.05);
}

.home-service-image {
    display: block;
    width: calc(100% - 2rem);
    height: 22rem;
    margin: 1rem 1rem 0;
    border-radius: 7px;
    object-fit: cover;
    object-position: center;
}

.home-service-body {
    display: grid;
    gap: 1.1rem;
    padding: 2rem 2.2rem 2.3rem;
}

.home-service-card h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.9rem;
    color: var(--home-accent-dark);
}

.home-card-icon {
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    color: var(--home-accent);
    stroke-width: 1.55;
}

.home-service-card p {
    min-height: 6.1rem;
    font-size: 1.5rem;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-self: start;
    color: var(--home-accent-dark);
    font-size: 1.175rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.home-text-link:hover,
.home-text-link:focus {
    color: var(--home-accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.home-why {
    margin-top: 2rem;
    padding: 3.2rem 2.4rem;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(250, 239, 226, 0.86) 0%, rgba(255, 253, 249, 0.94) 52%, rgba(250, 239, 226, 0.88) 100%),
        var(--home-cream);
}

.home-section-leaf {
    margin: 0 auto 0.65rem;
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 1260px;
    margin: 0 auto;
}

.home-why-item {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
    min-width: 0;
    padding: 0.3rem 2rem;
}

.home-why-item + .home-why-item {
    border-left: 1px solid var(--home-line);
}

.home-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6.4rem;
    height: 6.4rem;
    border-radius: 50%;
    background: #fffdf9;
    color: var(--home-accent);
    box-shadow: 0 12px 28px rgba(58, 42, 36, 0.06);
}

.home-why-icon-svg {
    width: 3rem;
    height: 3rem;
    stroke-width: 1.55;
}

.home-why-item h3 {
    margin-bottom: 0.5rem;
    font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.25;
}

.home-why-item p {
    color: var(--home-muted);
    font-size: 1.35rem;
    line-height: 1.45;
}

.home-contact-banner {
    display: grid;
    grid-template-columns: minmax(20rem, 0.32fr) minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(147, 79, 47, 0.9) 0%, rgba(199, 122, 85, 0.94) 100%),
        var(--home-clay);
    color: #fff;
}

.home-contact-image {
    min-height: 17rem;
    background-image: linear-gradient(90deg, rgba(255, 250, 244, 0), rgba(173, 106, 70, 0.36)), url("../img/question.png");
    background-position: center;
    background-size: cover;
}

.home-contact-copy {
    padding: 2.4rem 0;
}

.home-contact-copy h2,
.home-contact-copy p {
    color: #fffaf4;
}

.home-contact-copy h2 {
    margin-bottom: 0.5rem;
    font-size: 3.6rem;
}

.home-contact-copy p {
    font-size: 1.8rem;
}

.home-contact-actions {
    justify-content: flex-end;
    padding-right: 3rem;
}

.home-contact-actions .home-btn {
    font-size: 1.296rem;
}

.home-btn--light {
    border-color: #fffdf9;
    background: #fffdf9;
    color: var(--home-accent-dark);
}

.home-btn--light:hover,
.home-btn--light:focus {
    background: #fff3e8;
    color: var(--home-accent-dark);
}

.home-btn--outline-light {
    border-color: rgba(255, 253, 249, 0.84);
    background: transparent;
    color: #fff;
}

.home-btn--outline-light:hover,
.home-btn--outline-light:focus {
    background: rgba(255, 253, 249, 0.16);
    color: #fff;
}

.home-footer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(24rem, 0.9fr) minmax(0, 2fr);
    gap: clamp(3rem, 5vw, 7rem);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 2rem;
    padding: 3.4rem clamp(3rem, 7vw, 9rem) 0 clamp(18rem, 23vw, 31rem);
    overflow: hidden;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(255, 248, 240, 0.5), rgba(255, 253, 249, 0.9) 46%, rgba(255, 248, 240, 0.82)),
        url("../img/footer.png") left bottom / auto 100% no-repeat,
        #fff8f0;
}

.home-footer-logo {
    display: block;
    width: 15rem;
    max-width: 100%;
    height: auto;
    margin: 0 0 1rem;
}

.home-footer-line {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.72rem;
    color: var(--home-text);
    font-size: 0.98rem;
    line-height: 1.45;
}

.home-footer-line a {
    color: var(--home-text);
    text-decoration: none;
}

.home-footer-line a:hover,
.home-footer-line a:focus {
    color: var(--home-accent-dark);
    text-decoration: underline;
}

.home-footer-icon {
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.12rem;
    color: var(--home-accent);
    stroke-width: 2;
}

.home-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(10rem, 1fr));
    gap: clamp(2.6rem, 4.6vw, 6.2rem);
    max-width: 66rem;
}

.home-footer-nav > div {
    min-height: 11rem;
    padding-left: clamp(2.2rem, 3.2vw, 4rem);
    border-left: 1px solid rgba(173, 106, 70, 0.22);
}

.home-footer-nav h3 {
    margin-bottom: 0.9rem;
    color: var(--home-ink);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.08;
    text-transform: none;
}

.home-footer-nav a {
    display: block;
    margin-bottom: 0.72rem;
    color: var(--home-text);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.home-footer-nav a:hover,
.home-footer-nav a:focus {
    color: var(--home-accent-dark);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.home-footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.7rem calc(clamp(3rem, 7vw, 9rem) * -1) 0 calc(clamp(18rem, 23vw, 31rem) * -1);
    padding: 0.75rem clamp(3rem, 7vw, 9rem);
    border-top: 0;
    background: linear-gradient(90deg, rgba(173, 126, 100, 0.86), rgba(177, 132, 108, 0.72));
    color: #fff7ef;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 1180px) {
    .home-hero {
        gap: 2.6rem;
        padding-right: 2.15rem;
    }

    .landing-page h1 {
        font-size: 4rem;
    }

    .home-hero-content > h1 {
        font-size: 4.8rem;
    }

    .home-service-grid,
    .home-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-why-item:nth-child(odd) {
        border-left: 0;
    }

    .home-why-item:nth-child(n + 3) {
        margin-top: 1.8rem;
    }
}

@media (max-width: 860px) {
    .landing-page {
        width: min(100% - 1.6rem, 1440px);
        padding: 1rem 0 0;
    }

    .home-hero,
    .home-contact-banner,
    .home-footer {
        grid-template-columns: 1fr;
    }

    .home-hero {
        gap: 2rem;
    }

    .home-hero-media,
    .home-hero-image {
        min-height: 28rem;
    }

    .landing-page h1 {
        font-size: 3.5rem;
    }

    .home-hero-content > h1 {
        font-size: 4.2rem;
    }

    .home-hero-features {
        grid-template-columns: 1fr;
    }

    .home-mini-feature {
        padding: 1rem 0;
    }

    .home-mini-feature + .home-mini-feature {
        border-top: 1px solid var(--home-line);
        border-left: 0;
    }

    .home-service-grid,
    .home-why-grid,
    .home-footer-nav {
        grid-template-columns: 1fr;
    }

    .home-services,
    .home-why,
    .home-footer {
        padding: 2.2rem 1.2rem;
    }

    .home-footer {
        width: 100%;
        margin-left: 0;
        padding-bottom: 0;
        border-radius: 8px 8px 0 0;
        background:
            linear-gradient(90deg, rgba(255, 248, 240, 0.82), rgba(255, 253, 249, 0.94)),
            url("../img/footer.png") left bottom / auto 58% no-repeat,
            #fff8f0;
    }

    .home-why-item,
    .home-why-item + .home-why-item,
    .home-why-item:nth-child(n + 3) {
        margin-top: 0;
        padding: 1.15rem 0;
        border-left: 0;
        border-top: 1px solid var(--home-line);
    }

    .home-why-item:first-child {
        border-top: 0;
    }

    .home-contact-copy,
    .home-contact-actions {
        padding: 0 1.4rem;
    }

    .home-contact-actions {
        justify-content: flex-start;
        padding-bottom: 1.4rem;
    }

    .home-footer-bottom {
        flex-direction: column;
        margin: 2rem -1.2rem 0;
        padding: 0.75rem 1.2rem;
    }
}
