:root {
  --hunter-green: #005e36;
  --hunter-green-dark: #004329;
  --hunter-green-soft: #e7f1ec;
  --ink: #20352d;
  --ink-soft: #52675f;
  --paper: #ffffff;
  --focus: #e6b85c;
  --shadow: 0 22px 60px rgba(0, 67, 41, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 0.45rem;
  color: #fff;
  background: var(--hunter-green-dark);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 5;
  top: clamp(1.15rem, 2.4vw, 2.5rem);
  left: 50%;
  display: flex;
  width: min(90%, 1500px);
  align-items: center;
  transform: translateX(-50%) translateY(-6px);
}

.brand {
  width: min(277px, 64vw);
  border-radius: 0.35rem;
}

.brand img {
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7));
}

.brand:focus-visible,
.service-message a:focus-visible {
  outline: 4px solid rgba(230, 184, 92, 0.8);
  outline-offset: 5px;
}

.hero {
  width: 100%;
  max-width: 2560px;
  margin: 0 auto;
}

.hero-art {
  overflow: hidden;
  -webkit-clip-path: ellipse(140% 100% at 50% 0%);
  clip-path: ellipse(140% 100% at 50% 0%);
  background: var(--hunter-green-soft);
  animation: arrive 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-art picture,
.hero-art img {
  width: 100%;
}

.hero-art picture {
  display: block;
}

.hero-art img {
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.service-message {
  width: min(880px, calc(100% - 2.5rem));
  margin: clamp(1.75rem, 3.5vw, 3.25rem) auto clamp(0.75rem, 2vw, 1.5rem);
  text-align: center;
}

.service-message h2 {
  max-width: 20ch;
  margin: 0 auto 1.35rem;
  color: var(--hunter-green-dark);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.service-message p {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.17rem);
}

.service-message a {
  color: var(--hunter-green);
  font-weight: 700;
  text-decoration-color: rgba(0, 94, 54, 0.45);
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.19em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.service-message a:hover {
  color: var(--hunter-green-dark);
  text-decoration-color: currentColor;
}

.site-footer {
  position: relative;
  display: flex;
  min-height: clamp(22rem, 33vw, 42rem);
  padding: 2rem 0;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.94);
  background-color: #fff;
  background-image: url("assets/footer-bg.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

.site-footer::after {
  position: absolute;
  inset: auto 0 0;
  height: 8rem;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0, 36, 24, 0.5));
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0 clamp(1rem, 2.5vw, 3rem);
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  text-align: right;
}

.footer-inner p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 1rem;
    width: calc(100% - 2rem);
  }

  .service-message {
    width: min(100% - 2rem, 34rem);
  }

  .site-footer {
    min-height: 31rem;
    background-image: url("assets/footer-bg-mobile.png");
    background-position: center bottom;
    background-size: 100% auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
