/* ============================================================
   Willow & Moss - Hero section
   ============================================================ */

#hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Full-width image placeholder */
.hero-image {
  width: 100%;
  min-height: 780px;
  background-color: var(--sage-hero);
  position: relative;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
}

/* Subtle brand-green tint over the hero photo */
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--green-deep);
  opacity: 0.22;
  pointer-events: none;
}

/* Badge + panel stack, anchored to the bottom-left of the hero photo */
.hero-overlay-stack {
  position: absolute;
  z-index: 1;
  bottom: var(--space-xl);
  left: var(--container-padding);
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-sm);
}

/* Google review badge */
.hero-google-badge {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--surface);
  border-radius: 4px;
  padding: 0.65rem 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.hero-google-badge:hover {
  transform: translateY(-2px);
}

.hero-image .hero-google-badge-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-google-badge-stars {
  color: #C9962A;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.hero-google-badge-score {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-deep);
}

.hero-google-badge-divider {
  color: var(--border, rgba(0, 0, 0, 0.2));
  font-size: 0.85rem;
}

.hero-google-badge-count {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
}

/* Content overlay panel */
.hero-panel {
  background-color: var(--surface);
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}

.hero-panel .eyebrow {
  margin-bottom: 0.85rem;
}

.hero-panel h1 {
  color: var(--green-deep);
  margin-bottom: var(--space-sm);
}

.hero-panel p {
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

/* Features bar, attached to the bottom of the hero image */
.hero-features-bar {
  background-color: var(--green-deep);
  padding: 0.85rem var(--container-padding);
  text-align: center;
}

.hero-features-bar p {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.9;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (min-width: 768px) {
  .hero-image {
    min-height: 780px;
  }

  .hero-overlay-stack {
    left: calc(var(--container-padding) + ((100% - var(--container-max)) / 2));
  }

  /* Clamp so the stack doesn't drift beyond container on wide screens */
  @supports (left: max(0px)) {
    .hero-overlay-stack {
      left: max(var(--container-padding), calc((100% - var(--container-max)) / 2 + var(--container-padding)));
    }
  }
}

@media (max-width: 767px) {
  .hero-image {
    min-height: 600px;
  }

  .hero-image svg {
    width: 140px;
    height: 140px;
  }

  .hero-overlay-stack {
    bottom: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
    width: auto;
    max-width: none;
    gap: var(--space-xs);
  }

  .hero-google-badge {
    padding: 0.55rem 0.75rem;
  }

  .hero-panel {
    padding: var(--space-sm) var(--space-md);
  }

  .hero-panel h1 {
    font-size: clamp(1.75rem, 8vw, 2.1rem);
    margin-bottom: 0.5rem;
  }

  .hero-panel p {
    margin-bottom: var(--space-sm);
  }

  .hero-features-bar {
    padding: 0.7rem var(--space-sm);
  }

  .hero-features-bar p {
    font-size: 0.65rem;
    line-height: 1.6;
  }
}
