/* Texas Green Tree & Landscape
   Palette comes from the truck: white body, green door lettering,
   the chipper's yellow, and the wide West Texas sky. */
:root {
  --door: #0b6b3a;        /* truck door lettering */
  --door-deep: #084d2a;
  --ink: #13231a;
  --muted: #4a584f;
  --white: #ffffff;
  --sky: #dfecf5;         /* pale plains sky */
  --steel: #eef1ef;       /* utility body */
  --line: #c9d3cd;
  --yellow: #f4b81f;      /* chipper */
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --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(--sans); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--door); }
h1, h2, h3, p, dl, dd, figure, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border: 2px solid transparent; border-radius: 6px; font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; flex: none; }
.btn--green { background: var(--door); color: #fff; }
.btn--green:hover { background: var(--door-deep); }
.btn--line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--steel); }
.btn--big { min-height: 56px; padding: 12px 26px; font-size: 1.0625rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; 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; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.brand__name { font-family: var(--serif); font-style: italic; font-size: 1.75rem; color: var(--door); }
.brand__sub { font-size: .875rem; font-weight: 500; color: var(--ink); margin-top: 3px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 12px 0; }
.nav a:hover { color: var(--door); text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 12px 10px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 3px; background: var(--ink); border-radius: 2px; }
.mobile-menu { background: #fff; border-top: 1px solid var(--line); padding: 8px 16px 20px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: block; padding: 14px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
.mobile-menu .mobile-menu__call { border: 0; margin-top: 14px; background: var(--door); color: #fff; text-align: center; border-radius: 6px; font-weight: 700; }

/* Hero: the photo of the truck on the left, the door lettering on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); min-height: min(700px, calc(100vh - var(--header-h) - 96px)); background: #fff; }
.hero__photo { position: relative; min-height: 460px; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero__door { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(24px, 4vw, 72px) 44px; max-width: 760px; }
.door { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--door); font-size: clamp(2.5rem, 3.9vw, 4.1rem); line-height: 1.04; letter-spacing: -.01em; }
.door span { display: block; }
.hero__lead { margin-top: 22px; font-size: 1.1875rem; max-width: 34em; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; font-size: 1rem; color: var(--muted); }
.hero__rating b { color: var(--ink); }
.stars { color: #b07d00; letter-spacing: 2px; font-size: 1.125rem; }

/* Facts band */
.facts { background: var(--door); color: #fff; }
.facts__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts p { padding: 22px 24px; border-left: 1px solid rgba(255, 255, 255, .28); }
.facts p:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.facts span { display: block; font-size: 1rem; color: #d7ecdf; margin-top: 2px; }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section__lead { margin-top: 14px; max-width: 40em; font-size: 1.125rem; color: var(--muted); }

/* Services: two full-width rows, photo on the left, list in two columns */
.svc { margin-top: 48px; display: grid; gap: 56px; }
.svc__col { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.svc__col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.svc__col--yard img { aspect-ratio: 1 / 1; }
.svc__body h3 { color: var(--door); font-style: italic; font-size: 2rem; }
.list { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-bottom: 1px solid var(--line); }
.list > div { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.list dt { font-weight: 700; }
.list dd { color: var(--muted); font-size: 1.0625rem; }

/* Equipment: the signature section */
.equip { background: var(--sky); }
.equip__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: 48px; }
.equip .section__lead { color: #33443a; }
.equip__quote { border-left: 4px solid var(--door); padding-left: 20px; }
.equip__quote blockquote { font-size: 1.125rem; line-height: 1.5; }
.equip__quote figcaption { margin-top: 8px; font-size: 1rem; color: #33443a; }
.eq-row { display: flex; gap: 24px; align-items: flex-start; }
.eq-row + .eq-row { margin-top: 40px; }
.eq { flex: var(--ar) 1 0; min-width: 0; }
.eq img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; border-bottom: 8px solid var(--yellow); }
.eq figcaption { padding-top: 14px; }
.eq h3 { font-size: 1.7rem; }
.eq p { margin-top: 4px; font-size: 1.0625rem; color: #33443a; max-width: 30em; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 12px; margin-top: 40px; }
.g-item { padding: 0; border: 0; background: var(--steel); cursor: zoom-in; overflow: hidden; border-radius: 3px; }
.g-item--tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.g-item:hover img { transform: scale(1.03); }

/* Reviews */
.reviews { background: var(--steel); }
.reviews__in { display: grid; grid-template-columns: 350px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.reviews__score { position: sticky; top: calc(var(--header-h) + 24px); }
.score { margin-top: 28px; display: flex; align-items: baseline; gap: 12px; }
.score__n { font-family: var(--serif); font-size: 6.5rem; line-height: .9; color: var(--door); }
.score__of { color: var(--muted); }
.stars--big { font-size: 1.6rem; margin-top: 10px; }
.score__src { margin-top: 4px; color: var(--muted); }
.reviews__list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.quote blockquote { font-size: 1.0625rem; }
.quote figcaption { margin-top: 12px; font-size: 1rem; color: var(--muted); }
.quote figcaption b { display: block; color: var(--ink); }
.quote:nth-child(2) { grid-row: span 2; }
.quote--lead { grid-column: 1 / -1; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.quote--lead blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.15rem); line-height: 1.25; }

/* About */
.about__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__in img { width: 100%; border-radius: 4px; }
.about p { margin-top: 18px; max-width: 34em; }
.about__facts { margin-top: 24px; border-top: 1px solid var(--line); }
.about__facts li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); font-weight: 500; position: relative; }
.about__facts li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 3px solid var(--door); border-bottom: 3px solid var(--door); transform: rotate(-45deg); }

/* Contact */
.contact { background: var(--door); color: #fff; }
.contact h2 { color: #fff; }
.contact__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__info > p { margin-top: 16px; max-width: 30em; color: #e3f2e9; }
.contact__phone { display: inline-block; margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.1; color: #fff; text-decoration: none; }
.contact__phone:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.contact__dl { margin-top: 26px; border-top: 1px solid rgba(255, 255, 255, .3); }
.contact__dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.contact__dl dt { color: #cfe6d8; }
.contact__dl a { color: #fff; overflow-wrap: anywhere; }
.form { background: #fff; color: var(--ink); padding: clamp(22px, 3vw, 36px); border-radius: 6px; display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field__opt { 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: #fff; border: 2px solid #8c9a91; border-radius: 6px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--door); outline: 3px solid var(--yellow); outline-offset: 1px; }
.form__err { color: #a11a1a; font-weight: 700; }
.form__send { width: 100%; }

/* Footer */
.footer { background: var(--ink); color: #dbe4de; padding: 40px 0 44px; font-size: 1rem; }
.footer__in { display: grid; gap: 8px; }
.footer__brand { font-size: 1.125rem; color: #fff; }
.footer__brand .brand__name { color: #8fd6a8; font-size: 1.6rem; margin-right: 6px; }
.footer a { color: #fff; }
.footer__sep { color: #6f8177; margin: 0 8px; }
.footer__small { color: #a9b8af; }

/* Sticky bar (phones) */
.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, 24, 17, .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: 1.125rem; }
.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.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; }

/* Laptop */
@media (max-width: 1280px) {
  .nav { gap: 20px; }
}

/* Tablet */
@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .equip__head { grid-template-columns: 1fr; align-items: start; }
  .reviews__in { grid-template-columns: 1fr; }
  .reviews__score { position: static; }
  .gallery { grid-auto-rows: 19vw; gap: 8px; }
  .eq-row { gap: 16px; }
  .eq h3 { font-size: 1.45rem; }
  .contact__in, .about__in { grid-template-columns: 1fr; }
  .svc__col { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .facts__in { grid-template-columns: 1fr 1fr; }
  .facts p { border-left: 0; padding: 18px 16px 18px 0; }
  .facts p:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .28); }
}

/* Phone */
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .site-header__call { display: none; }
  .brand__name { font-size: 1.5rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .hero__photo img { object-position: 50% 50%; }
  .hero__door { padding: 26px 16px 36px; max-width: none; }
  .door { font-size: clamp(2.3rem, 10.4vw, 3.4rem); }
  .hero__cta .btn { flex: 1 1 100%; }
  .reviews__list { grid-template-columns: 1fr; gap: 32px; }
  .quote--lead { padding-bottom: 28px; }
  .quote:nth-child(2) { grid-row: auto; }
  .contact__dl > div { grid-template-columns: 1fr; gap: 0; }
  body { padding-bottom: 76px; }
  .sticky-book { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(19, 35, 26, .12); transform: translateY(110%); transition: transform .25s ease; }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { min-height: 52px; }
}
@media (max-width: 640px) {
  .eq-row { flex-direction: column; gap: 32px; }
  .eq-row + .eq-row { margin-top: 32px; }
  .eq { flex: none; width: 100%; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 8px; }
  .svc__col { grid-template-columns: 1fr; gap: 20px; }
  .svc__col img, .svc__col--yard img { aspect-ratio: 3 / 2; }
  .list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .facts__in { grid-template-columns: 1fr; }
  .facts p { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .28); }
  .facts p:first-child { border-top: 0; }
  .footer__sep { display: none; }
  .footer__in p a { display: block; padding: 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-item img, .sticky-book { transition: none; }
  .g-item:hover img { transform: none; }
}
