.home-hero {
  position: relative;
  min-height: 820px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 27, 20, 0.40) 0%, rgba(7, 27, 20, 0.18) 22%, rgba(7, 27, 20, 0.58) 100%),
    var(--home-hero-image, url("../maintenance/hero.jpg")) center / cover no-repeat;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(247, 242, 234, 0) 0%, rgba(247, 242, 234, 1) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 11rem;
}

.home-eyebrow {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.home-eyebrow--dark {
  color: var(--green-900);
}

.home-hero__title,
.home-section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.home-hero__title {
  font-size: clamp(3.4rem, 8vw, 6.1rem);
  text-wrap: balance;
}

.home-section-title {
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: var(--ink);
}

.home-hero__lead {
  width: min(640px, 100%);
  margin: 1.75rem auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.7;
}

.home-hero__actions {
  margin-top: 2.5rem;
}

.home-btn {
  min-width: 214px;
  padding: 1rem 1.5rem;
  border-radius: var(--button-radius);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.home-btn--primary {
  background: rgba(15, 70, 52, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 16px 28px rgba(7, 27, 20, 0.2);
}

.home-btn--secondary {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--green-900);
  box-shadow: 0 16px 28px rgba(7, 27, 20, 0.12);
}

.home-btn:hover,
.home-btn:focus-visible {
  transform: translateY(-3px);
}

.home-btn--primary:hover,
.home-btn--primary:focus-visible {
  background: var(--green-800);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 20px 36px rgba(7, 27, 20, 0.28);
}

.home-btn--secondary:hover,
.home-btn--secondary:focus-visible {
  background: var(--paper-light);
  border-color: rgba(184, 155, 75, 0.62);
  color: var(--green-950);
  box-shadow: 0 20px 36px rgba(7, 27, 20, 0.18);
}

.home-highlights,
.home-services,
.home-contact {
  position: relative;
  z-index: 1;
}

.home-highlights {
  margin-top: -2rem;
  padding-bottom: 2.5rem;
}

.home-highlight-card {
  position: relative;
  min-height: 630px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-card);
}

.home-highlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 20, 15, 0.04) 0%, rgba(5, 20, 15, 0.18) 34%, rgba(5, 20, 15, 0.82) 74%, rgba(5, 20, 15, 0.96) 100%);
}

.home-highlight-card__icon {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(137, 145, 101, 0.84);
  box-shadow: 0 16px 28px rgba(10, 24, 19, 0.15);
}

.home-highlight-card__icon svg {
  width: 42px;
  height: 42px;
}

.home-highlight-card__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 2rem 2rem;
  color: #fff;
}

.home-highlight-card__title,
.home-service-card__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
}

.home-highlight-card__title {
  font-size: clamp(2.1rem, 3vw, 3rem);
}

.home-highlight-card__subtitle {
  margin: 0.35rem 0 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-highlight-card__text {
  max-width: 420px;
  margin: 0 0 1.7rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-highlight-card__features {
  margin: 0;
  padding: 1.55rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.home-highlight-card__feature {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.home-highlight-card__feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  color: var(--gold);
  border-radius: var(--radius-lg);
  background: rgba(12, 28, 22, 0.42);
}

.home-highlight-card__feature-icon svg {
  width: 22px;
  height: 22px;
}

.home-highlight-card__features > li {
  container-type: inline-size;
}

.home-highlight-card__feature-label {
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Narrow tiles: stack icon over label so long labels keep the full width. */
@container (max-width: 230px) {
  .home-highlight-card__feature {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .home-highlight-card__feature-icon {
    width: 38px;
    height: 38px;
    flex-basis: auto;
  }

  .home-highlight-card__features .home-highlight-card__feature-label {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
  }
}

@container (max-width: 140px) {
  .home-highlight-card__features .home-highlight-card__feature {
    padding: 0.75rem;
  }

  .home-highlight-card__features .home-highlight-card__feature-label {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }
}

.home-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.9rem;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-inline-link::after {
  content: "\2192";
  font-size: 1rem;
}

.home-services {
  padding: 2rem 0 4.5rem;
}

.home-service-card {
  height: 100%;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.home-service-card__image-wrap {
  position: relative;
  aspect-ratio: 640 / 526;
}

.home-service-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-service-card__icon {
  position: absolute;
  left: 1.25rem;
  bottom: -1.8rem;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(137, 145, 101, 0.92);
  box-shadow: 0 14px 22px rgba(10, 24, 19, 0.16);
}

.home-service-card__icon svg {
  width: 34px;
  height: 34px;
}

.home-service-card__body {
  padding: 2.9rem 1.55rem 1.55rem;
}

.home-service-card__title {
  font-size: 1.9rem;
  line-height: 1.05;
}

.home-service-card__text {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.home-contact {
  padding: 1.5rem 0 5.5rem;
}

.home-contact__cards {
  margin-top: 2.8rem;
}

.home-contact-card {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.75rem 1.6rem;
  border: 1px solid rgba(18, 52, 40, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.home-contact-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  color: #fff;
  border-radius: 50%;
  background: var(--green-900);
}

.home-contact-card:nth-child(2) .home-contact-card__icon {
  background: var(--gold);
}

.home-contact-card:nth-child(3) .home-contact-card__icon {
  background: var(--olive);
}

.home-contact-card__icon svg {
  width: 28px;
  height: 28px;
}

.home-contact-card__content {
  display: flex;
  flex-direction: column;
}

.home-contact-card__content small {
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.home-contact-card__content strong {
  margin-top: 0.25rem;
  font-size: 1.95rem;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
}

.home-contact-card__content span {
  margin-top: 0.35rem;
  color: var(--muted);
}

@media (max-width: 1199.98px) {
  .home-contact-card__content strong {
    font-size: 1.55rem;
  }
}

@media (max-width: 991.98px) {
  .home-hero {
    min-height: 700px;
  }

  .home-highlight-card {
    min-height: 560px;
  }

  .home-highlight-card__inner {
    padding-top: 7rem;
  }
}

@media (max-width: 767.98px) {
  .home-hero__content {
    padding: 4rem 0 8rem;
  }

  .home-btn {
    width: 100%;
    min-width: 0;
  }

  .home-highlight-card__feature {
    padding: 0.85rem;
  }

  .home-highlight-card__feature-label {
    font-size: 0.74rem;
  }

  .home-service-card__title {
    font-size: 1.75rem;
  }

  .home-contact-card__content strong {
    font-size: 1.45rem;
  }
}

@media (max-width: 379.98px) {
  .home-highlight-card__features > li {
    width: 100%;
  }
}
