/* S&S Tree Service (Stewart & Stewart), Ashland NE */
:root {
  --oat: #f5f0e4;
  --paper: #fffdf8;
  --sawdust: #e7dbc2;
  --bark: #2e2219;
  --bark-soft: #5b493b;
  --sky: #1f5fa6;
  --sky-deep: #103a6e;
  --hivis: #f26a1b;
  --hivis-dark: #d4530a;
  --line: rgba(46, 34, 25, .18);
  --font-d: "Encode Sans Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --font-b: "Alegreya Sans", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --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; background: var(--oat); color: var(--bark);
  font-family: var(--font-b); font-size: 19px; line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-d); line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; }
h3 { font-size: 23px; font-weight: 700; line-height: 1.15; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.steps :focus-visible, .site-footer :focus-visible, .quote-section :focus-visible,
.hero :focus-visible, .sticky-book :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--bark); color: #fff; padding: 12px 18px;
}
.skip:focus { top: 12px; }
.stars { color: var(--hivis); letter-spacing: .06em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 26px; border: 0; border-radius: 4px; cursor: pointer;
  font-family: var(--font-d); font-weight: 700; font-size: 19px; text-decoration: none;
  transition: background-color .15s;
}
.btn svg { width: 21px; height: 21px; fill: currentColor; flex: none; }
.btn--call { background: var(--hivis); color: #1d130b; }
.btn--call:hover { background: #ff7f33; }
.btn--light { background: #fff; color: var(--bark); }
.btn--light:hover { background: var(--sawdust); }
.btn--block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--oat); 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; margin-right: auto; }
.brand img { width: 54px; height: 54px; }
.brand__name { font-family: var(--font-d); font-weight: 800; font-size: 21px; line-height: 1.1; }
.brand__name small { display: block; font-family: var(--font-b); font-weight: 500; font-size: 15.5px; color: var(--bark-soft); }
.nav { display: flex; gap: 28px; }
.nav a { font-weight: 500; text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--hivis); }
.header-phone {
  display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px 18px;
  background: var(--bark); color: #fff; border-radius: 4px; text-decoration: none;
  font-family: var(--font-d); font-weight: 700; font-size: 18px; white-space: nowrap;
}
.header-phone:hover { background: #45352a; }
.header-phone svg { width: 18px; height: 18px; fill: var(--hivis); }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* Hero: the photo carries it; the sky on the left holds the text */
.hero { position: relative; background: var(--sky-deep); color: #fff; }
.hero__photo, .hero__photo img { display: block; width: 100%; }
@media (min-width: 1001px) {
  .hero { height: calc(100vh - var(--header-h)); min-height: 600px; max-height: 980px; overflow: hidden; }
  .hero__photo { position: absolute; inset: 0; }
  .hero__photo img { height: 100%; object-fit: cover; object-position: 30% 62%; }
  .hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(118% 92% at 0% 0%, rgba(11, 44, 88, .86) 0%, rgba(11, 44, 88, .7) 28%, rgba(11, 44, 88, .28) 46%, rgba(11, 44, 88, 0) 58%);
  }
  .hero__body {
    position: relative; z-index: 1; max-width: 1280px; margin: 0 auto;
    padding: clamp(30px, 5.2vh, 72px) var(--gutter) 0;
  }
  .hero__body > * { max-width: 700px; }
  .hero h1 { max-width: none; white-space: nowrap; text-shadow: 0 2px 18px rgba(8, 30, 62, .45); }
  .hero__lead, .hero__rating { text-shadow: 0 1px 10px rgba(8, 30, 62, .5); }
}
.hero h1 { font-size: clamp(36px, 3.75vw, 64px); font-weight: 800; letter-spacing: -.015em; }
.hero__lead { margin-top: 14px; font-size: clamp(20px, 1.6vw, 25px); line-height: 1.35; font-weight: 500; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__rating { margin-top: 16px; font-size: 18px; font-weight: 500; }

/* Facts row */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__list li { padding: 20px 24px; border-left: 1px solid var(--line); font-size: 17.5px; color: var(--bark-soft); line-height: 1.3; }
.facts__list li:first-child { border-left: 0; padding-left: 0; }
.facts__list b { display: block; font-family: var(--font-d); font-weight: 700; font-size: 20px; color: var(--bark); }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section__head p { font-size: 21px; max-width: 34em; color: var(--bark-soft); }
.section__head--light p { color: #e2d6c4; }

/* Services */
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: stretch; }
.feature { background: var(--bark); color: #fff; display: flex; flex-direction: column; }
.feature img { width: 100%; flex: 1 1 0; min-height: 320px; object-fit: cover; object-position: 50% 20%; }
.feature__text { padding: 26px 28px 30px; }
.feature__tag { font-family: var(--font-d); font-weight: 700; font-size: 16px; color: var(--hivis); margin-bottom: 4px; }
.feature h3 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.feature p:last-child { color: #eee4d6; }
.svc-list li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.svc-list li:first-child { border-top: 0; padding-top: 0; }
.svc-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-list h3 { margin-bottom: 6px; }
.svc-list p { color: var(--bark-soft); }

/* Steps: the dark band, with a saw-tooth top edge taken from the blade ring in the logo */
.steps { position: relative; background: var(--bark); color: #fff; padding: clamp(64px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14'%3E%3Cpath d='M0 14 22 0l8 14z' fill='%232e2219'/%3E%3C/svg%3E") repeat-x left bottom;
}
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps__list li { counter-increment: step; position: relative; padding-top: 58px; }
.steps__list li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font-family: var(--font-d); font-weight: 800; font-size: 44px; line-height: 1; color: var(--hivis);
}
.steps__list li::after {
  content: ""; position: absolute; top: 24px; left: 44px; right: -28px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .4) 0 10px, transparent 10px 16px);
}
.steps__list li:last-child::after { right: 0; }
.steps__list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.steps__list h3 { margin: 18px 0 6px; }
.steps__list p { color: #e2d6c4; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 19vw, 270px); grid-auto-flow: dense; gap: 10px; }
.g-item { padding: 0; border: 0; background: var(--sawdust); cursor: zoom-in; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g-item:hover img { transform: scale(1.03); }
.g-item--wide { grid-column: span 2; }
.g-item--tall { grid-row: span 2; }

.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 10px; margin-top: clamp(48px, 6vw, 80px); align-items: end; }
.pair__text { padding: 0 48px 8px 0; }
.pair__text h3 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.pair__text p { color: var(--bark-soft); max-width: 26em; }
.pair img { width: 100%; }

/* Reviews */
.reviews { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead-quote { border-left: 6px solid var(--hivis); padding: 4px 0 4px clamp(20px, 3vw, 40px); max-width: 1000px; }
.lead-quote blockquote { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.3; font-weight: 500; }
figcaption { margin-top: 14px; font-size: 17px; color: var(--bark-soft); }
figcaption b { font-family: var(--font-d); font-weight: 700; font-size: 18px; color: var(--bark); margin-right: 10px; }
.quotes { columns: 3; column-gap: 48px; margin-top: clamp(40px, 5vw, 64px); }
.quote { break-inside: avoid; padding: 22px 0 26px; border-top: 1px solid var(--line); }
.reviews__more { margin-top: 28px; }
.reviews__more a { font-weight: 700; color: var(--sky); text-underline-offset: 4px; }

/* About */
.about__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__photo { position: relative; padding: 0 0 56px 0; }
.about__photo > img:first-child { width: 100%; }
.about__badge { position: absolute; right: 28px; bottom: 0; width: clamp(130px, 15vw, 196px); height: auto; filter: drop-shadow(0 6px 18px rgba(46, 34, 25, .3)); }
.about__text h2 { margin-bottom: 20px; }
.about__text p + p { margin-top: 14px; }
.about__facts { margin-top: 26px; border-top: 1px solid var(--line); }
.about__facts li { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--font-d); font-weight: 700; font-size: 18.5px; }

/* Quote and contact */
.quote-section { background: var(--sky-deep); color: #fff; padding: clamp(64px, 8vw, 112px) 0; }
.quote-section__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__lead { margin-top: 16px; font-size: 21px; color: #dbe6f3; max-width: 26em; }
.contact__phone {
  display: inline-block; margin-top: 26px; font-family: var(--font-d); font-weight: 800;
  font-size: clamp(38px, 4.6vw, 60px); line-height: 1.1; color: #fff; text-decoration: none; border-bottom: 4px solid var(--hivis); padding-bottom: 2px;
}
.contact__alt { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 14px; }
.contact__alt a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; text-underline-offset: 4px; }
.hours { margin-top: 26px; border-top: 1px solid rgba(255, 255, 255, .25); max-width: 440px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.hours dt { color: #dbe6f3; }
.hours dd { font-weight: 700; text-align: right; }
.contact__note { margin-top: 18px; color: #dbe6f3; }

.form { background: var(--oat); color: var(--bark); padding: clamp(22px, 3vw, 40px); border-radius: 4px; }
.field + .field { margin-top: 18px; }
.field label { display: block; font-family: var(--font-d); font-weight: 700; font-size: 17.5px; margin-bottom: 6px; }
.field label span { font-family: var(--font-b); font-weight: 400; color: var(--bark-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 14px; background: #fff;
  border: 1.5px solid #9b8b7b; border-radius: 4px; font-size: 19px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }
.form .btn { margin-top: 22px; }
.form .btn:focus-visible { outline-color: var(--sky); }
.form__error { margin-top: 16px; color: #a3260d; font-weight: 700; }
.form__hint { margin-top: 12px; font-size: 17px; color: var(--bark-soft); }

/* Footer */
.site-footer { background: var(--bark); color: #eee4d6; padding: 44px 0; }
.site-footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.site-footer__brand { display: flex; align-items: center; gap: 16px; margin-right: auto; }
.site-footer__brand img { width: 76px; height: 76px; }
.site-footer__brand p { font-size: 17px; line-height: 1.4; }
.site-footer__brand b { display: block; font-family: var(--font-d); font-size: 20px; color: #fff; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.site-footer__copy { width: 100%; font-size: 16px; color: #bfb19f; }

.sticky-book { display: none; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(30, 22, 16, .96); 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; text-align: center; font-size: 18px; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 0; border-radius: 4px; color: #fff; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -26px; }

/* ---------- Tablet and down ---------- */
@media (max-width: 1000px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .menu-toggle {
    display: grid; align-content: center; gap: 5px; width: 48px; height: 48px; padding: 0 12px;
    background: none; border: 1.5px solid var(--bark); border-radius: 4px; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2.5px; background: var(--bark); transition: transform .2s, opacity .2s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-header__in { gap: 12px; }
  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; display: flex; flex-direction: column;
    background: var(--oat); padding: 12px var(--gutter) 40px; overflow-y: auto;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { font-family: var(--font-d); font-weight: 700; font-size: 26px; text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .mobile-menu__phone { margin-top: 24px; border: 0; background: var(--hivis); color: #1d130b; text-align: center; border-radius: 4px; font-size: 22px; }

  .hero__photo img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 20% 60%; }
  .hero__body { padding: 28px var(--gutter) 36px; }

  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__list li { padding: 16px 16px 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts__list li:nth-child(-n+2) { border-top: 0; }

  .section__head, .services__grid, .about__grid, .quote-section__grid { grid-template-columns: 1fr; }
  .services__grid { gap: 32px; }
  .feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .feature img { aspect-ratio: 1 / 1; min-height: 0; }
  .steps__list { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .steps__list li:nth-child(2n)::after { right: 0; }
  .steps__list li::after { right: -24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 34vw, 300px); }
  .pair { grid-template-columns: 1fr 1fr; }
  .pair__text { grid-column: 1 / -1; padding: 0 0 12px; }
  .quotes { columns: 2; column-gap: 32px; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .header-phone span { display: none; }
  .header-phone { width: 48px; padding: 0; justify-content: center; }
  .header-phone svg { width: 22px; height: 22px; }
  .brand img { width: 46px; height: 46px; }
  .brand__name { font-size: 18.5px; }
  .brand__name small { font-size: 15px; }

  .hero__photo img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
  .hero__body { padding: 22px 16px 30px; }
  .hero h1 { font-size: 33px; }
  .hero__lead { font-size: 19.5px; margin-top: 10px; }
  .hero__cta { flex-direction: column; margin-top: 18px; }
  .hero__cta .btn { width: 100%; }

  .facts__list li { font-size: 16.5px; }
  .facts__list b { font-size: 18px; }
  .section__head p { font-size: 19px; }

  .feature { display: block; }
  .feature img { aspect-ratio: 4 / 3; }
  .feature__text { padding: 22px 20px 26px; }
  .svc-list li { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; }
  .svc-list img { aspect-ratio: 1 / 1; margin-top: 4px; }
  .svc-list h3 { font-size: 21px; }

  .steps__list { grid-template-columns: 1fr; gap: 28px; }
  .steps__list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-top: 0; align-items: start; }
  .steps__list li::before { position: static; grid-column: 2; font-size: 34px; margin-bottom: -6px; }
  .steps__list li::after { display: none; }
  .steps__list img { grid-row: 1 / span 2; }
  .steps__list h3 { margin: 6px 0 6px; font-size: 21px; }

  .gallery { gap: 6px; }
  .pair { gap: 6px; }
  .pair__text h3 { font-size: 26px; }
  .quotes { columns: 1; }
  .about__badge { right: 16px; }

  .site-footer { padding-bottom: 116px; }
  .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(--bark); 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 (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
