:root {
  --ink: #111827;
  --muted: #5b6573;
  --paper: #f8fbff;
  --linen: #edf7f1;
  --moss: #1f6b56;
  --moss-dark: #164a3b;
  --gold: #efb642;
  --clay: #b94f38;
  --line: rgba(17, 24, 39, 0.13);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 20;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 12px;
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1240px, calc(100% - 28px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--paper);
  background: var(--moss);
  border-radius: 7px;
  font-size: 13px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a,
.site-footer a {
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--clay);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--white);
  background: var(--moss-dark);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: var(--ink);
}

.hero-bg,
.final-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/portfolio-water-mold.jpg");
  background-size: cover;
  background-position: center top;
  transform: scale(1.02);
}

.hero-overlay,
.final-cta-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.98), rgba(248, 251, 255, 0.9) 48%, rgba(248, 251, 255, 0.58)),
    linear-gradient(0deg, rgba(248, 251, 255, 0.92), rgba(248, 251, 255, 0.74));
}

.hero-inner {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: max(18px, calc((100vw - var(--max)) / 2));
  padding: 86px 0 78px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.cta-strip-inner,
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  color: var(--ink);
  background: var(--gold);
}

.button-primary:hover {
  background: #e1b95d;
}

.button-secondary {
  color: var(--moss-dark);
  border-color: rgba(31, 107, 86, 0.28);
  background: rgba(255, 255, 255, 0.76);
}

.button-secondary:hover {
  background: var(--white);
}

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid rgba(31, 107, 86, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--moss-dark);
  font-size: 14px;
  font-weight: 800;
}

.proof-band {
  background: var(--linen);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid div {
  min-height: 118px;
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}

.proof-grid div:last-child {
  border-right: 1px solid var(--line);
}

.proof-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--moss);
  font-size: 30px;
  line-height: 1;
}

.proof-grid span {
  color: var(--muted);
  font-size: 15px;
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: var(--linen);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.split-heading > p,
.authority-layout > div:first-child p,
.faq-layout > div:first-child p {
  color: var(--muted);
  font-size: 18px;
}

.section-label {
  color: var(--clay);
}

.card-grid,
.review-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card,
.review-card,
.process-grid article,
.case-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card,
.review-card,
.process-grid article {
  padding: 24px;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--clay);
  font-size: 14px;
  font-weight: 900;
}

.service-card p,
.review-card blockquote,
.process-grid p,
.case-body p,
.authority-list p,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-card {
  overflow: hidden;
}

.case-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--line);
}

.case-body {
  padding: 24px;
}

.text-link {
  color: var(--moss);
  font-weight: 900;
  text-decoration: none;
}

.authority-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 56px;
  align-items: start;
}

.authority-list {
  display: grid;
  gap: 12px;
}

.authority-list > div {
  padding: 22px;
  border-left: 5px solid var(--gold);
  background: var(--linen);
  border-radius: 0 8px 8px 0;
}

.cta-strip {
  padding: 44px 0;
  color: var(--ink);
  background: linear-gradient(90deg, #ffffff, #edf7f1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-strip h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 40px);
}

.cta-strip-inner {
  justify-content: space-between;
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  color: var(--paper);
  background: var(--moss);
  border-radius: 50%;
  font-weight: 900;
}

.review-card {
  margin: 0;
}

.review-card blockquote {
  min-height: 162px;
  margin: 0 0 18px;
  font-size: 18px;
}

.review-card figcaption {
  color: var(--ink);
  font-weight: 900;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 54px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 900;
}

summary::marker {
  color: var(--clay);
}

details p {
  margin-bottom: 22px;
}

.final-cta {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: var(--ink);
}

.final-cta-bg {
  background-image: url("assets/images/portfolio-arborists.jpg");
  background-position: center top;
}

.final-cta-content {
  position: relative;
}

.final-cta-content h2 {
  max-width: 820px;
}

.site-footer {
  padding: 62px 0 28px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand {
  margin-bottom: 16px;
  color: var(--ink);
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 15px;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.footer-bottom {
  justify-content: space-between;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .nav-wrap {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-overlay,
  .final-cta-overlay {
    background: rgba(248, 251, 255, 0.88);
  }

  .hero-inner {
    padding: 70px 0 64px;
  }

  .proof-grid,
  .card-grid,
  .case-grid,
  .review-grid,
  .process-grid,
  .split-heading,
  .authority-layout,
  .faq-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid div,
  .proof-grid div:last-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .split-heading,
  .authority-layout,
  .faq-layout {
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .container,
  .hero-inner {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-copy,
  .split-heading > p {
    font-size: 17px;
  }

  .hero-actions .button,
  .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }

  .review-card blockquote {
    min-height: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
