/* Top Notch Tree Service
   Identity: white truck, black door lettering, the green rule from the logo,
   and the crew's hi-vis shirts (storm band only). */

:root {
  --black: #0c0c0c;
  --ink: #161616;
  --white: #ffffff;
  --green: #4c7a1b;
  --green-line: #6fa62c;
  --vest: #d9f03c;
  --concrete: #edeeed;
  --muted: #52564f;
  --line: #cfd2cd;
  --display: "Kanit", "Arial Narrow", Arial, sans-serif;
  --body: "Sofia Sans", "Segoe UI", Arial, sans-serif;
  --pad: 32px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; color: var(--black); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; line-height: 1.15; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green-line); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--black); color: var(--white); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.stars { color: #b97a00; letter-spacing: 1px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; font-family: var(--display); font-weight: 600; font-size: 1.125rem; text-decoration: none; border-radius: 6px; border: 2px solid var(--black); cursor: pointer; white-space: nowrap; }
.btn--solid { background: var(--black); color: var(--white); }
.btn--solid:hover { background: var(--green); border-color: var(--green); }
.btn--line { background: var(--white); color: var(--black); }
.btn--line:hover { background: var(--concrete); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--black); font-family: var(--display); line-height: 1; padding: 6px 0; }
.brand__name { font-weight: 700; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em; }
.brand__sub { font-weight: 500; font-size: 0.95rem; letter-spacing: 0.21em; text-transform: uppercase; margin-top: 4px; padding-bottom: 5px; border-bottom: 3px solid var(--green-line); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 0; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--green-line); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.top__phone { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--black); text-decoration: none; white-space: nowrap; }
.top__quote { min-height: 48px; padding: 0 18px; font-size: 1.05rem; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 2px solid var(--black); border-radius: 6px; background: var(--white); cursor: pointer; padding: 0; margin-left: auto; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--black); margin: 5px auto; }
.mobile-menu { background: var(--white); border-top: 1px solid var(--line); padding: 4px 16px 20px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: block; padding: 14px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1875rem; border-bottom: 1px solid var(--line); }
.mobile-menu .mobile-menu__call { border: 0; margin-top: 16px; background: var(--black); color: var(--white); text-align: center; border-radius: 6px; font-family: var(--display); }

/* Before / After shots */
.shot { position: relative; display: block; margin: 0; padding: 0; border: 0; background: var(--concrete); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
button.shot, .g-item { cursor: zoom-in; }
.tag { position: absolute; left: 14px; top: 14px; background: var(--black); color: var(--white); font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1; padding: 9px 14px 10px; border-radius: 8px; }
.tag--after { background: var(--white); color: var(--black); }

/* Hero */
.hero__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--white); }
.hero__pair .shot { aspect-ratio: 1500 / 740; max-height: 54vh; width: 100%; }
.hero__pair .tag { left: 24px; top: 20px; font-size: 1.35rem; padding: 11px 18px 12px; }
.hero__band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 36px; padding-bottom: 20px; }
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 4.1rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1; text-wrap: balance; padding-bottom: 22px; border-bottom: 6px solid var(--green-line); }
.hero__lede { font-size: 1.3rem; line-height: 1.4; margin-bottom: 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__rating { margin-top: 16px; font-size: 1.0625rem; color: var(--muted); }
.hero__rating strong { color: var(--ink); }
.hero__note { color: var(--muted); font-size: 1rem; padding-bottom: 36px; max-width: calc(var(--max)); }

/* Facts */
.facts { background: var(--black); color: var(--white); }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__list li { padding: 22px 24px 22px 0; font-size: 1.0625rem; color: #d7d9d4; }
.facts__list li + li { padding-left: 24px; border-left: 1px solid #3a3d38; }
.facts__list strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--white); }

/* Section heads */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 40px; }
.head p { font-size: 1.2rem; color: var(--muted); max-width: 30em; }

/* Before and after */
.work { padding: 88px 0 96px; }
.pair__shots { display: grid; gap: 4px; }
.pair__shots .shot { aspect-ratio: 1100 / 543; width: 100%; }
.pair__cap { margin-top: 12px; color: var(--muted); }
.pair__cap strong { color: var(--ink); font-weight: 700; }
.pair--wide .pair__shots { grid-template-columns: 1fr 1fr; }
.pair--wide .tag { font-size: 1.2rem; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 32px; margin-top: 48px; }

