@import url('https://fonts.googleapis.com/css2?family=Limelight&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background-color: #f7f0db;
    color: #24382E;
}

/* Navigation */

.navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 24px;
    margin-bottom: 24px;
    background-color: #2b431d;
    color: #f7f0db;
    /* color: #F7F5EF */
    /* color: #f1fbd8 */
}

.quote-button {
    font-family: inherit;
    border-radius: 5px;
    margin-top: 20px;
    border: none;
    background-color: #f7f0db;
    color: #2b431d;
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 30px;

    max-width: 100%;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand img {
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-name {
    font-family: "Limelight", serif;
    font-size: 20px;
}

.brand-description {
    font-size: 14px;
}

.navigation-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-left: auto;
}

.navigation-links a {
    color: inherit;
    font-family: "Limelight", serif;
    text-decoration: none;
}

.navigation-links a:hover,
.navigation-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Garden banner */

.hero {
    text-align: center;
    margin-bottom: 120px;
}

.garden {
    position: relative;

    /*
        Prevents the banner from becoming too short
        for the form on narrower screens.
    */
    min-height: 360px;

    overflow: hidden;
}

.garden-banner {
    display: block;
    width: 100%;

    /*
        The image now fills the garden container
        instead of controlling its height.
    */
    height: clamp(360px, 42vw, 620px);

    object-fit: cover;
}

.garden-overlay {
    position: absolute;
    inset: 0;

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

    padding: 16px;

    background-color: rgba(0, 0, 0, 0.3);
    color: #f7f0db;

    /*
        Safety in case something is still too large.
    */
    overflow: hidden;
}

.garden-overlay h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 4vw, 64px);
}

.garden-overlay p {
    margin: 0;
    font-size: clamp(14px, 2vw, 24px);
}

.garden-overlay form {
    display: flex;
    flex-direction: column;
    gap: 10px;

    width: min(85%, 380px);

    /*
        Important: the form can never be wider
        or taller than the overlay.
    */
    max-width: 100%;
    max-height: calc(100% - 32px);

    padding: clamp(12px, 2vw, 20px);

    background-color: rgba(247, 240, 219, 0.682);
    border-radius: 14px;

    color: #2b431d;

    overflow: hidden;
}

.garden-overlay input,
.garden-overlay textarea {
    width: 100%;
    min-width: 0;

    padding: 14px 16px;

    border: none;
    border-radius: 10px;

    background-color: #f7f0db;
    color: #2b431d;

    font: inherit;
    font-size: 16px;

    outline: none;

    /*
        Reduced from 60px so the fields can shrink
        when the banner is smaller.
    */
    min-height: 48px;
    max-height: 100px;

    resize: none;

    flex-shrink: 1;
}

.garden-overlay input::placeholder,
.garden-overlay textarea::placeholder {
    color: #5f6f57;
}

.garden-overlay input:focus,
.garden-overlay textarea:focus {
    outline: 2px solid #2b431d;
    outline-offset: 2px;
}

.garden-overlay textarea {
    min-height: 80px;

    /*
        Keep textarea from being manually resized
        outside of the form.
    */
    resize: none;
}

.construction {
    margin: 32px 16px;
}

/* Footer */

.footer {
    margin-top: auto;

    background-color: #2b431d;
    color: #f7f0db;
    padding: 22px 32px 14px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left h3 {
    margin: 0 0 6px;
    font-family: "Limelight", serif;
    font-size: 18px;
}

.footer-left p,
.footer-right p {
    margin: 4px 0;
}

.footer-right {
    text-align: right;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
}

.footer-links a {
    color: #f7f0db;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(247, 240, 219, 0.2);
    text-align: center;
    font-size: 13px;
}

/* Smaller screens */

@media (max-width: 800px) {
    .navigation {
        justify-content: center;
    }

    .navigation-links {
        justify-content: center;
        gap: 16px;
        margin-left: 0;
    }

    .garden-overlay h1 {
        margin-bottom: 6px;
    }

    .garden {
        min-height: 400px;
    }

    .garden-banner {
        height: 400px;
    }

    .garden-overlay form {
        width: min(92%, 360px);

        padding: 12px;
        gap: 8px;
    }

    .garden-overlay input,
    .garden-overlay textarea {
        padding: 10px 12px;
        min-height: 42px;
    }

    .garden-overlay textarea {
        min-height: 70px;
    }

    .quote-button {
        font-size: clamp(20px, 6vw, 30px);
        margin-top: 10px;
        padding: 9px 16px;
    }
}

@media (max-width: 450px) {
    .garden {
        min-height: 380px;
    }

    .garden-banner {
        height: 380px;
    }

    .garden-overlay {
        padding: 10px;
    }

    .garden-overlay form {
        width: 95%;
        padding: 10px;
        gap: 7px;
    }

    .garden-overlay input,
    .garden-overlay textarea {
        min-height: 40px;
        padding: 9px 11px;
        font-size: 14px;
    }

    .garden-overlay textarea {
        min-height: 60px;
    }

    .quote-button {
        margin-top: 6px;
        font-size: 22px;
    }
}
/* About and contact pages */
.content-page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto 80px;
    line-height: 1.65;
}

