@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url("../assets/fonts/dm-sans-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 700 800;
  font-display: block;
  src: url("../assets/fonts/libre-franklin-variable.woff2") format("woff2");
}

:root {
  --forest: #18382a;
  --forest-deep: #0f281d;
  --sage: #dce6d4;
  --cream: #f5f2e9;
  --white: #fffdf8;
  --lime: #c9dc68;
  --ink: #18231d;
  --max-width: 1180px;
  --demo-banner-height: 38px;
  --site-header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--demo-banner-height) + var(--site-header-height));
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.demo-banner {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--demo-banner-height);
  padding: 0 1rem;
  color: var(--forest-deep);
  background: var(--lime);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 19;
  top: var(--demo-banner-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--site-header-height);
  padding: 1rem clamp(1rem, 2.5vw, 2rem);
  background: var(--white);
  border-bottom: 1px solid rgba(24, 56, 42, 0.12);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Libre Franklin", sans-serif;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-header__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.hero {
  --hero-rail: clamp(2rem, 6vh, 3.5rem);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--demo-banner-height) - var(--site-header-height));
  min-height: calc(100svh - var(--demo-banner-height) - var(--site-header-height));
  overflow: hidden;
  padding: var(--hero-rail) 0;
  color: var(--white);
  background:
    linear-gradient(rgba(15, 40, 29, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 40, 29, 0.2) 1px, transparent 1px),
    #b9cba5;
  background-size: 42px 42px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(640px, 78vw);
  padding: clamp(3.25rem, 6vw, 4.75rem) clamp(2.75rem, 5vw, 4.25rem);
  margin-inline: auto;
  text-align: center;
}

.hero__inner::before {
  position: absolute;
  z-index: -1;
  inset: calc(var(--hero-rail) * -4.5) -70%;
  background: rgba(24, 56, 42, 0.8);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Libre Franklin", sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(3.4rem, 5.5vw, 5.75rem);
}

.hero__name-line {
  white-space: nowrap;
}

