/* ==========================================================================
   Sargeant Tree Removal
   Palette and voice come from the client's existing identity — see BRAND.md.
   The palette follows the client's existing shield and equipment.
   ========================================================================== */

@font-face {
  font-family: 'Anton';
  src: url('../fonts/Anton-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bark: #14170f;
  --bark-soft: #21261a;
  --forest: #074e24;
  --forest-deep: #05381a;
  --moss: #718e28;
  --moss-bright: #8fae3c;
  --paper: #f0f2ec;
  --paper-warm: #e6eade;
  --stone: #5e6657;
  --white: #fff;

  --display: 'Anton', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.65;
  color: var(--bark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--forest); }

:focus-visible {
  outline: 3px solid var(--moss-bright);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  color: var(--white);
  background: var(--forest);
}
.skip:focus { left: 0; }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

/* ---- shared type ------------------------------------------------------- */

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}

.h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.25rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.lede {
  max-width: 46ch;
  margin: 0 0 2.5rem;
  font-size: 1.1rem;
  color: var(--stone);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--dark { color: var(--paper); background: var(--bark); }
.section--forest { color: var(--paper); background: var(--forest-deep); }

/* --stone is a mid grey tuned for the paper sections; on either dark ground it
   drops well under 4.5:1, so both need their own muted tone. */
.section--dark .lede,
.section--forest .lede { color: #b3bda6; }

/* --moss is the accent on paper. On the deep-green section it is nearly the
   background, so the eyebrow there steps up to the brighter tone. */
.section--forest .eyebrow { color: var(--moss-bright); }

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.55rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--call {
  color: var(--white);
  background: var(--forest);
}
.btn--call:hover { background: #096330; }

.btn--quote {
  color: var(--white);
  background: var(--forest);
}
.btn--quote:hover { background: #096330; }

.btn--ghost {
  color: var(--paper);
  background: transparent;
  border-color: rgba(240, 242, 236, 0.45);
}
.btn--ghost:hover { border-color: var(--paper); }

/* A phone number that breaks across two lines is unreadable at a glance, which
   is the only way anyone reads it. Keep it whole and let the sub-label drop
   below instead. */
.btn__label { white-space: nowrap; }

.btn__sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ---- header ------------------------------------------------------------ */

/* White topbar. The chainsaws in the mark are solid black, so on the previous
   near-black header they simply disappeared — half the logo was invisible.
   White is the only ground the mark is fully legible on, and it doubles as a
   clean edge against the dark hero photo below. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid rgba(20, 23, 15, 0.12);
  box-shadow: 0 1px 12px rgba(20, 23, 15, 0.16);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  text-decoration: none;
}
/* Slightly larger now that the white ground lets the chainsaw detail read. */
.brand img { width: auto; height: 3.25rem; }

.brand__name {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--bark);
}
/* --moss-bright is tuned for dark grounds and only reaches ~2.4:1 on white.
   The shield green carries the same brand note and passes comfortably. */
.brand__name em {
  display: block;
  font-size: 0.66rem;
  font-style: normal;
  letter-spacing: 0.22em;
  color: var(--forest);
}

.nav { display: flex; gap: 1.6rem; }
.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bark);
}
.nav a:hover { color: var(--forest); }

.masthead .btn { padding: 0.6rem 1.1rem; }

@media (max-width: 60rem) {
  .nav { display: none; }
}

@media (max-width: 30rem) {
  .masthead .btn__sub { display: none; }
  .masthead .btn { padding: 0.55rem 0.8rem; font-size: 0.92rem; }
  .brand img { height: 2.4rem; }
  .brand__name { font-size: 1rem; }
  .masthead__inner { gap: 0.75rem; }
}

/* ---- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 74vh, 44rem);
  color: var(--paper);
  background: var(--bark);
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias right so the machine and the orange grapple sit in the uncovered part
     of the frame, clear of the copy. */
  object-position: 64% 42%;
}

