/* Eugene homepage additions: use the existing Sunset design tokens and spacing. */
section[hidden] {
  display: none !important;
}

#services .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#services .service-card {
  height: 100%;
}

#services .service-body > p {
  min-height: 0;
}

#services .service-body .text-link + .text-link {
  margin-top: 13px;
}

.home-feature-section .section-heading > p,
.home-feature-section .home-section-summary {
  max-width: 720px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
  margin: 36px 0;
}

.home-feature {
  min-width: 0;
  padding: 27px;
  background: #fff;
  border: 1px solid #e3eadf;
  border-top: 3px solid var(--gold);
  box-shadow: 0 10px 35px rgba(14, 57, 26, 0.045);
}

.home-feature h3 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.home-feature p {
  margin: 0;
  color: #526456;
  line-height: 1.75;
}

.home-feature p + p,
.home-feature p + a,
.home-feature a + a {
  margin-top: 16px;
}

.home-feature a:not(.button),
.home-faq-item p a,
.home-feature-section p a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #c29925;
  text-underline-offset: 3px;
}

#designer .home-feature-grid {
  max-width: 960px;
  margin: 0 auto 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#designer .home-feature {
  text-align: left;
  background: #f8f9f5;
  box-shadow: none;
}

#designer .designer-action {
  margin: 0 0 26px;
  text-align: center;
}

.home-faq {
  max-width: 980px;
  margin-top: 36px;
  border-bottom: 1px solid #d7e0d5;
}

.home-faq-item {
  border-top: 1px solid #d7e0d5;
}

.home-faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #806000;
  font: 500 28px/1 var(--body);
}

.home-faq-item[open] summary::after {
  content: "−";
}

.home-faq-item summary h3 {
  margin: 0;
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-faq-item > p {
  max-width: 850px;
  margin: 0 0 22px;
  color: #526456;
}

.home-feature-section a:focus-visible,
.home-faq-item summary:focus-visible,
#designer .designer-action a:focus-visible {
  outline: 3px solid #997200;
  outline-offset: 4px;
}

@media (max-width: 950px) {
  #services .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* The longer local heading and two CTAs must fit on small screens. */
  .hero {
    height: auto;
    min-height: min(720px, calc(100svh - 106px));
    max-height: none;
  }

  .hero-content {
    height: auto;
    min-height: inherit;
    padding-top: 75px;
    padding-bottom: 112px;
  }
}

@media (max-width: 640px) {
  #services .service-grid,
  #designer .home-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 28px 0;
  }

  .home-feature {
    padding: 23px;
  }

  .hero h1 {
    font-size: clamp(35px, 9.2vw, 49px);
  }

  .hero-content {
    padding-top: 62px;
    padding-bottom: 105px;
  }
}
