:root {
  --ink: #17211a;
  --muted: #536158;
  --leaf: #285a37;
  --leaf-dark: #183d25;
  --clay: #9b5634;
  --gold: #d79b37;
  --cream: #f7f4ed;
  --white: #ffffff;
  --line: #d9ded6;
  --shadow: 0 18px 42px rgba(23, 33, 26, 0.16);
  --focus: 0 0 0 3px rgba(215, 155, 55, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background: var(--cream);
}

a {
  color: inherit;
}

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

.topbar {
  background: var(--leaf-dark);
  color: var(--white);
  font-size: 0.92rem;
}

.topbar-inner,
.nav-inner,
.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
}

.topbar a {
  font-weight: 800;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 237, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
}

.mobile-menu {
  display: block;
}

.mobile-menu summary {
  display: none;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-icon {
  display: inline-grid;
  width: 22px;
  height: 16px;
  background:
    linear-gradient(var(--leaf-dark), var(--leaf-dark)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--leaf-dark), var(--leaf-dark)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--leaf-dark), var(--leaf-dark)) 0 100% / 100% 2px no-repeat;
}

.brand {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand strong {
  color: var(--leaf-dark);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 750;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--leaf);
}

.nav-links .button {
  background: var(--white);
  color: var(--leaf-dark);
  border-color: var(--leaf-dark);
}

.nav-links .button:hover {
  background: var(--leaf-dark);
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--leaf);
  border-radius: 6px;
  background: var(--leaf);
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.button.secondary {
  background: var(--white);
  color: var(--leaf-dark);
  border-color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.button:focus-visible,
.nav-links a:focus-visible,
.pill:focus-visible,
.area-list a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.hero {
  min-height: 680px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 22, 17, 0.18), rgba(16, 22, 17, 0.18)),
    image-set(url("/assets/hero-tree-service.webp") type("image/webp"), url("/assets/hero-tree-service.jpg") type("image/jpeg")) center / cover;
  display: grid;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-logo {
  width: min(380px, 72vw);
  height: auto;
  margin-bottom: 20px;
}

.hero-content {
  width: min(760px, 100%);
  padding: 34px;
  margin: 86px 0 104px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(16, 22, 17, 0.94);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.35rem, 5vw, 4.85rem);
}

.hero p {
  max-width: 640px;
  margin: 22px 0 30px;
  color: var(--white);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  background: var(--white);
  padding: 22px;
}

.trust-item strong {
  display: block;
  color: var(--leaf-dark);
  font-size: 1.2rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

section {
  padding: 74px 0;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(23, 33, 26, 0.06);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.card a {
  color: var(--leaf-dark);
  font-weight: 850;
  text-decoration: none;
}

.band {
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 42px;
  align-items: center;
}

.photo-panel {
  min-height: 440px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 33, 26, 0.08), rgba(23, 33, 26, 0.18)),
    image-set(url("/assets/tree-work.webp") type("image/webp"), url("/assets/tree-work.jpg") type("image/jpeg")) center / cover;
  box-shadow: var(--shadow);
}

.storm-panel {
  background:
    linear-gradient(180deg, rgba(23, 33, 26, 0.08), rgba(23, 33, 26, 0.18)),
    image-set(url("/assets/storm-cleanup.webp") type("image/webp"), url("/assets/storm-cleanup.jpg") type("image/jpeg")) center / cover;
}

.map-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f1f4ee;
  box-shadow: var(--shadow);
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.area-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list a,
.area-list span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 10px 12px;
  color: var(--leaf-dark);
  font-weight: 800;
  text-decoration: none;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 30px;
  position: relative;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 4px var(--white);
}

.service-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 9px 14px;
  color: var(--leaf-dark);
  font-weight: 800;
  text-decoration: none;
}

.quote {
  background: var(--leaf-dark);
  color: var(--white);
}

.quote .section-head p {
  color: rgba(255, 255, 255, 0.92);
}

.quote-box {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 28px;
  align-items: start;
}

.form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.form-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bdc7bf;
  border-radius: 6px;
  padding: 13px 12px;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.fine-print {
  color: #37433b;
  font-size: 0.86rem;
}

.submission-alert {
  margin: 18px 0 0;
  border: 1px solid #b8d2bf;
  border-radius: 8px;
  background: #e8f3eb;
  padding: 14px 16px;
  color: var(--leaf-dark);
  font-weight: 850;
}

.footer {
  background: #101611;
  color: rgba(255, 255, 255, 0.9);
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer a {
  color: var(--white);
}

.footer h2,
.footer h3 {
  color: var(--white);
}

.site-legal {
  background: #101611;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 16px;
  text-align: center;
}

.site-legal a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.subpage-hero {
  background: var(--leaf-dark);
  color: var(--white);
  padding: 70px 0;
}

.subpage-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.1rem;
}

.content {
  background: var(--white);
}

.content p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar-inner,
  .nav-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-inner {
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
  }

  .hero {
    min-height: auto;
    background-position: 58% center;
  }

  .hero-content {
    padding: 72px 0 86px;
  }

  .trust-row,
  .grid-3,
  .grid-2,
  .split,
  .quote-box,
  .footer-grid,
  .area-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  .nav-inner,
  .wrap {
    width: min(100% - 22px, 1160px);
  }

  .topbar-inner {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    font-size: 0.84rem;
  }

  .topbar-inner span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar a {
    display: inline-flex;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    align-items: center;
    min-height: 34px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    color: var(--white);
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .topbar a::before {
    content: none;
  }

  .nav {
    position: static;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
    gap: 8px;
    font-size: 0.78rem;
  }

  .nav-links a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    text-align: center;
  }

  .nav-links .button {
    width: 100%;
    padding: 0 4px;
  }

  .mobile-menu summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid var(--leaf-dark);
    border-radius: 6px;
    color: var(--leaf-dark);
    font-weight: 900;
    cursor: pointer;
  }

  .menu-label {
    font-size: 0.95rem;
  }

  .mobile-menu:not([open]) .nav-links {
    display: none;
  }

  .mobile-menu[open] .nav-links {
    margin-top: 10px;
  }

  .brand {
    grid-template-columns: 40px 1fr;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 1.04rem;
  }

  .brand span {
    font-size: 0.78rem;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(16, 22, 17, 0.18), rgba(16, 22, 17, 0.18)),
      image-set(url("/assets/hero-tree-service-mobile.webp") type("image/webp"), url("/assets/hero-tree-service.jpg") type("image/jpeg")) center / cover;
  }

  .photo-panel {
    display: none;
  }

  .button {
    width: 100%;
  }

  .area-list {
    grid-template-columns: 1fr;
  }

  .map-panel iframe {
    height: 300px;
  }

  section {
    padding: 54px 0;
  }

  .card,
  .trust-item {
    padding: 20px;
  }
}
