.home-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% 50%,
      var(--wash) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 20% 80%,
      var(--wash) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.home-hero__topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero__topo svg {
  width: 100%;
  height: 100%;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
  max-width: 42.5rem;
  margin-left: max(2rem, calc(50vw - 560px));
}

.home-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--ink-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-align: left;
}

.home-hero__sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 30rem;
  margin-bottom: 2.5rem;
}

.home-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-hero__cta {
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Stats bar
   ------------------------------------------------------------ */
.home-stats {
  border-top: 1px solid var(--wash);
  border-bottom: 1px solid var(--wash);
  background: var(--paper-hi);
}

.home-stats__inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.home-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.home-stat__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-deep);
}

.home-stat__label {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.home-stat__divider {
  width: 1px;
  height: 32px;
  background: var(--wash);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Shared section patterns
   ------------------------------------------------------------ */
.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.home-section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.home-section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
  text-align: left;
}

.home-section-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.home-section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-deep);
  text-decoration: none;
  white-space: nowrap;
}

.home-section-link:hover {
  color: var(--ink-deep);
}

/* ------------------------------------------------------------
   Featured campgrounds
   ------------------------------------------------------------ */
.home-featured {
  padding: 4rem 0;
}

.home-featured__inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.featured-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  border: 1px solid var(--wash);
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.featured-card:hover {
  border-color: var(--rule-faint);
  transform: translateY(-2px);
  text-decoration: none;
}

.featured-card--large {
  grid-row: span 2;
}

.featured-card__img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.featured-card--large .featured-card__img {
  min-height: 440px;
}

.featured-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-card__img img {
  transform: scale(1.04);
}

.featured-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(41, 26, 18, 0.85) 0%,
    var(--wash) 50%,
    transparent 100%
  );
}

.featured-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 1;
}

.featured-card__location {
  font-size: 0.72rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}

.featured-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-align: left;
}

.featured-card--large .featured-card__title {
  font-size: 1.5rem;
}

.featured-card__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-deep);
}

.featured-card__price span {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Feature highlights
   ------------------------------------------------------------ */
.home-features {
  padding: 4rem 0;
  border-top: 1px solid var(--wash);
}

.home-features__inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--paper-hi);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--wash);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--rule-faint);
}

.feature-card__icon {
  font-size: 1.6rem;
  line-height: 1;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-deep);
  text-align: left;
  margin: 0;
}

.feature-card__body {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */
.home-cta-band {
  background: var(--paper-hi);
  border-top: 1px solid var(--wash);
  border-bottom: 1px solid var(--wash);
  padding: 4rem 0;
}

.home-cta-band__inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.home-cta-band__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0;
}

.home-cta-band__sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

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

  .featured-card--large {
    grid-row: span 1;
  }

  .featured-card--large .featured-card__img {
    min-height: 280px;
  }

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

  .home-hero__content {
    margin-left: 0;
    padding: 4rem 1.5rem;
  }

  .home-stats__inner {
    gap: 1.25rem;
    flex-wrap: wrap;
  }
}

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

  .home-hero__title {
    font-size: 2.4rem;
  }

  .home-hero__actions {
    flex-direction: column;
  }

  .home-stats__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .home-stat__divider {
    display: none;
  }
}

/* Hero contour decoration. Stroked here rather than on the paths, because
   presentation attributes do not resolve custom properties. */
.home-hero__topo path {
  stroke: var(--ink);
}
