:root {
  --leaf: #244b2f;
  --deep: #102d1d;
  --meadow: #dce9cf;
  --mist: #f4f7ef;
  --sun: #d6a04b;
  --soil: #4e3e2d;
  --line: #c4d5b8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 20px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--mist);
  color: var(--deep);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 272px;
  min-height: 100vh;
  gap: 28px;
  border-right: 1px solid var(--line);
  background: var(--deep);
  color: white;
  padding: 34px 28px;
}

.side-rail > *,
.workbench > *,
.project-grid > *,
.quote-board > *,
.area-hero > *,
.area-check > *,
.area-copy-block > * {
  min-width: 0;
}

.brand {
  display: grid;
  width: fit-content;
  gap: 7px;
  color: var(--meadow);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1;
  text-transform: uppercase;
}

.brand-main,
.brand-sub {
  display: block;
  font-weight: 800;
}

.brand-main {
  color: #f2ffd8;
  font-size: 1.42rem;
  letter-spacing: 0.11em;
}

.brand-rule {
  display: block;
  width: 82px;
  height: 4px;
  border-radius: 999px;
  background: var(--sun);
}

.brand-sub {
  color: rgb(255 255 255 / 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.21em;
}

nav {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav a {
  border-top: 1px solid rgb(255 255 255 / 0.16);
  padding-top: 15px;
}

nav a[aria-current="page"] {
  color: var(--meadow);
}

.rail-button,
button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--sun);
  color: var(--deep);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 14px 20px;
}

.rail-button {
  margin-top: 8px;
}

main {
  min-width: 0;
  margin-left: 272px;
}

.workbench {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  grid-template-rows: minmax(360px, 1fr) auto;
  gap: 14px;
  padding: 14px;
}

.intro-tile,
.status-tile,
.service-board,
.project-grid article,
.quote-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.intro-tile {
  display: grid;
  align-content: center;
  padding: clamp(30px, 5vw, 70px);
}

.service-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.service-summary article {
  padding: 18px 18px 0 0;
}

.service-summary article + article {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.service-summary strong {
  display: block;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
}

.service-summary span {
  display: block;
  margin-top: 8px;
  color: rgb(16 45 29 / 0.64);
  font-size: 0.92rem;
  line-height: 1.55;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(3.35rem, 5.8vw, 4.5rem);
  line-height: 1.1;
}

.hero-title {
  max-width: 600px;
  margin-top: 0;
  font-size: clamp(2.45rem, 3.5vw, 3.35rem);
  line-height: 1.06;
}

.hero-title-brand,
.hero-title-line {
  display: block;
}

.hero-title-brand {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--leaf);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-title-line {
  white-space: nowrap;
}

h2 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(2.35rem, 4.2vw, 3.55rem);
  line-height: 1.08;
}

h3 {
  margin: 16px 0 0;
  font-size: clamp(1.22rem, 1.4vw, 1.20rem);
  line-height: 1.18;
}

p {
  color: rgb(16 45 29 / 0.68);
  font-size: 1.04rem;
  line-height: 1.78;
}

.photo-tile,
.project-photo {
  min-height: 320px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
}

.photo-tile--large {
  grid-row: span 2;
  background-position: center bottom;
  background-size: cover;
  background-image:
    linear-gradient(180deg, rgb(16 45 29 / 0), rgb(16 45 29 / 0.26)),
    url("assets/baumann-hero-landscaping.jpg");
}

.status-tile {
  min-height: 180px;
  padding: 26px;
}

.status-tile h2 {
  max-width: 420px;
  margin-top: 0;
  font-size: clamp(2rem, 2.4vw, 2.35rem);
  line-height: 1.05;
}

.service-board {
  margin: 14px;
  padding: clamp(42px, 7vw, 82px);
}

.board-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.board-heading p {
  max-width: 720px;
  margin: 0;
}

.service-lanes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.service-lanes article {
  min-height: 260px;
  background: var(--mist);
  padding: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.05fr 0.78fr;
  gap: 14px;
  padding: 14px;
}

.project-grid article {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(30px, 5vw, 64px);
}

.project-grid h2 {
  font-size: clamp(2.35rem, 3.6vw, 3.45rem);
  line-height: 1.06;
}

.project-caption {
  max-width: 480px;
  margin: 0;
  border-left: 4px solid var(--sun);
  color: var(--soil);
  font-weight: 700;
  padding-left: 16px;
}

