:root {
    --green: #176b3a;
    --green-dark: #176b3a;
    --green-mid: #24964f;
    --green-light: #ecf6f0;
    --leaf: #eaf5ee;
    --orange: #f28c28;
    --orange-hover: #f5a14d;
    --text: #333333;
    --muted: #5d6b62;
    --border: #dbe7df;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 16px 40px rgba(20, 43, 29, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.55;
}
a {
    color: var(--green-dark);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    color: var(--green-mid);
    text-decoration: none;
}
.container { width: min(1120px, 92%); margin: 0 auto; }
.narrow { width: min(820px, 92%); }
.center { text-align: center; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    max-width: 270px;
}

.logo-svg {
    display: block;
    width: 260px;
    height: auto;
}

@media (max-width: 860px) {
    .logo {
        max-width: 220px;
    }

    .logo-svg {
        width: 220px;
    }
}

.logo span { color: var(--green); }

.logo img {
    height: 48px;
    width: auto;
    display: block;

}

.main-nav {
    display: flex;
    gap: 18px;
    font-weight: 700;
}

.main-nav a {
    color: var(--green-dark);
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--green-mid);
}

.hero {
    background: linear-gradient(135deg, var(--leaf), #ffffff 60%);
    padding: 24px 0;
}

/*
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
}
*/

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: var(--shadow);
    margin-top:30px;
    
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}