.content-page h1,
.content-page h2,
.content-page h3 {
    line-height: 1.2;
}

.content-page h1 {
    margin: 12px 0 24px;
    font-size: clamp(32px, 4vw, 46px);
    text-wrap: balance;
}

.content-page h2 {
    margin: 0 0 20px;
    font-size: clamp(26px, 3vw, 36px);
}

.content-page h3 {
    font-size: 22px;
}

.content-page p {
    font-size: 18px;
}

.page-intro {
    max-width: 820px;
    margin: 40px 0 48px;
    text-align: left;
}

.content-page .eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.content-page .page-lead {
    font-size: 21px;
}

.about-story {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 48px;
}

.about-story img {
    display: block;
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 4px;
}

.text-link,
.contact-method a {
    color: #2b431d;
    font-weight: 700;
    text-underline-offset: 5px;
}

.page-section {
    margin: 72px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding: 0;
    list-style: none;
}

.process-grid li {
    border-top: 1px solid #a7ad8e;
    padding-top: 24px;
}

.step-number {
    font-size: 32px;
    color: #55683b;
}

.page-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 64px;
    padding: 28px 0;
    border-top: 1px solid #a7ad8e;
}

.page-cta h2 {
    margin-bottom: 8px;
}

.page-cta p {
    margin: 0;
}

.page-button {
    display: inline-block;
    padding: 13px 22px;
    border: 2px solid #2b431d;
    border-radius: 5px;
    background: #2b431d;
    color: #f7f0db;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.page-button:hover {
    background: #405b2f;
}

.content-page a:focus-visible {
    outline: 3px solid #55683b;
    outline-offset: 5px;
}

.navigation-links a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.contact-single {
    max-width: 680px;
    margin: 0;
}

.contact-details address {
    font-style: normal;
}

.contact-method {
    padding: 20px 0;
    border-bottom: 1px solid #c3c6aa;
}

.contact-method h3 {
    margin: 0 0 10px;
}

.contact-method a {
    font-size: clamp(18px, 2vw, 23px);
    overflow-wrap: anywhere;
}

.contact-method p {
    margin: 10px 0 0;
}

@media (max-width: 800px) {
    .about-story,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .page-intro {
        margin: 24px auto 36px;
    }

    .about-story img {
        height: 320px;
    }

    .page-section {
        margin: 48px 0;
    }

    .page-cta {
        padding: 24px 0;
    }

    .footer-main {
        flex-wrap: wrap;
    }

    .footer-right {
        text-align: left;
        overflow-wrap: anywhere;
        min-width: 0;
    }
}

/* Quote form: let the banner grow with its content. */
.quote-page .garden {
    min-height: 0;
}

.quote-page .garden-banner {
    position: absolute;
    inset: 0;
    height: 100%;
}

.quote-page .garden-overlay {
    position: relative;
    padding: 48px 20px;
    overflow: visible;
}

.quote-page .quote-form {
    width: min(100%, 460px);
    max-height: none;
    padding: clamp(22px, 4vw, 36px);
    gap: 18px;
    overflow: visible;
    background: rgba(253, 248, 233, 0.96);
    border: 1px solid rgba(247, 240, 219, 0.7);
    border-radius: 6px;
}

.quote-form-heading {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #c3c6aa;
}