/* Storm */
.storm { background: var(--vest); color: var(--black); padding: 80px 0; }
.storm__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.storm h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.storm__text > p { font-size: 1.25rem; margin-top: 18px; max-width: 28em; }
.storm__phone { display: inline-block; margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; color: var(--black); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.storm__quote { margin-top: 32px; padding-top: 20px; border-top: 2px solid var(--black); max-width: 30em; }
.storm__quote p { font-size: 1.15rem; font-weight: 600; }
.storm__quote footer { margin-top: 8px; font-size: 1rem; }
.storm__shots { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 8px; }
.storm__shots .g-item { padding: 0; border: 0; background: var(--black); overflow: hidden; display: block; }
.storm__shots img { width: 100%; height: 100%; object-fit: cover; }
.storm__big { grid-row: 1 / span 2; }

/* Services */
.services { padding: 88px 0 96px; }
.svc { border-top: 2px solid var(--black); }
.svc li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) 250px; gap: 40px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.svc h3 { font-size: 1.75rem; }
.svc p { max-width: 34em; }
.svc img { width: 250px; aspect-ratio: 3 / 2; object-fit: cover; }
.stump { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 72px; }
.stump__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.stump__shots .g-item { padding: 0; border: 0; background: var(--concrete); display: block; }
.stump__text h3 { font-size: 2rem; }
.stump__text > p { margin-top: 14px; max-width: 30em; }
.stump blockquote { margin-top: 28px; padding-left: 20px; border-left: 6px solid var(--green-line); max-width: 30em; }
.stump blockquote p { font-size: 1.15rem; }
.stump blockquote footer { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* Gallery */
.gallery { background: var(--concrete); padding: 88px 0 96px; }
.gallery .head { margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; gap: 8px; grid-auto-flow: dense; }
.grid .g-item { padding: 0; border: 0; background: var(--black); overflow: hidden; display: block; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.15s; }
.grid .g-item:hover img { opacity: 0.88; }
.grid__tall { grid-row: span 2; }
.grid__wide { grid-column: span 2; }
.grid__left img { object-position: 0 50%; }
.grid__low img { object-position: 50% 62%; }
.grid__top img { object-position: 50% 0; }

/* Reviews */
.reviews { padding: 88px 0 96px; }
.reviews__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 2px solid var(--black); }
.reviews__score { display: flex; align-items: center; gap: 16px; line-height: 1.3; color: var(--muted); }
.reviews__score strong { font-family: var(--display); font-weight: 600; font-size: 4rem; line-height: 1; color: var(--black); }
.lead-review { padding: 40px 0; border-bottom: 1px solid var(--line); }
.lead-review blockquote { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.3; color: var(--black); max-width: 34em; }
.reviews figcaption { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.reviews__cols { columns: 3; column-gap: 40px; padding-top: 36px; }
.reviews__cols figure { break-inside: avoid; margin-bottom: 36px; }

/* About */
.about { background: var(--concrete); padding: 88px 0; }
.about__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.about__photos { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
.about__photos img { width: 100%; height: 100%; object-fit: cover; }
.about__tj { aspect-ratio: 4 / 5; }
.about__text > p { font-size: 1.2rem; margin-top: 18px; max-width: 30em; }
.about__quote { margin-top: 28px; padding-left: 20px; border-left: 6px solid var(--green-line); max-width: 30em; }
.about__quote p { font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.3; }
.about__quote footer { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.about__facts { margin-top: 32px; border-top: 2px solid var(--black); }
.about__facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.about__facts dt { color: var(--muted); }
.about__facts dd { font-weight: 700; }

/* Quote */
.quote { background: var(--black); color: var(--white); padding: 88px 0 96px; }
.quote h2 { color: var(--white); }
.quote__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.quote__info > p { margin-top: 16px; font-size: 1.2rem; color: #d7d9d4; max-width: 26em; }
.quote__phone { display: inline-block; margin-top: 20px; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; color: var(--vest); text-decoration: none; }
.quote__phone:hover { text-decoration: underline; }
.quote .quote__mail { margin-top: 4px; font-size: 1.1rem; }
.quote__mail a { color: var(--white); }
.hours { margin-top: 36px; border-collapse: collapse; width: 100%; max-width: 360px; }
.hours caption { text-align: left; font-family: var(--display); font-weight: 600; font-size: 1.3rem; padding-bottom: 8px; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 7px 0; border-top: 1px solid #3a3d38; color: #d7d9d4; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--white); font-weight: 700; }
.quote .hours__note { margin-top: 12px; font-size: 1.05rem; color: var(--vest); }
.form { background: var(--white); color: var(--ink); padding: 32px; border-radius: 6px; border-top: 8px solid var(--green-line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--white); border: 2px solid #8b8f88; border-radius: 6px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); }
.form__err { color: #a31212; font-weight: 700; margin-bottom: 12px; }
.form__send { width: 100%; min-height: 56px; font-size: 1.2rem; }
.form__hint { margin-top: 12px; font-size: 1rem; color: var(--muted); }

/* Footer */
.foot { background: var(--black); color: #c9ccc6; border-top: 1px solid #3a3d38; padding: 36px 0 44px; font-size: 1.0625rem; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot a { color: var(--white); }
.foot__name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--white); }

.sticky-book { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.93); }
.lightbox figure { grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; max-height: 100vh; padding: 56px 0 20px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.lightbox figcaption { color: var(--white); margin-top: 14px; text-align: center; max-width: 46em; font-size: 1.0625rem; }
.lightbox__close, .lightbox__nav { background: var(--black); color: var(--white); border: 2px solid #6a6e66; width: 52px; height: 52px; border-radius: 6px; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lightbox__nav { justify-self: center; }
.lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; }
.lightbox :focus-visible { outline-color: var(--vest); }

/* Tablet */
@media (max-width: 1100px) {
  :root { --pad: 24px; }
  .nav, .top__quote { display: none; }
  .top__phone { margin-left: auto; }
  .menu-toggle { display: block; margin-left: 0; }
  .hero__band { grid-template-columns: 1fr; gap: 24px; }
  .head { grid-template-columns: 1fr; gap: 14px; }
  .storm__in, .about__in, .quote__in, .stump { grid-template-columns: 1fr; gap: 40px; }
  .svc li { grid-template-columns: minmax(0, 1fr) 220px; gap: 8px 32px; }
  .svc h3 { grid-column: 1; }
  .svc p { grid-column: 1; }
  .svc img { grid-column: 2; grid-row: 1 / span 2; width: 220px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .reviews__cols { columns: 2; }
  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__list li:nth-child(n+3) { border-top: 1px solid #3a3d38; }
}

/* Phone */
@media (max-width: 700px) {
  :root { --pad: 16px; }
  html { scroll-padding-top: 72px; }
  body { padding-bottom: 72px; }
  .top__in { min-height: 64px; gap: 12px; }
  .brand__name { font-size: 1.3rem; }
  .brand__sub { font-size: 0.78rem; border-bottom-width: 2px; }
  .top__phone { font-size: 1.05rem; }
  .hero__pair { grid-template-columns: 1fr; gap: 3px; }
  .hero__pair .shot { max-height: none; aspect-ratio: 2 / 1; }
  .hero__pair .tag { left: 12px; top: 12px; font-size: 1rem; padding: 8px 12px 9px; }
  .hero__band { padding-top: 24px; padding-bottom: 16px; gap: 18px; }
  .hero h1 { font-size: 2.15rem; padding-bottom: 16px; border-bottom-width: 5px; }
  .hero__lede { font-size: 1.15rem; margin-bottom: 16px; }
  .hero__cta .btn { width: 100%; }
  .hero__note { padding-bottom: 28px; }
  .facts__list li { padding: 16px 12px 16px 0; font-size: 1rem; }
  .facts__list li:nth-child(even) { padding-left: 16px; }
  .facts__list strong { font-size: 1.2rem; }
  .work, .services, .gallery, .reviews { padding: 56px 0 64px; }
  .storm, .about { padding: 56px 0; }
  .quote { padding: 56px 0 64px; }
  .head { margin-bottom: 28px; }
  .head p { font-size: 1.1rem; }
  .pair--wide .pair__shots { grid-template-columns: 1fr; }
  .pairs { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .tag, .pair--wide .tag { left: 10px; top: 10px; font-size: 0.95rem; padding: 7px 11px 8px; }
  .storm__text > p { font-size: 1.15rem; }
  .svc li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .svc img { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
  .svc h3 { font-size: 1.5rem; }
  .stump { margin-top: 48px; }
  .stump__text h3 { font-size: 1.6rem; }
  .grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 6px; }
  .reviews__score strong { font-size: 3.2rem; }
  .lead-review { padding: 28px 0; }
  .reviews__cols { columns: 1; padding-top: 28px; }
  .reviews__cols figure { margin-bottom: 28px; }
  .about__text > p { font-size: 1.1rem; }
  .about__facts div { grid-template-columns: 7.5em 1fr; }
  .form { padding: 22px 16px; }
  .foot__in { grid-template-columns: 1fr; gap: 16px; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; padding: 64px 8px 8px; }
  .lightbox__nav--prev { grid-column: 1; grid-row: 2; margin-bottom: 16px; }
  .lightbox__nav--next { grid-column: 2; grid-row: 2; margin-bottom: 16px; }

  .sticky-book { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.2s; }
  .sticky-book.is-visible { transform: none; }
  .sticky-book a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 6px; font-family: var(--display); font-weight: 600; font-size: 1.125rem; text-decoration: none; border: 2px solid var(--black); }
  .sticky-book__call { background: var(--white); color: var(--black); }
  .sticky-book__quote { background: var(--black); color: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
