:root {
  --brand-green: #006400;
  --text-color: #000000;
  --muted-text: #595959;
  --page-width: 1160px;
  --body-font: "Quicksand", sans-serif;
  --heading-font: "Cinzel", Georgia, serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text-color);
  background: #ffffff;
  font-family: var(--body-font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--brand-green);
  transform: translateY(-150%);
}

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

.services-section,
.mission-statement,
.insights-section,
.experience-strip {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  background: #ffffff;
}

.services-section {
  height: 582px;
  padding: 56px 24px;
}

.services-grid {
  height: 470px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.service-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 32px;
  color: #ffffff;
  background: var(--brand-green);
  font-family: var(--body-font);
  font-size: 32px;
  line-height: 32px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-green);
  transform: scale(1);
  backface-visibility: hidden;
  transition: transform 0.3s ease;
}

.service-card-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 32px;
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
  backface-visibility: hidden;
  transition: transform 0.5s ease, background-color 0.5s ease, text-shadow 0.5s ease;
}

.mission-statement {
  min-height: 148px;
  display: grid;
  place-items: center;
  padding: 56px 24px;
  color: var(--muted-text);
  text-align: center;
}

.mission-statement p {
  margin: 0;
  font-size: 20px;
  line-height: 1.8;
}

.insights-section {
  min-height: 168px;
  display: grid;
  place-items: center;
  padding: 56px 24px;
}

.insights-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144.64px;
  min-height: 56px;
  padding: 8px 32px;
  color: var(--brand-green);
  background-color: transparent;
  outline: 1px solid currentColor;
  outline-offset: -1px;
  font-family: var(--heading-font);
  font-size: 22px;
  text-align: center;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, outline-color 0.25s ease;
}

.insights-link:hover,
.insights-link:focus-visible {
  color: #ffffff;
  background-color: var(--brand-green);
  outline-color: var(--brand-green);
}

.experience-strip {
  height: 76.5px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.experience-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: experience-scroll 64.8615s linear infinite forwards;
}

.experience-track:hover {
  animation-play-state: paused;
}

.experience-track p {
  margin: 0;
  padding-right: 56px;
  color: #000000;
  font: 400 22px/27.5px "Quicksand", sans-serif;
  font-style: normal;
  font-synthesis: none;
}

@keyframes experience-scroll {
  to { transform: translateX(-50%); }
}

@media (min-width: 1024px) {
  .service-card:hover .service-card-content,
  .service-card:focus-visible .service-card-content {
    background-color: rgba(0, 0, 0, 0);
    transform: scale(1);
    text-shadow: 2px 4px 2px rgba(0, 0, 0, 0.2);
  }

  .service-card:hover::before,
  .service-card:focus-visible::before {
    transform: scale(1.05);
  }
}

.site-footer {
  min-height: 164.8px;
  padding: 56px 24px;
  background: #ffffff;
}

.footer-container {
  width: min(100%, 1112px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.copyright {
  margin: 0;
  color: var(--muted-text);
  font-size: 16px;
  line-height: 1.8;
}

.powered-by {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  color: var(--muted-text);
}

.powered-by span {
  line-height: 1.8;
}

.powered-by img {
  width: 131px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .services-section {
    height: 608px;
    padding: 40px 24px;
  }

  .services-grid {
    height: 528px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 160px);
    gap: 24px;
  }

  .service-card {
    font-size: 32px;
  }

  .mission-statement {
    min-height: 216px;
    padding: 48px 24px;
  }

  .mission-statement p {
    font-size: 20px;
  }

  .insights-section {
    min-height: 136px;
    padding: 40px 24px;
  }

  .site-footer {
    min-height: 214.4px;
    padding: 48px 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .powered-by {
    justify-content: center;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
