@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f8f0;
  --ink: #182c20;
  --muted: #4a5d4f;
  --forest: #162f23;
  --lime: #d8ee9d;
  --line: #dfe3d6;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:where(a, button, .quote-options label) { -webkit-tap-highlight-color: #8bac5733; }
:where(a, button, input):focus-visible { outline: 2px solid #63802d; outline-offset: 4px; }
.hero :focus-visible { outline-color: var(--lime); }
.container { width: min(100% - 2rem, 77rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 1rem auto auto 1rem;
  padding: .75rem 1rem;
  border-radius: .4rem;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.masthead { background: var(--paper); }
.header-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .65rem;
  min-height: 4.5rem;
}
.brand {
  display: inline-flex;
  width: fit-content;
  gap: .68rem;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  position: relative;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .62rem;
  color: var(--lime);
  background: var(--forest);
}
.brand-copy { display: grid; gap: .15rem; line-height: 1.05; }
.brand-name { font-size: 1.13rem; font-weight: 800; letter-spacing: -.05em; }
.brand-name span { font-weight: 650; }
.concept-label { color: var(--muted); font-size: .8125rem; font-weight: 650; }
.brand-mark i, .grass-icon i {
  position: absolute;
  bottom: 28%;
  left: 50%;
  width: 42%;
  height: 45%;
  border-left: 2px solid currentColor;
  border-radius: 95% 0 0;
  transform-origin: bottom left;
}
.brand-mark i:first-child, .grass-icon i:first-child { transform: rotate(-42deg); }
.brand-mark i:nth-child(2), .grass-icon i:nth-child(2) { height: 52%; transform: rotate(-14deg); }
.brand-mark i:nth-child(3), .grass-icon i:nth-child(3) { transform: rotate(24deg); }
.header-nav { display: none; }
.header-nav a, .footer-top { font-size: .95rem; font-weight: 700; text-decoration: none; }
.header-nav a:hover, .footer-top:hover { text-decoration: underline; text-underline-offset: .25em; }
.language-switch {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: .16rem;
  padding: .2rem;
  border: 1px solid #d9ded0;
  border-radius: 999px;
  background: #efefe6;
}
.language-switch[hidden] { display: none; }
.language-switch button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .2rem .48rem;
  border: 0;
  border-radius: 999px;
  color: #405548;
  background: transparent;
  font-size: .875rem;
  font-weight: 800;
}
.language-switch button:hover { background: #e2e6d7; }
.language-switch button[aria-pressed="true"] { color: white; background: var(--forest); }

.hero { color: var(--paper); background: var(--forest); }
.hero-layout {
  display: grid;
  gap: 1.4rem;
  padding-block: 1.85rem 1rem;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .115em;
}
.eyebrow::before { width: 1.45rem; height: 1px; flex: none; background: currentColor; content: ""; }
.hero-eyebrow { color: var(--lime); }
.hero h1 {
  margin-top: .85rem;
  font-size: clamp(2.6rem, 10.1vw, 4.65rem);
  font-weight: 750;
  line-height: .98;
  letter-spacing: -.078em;
}
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em {
  color: var(--lime);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.12em;
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.045em;
}
.hero-description {
  max-width: 24rem;
  margin-top: 1.05rem;
  color: #e0e9df;
  font-size: 1.04rem;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; margin-top: 1.2rem; }
.button {
  display: inline-flex;
  width: fit-content;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.05rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.25;
  transition: background-color .18s ease;
}
.button[hidden] { display: none; }
.button-lime { color: var(--forest); background: var(--lime); }
.button-lime:hover { background: #e8f6c2; }
.button-dark { color: white; background: var(--forest); }
.button-dark:hover { background: #284c37; }
.hero-link { display: inline-flex; min-height: 3rem; align-items: center; font-weight: 700; text-underline-offset: .3em; }
.hero-link:hover { color: var(--lime); }
.hero-photo {
  position: relative;
  isolation: isolate;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: .85rem;
  overflow: hidden;
  background: #3f5c32;
  outline: 1px solid #f8f8f030;
  outline-offset: -1px;
}
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 57% 53%; }
.hero-photo figcaption {
  position: absolute;
  bottom: .9rem;
  right: .9rem;
  padding: .35rem .6rem;
  border-radius: .3rem;
  background: #13291eee;
  color: white;
  font-size: .8125rem;
  font-weight: 650;
}

.services { padding-block: 2.65rem 2.9rem; scroll-margin-top: 1.4rem; }
.section-eyebrow { color: #486132; }
.services h2, .estimate h2 {
  font-size: clamp(2rem, 4.5vw, 3.55rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.067em;
}
.services h2 { margin-top: .62rem; }
.service-grid { display: grid; gap: .72rem; margin-top: 1.15rem; }
.service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .8rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: #fdfdf8;
}
.service-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: .65rem;
  color: #375b33;
  background: #edf3de;
}
.grass-icon { position: relative; display: block; width: 1.6rem; height: 1.6rem; }
.grass-icon i { bottom: 23%; }
.leaf-icon {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.7px solid currentColor;
  border-radius: 85% 0 85% 0;
}
.leaf-icon::after {
  position: absolute;
  left: -.2rem;
  bottom: 0;
  width: .94rem;
  height: 1.6px;
  transform: rotate(-45deg);
  transform-origin: left;
  background: currentColor;
  content: "";
}
.water-icon {
  width: .93rem;
  height: .93rem;
  border: 1.7px solid currentColor;
  border-radius: 0 55% 55%;
  transform: translateY(.13rem) rotate(45deg);
}
.service-card h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.035em; }
.service-card p { margin-top: .33rem; color: var(--muted); line-height: 1.5; }

.estimate { scroll-margin-top: 1.4rem; }
.estimate-panel {
  display: grid;
  gap: 1.15rem;
  padding: 1.3rem;
  border: 1px solid #d6e1c2;
  border-radius: 1rem;
  background: #e4efcd;
}
.estimate h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
.estimate p { margin-top: .55rem; color: #3e5440; line-height: 1.5; }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin-top: 1.9rem;
  padding-block: .85rem 1.25rem;
  border-top: 1px solid var(--line);
}
.footer .brand-mark { width: 2rem; height: 2rem; border-radius: .45rem; }
.footer .brand-name { font-size: 1rem; }
.footer p { order: 1; width: 100%; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.footer-top { display: inline-flex; min-height: 2.75rem; align-items: center; }

dialog {
  inset: auto 0 max(.55rem, env(safe-area-inset-bottom));
  width: min(100% - 1rem, 30rem);
  max-height: calc(100% - 1.5rem);
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1rem 4rem #0d231b66;
}
dialog::backdrop { background: #10251cb3; }
.dialog-content { display: grid; gap: .68rem; padding: 1.15rem; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.dialog-heading h2 { font-size: 1.6rem; line-height: 1.1; letter-spacing: -.05em; }
.close-button {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #edeee4;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}
.dialog-content p { color: var(--muted); line-height: 1.45; }
.quote-options { display: grid; gap: .4rem; min-width: 0; margin: .2rem 0 0; padding: 0; border: 0; }
.quote-options legend { margin-bottom: .5rem; padding: 0; font-weight: 750; }
.quote-options label {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.9rem;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #fdfdf8;
  cursor: pointer;
}
.quote-options label:has(input:checked) { border-color: #6c874b; background: #edf3de; }
.quote-options input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: #365635; }
.dialog-content .button { width: 100%; margin-top: .2rem; }
.dialog-content .form-feedback { color: #31592e; font-weight: 750; }
.form-feedback:empty { margin-top: -.68rem; }

@media (min-width: 40rem) {
  .estimate-panel { grid-template-columns: 1fr auto; align-items: center; padding: clamp(1.5rem, 4.2vw, 3rem); }
  dialog { inset: 0; margin: auto; }
  .dialog-content { padding: 1.5rem; }
}

@media (min-width: 47.51rem) {
  .container { width: min(100% - 2.75rem, 77rem); }
  .header-layout { grid-template-columns: 1fr auto 1fr; gap: 1.5rem; min-height: 5rem; }
  .header-nav { display: flex; gap: 2.1rem; }
  .brand-name { font-size: 1.18rem; }
  .hero { background: radial-gradient(ellipse at 100% 0, #264634, var(--forest) 64%); }
  .hero-layout { grid-template-columns: 1fr 1.12fr; align-items: center; gap: 2.25rem; padding-block: 2.65rem; }
  .hero-copy { padding-block: 1.65rem; }
  .hero h1 { margin-top: 1.25rem; font-size: clamp(3.05rem, 5.85vw, 5.4rem); }
  .hero-description { margin-top: 1.55rem; font-size: 1.12rem; }
  .hero-actions { gap: .85rem 1.3rem; margin-top: 1.75rem; }
  .button { padding-inline: 1.25rem; }
  .hero-photo { aspect-ratio: auto; height: clamp(26rem, 39vw, 32rem); border-radius: 1.05rem; }
  .services { padding-block: 4rem; }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; margin-top: 1.8rem; }
  .service-card { display: block; padding: 1.45rem; }
  .service-card h3 { margin-top: .96rem; font-size: 1.28rem; }
  .service-card p { max-width: 31ch; margin-top: .45rem; }
  .footer { flex-wrap: nowrap; margin-top: 2.75rem; padding-block: 1.2rem; }
  .footer p { width: auto; order: 0; }
}

@media (min-width: 62.5rem) {
  .container { width: min(100% - 7rem, 77rem); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