/* The hero photo is bright summer foliage — high-frequency and mid-toned, the
   worst possible bed for white type. Three stacked layers rather than one:
   a floor that anchors the copy, a left wash for the text column, and a flat
   veil so no sunlit leaf ever comes back up under a letterform. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 23, 15, 0.96) 0%, rgba(20, 23, 15, 0.82) 26%, rgba(20, 23, 15, 0.3) 58%, rgba(20, 23, 15, 0.04) 100%),
    linear-gradient(to right, rgba(20, 23, 15, 0.9) 0%, rgba(20, 23, 15, 0.5) 42%, rgba(20, 23, 15, 0) 78%),
    rgba(20, 23, 15, 0.12);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 {
  max-width: 17ch;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.3rem, 1.35rem + 5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 span { color: var(--moss-bright); }

.hero__sub {
  max-width: 44ch;
  margin: 0 0 1.9rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.28rem);
  color: #d6dccb;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.9rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  list-style: none;
  color: #b9c3a8;
}
.hero__trust li { display: flex; align-items: center; gap: 0.45rem; }
.hero__trust li::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  background: var(--moss-bright);
  transform: rotate(45deg);
}

/* ---- triage — the page's organising idea -------------------------------
   People arrive here in one of exactly two states, and they need different
   things. Splitting the page on that is the whole point. */

.triage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1px;
  background: rgba(240, 242, 236, 0.16);
  border: 1px solid rgba(240, 242, 236, 0.16);
}

.triage__col {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--bark);
}
.triage__col--now { background: #1d1512; }

.triage__label {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--forest);
  border-radius: var(--radius);
}
.triage__col--now .triage__label { background: var(--blaze); }

.triage__col h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
}

.triage__col p {
  margin: 0 0 1.25rem;
  color: #a9b39c;
}

.triage__list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.triage__list li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  font-size: 0.98rem;
  color: var(--paper-warm);
  border-top: 1px solid rgba(240, 242, 236, 0.1);
  position: relative;
}
.triage__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.55rem;
  height: 1px;
  background: var(--moss);
}
.triage__col--now .triage__list li::before { background: var(--blaze-bright); }

/* ---- services ---------------------------------------------------------- */

/* 20rem, not 15rem: there are nine services, so a three-column grid fills
   exactly three rows. At 15rem the desktop grid resolves to four columns and
   the last row is a single orphaned card. */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.service {
  padding: 1.6rem 1.5rem;
  background: var(--white);
  border-top: 3px solid var(--forest);
  border-radius: var(--radius);
}
.service h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 700;
}
.service p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--stone);
}

/* ---- split (photo + prose) --------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__media img { border-radius: var(--radius); }

.figure {
  margin: 0;
}
.figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--stone);
}
.section--dark .figure figcaption { color: #98a28b; }

.points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(94, 102, 87, 0.25);
}
.section--dark .points li { border-color: rgba(240, 242, 236, 0.14); }
.points strong { display: block; }
.points span { color: var(--stone); }
.section--dark .points span { color: #a9b39c; }

/* ---- wood -------------------------------------------------------------- */

.wood {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.wood__item {
  padding: 1.4rem;
  background: rgba(240, 242, 236, 0.06);
  border-left: 3px solid var(--moss);
  border-radius: var(--radius);
}
.wood__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.wood__item p { margin: 0; font-size: 0.94rem; color: #a9b39c; }

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(113, 142, 40, 0.14);
  border: 1px solid rgba(143, 174, 60, 0.4);
  border-radius: var(--radius);
}
.notice p { margin: 0; flex: 1 1 22rem; }
.notice strong { color: var(--moss-bright); }

/* ---- service area ------------------------------------------------------ */

.counties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.county {
  padding: 1.5rem;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
}
.county h3 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--forest);
}
.county p { margin: 0; font-size: 0.9rem; color: var(--stone); }

