:root {
  color-scheme: light;
  --soil: #31281e;
  --moss: #31563b;
  --leaf: #6f8c3f;
  --clay: #b96f3d;
  --stone: #e7e1d4;
  --paper: #fbfaf6;
  --white: #ffffff;
  --ink: #171512;
  --muted: #625d54;
  --line: rgba(49, 40, 30, 0.16);
  --shadow: 0 24px 70px rgba(28, 24, 18, 0.18);
  --radius: 8px;
  --max: 1180px;
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.skip-link,
.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;
}

.skip-link:focus {
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  top: 16px;
  left: 16px;
  padding: 10px 14px;
  background: var(--white);
  border: 2px solid var(--moss);
  border-radius: var(--radius);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(251, 250, 246, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(28, 24, 18, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
}

.site-nav a,
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  font-size: 0.96rem;
  font-weight: 700;
}

.header-call {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92dvh;
  display: grid;
  align-items: end;
  padding: 132px clamp(18px, 5vw, 56px) 64px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: var(--soil);
}

.hero-media img {
  filter: saturate(1.02) contrast(1.02);
  object-position: 58% 44%;
  transform: scale(1.08);
}

.hero-scrim {
  background:
    radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(90deg, rgba(19, 17, 13, 0.9) 0%, rgba(19, 17, 13, 0.7) 38%, rgba(19, 17, 13, 0.24) 100%),
    linear-gradient(0deg, rgba(19, 17, 13, 0.7) 0%, rgba(19, 17, 13, 0.08) 56%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f6b07c;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  max-width: 16ch;
  font-size: clamp(2.65rem, 6.7vw, 5.25rem);
  font-weight: 800;
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 4vw, 3.45rem);
  font-weight: 800;
  color: var(--soil);
}

h3 {
  font-size: 1.12rem;
  line-height: 1.18;
  color: var(--soil);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 1.75vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--clay);
  color: var(--white);
  border-color: var(--clay);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.button.secondary.light {
  color: var(--soil);
  border-color: var(--line);
  background: var(--white);
}

.icon.phone {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 4px 4px 4px 10px;
  transform: rotate(-35deg);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(640px, 100%);
  margin-top: 42px;
}

.hero-proof div,
.score-box,
.service-card,
.quote-form,
.review-list blockquote {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-proof div {
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-proof strong,
.score-box strong {
  display: block;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1;
}

.hero-proof span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

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

.section,
.band {
  padding: clamp(64px, 9vw, 110px) clamp(18px, 5vw, 56px);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
}

.intro h2 {
  color: var(--white);
}

.intro p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.7;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 38px;
}

.section-heading p {
  max-width: var(--measure);
  margin: 0;
  color: var(--muted);
}

.section-heading.split {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.work-gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  grid-auto-rows: minmax(230px, 26vw);
  gap: 14px;
}

.work-gallery figure {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
  box-shadow: 0 10px 28px rgba(28, 24, 18, 0.08);
}

.work-gallery .feature-photo {
  grid-row: span 2;
}

.work-gallery figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(19, 17, 13, 0.76);
  color: var(--white);
  font-weight: 800;
}

.work-gallery figcaption span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
}

.services-section {
  background: #f0ebdf;
}

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

.service-card {
  min-height: 260px;
  padding: 22px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(28, 24, 18, 0.07);
}

.service-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.service-icon {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--moss);
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  background: var(--paper);
}

.service-icon.paving::before {
  inset: 12px 8px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 7px, transparent 7px 12px);
}

.service-icon.fence::before {
  left: 10px;
  right: 10px;
  top: 14px;
  height: 4px;
}

.service-icon.fence::after {
  left: 12px;
  right: 12px;
  bottom: 13px;
  height: 4px;
}

.service-icon.grass::before {
  left: 11px;
  right: 11px;
  bottom: 12px;
  height: 18px;
  clip-path: polygon(0 100%, 10% 35%, 22% 100%, 38% 20%, 50% 100%, 68% 28%, 82% 100%, 100% 32%, 100% 100%);
}

.service-icon.wall::before {
  inset: 12px 9px;
  background: repeating-linear-gradient(0deg, var(--paper) 0 5px, transparent 5px 9px);
}

.review-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
}

.score-box {
  width: min(360px, 100%);
  margin-top: 28px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.score-box strong {
  color: var(--moss);
  font-size: clamp(3.3rem, 5vw, 4.4rem);
}

.score-box span {
  display: block;
  color: var(--muted);
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-list blockquote {
  margin: 0;
  padding: 24px;
  background: var(--white);
}

.review-list p {
  margin: 0;
  color: var(--soil);
  font-size: clamp(1.1rem, 1.55vw, 1.48rem);
  line-height: 1.38;
  font-weight: 600;
}

.review-list cite {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.review-list cite a {
  color: var(--moss);
  text-decoration: none;
  text-underline-offset: 5px;
}

.review-list cite a span {
  font-weight: 400;
}

.leave-review-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--soil);
  color: var(--white);
}

.leave-review-card .eyebrow,
.leave-review-card h3,
.leave-review-card p {
  color: inherit;
}

.leave-review-card .eyebrow {
  margin-bottom: 4px;
  font-size: 0.68rem;
}

.leave-review-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.leave-review-card p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.45;
}

.leave-review-card .button {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.9rem;
}

.contact-section {
  background: var(--moss);
  color: var(--white);
}

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

.contact-section p {
  max-width: var(--measure);
  color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
}

.quote-form {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--paper);
  color: var(--soil);
  box-shadow: var(--shadow);
}

.quote-form label {
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(49, 40, 30, 0.22);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
}

.quote-form textarea {
  resize: vertical;
}

.form-button {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: clamp(38px, 6vw, 64px) clamp(18px, 5vw, 56px) 26px;
  background: var(--soil);
  color: rgba(255, 255, 255, 0.76);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr) auto;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand .brand-mark {
  flex: 0 0 auto;
  color: var(--white);
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.2;
}

.footer-brand p {
  max-width: 520px;
  margin: 8px 0 0;
}

.footer-contact,
.footer-links {
  display: grid;
  gap: 8px;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-contact a {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  justify-items: end;
}

.footer-links a,
.footer-bottom a {
  color: inherit;
  text-underline-offset: 5px;
}

.footer-links a {
  color: var(--white);
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(30px, 5vw, 54px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 22px;
  font-size: 0.94rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-call {
    display: none;
  }

  .site-nav.is-open {
    grid-column: 1 / -1;
    display: grid;
    justify-items: start;
    gap: 8px;
    padding-top: 10px;
  }

  .intro-grid,
  .review-layout,
  .contact-grid,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .leave-review-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 260px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 88dvh;
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .work-gallery,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .work-gallery .feature-photo {
    grid-row: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-items: start;
  }

  .footer-bottom {
    display: grid;
  }
}

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