.gallery-button {
  justify-self: start;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.text-action {
  color: var(--leaf);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-action:hover {
  color: var(--soil);
}

.project-photo--one {
  min-height: 520px;
  background-image: url("assets/gallery-front-yard-bed-refresh.jpg");
}

.project-photo--two {
  min-height: 520px;
  background-image: url("assets/gallery-layered-planting-refresh.jpg");
}

.gallery-modal {
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--deep);
  padding: 0;
}

.gallery-modal::backdrop {
  background: rgb(16 45 29 / 0.74);
}

.gallery-panel {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  padding: clamp(24px, 4vw, 42px);
  scrollbar-width: none;
}

.gallery-panel::-webkit-scrollbar {
  display: none;
}

.gallery-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  padding-bottom: 22px;
}

.gallery-header > div {
  display: grid;
  justify-items: center;
}

.gallery-label {
  margin: 0 0 8px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.gallery-header h2 {
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(2.25rem, 3.8vw, 3.35rem);
  line-height: 1.06;
  text-align: center;
}

.gallery-header h2 span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--sage);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.gallery-close {
  position: absolute;
  top: clamp(20px, 3.5vw, 42px);
  right: clamp(20px, 3.5vw, 42px);
  flex: 0 0 auto;
  min-height: 44px;
  background: var(--deep);
  color: var(--white);
  padding-inline: 18px;
}