.hero__lede {
  max-width: 34rem;
  margin: 1rem auto 2rem;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.hero__tagline {
  margin: 1.5rem 0 0;
  color: var(--lime);
  font-family: "Libre Franklin", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: #6f8845;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section--dark .eyebrow,
.section--quote .eyebrow {
  color: var(--lime);
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.35rem;
  color: var(--forest-deep);
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 2px;
  font-weight: 700;
  text-decoration: none;
}

.btn--small {
  min-height: 42px;
  padding: 0.55rem 1rem;
}

.btn--light {
  background: var(--white);
  border-color: var(--white);
}

.btn--outline {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.text-link {
  color: var(--white);
  font-weight: 700;
}

.section {
  padding: clamp(5rem, 9vw, 8rem) 5vw;
}

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

.section h2 {
  max-width: 850px;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

#reviews-heading {
  max-width: none;
  white-space: nowrap;
}

.service-grid,
.project-grid {
  display: grid;
  gap: 1rem;
  margin-top: 4rem;
}

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

.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  min-height: 310px;
  padding: 2rem;
  background: var(--white);
  border-top: 5px solid var(--forest);
}

.card h3 {
  margin: 1rem 0;
  font-family: "Libre Franklin", sans-serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.card p {
  margin: 0;
  color: #5d685f;
}

.services-more {
  max-width: 850px;
  margin: 2rem 0 0;
  color: #5d685f;
  font-weight: 600;
}

.section--dark {
  color: var(--white);
  background: var(--forest-deep);
}

.split,
.quote-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
}

.body-copy {
  margin: 0;
  font-size: 1.15rem;
}

.section--dark .body-copy {
  color: rgba(255, 253, 248, 0.76);
}

.section--dark .split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.section--dark .body-copy > p:first-child {
  margin-top: 0;
}

.about-photo {
  position: relative;
}

.about-photo .eyebrow {
  position: absolute;
  bottom: calc(100% + 1rem);
  left: 0;
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 253, 248, 0.2);
}

.check-list {
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.check-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.check-list li::before {
  margin-right: 0.65rem;
  color: var(--lime);
  content: "✓";
}

.project {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  padding: 1.25rem;
  overflow: hidden;
  background: #78906d;
}

.project img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project:hover img {
  transform: scale(1.035);
}

.project span {
  position: relative;
  z-index: 1;
  padding: 0.55rem 0.75rem;
  color: var(--white);
  background: var(--forest-deep);
  font-weight: 700;
}

.section--reviews {
  background: var(--white);
}

.google-reviews__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  padding: 1rem 1.25rem;
  margin-top: 3rem;
  background: var(--cream);
  border: 1px solid #e2dfd5;
}

.google-reviews__summary strong {
  display: block;
  font-size: 1.05rem;
}

.google-reviews__rating {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #616762;
  font-size: 0.86rem;
  font-weight: 700;
}

.google-mark {
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.google-mark--small {
  font-size: 1.25rem;
}

.review-stars {
  color: #f9ab00;
  letter-spacing: 0.08em;
}

.demo-pill {
  padding: 0.3rem 0.55rem;
  margin-left: 0.5rem;
  color: var(--forest-deep);
  background: var(--lime);
  border-radius: 99px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.review-carousel {
  position: relative;
  margin-top: 1rem;
}

.review-carousel__button {
  position: absolute;
  z-index: 2;
  top: -3.75rem;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.review-carousel__button:hover {
  background: #28513c;
  transform: translateY(-2px);
}

.review-carousel__button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.review-carousel__button--previous {
  right: 3.25rem;
}

.review-carousel__button--next {
  right: 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0;
}

.review-grid blockquote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  padding: 2rem;
  margin: 0;
  background: var(--cream);
  border: 1px solid #e2dfd5;
  border-top: 4px solid var(--lime);
}

.review-grid blockquote header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.review-grid blockquote p {
  margin: 0 0 2rem;
  font-family: "Libre Franklin", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}

.review-grid blockquote footer {
  display: grid;
  gap: 0.15rem;
  color: #68736b;
  font-size: 0.85rem;
}

.review-grid blockquote footer strong {
  color: var(--ink);
}

.review-grid blockquote footer span {
  font-size: 0.75rem;
}

.review-disclaimer {
  margin: 1rem 0 0;
  color: #747b76;
  font-size: 0.75rem;
}

.section--sage {
  background: var(--sage);
}

.area-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas: "copy map";
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4rem);
}

.area-map {
  grid-area: map;
  display: flex;
  min-height: 28rem;
  flex-direction: column;
}

.area-map iframe {
  width: 100%;
  min-height: 0;
  flex: 1;
  background: #c9d3c3;
  border: 1px solid rgba(24, 56, 42, 0.24);
}

.area-map a {
  align-self: flex-start;
  margin-top: 0.65rem;
  color: var(--forest-deep);
  font-size: 0.85rem;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.area-copy {
  grid-area: copy;
  align-self: center;
}

.area-copy h2 {
  font-size: clamp(2.7rem, 4.5vw, 4.5rem);
}

.area-copy .body-copy {
  max-width: 34rem;
  margin: 2rem 0 0;
}

.section--quote {
  padding-bottom: 2rem;
  color: var(--white);
  background: var(--forest);
}

.quote-layout {
  align-items: start;
}

.section--quote p:not(.eyebrow, .back-link) {
  color: rgba(255, 255, 255, 0.72);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  margin-top: 2rem;
}

.contact-actions .btn {
  width: 100%;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 2rem;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(15, 40, 29, 0.2);
}

.quote-form label {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.quote-form label span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem;
  color: var(--ink);
  background: #f8f6ef;
  border: 1px solid #cbd1c7;
  border-radius: 0;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.quote-form input,
.quote-form select {
  height: 52px;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  background: var(--white);
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(201, 220, 104, 0.55);
  outline: none;
}

.quote-form textarea {
  min-height: 140px;
  resize: vertical;
}

.quote-form__wide {
  grid-column: 1 / -1;
}

.quote-form button {
  width: 100%;
  margin-top: 0.25rem;
  cursor: pointer;
}

.quote-form button:hover {
  background: #d5e77c;
}

.quote-form__success {
  padding: 0.8rem;
  margin: 0;
  color: var(--forest-deep) !important;
  background: var(--sage);
  font-weight: 600;
}

.back-link {
  width: min(100%, var(--max-width));
  margin: 6rem auto 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem max(5vw, calc((100vw - var(--max-width)) / 2));
  color: rgba(255, 255, 255, 0.68);
  background: var(--forest-deep);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.demo-toast {
  position: fixed;
  z-index: 1000;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(calc(100% - 2rem), 34rem);
  padding: 0.9rem 1.1rem;
  color: var(--white);
  background: var(--forest-deep);
  border: 1px solid rgba(201, 220, 104, 0.45);
  border-radius: 0.4rem;
  box-shadow: 0 0.75rem 2rem rgba(15, 40, 29, 0.32);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.demo-toast [data-demo-toast-message] {
  flex: 1;
}

.demo-toast__close {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.demo-toast__close:hover,
.demo-toast__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.demo-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 820px) {
  .site-header__nav > a:not(.btn) {
    display: none;
  }

  .hero {
    --hero-rail: clamp(1.75rem, 5.5vh, 2.75rem);
  }

  .hero__inner {
    align-items: center;
    width: 100%;
    padding: 1.65rem 5vw 1.85rem;
    text-align: center;
  }

  .hero__inner::before {
    top: calc(var(--hero-rail) * -2);
    right: auto;
    bottom: calc(var(--hero-rail) * -2);
    left: 50%;
    width: 150vw;
    height: auto;
    border-radius: 50% / 28%;
    transform: translateX(-50%);
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3.1rem, 11vw, 5.1rem);
  }

  .hero__name-line {
    white-space: normal;
  }

  .hero__tagline {
    margin-top: 1rem;
  }

  .hero__lede {
    margin: 0.85rem auto 1.5rem;
  }

  .button-row {
    justify-content: center;
    width: 100%;
  }

  .service-grid,
  .project-grid,
  .review-grid,
  .split,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .section--dark .split {
    grid-template-columns: 1fr;
  }

  .area-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "map";
    gap: 2rem;
  }

  .area-map {
    min-height: 22rem;
  }

  .about-photo .eyebrow {
    position: static;
    margin-bottom: 1.25rem;
  }

  .about-photo img {
    height: auto;
    aspect-ratio: 1.08;
  }

  .card {
    min-height: 250px;
  }

}

@media (max-width: 560px) {
  .site-header__brand > span:last-child {
    max-width: 120px;
  }

  .hero {
    --hero-rail: clamp(1.5rem, 5vh, 2.5rem);
    min-height: calc(100vh - var(--demo-banner-height) - var(--site-header-height));
    min-height: calc(100svh - var(--demo-banner-height) - var(--site-header-height));
    padding: var(--hero-rail) 0;
  }

  #reviews-heading {
    white-space: normal;
  }

  .hero__inner {
    width: 100%;
    padding: 1.45rem 5vw 1.65rem;
  }

  .hero__inner::before {
    width: 155vw;
    border-radius: 50% / 26%;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 12.5vw, 4.5rem);
  }

  .hero .eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .hero__tagline {
    margin-top: 0.75rem;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .hero__lede {
    margin: 0.65rem auto 1.15rem;
    font-size: 0.92rem;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.7rem;
  }

  .button-row .btn {
    width: 100%;
  }

  .quote-form {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .quote-form label,
  .quote-form__wide {
    grid-column: 1;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