.quote-eyebrow {
    display: block;
    font: 700 11px/1.5 Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 10px;
}

.quote-page .quote-form h1 {
    font-size: clamp(27px, 5vw, 34px);
    line-height: 1.15;
    margin: 0 0 12px;
    text-wrap: balance;
}

.quote-page .quote-form p {
    font-size: 16px;
    line-height: 1.5;
}

.quote-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.4;
}

.quote-field label span {
    font-size: 13px;
    font-weight: 400;
}

.quote-page .quote-field input {
    background: #fffdf6;
    border: 1px solid #b9c0a7;
    border-radius: 6px;
    font-size: 16px;
    padding: 12px;
    min-height: 46px;
}

.quote-page .quote-button {
    margin: 4px 0 0;
    padding: 14px;
    background: #2b431d;
    color: #f7f0db;
    font-size: 20px;
    line-height: 1.3;
}

.quote-page .quote-button:hover {
    background: #405b2f;
}

.quote-page .quote-button:focus-visible {
    outline: 3px solid #55683b;
    outline-offset: 4px;
}

.quote-page .quote-form .quote-form-note {
    font-size: 13px;
    text-align: center;
}

.quote-next {
    margin-top: 56px;
}

.quote-next-intro {
    max-width: 680px;
}

.quote-next .process-grid {
    margin: 32px 0;
}

/* Homepage */
.home-quote-link {
    text-decoration: none;
    text-align: center;
}

.home-quote-link:hover {
    background: #e7e6cf;
}

.home-quote-link:focus-visible {
    outline: 3px solid #f7f0db;
    outline-offset: 5px;
}

.home-intro {
    margin-top: 64px;
}

.home-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.home-services article {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-top: 1px solid #a7ad8e;
}

.home-services h3 {
    margin: 16px 0 0;
}

.home-services .service-detail {
    margin: auto 0 0;
    padding-top: 18px;
    border-top: 1px solid #c3c6aa;
    font-size: 14px;
    color: #55683b;
}

.home-planning {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
}

.home-priorities {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-priorities li {
    padding: 20px 0 20px 24px;
    border-left: 3px solid #a7ad8e;
}

.home-priorities li + li {
    margin-top: 16px;
}

.home-priorities h3 {
    margin: 0 0 8px;
}

.home-priorities p {
    margin: 0;
}

@media (max-width: 800px) {
    .home-services,
    .home-planning {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-intro {
        margin-top: 40px;
    }
}

.footer-right a {
    color: inherit;
    text-decoration: none;
}

.footer-right a:hover,
.footer-right a:focus-visible {
    text-decoration: underline;
}

/* Quote confirmation and policy */
[hidden] {
    display: none !important;
}

.quote-page .quote-form .quote-remember {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font: 14px/1.5 Arial, sans-serif;
    cursor: pointer;
}

.quote-page .quote-form .quote-remember input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: #2b431d;
}

.quote-form-note a,
.quote-notice a {
    color: inherit;
    text-underline-offset: 3px;
}

.quote-page .quote-button:disabled {
    opacity: 0.75;
    cursor: default;
}

#quote-status:empty {
    display: none;
}

.quote-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    width: min(360px, calc(100vw - 32px));
    padding: 24px 44px 24px 24px;
    border: 1px solid #b9c0a7;
    border-left: 5px solid #2b431d;
    border-radius: 10px;
    background: #fffdf6;
    color: #24382e;
    box-shadow: 0 10px 36px rgba(25, 42, 20, 0.2);
    font: 15px/1.5 Arial, sans-serif;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overflow-wrap: anywhere;
}

.quote-notice strong {
    font-size: 18px;
}

.quote-notice p {
    margin: 10px 0;
}

.quote-notice-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 28px;
    cursor: pointer;
}

.quote-notice :focus-visible,
.quote-remember input:focus-visible {
    outline: 3px solid #55683b;
    outline-offset: 3px;
}

.policy-page {
    width: min(100%, 850px);
    overflow-wrap: anywhere;
}

.policy-page section {
    margin-bottom: 36px;
}

.policy-page li {
    margin-bottom: 10px;
    line-height: 1.65;
}

@media (max-width: 600px) {
    .quote-notice {
        right: 16px;
        bottom: 16px;
    }
}
