/* Dave's Tree Care. Fraunces for headings, Hanken Grotesk for everything else. */
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hanken-grotesk.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
    --paper: #fdfdfb;
    --sky: #e2ecf2;
    --fir: #153427;
    --fir-lift: #21503b;
    --ink: #10271d;
    --ink-soft: #43564c;
    --green: #20602a;
    --flag: #f26b21;
    --flag-deep: #d4541a;
    --line: #cdd7d1;
    --sketch: #cfe3d6;
    --max: 1200px;
    --r: 4px;
    --r-lg: 8px;
    --display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --body: 'Hanken Grotesk', 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.85rem); font-weight: 540; line-height: 1.08; letter-spacing: -0.018em; }
h3 { font-size: 1.3rem; font-weight: 560; line-height: 1.2; letter-spacing: -0.005em; }
address { font-style: normal; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-intro { margin-top: 18px; max-width: 58ch; color: var(--ink-soft); font-size: 1.125rem; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 2px solid transparent; border-radius: var(--r); font-family: inherit; font-size: 1rem; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.btn-flag { background: var(--flag); border-color: var(--flag); color: var(--ink); }
.btn-flag:hover { background: #ff8440; border-color: #ff8440; color: var(--ink); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* top bar and header */
.topbar { background: var(--fir); color: #dbe7e0; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 6px 24px; padding-block: 8px; }
.topbar-facts { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.topbar a { color: #fff; font-weight: 650; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 92px; height: auto; }
.brand-name { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; padding: 12px 0; }
.site-nav a:not(.btn):hover, .site-nav a.is-active:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--flag); text-underline-offset: 6px; }
.nav-cta { min-height: 44px; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); color: var(--ink); font-family: inherit; font-size: 1rem; font-weight: 650; cursor: pointer; }
.nav-toggle-bars { position: relative; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .2s ease; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* hero */
.hero { padding-top: clamp(36px, 4.6vw, 68px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px 72px; align-items: end; }
h1 { font-size: clamp(2.45rem, 5.3vw, 4.6rem); font-weight: 570; line-height: 1; letter-spacing: -0.028em; max-width: 15ch; }
.lede { max-width: 44ch; padding-bottom: 4px; font-size: clamp(1.08rem, 1.35vw, 1.2rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-pano { margin-top: clamp(32px, 4vw, 52px); }
.hero-pano img { width: 100%; height: clamp(260px, 31vw, 540px); object-fit: cover; object-position: 30% 50%; }
.hero-pano figcaption { padding-top: 12px; font-size: .95rem; color: var(--ink-soft); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; margin-top: 28px; }
.hero-facts > div { padding: 14px 0 0; border-top: 1px solid var(--line); }
.hero-facts dt { font-size: .9rem; font-weight: 650; color: var(--green); }
.hero-facts dd { font-weight: 500; }

/* services */
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.services-photo { position: sticky; top: 108px; }
.services-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.services-photo figcaption, .mosaic figcaption, .about-truck figcaption { padding-top: 10px; font-size: .95rem; color: var(--ink-soft); }
.service-list { margin-top: 40px; }
.service-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 8px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list p { color: var(--ink-soft); }

/* yard sketch */
.yard { background: var(--fir); color: #e6efe9; padding-block: clamp(64px, 8vw, 112px); }
.yard h2, .yard h3 { color: #fff; }
.yard-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 64px; align-items: end; }
.yard-head p { max-width: 52ch; font-size: 1.125rem; color: #c9dad0; }
.yard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; margin-top: clamp(36px, 5vw, 64px); }
.yard-sketch { position: sticky; top: 112px; }
.yard-sketch svg { width: 100%; height: auto; overflow: visible; }
.sk-fill path { fill: var(--fir-lift); }
.sk-line path { fill: none; stroke: var(--sketch); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.flag-marker { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; background: none; border: 0; border-radius: 50%; color: #fff; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.flag-ring { position: absolute; inset: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--fir); transition: transform .18s ease, opacity .18s ease, background-color .15s ease; }
.flag-ring::before, .flag-ring::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: #fff; }
.flag-ring::after { transform: rotate(90deg); }
.flag-marker:hover .flag-ring { background: var(--flag-deep); }
.flag-tape { position: absolute; left: calc(50% - 16px); top: calc(50% - 4px); width: 32px; height: 52px; max-width: none; opacity: 0; transform-origin: 16px 4px; pointer-events: none; }
.flag-marker[aria-pressed="true"] .flag-ring { transform: scale(.2); opacity: 0; }
.flag-marker[aria-pressed="true"] .flag-tape { opacity: 1; }
.flag-tip { display: none; position: absolute; padding: 1px 7px; background: var(--fir); color: #e6efe9; font-size: .84rem; font-weight: 600; line-height: 1.5; white-space: nowrap; border-radius: 3px; pointer-events: none; }
.flag-marker[aria-pressed="true"] .flag-tip { color: #ffb489; }
.side-r .flag-tip { left: calc(100% - 6px); top: 50%; transform: translateY(-50%); }
.side-l .flag-tip { right: calc(100% - 6px); top: 50%; transform: translateY(-50%); }
.side-t .flag-tip { bottom: calc(100% - 6px); left: 50%; transform: translateX(-50%); }
.side-b .flag-tip { top: calc(100% - 4px); left: 50%; transform: translateX(-50%); }
.side-b[aria-pressed="true"] .flag-tip { top: calc(50% + 50px); }
.side-te .flag-tip { bottom: calc(100% - 6px); right: 0; }

.yard-list h3 { font-size: 1.35rem; }
.flag-rows { margin-top: 14px; }
.flag-rows li { border-top: 1px solid rgba(255, 255, 255, .17); }
.flag-rows li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .17); }
.flag-row { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 11px 6px 11px 0; cursor: pointer; transition: background-color .5s ease; }
.flag-row input { position: absolute; left: 0; top: 14px; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.flag-box { flex: none; position: relative; width: 22px; height: 22px; margin-top: 3px; border: 2px solid var(--sketch); border-radius: 3px; }
.flag-row input:checked + .flag-box { background: var(--flag); border-color: var(--flag); }
.flag-row input:checked + .flag-box::after { content: ''; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.flag-row input:focus-visible + .flag-box { outline: 3px solid var(--flag); outline-offset: 3px; }
.flag-say { display: block; font-weight: 600; color: #fff; line-height: 1.35; }
.flag-job { display: block; font-size: .92rem; color: #b4cbbe; }
.flag-row.is-hit { background: rgba(242, 107, 33, .22); transition-duration: 0s; }
.yard-count { margin: 18px 0 16px; color: #c9dad0; }
.yard-count strong { color: #fff; }

/* photos */
.photos-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px 64px; align-items: end; }
.photos-head .section-intro { margin-top: 0; }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(32px, 4vw, 56px); }
.m-col { display: flex; flex-direction: column; gap: 18px; }
.mosaic img { width: 100%; object-fit: cover; border-radius: var(--r-lg); }
.m-a img, .m-b img, .m-e img, .m-f img { aspect-ratio: 3 / 4; }
.m-c img, .m-d img { aspect-ratio: 1 / 1; }
.m-col:nth-child(2) { padding-top: 56px; }

/* about and reviews */
.about { background: var(--sky); padding-block: clamp(64px, 9vw, 128px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-copy p { max-width: 60ch; margin-top: 20px; }
.about-line { margin: 34px 0 6px; }
.about-copy .about-line p { margin: 0; max-width: 22ch; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; color: var(--green); }
.about-truck img { width: 100%; border-radius: var(--r-lg); }
.about-side h3 { margin-top: 34px; }
.paper-list { margin-top: 12px; }
.paper-list li { padding: 11px 0; border-top: 1px solid #b9cbd6; font-weight: 500; }
.paper-list li:last-child { border-bottom: 1px solid #b9cbd6; }
.reviews { margin-top: clamp(64px, 8vw, 112px); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 88px); margin-top: 36px; }
.review { padding-top: 22px; border-top: 2px solid var(--ink); }
.review-title { font-family: var(--display); font-size: 1.35rem; font-weight: 560; line-height: 1.25; }
.review blockquote p + p { margin-top: 14px; }
.review figcaption { margin-top: 16px; font-weight: 650; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid h2 { position: sticky; top: 108px; font-size: clamp(1.8rem, 2.9vw, 2.5rem); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; list-style: none; padding: 21px 48px 21px 0; font-family: var(--display); font-size: 1.25rem; font-weight: 540; line-height: 1.3; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--ink); transition: transform .25s ease, background-color .2s ease; }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item.is-open summary::after { transform: rotate(0deg); }
.faq-item.is-open summary::before, .faq-item.is-open summary::after { background: var(--flag-deep); }
.faq-item.is-open summary { color: var(--green); }
.faq-answer { overflow: hidden; max-width: 62ch; padding-bottom: 24px; color: var(--ink-soft); }

/* quote */
.quote { padding-top: 0; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: clamp(56px, 7vw, 96px); border-top: 2px solid var(--ink); }
.quote-info > p { margin-top: 18px; max-width: 40ch; color: var(--ink-soft); font-size: 1.125rem; }
.contact-list { margin-top: 30px; }
.contact-list > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-weight: 650; color: var(--green); font-size: .95rem; padding-top: 2px; }
.contact-list dd { overflow-wrap: anywhere; }
.contact-list a { font-weight: 600; }
.quote-flags { margin-bottom: 22px; padding: 16px 18px; background: var(--sky); border-radius: var(--r-lg); }
.quote-flags p { font-weight: 650; }
.quote-flags ul { margin: 6px 0 8px; padding-left: 20px; list-style: square; }
.quote-flags li::marker { color: var(--flag-deep); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .98rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: #fff; border: 1.5px solid #8fa397; border-radius: var(--r); color: var(--ink); font-family: inherit; font-size: 1rem; line-height: 1.4; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--flag); outline-offset: 1px; border-color: var(--ink); }
.field .is-bad { border-color: #b3261e; }
.form-error { margin-bottom: 14px; color: #a1211a; font-weight: 600; }
.form-note { margin-top: 16px; font-size: .95rem; color: var(--ink-soft); max-width: 60ch; }
.tape-result { margin-top: 20px; padding: 6px 0 10px; overflow: hidden; }
.tape-strip { display: block; transform: rotate(-1deg); transform-origin: 0 50%; background: var(--flag); color: var(--ink); font-weight: 700; padding: 11px 26px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%); }
[hidden] { display: none !important; }

/* footer */
.site-footer { background: var(--fir); color: #d3e1d9; padding: 64px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px 48px; }
.footer-name { font-family: var(--display); font-size: 1.6rem; font-weight: 560; color: #fff; }
.footer-nav { display: grid; gap: 6px; align-content: start; justify-items: start; }
.footer-nav a, .site-footer address a { display: inline-block; padding: 3px 0; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .17); font-size: .95rem; }

@media (min-width: 960px) {
    .flag-tip { display: block; }
}
@media (max-width: 959px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav-cta { margin-top: 16px; }
    .hero-inner, .services-grid, .yard-head, .yard-grid, .photos-head, .about-grid, .faq-grid, .quote-grid { grid-template-columns: minmax(0, 1fr); }
    .services-photo, .faq-grid h2 { position: static; }
    .yard-sketch { position: relative; top: auto; }
    .services-photo img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
    .topbar-towns { display: none; }
    .topbar-facts { width: 100%; justify-content: space-between; }
    .service-list li { grid-template-columns: minmax(0, 1fr); }
    .hero-facts { grid-template-columns: minmax(0, 1fr); }
    .hero-facts > div { padding-bottom: 14px; }
    .hero-facts > div:last-child { border-bottom: 1px solid var(--line); }
    .reviews-grid { grid-template-columns: minmax(0, 1fr); }
    .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .m-col { gap: 12px; }
    .m-col:nth-child(2) { padding-top: 32px; }
    .m-col:nth-child(3) { grid-column: 1 / -1; flex-direction: row; }
    .m-col:nth-child(3) figure { flex: 1 1 0; min-width: 0; }
    .yard-sketch { margin-inline: -8px; }
}
@media (max-width: 640px) {
    .hero-pano img { height: auto; aspect-ratio: 5 / 4; object-position: 50% 50%; }
    .brand img { width: 68px; }
    .brand-name { font-size: 1.12rem; }
    .header-inner { min-height: 66px; gap: 12px; }
    .hero-actions .btn { width: 100%; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .wrap { width: min(100% - 32px, var(--max)); }
}
@media (max-width: 359px) {
    .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
