:root {
  --green: #009345;
  --green-dark: #007a39;
  --green-text: #006b34;
  --green-light: #e7f3e9;
  --ink: #2d2d30;
  --muted: #63666a;
  --line: #d6d8d7;
  --paper: #ffffff;
  --soft: #f5f6f5;
  --container: 1170px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3 {
  line-height: 1.16;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
}

.site-header {
  background: #fff;
}

.header-inner {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-block: 1.35rem;
}

.brand-logo {
  width: min(100%, 430px);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  white-space: nowrap;
}

.header-contact small,
.header-contact strong {
  display: block;
}

.header-contact small {
  margin-bottom: 0.1rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-contact strong {
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 500;
}

.phone-icon {
  position: relative;
  width: 50px;
  height: 50px;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.phone-icon::before {
  position: absolute;
  top: 13px;
  left: 16px;
  width: 12px;
  height: 20px;
  border: solid var(--green);
  border-width: 0 4px 0 4px;
  border-radius: 50%;
  content: "";
  transform: rotate(-38deg);
}

.brand-bar {
  height: 58px;
  background: linear-gradient(0deg, #00863f, var(--green));
  border-bottom: 1px solid #006e33;
}

.hero {
  min-height: clamp(310px, 43vw, 536px);
  background-color: #e9e5df;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.42)), url("assets/hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  display: flex;
  min-height: inherit;
  align-items: center;
  justify-content: flex-end;
}

.hero-copy {
  width: min(58%, 690px);
  padding: 2rem 0 3rem;
}

.hero-copy p {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: clamp(0.76rem, 1.4vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-copy h1 span {
  display: block;
  color: var(--ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}

.welcome-content {
  display: grid;
  grid-template-columns: minmax(230px, 370px) 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.welcome-content img {
  width: 100%;
}

.welcome-content p {
  margin-bottom: 0.9rem;
}

.lead {
  color: #2f8026;
  font-size: 1.12rem;
  font-weight: 700;
}

.signoff {
  padding-top: 0.4rem;
  font-size: 0.9rem;
  font-style: italic;
  text-align: right;
}

.business-info {
  padding-left: clamp(1.75rem, 3vw, 2.25rem);
  border-left: 1px solid var(--line);
}

.business-name {
  margin-bottom: 0.25rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.business-info h2 {
  margin-top: 1.9rem;
  margin-bottom: 0.8rem;
  color: var(--green-text);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hours {
  margin-bottom: 0;
}

.hours > div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  padding: 0.48rem 0;
  border-bottom: 1px solid #eceeec;
}

.hours dt {
  font-weight: 600;
}

.hours dd {
  margin: 0;
}

.services {
  background: var(--soft);
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--green-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 1.9rem);
}

.service-card {
  overflow: hidden;
  background: #fff;
  border-bottom: 3px solid var(--green);
  box-shadow: 0 10px 30px rgba(27, 43, 34, 0.08);
}

.service-card img {
  width: 100%;
  aspect-ratio: 370 / 196;
  object-fit: cover;
}

.service-card h3 {
  margin: 0;
  padding: 1.05rem 1rem 1.15rem;
  color: #2f8026;
  font-size: 1.17rem;
  font-weight: 500;
  text-align: center;
}

.contact-strip {
  padding-block: 2.5rem;
  background: linear-gradient(0deg, #007d3a, var(--green));
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr 1.2fr;
  gap: 2rem;
}

.contact-grid > div {
  min-width: 0;
}

.contact-label,
.contact-grid strong {
  display: block;
}

.contact-label {
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-grid strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.legal {
  scroll-margin-top: 1rem;
}

.legal-muted {
  background: var(--soft);
}

.legal-content {
  max-width: 920px;
}

.legal-content h2 {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.legal-content h3 {
  margin-top: 2rem;
  color: var(--green-dark);
}

.legal-content p {
  max-width: 78ch;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.legal-grid h3 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  align-items: center;
  gap: 2.5rem;
  min-height: 150px;
  padding-block: 2rem;
}

.footer-inner img {
  width: 260px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-inner a {
  font-size: 1rem;
  font-weight: 700;
  text-underline-offset: 0.3em;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--green);
}

.footer-inner p {
  margin: 0;
  color: var(--green-text);
  font-size: 0.9rem;
  text-align: right;
}

.vacation-dialog {
  width: min(800px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 3px solid var(--green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

.vacation-dialog::backdrop {
  background: rgba(24, 28, 25, 0.82);
  backdrop-filter: blur(2px);
}

.vacation-dialog img {
  width: 100%;
  max-height: calc(100vh - 38px);
  border-radius: 5px;
  object-fit: contain;
}

.dialog-close {
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font: 400 2rem/1 Arial, Helvetica, sans-serif;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.dialog-close:hover,
.dialog-close:focus-visible {
  background: var(--ink);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

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

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .business-info {
    padding: 2rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

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

  .footer-inner {
    grid-template-columns: 220px 1fr;
  }

  .footer-inner p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    min-height: 0;
    flex-direction: column;
    gap: 1rem;
    padding-block: 1.25rem;
  }

  .brand-logo {
    width: min(100%, 390px);
  }

  .header-contact {
    gap: 0.7rem;
  }

  .phone-icon {
    width: 40px;
    height: 40px;
  }

  .phone-icon::before {
    top: 9px;
    left: 11px;
  }

  .brand-bar {
    height: 22px;
  }

  .hero {
    min-height: 315px;
    background-position: 38% center;
  }

  .hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 18%, rgba(255, 255, 255, 0.82) 72%);
    content: "";
  }

  .hero {
    position: relative;
  }

  .hero-inner {
    position: relative;
  }

  .hero-copy {
    width: 62%;
    padding-bottom: 2rem;
  }

  .welcome-content,
  .service-grid,
  .contact-grid,
  .legal-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .welcome-content img {
    width: 100%;
  }

  .signoff {
    text-align: left;
  }

  .contact-grid {
    gap: 1.4rem;
  }

  .footer-inner {
    gap: 1.5rem;
  }

  .footer-inner img {
    width: min(100%, 280px);
  }

  .footer-inner p {
    grid-column: auto;
  }

  .vacation-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .vacation-dialog img {
    max-height: calc(100vh - 30px);
  }

  .dialog-close {
    top: 8px;
    right: 8px;
    border-width: 2px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 285px;
    background-position: 34% center;
  }

  .hero-copy {
    width: 68%;
  }

  .hours > div {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

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

@media print {
  .vacation-dialog {
    display: none;
  }
}
