/* Chappell Tree Service, Wichita KS
   Sky and wheat from the Kansas job photos, green and orange from the truck door. */
:root {
  --sky: #1d56a5;
  --sky-deep: #153f7c;
  --wheat: #e7c65a;
  --wheat-pale: #f7efd2;
  --green: #1f8b46;
  --orange: #f26a21;
  --orange-deep: #b9460a;
  --ink: #121c2e;
  --muted: #4a5568;
  --mist: #eef3fa;
  --line: #d6dce6;
  --white: #fff;
  --font-d: "Roboto Slab", Rockwell, Georgia, serif;
  --font-b: "Mukta", "Segoe UI", Arial, sans-serif;
  --gutter: 32px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-b); font-size: 19px; line-height: 1.55; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.300vw, 44px); }
p { margin: 0 0 1em; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--sky-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .quote :focus-visible, .roof :focus-visible, .sticky-book :focus-visible, .lightbox :focus-visible, .site-footer :focus-visible { outline-color: var(--wheat); }

.wrap { width: 100%; max-width: 1264px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip:focus { top: 12px; }
.stars { color: #d99a00; letter-spacing: .05em; }
.section { padding: 96px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border: 2px solid transparent; border-radius: 6px;
  font-family: var(--font-b); font-weight: 700; font-size: 19px; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--lg { min-height: 56px; padding: 12px 28px; font-size: 20px; }
.btn--go { background: var(--orange); color: #1b0d02; }
.btn--go:hover { background: #ff8136; color: #1b0d02; }
.btn--line { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn--line:hover { background: #fff; color: var(--sky-deep); border-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 36px; height: 43px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-d); font-weight: 700; font-size: 26px; color: var(--orange-deep); letter-spacing: -.01em; }
.brand__sub { font-weight: 700; font-size: 15px; margin-top: 4px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--orange); }
.site-header__phone { font-family: var(--font-d); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-header__phone:hover { color: var(--sky); }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* Hero: a field of Kansas sky, a wheat strip under it, and the truck standing on the line between them */
.top { position: relative; }
.hero { background: var(--sky); color: #fff; }
.hero__in { padding-top: 84px; padding-bottom: 76px; }
.hero__text { max-width: 560px; }
.hero h1 { font-size: clamp(38px, 4.100vw, 60px); line-height: 1.08; }
.hero__lead { font-size: 22px; line-height: 1.45; margin: 24px 0 32px; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__rating { margin: 28px 0 0; font-weight: 600; }
.hero__rating .stars { color: var(--wheat); margin-right: 6px; }
.horizon { background: var(--wheat); border-top: 8px solid var(--green); }
.horizon__facts { list-style: none; margin: 0; padding: 26px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; max-width: 560px; font-size: 17px; line-height: 1.35; color: #2a2410; }
.horizon__facts strong { display: block; font-family: var(--font-d); font-size: 20px; color: var(--ink); }
.hero__photo { position: absolute; top: 44px; bottom: 0; right: 0; width: calc(50vw - 24px); overflow: hidden; border-top-left-radius: 4px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 92% 60%; }

/* Services */
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.svc-list { margin: 28px 0 0; }
.svc-list > div { padding: 20px 0; border-top: 1px solid var(--line); }
.svc-list > div:last-child { border-bottom: 1px solid var(--line); }
.svc-list dt { font-family: var(--font-d); font-weight: 700; font-size: 23px; }
.svc-list dd { margin: 6px 0 0; color: #2c3648; }
.svc-list a { font-weight: 700; white-space: nowrap; }
.services__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.services__photos figure { margin: 0; }
.services__photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.services__big { grid-column: 1 / -1; }
.services__big img { aspect-ratio: 5 / 4; object-position: 50% 30%; }
.services__photos figcaption { font-size: 16px; color: var(--muted); padding-top: 8px; line-height: 1.35; }

/* One roof, three views */
.roof { background: var(--ink); color: #fff; padding: 96px 0 104px; }
.roof__head { max-width: 720px; margin-bottom: 48px; }
.roof__head p { margin: 18px 0 0; font-size: 21px; color: #cfd8e6; }
.roof__views { display: grid; grid-template-columns: .82fr 1.18fr 1fr; gap: 28px; align-items: start; }
.roof__view { margin: 0; }
.roof__view img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.roof__view--ground { margin-top: 88px; }
.roof__view--truck { margin-top: 44px; }
.roof__view figcaption { padding-top: 14px; color: #cfd8e6; font-size: 18px; line-height: 1.45; }
.roof__view figcaption strong { display: block; font-family: var(--font-d); font-size: 22px; color: var(--wheat); margin-bottom: 4px; }

/* Storm work */
.storm { background: var(--wheat-pale); padding: 96px 0; border-top: 8px solid var(--wheat); }
.storm__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.storm__lead { font-size: 23px; line-height: 1.4; margin: 22px 0 16px; font-weight: 600; }
.storm__lead a { color: var(--ink); white-space: nowrap; }
.storm__quote { margin: 28px 0 0; padding: 0 0 0 20px; border-left: 4px solid var(--green); }
.storm__quote p { margin: 0 0 8px; }
.storm__quote footer { font-weight: 700; font-size: 17px; }
.storm__photos { position: sticky; top: calc(var(--header-h) + 24px); padding-bottom: 90px; }
.storm__photos img { border-radius: 4px; }
.storm__night { position: absolute; left: -36px; bottom: 0; width: 48%; border: 6px solid var(--wheat-pale); }

/* Gallery */
.work h2 { margin-bottom: 32px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.g-item { position: relative; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 4; }
.g-item--wide { grid-column: span 2; aspect-ratio: auto; }
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g-item:hover img { transform: scale(1.03); }

/* Reviews */
.reviews { background: var(--mist); }
.reviews__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 72px; align-items: start; }
.reviews__side { position: sticky; top: calc(var(--header-h) + 24px); }
.reviews__score { display: flex; align-items: baseline; gap: 14px; margin: 24px 0 4px; }
.reviews__num { font-family: var(--font-d); font-weight: 700; font-size: 84px; line-height: 1; color: var(--sky); }
.reviews__score .stars { font-size: 24px; }
.reviews__note { color: #2c3648; }
.reviews__side a { font-weight: 700; }
.reviews__list { columns: 2; column-gap: 48px; }
.reviews__list blockquote { margin: 0 0 32px; padding: 0 0 28px; border-bottom: 1px solid #c5cfdd; break-inside: avoid; }
.reviews__list p { margin: 0 0 12px; }
.reviews__list footer { font-weight: 700; }
.reviews__list footer span { font-weight: 400; color: var(--muted); margin-left: 6px; }

/* About */
.about { padding: 96px 0 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; padding-bottom: 80px; }
.about__crew { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
.about__text h2 { margin-bottom: 22px; }
.about__text p { max-width: 34em; }
.about__facts { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.about__facts > div { padding: 14px 0; border-top: 1px solid var(--line); }
.about__facts dt { font-size: 16px; color: var(--muted); }
.about__facts dd { margin: 0; font-family: var(--font-d); font-weight: 700; font-size: 21px; }
.fleet { margin: 0; background: var(--ink); color: #cfd8e6; }
.fleet img { width: 100%; max-height: 520px; object-fit: cover; object-position: 50% 75%; }
.fleet figcaption { padding-top: 14px; padding-bottom: 16px; font-size: 17px; }

/* Quote */
.quote { background: var(--sky); color: #fff; padding: 96px 0; border-top: 8px solid var(--green); }
.quote__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.quote__info p { font-size: 21px; margin: 20px 0 24px; max-width: 24em; }
.quote__phone { display: inline-block; font-family: var(--font-d); font-weight: 700; font-size: clamp(34px, 3.600vw, 48px); color: var(--wheat); text-decoration: none; line-height: 1.1; }
.quote__phone:hover { color: #fff; }
.quote__facts { margin: 32px 0 0; }
.quote__facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .28); }
.quote__facts dt { color: #cddcf2; }
.quote__facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.quote__facts a { color: #fff; }
.form { background: #fff; color: var(--ink); padding: 36px; border-radius: 6px; }
.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; border: 2px solid #aab4c3; border-radius: 6px;
  font: inherit; color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--ink); }
.form__error { color: #a51616; font-weight: 700; }
.form__send { width: 100%; }
.form__hint { margin: 12px 0 0; font-size: 16px; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { background: var(--ink); color: #cfd8e6; padding: 48px 0 56px; font-size: 18px; }
.site-footer__in { display: flex; flex-wrap: wrap; gap: 28px 80px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #fff; }
.site-footer__name { font-family: var(--font-d); font-weight: 700; font-size: 22px; color: #fff; }

.sticky-book { display: none; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 19, 32, .97); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox img { max-width: min(92vw, 1200px); max-height: 80vh; width: auto; height: auto; object-fit: contain; }
.lightbox__cap { position: absolute; left: 16px; right: 16px; bottom: 22px; margin: 0; text-align: center; font-size: 18px; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 0; border-radius: 6px; color: #fff; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.200; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -26px; }

@media (max-width: 1240px) {
  .nav { gap: 20px; }
  .site-header__in { gap: 20px; }
  .site-header__quote { display: none; }
  .services__grid, .storm__grid, .about__grid, .quote__grid, .reviews__grid { gap: 48px; }
  .reviews__grid { grid-template-columns: 260px minmax(0, 1fr); }
  .storm__night { left: -20px; }
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero__in { padding-top: 52px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(36px, 3.700vw, 52px); }
  .hero__lead { margin: 18px 0 24px; font-size: 21px; }
  .hero__rating { margin-top: 20px; }
  .hero__photo { top: 32px; }
  .horizon__facts { padding: 18px 0 20px; gap: 12px 32px; }
}

@media (max-width: 980px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 18px; }
  .section, .roof, .storm, .quote { padding: 64px 0; }
  .nav, .site-header__phone { display: none; }
  .brand__name { font-size: 23px; }
  .brand__mark { width: 32px; height: 38px; }
  .menu-toggle { display: grid; gap: 5px; width: 48px; height: 48px; place-content: center; background: none; border: 0; cursor: pointer; }
  .menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; display: flex; flex-direction: column; background: #fff; padding: 8px var(--gutter) 40px; overflow-y: auto; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { font-family: var(--font-d); font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .mobile-menu__call { margin-top: 24px; border: 0; background: var(--orange); color: #1b0d02; text-align: center; border-radius: 6px; font-size: 21px; }

  .top { display: flex; flex-direction: column; }
  .hero__in { padding-top: 40px; padding-bottom: 44px; }
  .hero__text { max-width: 640px; }
  .hero__lead { font-size: 20px; margin: 18px 0 26px; }
  .hero__photo { position: static; width: 100%; order: 2; border-radius: 0; background: var(--sky); }
  .hero__photo img { aspect-ratio: 4 / 3; height: auto; object-position: 80% 60%; }
  .horizon { order: 3; }
  .horizon__facts { max-width: none; padding: 22px 0 24px; gap: 16px 20px; }

  .services__grid, .storm__grid, .about__grid, .quote__grid, .reviews__grid { grid-template-columns: 1fr; gap: 40px; }
  .roof__head { margin-bottom: 32px; }
  .roof__views { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .roof__view--lift { grid-column: 1 / -1; grid-row: 1; }
  .roof__view--lift img { aspect-ratio: 4 / 5; }
  .roof__view--ground, .roof__view--truck { margin-top: 0; }
  .roof__view figcaption { font-size: 17px; }
  .roof__view figcaption strong { font-size: 20px; }
  .storm__photos { position: relative; top: auto; padding-bottom: 70px; }
  .storm__night { left: 12px; width: 50%; }
  .storm__lead { font-size: 21px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .g-item--wide { aspect-ratio: 3 / 2; }
  .reviews__side { position: static; }
  .reviews__list { columns: 1; }
  .reviews__num { font-size: 68px; }
  .about { padding-top: 64px; }
  .about__grid { padding-bottom: 56px; }
  .fleet img { max-height: none; }
  .form { padding: 24px 18px; }
  .site-footer { padding-bottom: 110px; }

  .sticky-book {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--ink); box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
    transform: translateY(110%); transition: transform .25s;
  }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { flex: 1; min-height: 50px; padding: 10px 12px; }
}

@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; }
  .horizon__facts { font-size: 16px; }
  .horizon__facts strong { font-size: 18px; }
  .services__photos figcaption, .fleet figcaption { font-size: 16px; }
  .about__facts { grid-template-columns: 1fr; }
  .quote__facts > div { grid-template-columns: 84px 1fr; }
}

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