/* Adam's Tree Service. Tokens first, everything else reads from them.
   Colors come off the trucks and the logo, see README "Design plan". */
:root {
  --pine: #123d27;        /* deep version of the green bucket truck, grounds for the white logo */
  --truck-green: #1f7a45; /* the green truck body */
  --logo-green: #00c050;  /* the pine in the logo, used only on dark grounds */
  --orange: #c4491a;      /* the orange chip trucks and the climbers' shirts */
  --orange-dark: #a53a12;
  --paper: #f5f6f1;
  --white: #ffffff;
  --ink: #15201a;
  --muted: #4d5a52;
  --line: #d6dbd2;

  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--truck-green); text-underline-offset: 0.18em; }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.measure { max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--ink); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.text-link { font-weight: 600; }

/* Header */
.site-header { background: var(--pine); color: var(--white); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.brand img { width: 118px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; font-stretch: 112%; font-size: 0.95rem; padding: 12px 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--logo-green); text-decoration-thickness: 2px; }
.has-sub { position: relative; }
.sub-toggle { display: none; }
.sub { position: absolute; left: -18px; top: 100%; min-width: 260px; background: var(--white); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(8, 28, 17, 0.28); padding: 8px 0; visibility: hidden; opacity: 0; transition: opacity 0.12s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { visibility: visible; opacity: 1; }
.nav .sub a { color: var(--ink); display: block; padding: 10px 18px; font-stretch: 100%; }
.nav .sub a:hover { background: var(--paper); text-decoration: none; }
.header-phone { color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; white-space: nowrap; text-align: right; }
.header-phone span { display: block; font-family: var(--body); font-weight: 500; font-size: 0.74rem; font-stretch: 118%; color: #b9d8c4; }
.header-phone:hover { color: var(--white); text-decoration: underline; }
.nav-toggle { display: none; }

/* The call plate: the door lettering off the trucks, serif numerals on truck orange */
.plate { display: inline-flex; flex-direction: column; background: var(--orange); color: var(--white); text-decoration: none; padding: 14px 26px 12px; border-radius: var(--radius); border-bottom: 4px solid var(--orange-dark); }
.plate:hover { background: var(--orange-dark); color: var(--white); }
.plate-label { font-size: 0.8rem; font-weight: 600; font-stretch: 120%; }
.plate-number { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.05; letter-spacing: 0.01em; font-variant-numeric: lining-nums; }

/* Hero: one wide photo of the crew and the equipment, with the copy on a green wash at the left */
.hero { position: relative; background: var(--pine); color: var(--white); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 58%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 38, 24, 0.95) 0%, rgba(10, 38, 24, 0.88) 30%, rgba(10, 38, 24, 0.45) 56%, rgba(10, 38, 24, 0.08) 78%, rgba(10, 38, 24, 0) 100%), linear-gradient(0deg, rgba(10, 38, 24, 0.35), rgba(10, 38, 24, 0) 30%); }
.hero-inner { min-height: clamp(520px, 46vw, 720px); display: flex; align-items: center; padding-block: clamp(40px, 6vw, 84px); }
.hero-copy { max-width: 600px; }
.hero h1 { text-shadow: 0 2px 18px rgba(6, 24, 15, 0.55); }
.hero-lede { font-size: 1.2rem; max-width: 30em; color: #e6f1ea; text-shadow: 0 1px 10px rgba(6, 24, 15, 0.6); }
.hero-proof { margin: 22px 0 0; color: #e6f1ea; text-shadow: 0 1px 10px rgba(6, 24, 15, 0.6); }
.hero-proof a { color: var(--white); }

/* One customer line, set large */
.pull { padding: clamp(48px, 7vw, 92px) 0 clamp(8px, 1.5vw, 20px); }
.pull-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pull-top .g-stars svg { width: 30px; height: 30px; }
.pull-top .g-logo { margin-left: 0; width: 28px; height: 28px; }
.pull blockquote { margin: 0; max-width: 960px; }
.pull blockquote p { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.16; letter-spacing: -0.012em; margin-bottom: 0.5em; }
.pull footer, .storm-quote footer { color: var(--muted); font-size: 0.98rem; }

/* Services: one photo, one plain list */
.services { padding: clamp(40px, 6vw, 80px) 0; }
.services-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.services-photo { margin: 0; position: sticky; top: 24px; }
.services-photo img { border-radius: var(--radius); width: 100%; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service-list li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 8px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.service-list a { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--ink); text-decoration: none; }
.service-list a:hover { color: var(--truck-green); text-decoration: underline; }
.service-list span { color: var(--muted); font-size: 1rem; }

/* Close work: three tall strips of different heights, like trunks */
.close-work { background: var(--white); padding: clamp(56px, 8vw, 110px) 0; }
.strips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.strips figure { margin: 0; }
.strips img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.strips figure:nth-child(1) img { aspect-ratio: 3 / 4; }
.strips figure:nth-child(2) img { aspect-ratio: 3 / 5.2; }
.strips figure:nth-child(3) img { aspect-ratio: 3 / 3.4; }
figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 10px; }

/* Storm */
.storm { background: var(--pine); color: var(--white); padding: clamp(52px, 7vw, 96px) 0; }
.storm-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.storm-quote { margin: 0 0 1.6em; border-left: 3px solid var(--logo-green); padding-left: clamp(16px, 2.4vw, 28px); }
.storm-quote p { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.38; }
.storm-quote footer { color: #b9d8c4; }
.storm a.text-link { color: var(--white); }
.storm-call { justify-self: end; }

/* How a job goes: a paragraph, not numbered circles */
.how { padding: clamp(56px, 8vw, 110px) 0; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.how-grid p { font-size: 1.12rem; }
.how-grid p:last-child { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.25; margin: 0; }
.how figure { margin: 0; }
.how img { border-radius: var(--radius); }

/* Area */
.area { background: var(--white); padding: clamp(48px, 7vw, 90px) 0; }
.area-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.towns { list-style: none; padding: 0; margin: 0 0 1.4em; columns: 3; column-gap: 20px; font-weight: 500; }
.towns li { padding: 3px 0; break-inside: avoid; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius); }

/* FAQ */
.faqs { padding: clamp(52px, 7vw, 96px) 0; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 1.22rem; padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-family: var(--body); font-weight: 400; font-size: 1.7rem; color: var(--truck-green); }
.faq[open] summary::after { content: "\2212"; }
.faq div { padding: 0 0 12px; max-width: 66ch; }

/* Closing and form */
.closing { background: var(--pine); color: var(--white); padding: clamp(52px, 7vw, 96px) 0; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.closing p { color: #dcebe1; max-width: 32em; }
.quote-form { background: var(--white); color: var(--ink); padding: clamp(20px, 3vw, 34px); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.quote-form label:nth-of-type(n+3), .quote-form button { grid-column: 1 / -1; }
.quote-form input, .quote-form select, .quote-form textarea { font: inherit; font-weight: 400; padding: 12px; border: 1px solid #9aa69d; border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%; min-height: 48px; }
.quote-form button { font: inherit; font-weight: 700; font-size: 1.08rem; background: var(--orange); color: var(--white); border: 0; border-bottom: 4px solid var(--orange-dark); border-radius: var(--radius); padding: 15px; cursor: pointer; }
.quote-form button:hover { background: var(--orange-dark); }
.hp { position: absolute; left: -9999px; }

/* Inner pages */
.page-head { background: var(--pine); color: var(--white); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding-top: clamp(28px, 4vw, 56px); }
.page-head-copy { padding-bottom: clamp(32px, 5vw, 64px); align-self: center; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.page-head p { color: #dcebe1; font-size: 1.15rem; max-width: 36em; }
.page-head img { width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.page-head.plain .page-head-grid { grid-template-columns: 1fr; }
.crumbs { font-size: 0.88rem; margin-bottom: 18px; color: #b9d8c4; }
.crumbs a { color: #b9d8c4; }
.prose { padding: clamp(44px, 6vw, 84px) 0; }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); max-height: 640px; width: auto; }
.prose .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.prose .pair img { width: 100%; max-height: none; }
.said { margin: 2em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--truck-green); }
.said p { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.35; margin-bottom: 0.4em; }
.said footer { color: var(--muted); font-size: 0.95rem; }
.aside { position: sticky; top: 24px; display: grid; gap: 26px; }
.aside .plate { width: 100%; }
.aside h2 { font-family: var(--body); font-size: 0.85rem; font-weight: 700; font-stretch: 118%; letter-spacing: 0; margin: 0 0 8px; }
.aside ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.aside li { margin: 0; border-bottom: 1px solid var(--line); }
.aside li a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.aside li a:hover { color: var(--truck-green); text-decoration: underline; }
.prose .faq summary { font-size: 1.12rem; }

/* Services hub */
.hub { padding: clamp(40px, 6vw, 80px) 0; }
.hub-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.hub-row img { border-radius: var(--radius); aspect-ratio: 1 / 1.15; object-fit: cover; width: 100%; }
.hub-row h2 { font-size: 1.8rem; }
.hub-row h2 a { color: var(--ink); text-decoration: none; }
.hub-row h2 a:hover { color: var(--truck-green); text-decoration: underline; }

/* Reviews */
.reviews-list { columns: 2; column-gap: clamp(28px, 4vw, 56px); padding: clamp(40px, 6vw, 80px) 0; }
.review { break-inside: avoid; padding: 0 0 26px; margin: 0 0 26px; border-bottom: 1px solid var(--line); }
.review-text p { margin-bottom: 0.7em; }
.review-by { font-weight: 700; margin: 0; }

/* Photos */
.gallery { columns: 3; column-gap: 16px; padding: clamp(40px, 6vw, 80px) 0; }
.gallery figure { margin: 0 0 22px; break-inside: avoid; }
.gallery img { width: 100%; border-radius: var(--radius); }

/* Town list on the areas page */
.town-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(28px, 4vw, 56px); }
.town-blocks section { padding: 18px 0; border-top: 1px solid var(--line); }
.town-blocks h3 { margin-bottom: 0.3em; }
.town-blocks p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: #0c2a1b; color: #cfe0d5; padding: clamp(40px, 6vw, 72px) 0 110px; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.footer-logo { width: 130px; margin-bottom: 16px; }
.site-footer address { font-style: normal; margin-bottom: 1em; }
.site-footer a { color: var(--white); }
.site-footer h2 { font-family: var(--body); font-size: 0.85rem; font-weight: 700; font-stretch: 118%; letter-spacing: 0; color: var(--white); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid #214a33; font-size: 0.88rem; color: #9fbcaa; }
.footer-base p { margin: 0; }

.sticky-bar { display: none; }

@media (min-width: 901px) { .site-footer { padding-bottom: clamp(40px, 6vw, 72px); } }

@media (max-width: 900px) {
  .header-row { gap: 14px; flex-wrap: wrap; }
  .brand img { width: 92px; }
  .header-phone { margin-left: auto; font-size: 1.12rem; }
  .nav-toggle { display: inline-block; order: 3; font: inherit; font-weight: 600; color: var(--white); background: transparent; border: 1px solid #4d7a61; border-radius: var(--radius); padding: 10px 14px; min-height: 44px; }
  .nav { display: none; order: 4; width: 100%; margin: 0; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid #214a33; }
  .nav > ul > li { border-bottom: 1px solid #214a33; }
  .nav a { padding: 14px 0; }
  .has-sub { display: grid; grid-template-columns: 1fr 48px; }
  .sub-toggle { display: block; background: none; border: 0; color: var(--white); font-size: 1.5rem; min-height: 48px; }
  .sub { position: static; grid-column: 1 / -1; display: none; visibility: visible; opacity: 1; background: transparent; box-shadow: none; padding: 0 0 8px 14px; }
  .has-sub.open .sub { display: block; }
  .nav .sub a { color: #dcebe1; padding: 10px 0; }
  .nav .sub a:hover { background: transparent; text-decoration: underline; }

  .services-grid, .storm-grid, .how-grid, .area-grid, .closing-grid, .page-head-grid, .prose-grid { grid-template-columns: 1fr; }
  .hero-bg { position: static; display: block; height: auto; aspect-ratio: 16 / 10; object-position: 50% 60%; }
  .hero::after { display: none; }
  .hero-inner { min-height: 0; padding-block: 28px 40px; }
  .services-photo, .aside { position: static; }
  .services-photo img { aspect-ratio: 4 / 3.6; object-fit: cover; object-position: center 80%; }
  .service-list li { grid-template-columns: 1fr; }
  .storm-call { justify-self: start; }
  .strips { grid-template-columns: 1fr 1fr; }
  .strips figure:nth-child(3) { grid-column: 1 / -1; }
  .strips figure:nth-child(3) img { aspect-ratio: 4 / 3; }
  .towns { columns: 2; }
  .quote-form { grid-template-columns: 1fr; }
  .reviews-list { columns: 1; }
  .gallery { columns: 2; }
  .hub-row { grid-template-columns: 110px minmax(0, 1fr); }
  .town-blocks, .footer-grid { grid-template-columns: 1fr; }
  .page-head img { aspect-ratio: 4 / 3; object-position: center 30%; border-radius: var(--radius); margin-bottom: 28px; }
  .sticky-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--orange); border-top: 1px solid var(--orange-dark); }
  .sticky-bar a { color: var(--white); text-decoration: none; font-weight: 700; text-align: center; padding: 15px 4px; min-height: 52px; border-right: 1px solid var(--orange-dark); }
  .sticky-bar a:last-child { border-right: 0; }
}

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

.plate-number { white-space: nowrap; }
.aside .plate-number { font-size: 1.95rem; }
.aside .plate { padding-inline: 20px; }

/* Google reviews, laid out the way Google shows them */
.g-section { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); }
.g-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.g-summary { display: flex; align-items: center; gap: 14px; }
.g-summary > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.g-score { font-family: var(--body); font-size: 2rem; font-weight: 700; line-height: 1; }
.g-count { color: var(--muted); font-size: 0.98rem; }
.g-stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.g-summary .g-stars svg { width: 24px; height: 24px; }
.g-review { background: var(--white); border: 1px solid #dadce0; border-radius: 8px; padding: 18px 20px; font-family: Roboto, Arial, system-ui, sans-serif; }
.g-review header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.g-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 500; font-size: 1.15rem; }
.g-who { display: grid; gap: 2px; min-width: 0; }
.g-who strong { font-weight: 500; font-size: 0.98rem; color: #202124; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-meta { display: flex; align-items: center; gap: 8px; }
.g-date { color: #70757a; font-size: 0.85rem; }
.g-logo { margin-left: auto; flex: none; width: 20px; height: 20px; }
.g-text { color: #3c4043; font-size: 0.95rem; line-height: 1.55; }
.g-text p { margin: 0 0 0.6em; }
.g-text p:last-child { margin: 0; }
.g-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.g-strip .g-review { scroll-snap-align: start; }
.g-page-head { padding-top: clamp(32px, 5vw, 56px); }
.reviews-list { padding-top: 24px; }
.reviews-list .g-review { break-inside: avoid; margin: 0 0 18px; }
.said-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.said-top .g-logo { margin-left: 0; }

/* Town pages and the towns menu */
.plain-links { list-style: none; padding: 0 !important; columns: 2; column-gap: 28px; }
.plain-links li { padding: 4px 0; }
.sub-towns { columns: 2; column-gap: 0; min-width: 340px; }
.sub-towns li { break-inside: avoid; }
@media (max-width: 900px) { .sub-towns { min-width: 0; } .plain-links { columns: 1; } }
