/* Alexander's Lawn & Tree Experts. Sky, truck white, door green, one lawn field and one bark field. */
:root {
  --sky: #C9D5EB;
  --ice: #E6EDF6;
  --ink: #10261C;
  --muted: #44574C;
  --green: #147A4B;
  --green-dark: #0E5A36;
  --lawn: #DCEED2;
  --bark: #33251B;
  --sawdust: #F4E9D8;
  --wood: #E6B273;
  --line: #D5DDD7;
  --white: #FFFFFF;
  --font: "Geologica", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 300 1.125rem/1.6 var(--font);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--font); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: clamp(2.1rem, 3.5vw, 3.25rem); }
h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
blockquote { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
section[id], div[id].side { scroll-margin-top: 16px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.side--tree :focus-visible, .contact :focus-visible, .foot :focus-visible, .lightbox :focus-visible { outline-color: var(--wood); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 12px 26px; border-radius: 6px; border: 2px solid transparent;
  font: 700 1.0625rem/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }
.btn--white { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--white:hover { background: var(--ink); color: #fff; }

/* Top bar and hero */
.hero { background: var(--sky); position: relative; overflow: hidden; }
.top__in { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 14px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); margin-right: auto; line-height: 1; }
.brand b { font-weight: 800; font-size: 1.75rem; letter-spacing: -0.03em; color: var(--green-dark); }
.brand span { font-weight: 400; font-size: .9375rem; margin-top: 4px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 400; padding: 12px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top__call { font-weight: 700; font-size: 1.1875rem; color: var(--ink); text-decoration: none; padding: 12px 0; white-space: nowrap; }
.top__call:hover { text-decoration: underline; }
.menu-btn {
  display: none; min-height: 48px; padding: 8px 18px; border: 2px solid var(--ink); border-radius: 6px;
  background: transparent; color: var(--ink); font: 700 1rem var(--font); cursor: pointer;
}

.hero__text {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end;
  padding-top: clamp(20px, 3vw, 48px);
}
.hero h1 { font-weight: 800; font-size: clamp(2.5rem, 4.6vw, 4.25rem); letter-spacing: -0.035em; text-wrap: balance; }
.hero__side p { font-size: 1.1875rem; font-weight: 400; margin-bottom: 20px; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__rating { display: inline-block; margin-top: 16px; color: var(--ink); font-weight: 400; font-size: 1rem; text-underline-offset: 4px; }
.stars { color: var(--green-dark); letter-spacing: 2px; }
.hero__img {
  width: 100%; margin-top: -10.5vw; position: relative; z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 13vw);
  mask-image: linear-gradient(to bottom, transparent 0, #000 13vw);
}

/* The two sides */
.sides { display: grid; grid-template-columns: 1fr 1fr; }
.side { padding: clamp(56px, 6vw, 96px) clamp(24px, 3.5vw, 56px); }
.side__in { max-width: 564px; height: 100%; display: flex; flex-direction: column; }
.side--lawn { background: var(--lawn); }
.side--lawn .side__in { margin-left: auto; }
.side--tree { background: var(--bark); color: var(--sawdust); }
.side--lawn h2 { color: var(--green-dark); }
.side--tree h2 { color: var(--wood); }
.side__lead { font-size: 1.25rem; font-weight: 400; margin: 18px 0 40px; max-width: 26em; }
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 20px; margin-bottom: 48px; }
.job img { width: 100%; border-radius: 4px; }
.job h3 { margin: 16px 0 6px; }
.job p { margin: 0; }
.job--wide, .job--row { grid-column: 1 / -1; }
.job--row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; }
.job--row h3 { margin-top: 0; }
.side__quote { margin-top: auto; padding-top: 28px; border-top: 2px solid currentColor; }
.side__quote p { font-size: 1.3125rem; font-weight: 400; line-height: 1.45; margin-bottom: 12px; }
.side__quote footer { font-size: 1rem; font-weight: 600; }

/* Fences */
.fences { padding: clamp(64px, 7vw, 112px) 0; }
.fences__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.fences__head p { margin: 0; font-size: 1.1875rem; max-width: 28em; }
.frow { display: flex; gap: 16px; margin-bottom: 16px; }
.frow figure { margin: 0; flex: var(--r) 1 0; min-width: 0; }
.frow img { width: 100%; aspect-ratio: var(--r); object-fit: cover; border-radius: 4px; }
.frow figcaption { font-size: 1rem; font-weight: 400; padding: 10px 0 8px; }
.pull { max-width: 820px; margin: 40px 0 0; padding-left: 24px; border-left: 4px solid var(--green); }
.pull p { font-size: 1.375rem; font-weight: 400; line-height: 1.45; margin-bottom: 10px; }
.pull footer { font-size: 1rem; font-weight: 600; color: var(--muted); }

/* Leaves and snow */
.winter { background: var(--ice); padding: clamp(56px, 6vw, 88px) 0; }
.winter__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.winter__lead { font-size: 1.25rem; font-weight: 400; margin: 14px 0 28px; }
.winter dl { margin: 0 0 32px; }
.winter dt { font-weight: 700; font-size: 1.25rem; }
.winter dd { margin: 2px 0 18px; }
.winter blockquote { border-top: 2px solid var(--ink); padding-top: 20px; }
.winter blockquote p { margin-bottom: 10px; font-weight: 400; }
.winter blockquote footer { font-size: 1rem; font-weight: 600; }
.winter__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.winter__photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; aspect-ratio: 1; }
.winter__photos .winter__a { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* Recent work */
.work { padding: clamp(64px, 7vw, 112px) 0; }
.work h2 { margin-bottom: 36px; }
.grow { display: flex; gap: 16px; margin-bottom: 16px; }
.gallery a { display: block; flex: var(--r) 1 0; min-width: 0; border-radius: 4px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; aspect-ratio: var(--r); object-fit: cover; }
.gallery a:hover img { opacity: .88; }

/* Reviews */
.reviews { padding: 0 0 clamp(64px, 7vw, 112px); }
.reviews__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; border-top: 2px solid var(--ink); padding-top: 48px; }
.reviews__score { position: sticky; top: 24px; align-self: start; }
.score { display: flex; align-items: center; gap: 16px; margin: 28px 0 0; }
.score b { font-weight: 800; font-size: 4.5rem; line-height: 1; letter-spacing: -0.04em; color: var(--green-dark); }
.score span { font-size: 1rem; line-height: 1.35; font-weight: 400; }
.score--fb b { font-size: 2.75rem; color: var(--ink); }
.rev { padding: 28px 0; border-bottom: 1px solid var(--line); }
.rev:first-child { padding-top: 0; }
.rev p { margin-bottom: 10px; }
.rev footer { font-size: 1rem; font-weight: 600; color: var(--muted); }
.rev--lead p { font-size: 1.5rem; line-height: 1.4; font-weight: 400; letter-spacing: -0.01em; }

/* About */
.about { background: var(--lawn); padding: clamp(56px, 6vw, 96px) 0; }
.about__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.about__photos { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; }
.about__photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; aspect-ratio: 4 / 3; }
.about__photos img + img { aspect-ratio: auto; }
.about h2 { color: var(--green-dark); margin-bottom: 20px; }
.about h3 { margin: 32px 0 8px; }

/* Contact */
.contact { background: var(--green-dark); color: #fff; padding: clamp(64px, 7vw, 104px) 0; }
.contact__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.contact h2 { margin-bottom: 18px; }
.contact a { color: #fff; }
.contact__phone { display: inline-block; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.03em; text-decoration: none; margin: 12px 0 6px; line-height: 1.1; }
.contact__phone:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 3px; }
.contact__mail { font-size: 1.25rem; font-weight: 400; text-underline-offset: 5px; word-break: break-word; }
.facts { margin: 28px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 20px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.form { background: #fff; color: var(--ink); padding: 32px; border-radius: 6px; }
.form label { display: block; font-weight: 600; font-size: 1.0625rem; margin: 0 0 6px; }
.form label span { font-weight: 300; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; margin-bottom: 18px;
  border: 2px solid #9AA8A0; border-radius: 6px; background: #fff; color: var(--ink);
  font: 400 1.0625rem/1.4 var(--font);
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green-dark); }
.form [aria-invalid="true"] { border-color: #B3261E; }
.form .btn { width: 100%; }
.form__err { color: #B3261E; font-weight: 600; margin: 0 0 12px; min-height: 0; }
.form__err:empty { display: none; }
.form__note { font-size: 1rem; color: var(--muted); margin: 12px 0 0; }

/* Footer */
.foot { background: var(--ink); color: #fff; padding: 28px 0; font-size: 1rem; font-weight: 400; }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: baseline; }
.foot p { margin: 0; }
.foot a { color: #fff; text-underline-offset: 4px; }
.foot__brand { margin-right: auto !important; }
.foot__brand b { font-weight: 800; }

/* Mobile menu */
.scrim { position: fixed; inset: 0; background: rgba(16, 38, 28, .55); z-index: 50; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); z-index: 60;
  background: #fff; padding: 20px 24px 32px; display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu[hidden], .scrim[hidden] { display: none; }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mobile-menu__head b { font-weight: 800; font-size: 1.5rem; color: var(--green-dark); letter-spacing: -0.03em; }
.mobile-menu .menu-btn { display: inline-block; }
.mobile-menu > a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.1875rem; }
.mobile-menu .btn { margin-top: 24px; }

.sticky-book { display: none; }

/* Photo viewer */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(16, 38, 28, .95); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 4px; }
.lightbox figcaption { color: #fff; margin-top: 12px; text-align: center; font-size: 1.0625rem; font-weight: 400; max-width: 44em; }
.lightbox button { background: transparent; color: #fff; border: 2px solid #fff; border-radius: 6px; cursor: pointer; font: 700 1rem var(--font); }
.lightbox__close { position: absolute; top: 12px; right: 16px; min-height: 48px; padding: 8px 18px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.8rem !important; line-height: 1; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* Tablet */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .hero__text { grid-template-columns: 1fr; gap: 20px; }
  .hero__img { margin-top: -4vw; }
  .sides { grid-template-columns: 1fr; }
  .side__in { max-width: 720px; margin: 0 auto !important; }
  .fences__head { grid-template-columns: 1fr; gap: 16px; }
  .winter__in, .about__in, .contact__in, .reviews__in { grid-template-columns: 1fr; gap: 40px; }
  .reviews__score { position: static; display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: end; }
  .reviews__score h2 { width: 100%; }
  .score { margin-top: 16px; }
}

/* Phone */
@media (max-width: 700px) {
  .foot { padding-bottom: 104px; }
  .wrap { padding: 0 16px; }
  .top__in { gap: 12px; padding-top: 14px; padding-bottom: 22px; }
  .top__call { display: none; }
  .brand b { font-size: 1.5rem; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 2.9rem); }
  .hero__side p { font-size: 1.125rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__img {
    margin-top: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18vw);
    mask-image: linear-gradient(to bottom, transparent 0, #000 18vw);
  }
  .side { padding: 56px 16px; }
  .jobs { gap: 32px 12px; }
  .job--row { grid-template-columns: 112px 1fr; gap: 16px; }
  .side__quote p, .pull p { font-size: 1.1875rem; }
  .frow { gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
  .frow figure { flex: 1 1 100%; }
  .frow:last-of-type figure:not(:nth-child(2)) { flex: 1 1 calc(50% - 5px); }
  .frow:last-of-type figure:nth-child(2) { order: 3; }
  .frow img { aspect-ratio: var(--r); }
  .winter__photos { gap: 8px; }
  .grow { flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
  .grow a { flex: 1 1 calc(50% - 5px); }
  .grow a img { aspect-ratio: 1; }
  .grow:nth-child(odd) a:first-child, .grow:nth-child(even) a:nth-child(2) { flex-basis: 100%; order: -1; }
  .grow:nth-child(odd) a:first-child img, .grow:nth-child(even) a:nth-child(2) img { aspect-ratio: 4 / 3; }
  .rev--lead p { font-size: 1.25rem; }
  .score b { font-size: 3.5rem; }
  .score--fb b { font-size: 2.25rem; }
  .about__photos { grid-template-columns: 1fr; }
  .about__photos img + img { display: none; }
  .form { padding: 22px 16px; }
  .foot__in { flex-direction: column; gap: 6px; }

  .sticky-book {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(16, 38, 28, .12);
    transform: translateY(110%); transition: transform .2s ease;
  }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { flex: 1; min-height: 52px; }
  .lightbox { padding: 64px 8px 84px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 62px); }
  .lightbox__nav--next { right: calc(50% - 62px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-book { transition: none; }
}