/* ---- contact ----------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.contact__rows { margin: 1.75rem 0 0; }
.contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(240, 242, 236, 0.14);
}
.contact__row dt {
  flex: 0 0 7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-bright);
  padding-top: 0.2rem;
}
.contact__row dd { margin: 0; flex: 1 1 12rem; }
.contact__row a { color: var(--paper); }

.phone-big {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
}
.phone-big:hover { color: var(--moss-bright); }

.contact-form { display: grid; gap: 1rem; }
.contact-form h3 { margin: 0; font-family: var(--display); font-size: 1.65rem; font-weight: 400; text-transform: uppercase; }
.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-form label { display: grid; gap: 0.3rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--bark);
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
}
.contact-form textarea { resize: vertical; }
.contact-form__hint { margin: 0; color: #b3bda6; font-size: 0.9rem; }
.contact-form__trap { position: absolute; left: -9999px; }
.contact-form button { justify-self: start; }
@media (max-width: 34rem) {
  .contact-form__grid { grid-template-columns: 1fr; }
}

/* ---- footer ------------------------------------------------------------ */

.footer {
  padding-block: 3rem 6.5rem;
  font-size: 0.9rem;
  color: #97a189;
  background: var(--bark);
  border-top: 1px solid rgba(240, 242, 236, 0.12);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
}
.footer p { margin: 0; }
.footer a { color: var(--paper-warm); }
.footer__tag {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--moss-bright);
}

/* ---- mobile call bar --------------------------------------------------- */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  gap: 1px;
  background: rgba(20, 23, 15, 0.4);
}
.callbar a {
  flex: 1;
  padding: 0.9rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--white);
}
.callbar__now { background: var(--forest-deep); }
.callbar__quote { background: var(--forest); }

@media (max-width: 46rem) {
  .callbar { display: flex; }
  body { padding-bottom: 0; }
}
@media (min-width: 46.01rem) {
  .footer { padding-bottom: 3rem; }
}

/* ---- gallery -----------------------------------------------------------
   Uniform 4:3 tiles. The source photos run both portrait and landscape, and a
   mixed-aspect grid reads as clutter next to the discipline of the rest of the
   page; the lightbox shows each one uncropped. */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__tile {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--bark);
  border: 0;
  border-radius: var(--radius);
}

.gallery__tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.gallery__tile:hover img,
.gallery__tile:focus-visible img {
  transform: scale(1.04);
  opacity: 0.92;
}

.gallery__note {
  margin: 1.75rem 0 0;
  font-size: 0.92rem;
  color: var(--stone);
}

/* ---- lightbox ---------------------------------------------------------- */

.lightbox {
  width: min(96vw, 68rem);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  color: var(--paper);
  background: var(--bark);
  border: 0;
  border-radius: var(--radius);
}
.lightbox::backdrop { background: rgba(10, 12, 8, 0.9); }

.lightbox__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0d07;
}

.lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 44rem);
  object-fit: contain;
}

.lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
}

.lightbox__caption {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.98rem;
  color: var(--paper-warm);
}

.lightbox__counter {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--moss-bright);
}

.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--paper);
  cursor: pointer;
  background: rgba(20, 23, 15, 0.72);
  border: 1px solid rgba(240, 242, 236, 0.28);
  border-radius: 50%;
}
.lightbox__btn:hover { background: var(--forest); }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__prev { left: 0.6rem; }
.lightbox__next { right: 0.6rem; }
.lightbox__close { position: absolute; top: 0.6rem; right: 0.6rem; }

@media (max-width: 34rem) {
  .lightbox__img { max-height: 58vh; }
}

/* Twelve full-width tiles is roughly 3,300px of scrolling on a phone, which
   reads as a chore rather than a gallery. Two columns halves it and still
   leaves a comfortable tap target; the lightbox carries the detail. */
@media (max-width: 40rem) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
}

/* ---- logo plate --------------------------------------------------------
   Anywhere the mark sits on a dark ground it needs a light backing, or the
   black chainsaws read as a silhouette against the background and the logo
   looks like a bare shield. This is the same treatment the client's own dark
   artwork uses. */

.logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  background: var(--white);
  border-radius: var(--radius);
}
.logo-plate img { display: block; }
