:root {
  --ink: #183126;
  --forest: #143d2b;
  --forest-deep: #0e2b20;
  --moss: #4f6b43;
  --sage: #dfe7d9;
  --cream: #f6f4ed;
  --white: #fffef9;
  --line: #ccd5c8;
  --muted: #5d6a62;
  --font-sans: "DM Sans", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.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;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 92px;
  padding: 18px clamp(22px, 5vw, 80px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--forest);
  background: var(--white);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-quote {
  justify-self: end;
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  color: var(--white);
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button-small {
  min-height: 44px;
  padding: 10px 18px;
  color: var(--forest);
  background: var(--white);
  border-color: var(--white);
  font-size: 14px;
}

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

.button-light:hover,
.button-small:hover {
  color: var(--white);
  background: transparent;
}

.button-dark {
  width: 100%;
}

.button-dark:hover {
  background: var(--forest-deep);
}

.text-link {
  display: inline-block;
  font-weight: 600;
  text-underline-offset: 6px;
}

.light-link {
  color: var(--white);
}

.hero {
  position: relative;
  display: flex;
  min-height: 780px;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-image: url("assets/maple-estate-hero.webp");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(7, 30, 20, 0.43);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(730px, 90%);
  margin-left: clamp(22px, 8vw, 130px);
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #e7efe2;
}

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

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(52px, 7vw, 86px);
}

h2 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 62px);
}

h3 {
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.3;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 32px;
  color: #f1f3ee;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.image-note {
  position: absolute;
  right: 22px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.quick-facts {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1180px, calc(100% - 44px));
  grid-template-columns: repeat(4, 1fr);
  margin: -48px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.quick-facts div {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.quick-facts div:last-child {
  border-right: 0;
}

.quick-facts strong {
  margin-bottom: 3px;
  font-family: var(--font-serif);
  font-size: 23px;
}

.quick-facts span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 55px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 8px;
  color: var(--muted);
}

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

.service-card {
  min-height: 270px;
  padding: 28px;
  background: rgba(255, 254, 249, 0.55);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card-featured {
  color: var(--white);
  background: var(--forest);
}

.service-number {
  display: block;
  margin-bottom: 52px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
}

.service-card-featured .service-number,
.service-card-featured p {
  color: #d6e0d2;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.story-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 90px;
  border-top: 1px solid var(--line);
}

.story-copy > p:not(.eyebrow) {
  max-width: 630px;
  color: var(--muted);
  font-size: 18px;
}

.availability {
  align-self: center;
  padding: 40px;
  background: var(--sage);
  border-radius: 4px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(24, 49, 38, 0.2);
}

.hours-row span {
  color: var(--muted);
}

.availability-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.service-area {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 80px;
  padding: 100px max(22px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--forest);
}

.service-area h2 {
  margin-bottom: 0;
}

.area-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.area-list li {
  padding: 18px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.quote-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.quote-intro {
  position: sticky;
  top: 30px;
  align-self: start;
}

.quote-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.direct-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-top: 38px;
}

.direct-contact span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.direct-contact a {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.quote-form {
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(20, 61, 43, 0.12);
}

.quote-form textarea {
  resize: vertical;
}

.file-field {
  padding: 18px;
  background: var(--cream);
  border: 1px dashed var(--moss);
  border-radius: 3px;
}

.file-field input {
  padding: 0;
  background: transparent;
  border: 0;
}

.file-field small {
  color: var(--muted);
  font-weight: 400;
}

.quote-form .consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 400;
}

.consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--moss);
  font-size: 13px;
  font-weight: 600;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  padding: 60px clamp(22px, 5vw, 80px) 28px;
  color: var(--white);
  background: var(--forest-deep);
}

.brand-mark-light {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand span:not(.brand-mark) {
  color: #b9c9bf;
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 30px;
  align-content: center;
}

.footer-links a {
  color: #dfe8e2;
  font-size: 13px;
  text-decoration: none;
}

.copyright {
  grid-column: 1 / -1;
  margin: 20px 0 0;
  padding-top: 24px;
  color: #8fa397;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
}

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

  .menu-toggle {
    position: relative;
    z-index: 12;
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    justify-self: end;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--white);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 11;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    color: var(--white);
    background: var(--forest-deep);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    font-family: var(--font-serif);
    font-size: 38px;
  }

  .header-quote {
    display: none;
  }

  .quick-facts {
    grid-template-columns: 1fr 1fr;
  }

  .quick-facts div:nth-child(2) {
    border-right: 0;
  }

  .quick-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading,
  .story-section,
  .service-area,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .story-section,
  .service-area,
  .quote-section {
    gap: 45px;
  }

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

  .quote-intro {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 76px;
    padding: 14px 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 12px;
  }

  .hero {
    min-height: 700px;
    background-position: 62% center;
  }

  .hero-content {
    width: auto;
    margin: 0;
    padding: 100px 22px 40px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .image-note {
    right: 16px;
    bottom: 10px;
  }

  .quick-facts {
    width: calc(100% - 28px);
    margin-top: -26px;
  }

  .quick-facts div {
    min-height: 100px;
    padding: 18px;
  }

  .quick-facts strong {
    font-size: 18px;
  }

  .quick-facts span {
    font-size: 11px;
  }

  .section {
    width: calc(100% - 36px);
    padding: 82px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

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

  .service-card {
    min-height: 220px;
  }

  .service-number {
    margin-bottom: 36px;
  }

  .availability,
  .quote-form {
    padding: 26px 20px;
  }

  .hours-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .service-area {
    padding-top: 80px;
    padding-bottom: 80px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