.eyebrow {
    color: var(--green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
}
h1 {
    font-size: clamp(2.15rem, 5vw, 4.5rem);
    line-height: 1.02;
    margin: 0 0 18px;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 16px; }
h3 { margin: 0 0 8px; }
.hero-lead { font-size: 1.22rem; color: var(--muted); max-width: 620px; }
.tick-list, .plain-list { padding-left: 0; list-style: none; }
.tick-list li, .plain-list li {
    margin: 10px 0;
    padding-left: 28px;
    position: relative;
}
.tick-list li::before, .plain-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary,
.btn-secondary {
    background: var(--orange);
    color: var(--black);
}

.btn-primary:hover,
.btn-secondary:hover,
button:hover {
    background: var(--orange-hover);
    color: var(--black);
}

.full-width { width: 100%; }

.lead-form, .hero-card, .info-box, .card {
    background: #fff;
    border: 3px solid var(--orange);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.lead-form { padding: 26px; }
.form-intro, .muted, .small-print { color: var(--muted); }
.small-print { font-size: .85rem; margin-bottom: 0; }
.lead-form label {
    display: block;
    margin: 14px 0;
    font-weight: 600;
}
.lead-form input:not([type="checkbox"]), .lead-form textarea {
    width: 100%;
    margin-top: 6px;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    font: inherit;
    background: #fbfdfb;
}
.lead-form input:focus, .lead-form textarea:focus {
    outline: 3px solid rgba(31, 107, 58, .16);
    border-color: var(--green);
}
.checkbox-row { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.checkbox-row input { margin-top: 5px; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.trust-strip { background: var(--green-dark); color: #fff; padding: 16px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; font-weight: 800; }
.trust-grid span::before { content: "✓ "; color: #a6e2b9; }

.section { padding: 68px 0; }
.soft { background: var(--leaf); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.compact { grid-template-columns: repeat(2, 1fr); }
.card { padding: 22px; }
.link-card { display: block; text-decoration: none; }
.link-card:hover { border-color: var(--green); transform: translateY(-2px); transition: .2s ease; }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
.info-box { padding: 24px; }
.location-list { display: grid; gap: 10px; }
.location-list a {
    display: block;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    background: #fff;
}
.location-list.large { grid-template-columns: repeat(3, 1fr); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps div { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.faq-list details { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin: 12px 0; }
.faq-list summary { font-weight: 800; cursor: pointer; }
.cta-section { background: var(--green-dark); color: #fff; }
.error-list { color: #9d1c1c; }
.site-footer { padding: 34px 0; background: #0f2117; color: #dfeee4; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; }

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.site-footer a:hover {
    color: #eeeeee;
    text-decoration: none;
}

@media (max-width: 860px) {
    .header-inner { flex-direction: column; align-items: flex-start; padding: 14px 0; }
    .main-nav { flex-wrap: wrap; }
    .hero { padding: 38px 0; }
    .hero-grid, .two-col { grid-template-columns: 1fr; }
    
    .cards, .cards.compact, .steps, .location-list.large, .trust-grid { grid-template-columns: 1fr; }
    .lead-form { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
}

.location-search,
.location-form,
.search-box,
.form-card {
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(18, 67, 38, 0.12);
}

.location-search input,
.location-form input,
.search-box input,
.form-card input,
.form-card textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d6e2d9;
    border-radius: 10px;
    font-size: 16px;
}


.hero-card {
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(18, 67, 38, 0.14);
    
}

.hero-card h2 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #124326;
}

.location-list {
    display: grid;
    gap: 12px;
}

.location-list a {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    background: #eef7f1;
    color: #124326;
    font-weight: 700;
    text-decoration: none;
}

.location-list a:hover {
    background: #dbeee2;
}

@media (min-width: 769px) {
    .hero-copy {
        min-height: 550px;
        /*display: flex;*/
        flex-direction: column;
        justify-content: center;
    }
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


.mobile-form-slot {
    display: none !important;
}

.desktop-form-slot {
    display: block !important;
}

@media (max-width: 860px) {
    .desktop-form-slot {
        display: none !important;
    }

    .mobile-form-slot {
        display: block !important;
        margin: 22px 0;
    }

    .hero-copy {
        min-height: 0 !important;
    }

    .hero-copy .tick-list,
    .hero-copy .btn,
    .hero-copy .hero-image {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}


.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 28px;
    margin: 5px auto;
    background: var(--green-dark);
    border-radius: 999px;
}

@media (max-width: 860px) {
    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 12px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-top: 1px solid var(--border);
    }
}


.hero-form-image-panel {
    position: relative;
    min-height: 560px;
    padding: 42px 0 42px 42px;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
}

.hero-form-image-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(234,245,238,0) 0%, rgba(234,245,238,0.35) 35%, rgba(18,67,38,0.08) 100%),
        url("/assets/images/tree-surgeon-hero.webp") center / cover no-repeat;
    border-radius: 28px;
    box-shadow: var(--shadow);
    z-index: 0;
}

.hero-form-image-panel .lead-form {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(3px);
}

.mobile-form-slot {
    position: relative;
    padding: 0px 0 0;
}

/*
.mobile-form-slot::before {
    content: "";
    position: absolute;
    top: 0;
    left: -12px;
    right: -12px;
    height: 160px;
    background: url("/assets/images/tree-surgeon-hero.webp") center / cover no-repeat;
    border-radius: 22px;
    box-shadow: var(--shadow);
    z-index: 0;
}*/

.mobile-form-slot .lead-form {
    position: relative;
    z-index: 1;
}

@media (max-width: 860px) {
    h1 {
        font-size: clamp(2.65rem, 11vw, 3.6rem) !important;
    }
    .hero {
        padding: 5px 0 !important;
    }
}


.hero-form-image-panel::before,
.mobile-form-slot::before {
    content: none !important;
    display: none !important;
}

.hero-form-image-panel {
    min-height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mobile-form-slot {
    padding-top: 0 !important;
}


.call-now-btn,
.header-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--orange);
    color: #000000;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    /*box-shadow: 0 10px 24px rgba(242, 140, 40, 0.28);*/
}

.call-now-btn {
    min-height: 46px;
    padding: 12px 22px;
    margin-top: 8px;
}

.header-call-btn {
    min-height: 40px;
    padding: 9px 18px;
    white-space: nowrap;
    justify-self: center;
}

.call-now-btn:hover,
.header-call-btn:hover {
    background: var(--orange-hover);
    color: #000000;
}

.phone-svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: #000000;
    flex: 0 0 auto;
}

@media (max-width: 860px) {
    .header-inner {
        grid-template-columns: minmax(0, 1fr) 42px 44px;
    }

    .header-call-btn {
        justify-self: end;
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 50%;
        grid-column: 2;
    }

    .menu-toggle {
        grid-column: 3;
        justify-self: end;
    }

    .main-nav {
        grid-column: 1 / -1;
    }

    .header-call-btn .call-text {
        display: none;
    }

    .header-call-btn .phone-svg {
        width: 19px;
        height: 19px;
    }
}