.gallery-carousel {
  --gallery-copy-height: clamp(430px, 48vh, 520px);
  --gallery-image-height: clamp(430px, 48vh, 520px);

  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.gallery-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.gallery-slide[hidden] {
  display: none;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: var(--gallery-image-height);
  min-height: 0;
  object-fit: cover;
}

.gallery-slide-copy {
  display: grid;
  align-content: center;
  min-height: var(--gallery-copy-height);
  border-left: 1px solid var(--line);
  padding: clamp(28px, 4vw, 46px);
}

.gallery-project-type {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.gallery-slide h3 {
  margin: 0;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.06;
}

.gallery-slide-copy p:not(.gallery-project-type) {
  margin: 16px 0 0;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.gallery-arrow {
  width: 54px;
  min-height: 54px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

.gallery-count {
  min-width: 58px;
  margin: 0;
  color: var(--soil);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.quote-board {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 70px);
  margin: 14px;
  padding: clamp(42px, 7vw, 82px);
}

.quote-copy {
  display: grid;
  align-content: start;
  gap: 24px;
}

.quote-copy h2 {
  margin-top: 0;
}

.quote-copy p {
  margin: 0;
}

.quote-notes {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin-top: 8px;
}

.quote-notes li {
  border-top: 1px solid var(--line);
  color: var(--deep);
  font-weight: 800;
  padding-top: 12px;
}

form {
  display: grid;
  gap: 18px;
}

.demo-disclosure {
  margin: 0 14px 14px;
  border-top: 1px solid var(--line);
  color: rgb(16 45 29 / 0.68);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.45;
  padding: 20px 0 0;
  text-transform: uppercase;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-preference {
  display: grid;
  gap: 8px;
}

.contact-preference-label {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
  padding: 10px;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid rgb(36 75 47 / 0.16);
  border-radius: 999px;
  background: white;
  color: var(--deep);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 8px 12px;
  text-transform: none;
}

.radio-row input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0;
  min-height: 1rem;
  accent-color: var(--leaf);
  transform: translateY(1px);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
  color: var(--deep);
  font: inherit;
  min-height: 50px;
  padding: 12px 14px;
}

input[type="file"] {
  display: grid;
  align-items: center;
  min-height: 58px;
  padding: 10px;
}

input[type="file"]::file-selector-button {
  min-height: 38px;
  margin-right: 12px;
  border: 0;
  border-radius: 4px;
  background: var(--leaf);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 12px;
}

.field-note {
  color: var(--leaf);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.form-status {
  min-height: 1.4em;
  margin: -4px 0 0;
  color: var(--leaf);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

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

.area-page {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.area-hero,
.area-check,
.area-directory,
.area-services,
.area-copy-block,
.area-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.area-hero {
  display: grid;
  min-height: calc(100svh - 28px);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 14px;
  background: transparent;
  border: 0;
}

.area-hero-copy {
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(34px, 6vw, 76px);
}

.area-label {
  margin: 0;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.area-hero h1 {
  max-width: 780px;
  margin-top: 16px;
  font-size: clamp(2.75rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.area-hero p:not(.area-label) {
  max-width: 720px;
}

.area-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 14px;
}

.area-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--sun);
  color: var(--deep);
  font-weight: 800;
  padding: 14px 20px;
}

.area-hero-photo {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-image:
    linear-gradient(180deg, rgb(16 45 29 / 0), rgb(16 45 29 / 0.28)),
    url("assets/gallery-front-yard-bed-refresh.jpg");
  background-position: center;
  background-size: cover;
}

.area-check {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(34px, 6vw, 72px);
}

.area-check h2,
.area-directory h2,
.area-services h2,
.area-copy-block h2,
.area-cta h2 {
  margin-top: 12px;
}

.area-check p {
  margin: 0;
}

.area-check > p {
  align-self: center;
}

.area-directory,
.area-services,
.area-copy-block,
.area-cta {
  padding: clamp(34px, 6vw, 72px);
}

.area-city-grid,
.area-service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.area-city-grid article,
.area-service-list article {
  background: var(--mist);
  padding: 26px;
}

.area-city-grid h3,
.area-service-list h3 {
  margin-top: 0;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.area-city-grid ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.area-city-grid li {
  border-top: 1px solid rgb(36 75 47 / 0.16);
  color: rgb(16 45 29 / 0.74);
  font-size: 0.95rem;
  font-weight: 800;
  padding-top: 10px;
}

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

.area-service-list p {
  margin-bottom: 0;
}

.area-copy-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
}

.area-copy-block p:first-child {
  margin-top: 0;
}

.area-copy-block p:last-child {
  margin-bottom: 0;
}

.area-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.area-cta > div {
  max-width: 780px;
}

.area-cta p:not(.area-label) {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .contact-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) and (min-width: 1041px) {
  .service-lanes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .service-lanes article {
    grid-column: span 2;
  }

  .service-lanes article:nth-last-child(-n + 2) {
    grid-column: span 3;
  }
}

@media (max-width: 1040px) {
  section[id] {
    scroll-margin-top: 116px;
  }

  .site-shell {
    display: block;
  }

  .side-rail {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    z-index: 20;
    display: flex;
    min-height: auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.16);
    box-shadow: 0 1px 0 var(--deep);
    padding: 18px clamp(18px, 5vw, 42px);
  }

  main {
    margin-left: 0;
    padding-top: 92px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 0;
  }

  nav a {
    border-top: 0;
    padding-top: 0;
  }

  .rail-button {
    margin-top: 0;
  }

  .workbench,
  .quote-board,
  .project-grid,
  .area-hero,
  .area-check,
  .area-copy-block {
    grid-template-columns: 1fr;
  }

  .area-hero {
    min-height: auto;
  }

  .area-page {
    padding-top: 106px;
  }

  .gallery-slide {
    grid-template-columns: 1fr;
  }

  .gallery-carousel {
    --gallery-copy-height: 300px;
    --gallery-image-height: 280px;
  }

  .gallery-slide img {
    aspect-ratio: auto;
    min-height: 0;
  }

  .gallery-slide-copy {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .photo-tile--large {
    grid-row: auto;
  }

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

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

@media (max-width: 640px) {
  section[id] {
    scroll-margin-top: 146px;
  }

  .side-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px 18px;
    justify-content: stretch;
  }

  main {
    padding-top: 118px;
  }

  .area-page {
    padding-top: 132px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    gap: 6px;
    justify-self: start;
  }

  .brand-main {
    font-size: 1.34rem;
  }

  .brand-sub {
    font-size: 0.74rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-title {
    font-size: 2.12rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  h3 {
    font-size: 1.22rem;
  }

  .gallery-header {
    padding-top: 56px;
  }

  .gallery-carousel {
    --gallery-copy-height: 330px;
    --gallery-image-height: 225px;
  }

  .gallery-close {
    top: 20px;
    right: 20px;
    min-height: 44px;
    padding-inline: 16px;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    justify-self: center;
    width: 100%;
  }

  .rail-button {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    min-height: 44px;
    font-size: 0.84rem;
    padding: 11px 13px;
    white-space: nowrap;
  }

  .service-summary article {
    padding: 18px 18px 18px 0;
  }

  .service-summary {
    grid-template-columns: 1fr;
  }

  .service-summary article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .service-lanes {
    grid-template-columns: 1fr;
  }

  .project-actions,
  .area-actions,
  .area-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .project-actions > *,
  .area-actions > *,
  .area-cta > * {
    width: 100%;
  }

  .text-action {
    text-align: center;
  }

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

  .area-services .area-service-list {
    margin-top: 28px;
  }

  .area-hero h1 {
    font-size: 2.05rem;
  }

  .area-hero-photo {
    min-height: 300px;
  }
}
