/* ============================================================
   HOME.CSS — Homepage-specific styles
   Home Cleaning Centers of Indiana
   ============================================================ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
  padding-top: 40px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,64,35,0.88) 0%,
    rgba(27,107,58,0.75) 40%,
    rgba(15,64,35,0.70) 100%
  );
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: var(--space-12);
  padding-bottom: var(--space-20);
}

.hero__content {
  max-width: 780px;
}

.hero__eyebrow {
  margin-bottom: var(--space-6);
}

.hero__headline {
  font-size: var(--text-6xl);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__sub {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  max-width: 640px;
}

.hero__sub strong {
  color: var(--accent);
  font-weight: 700;
}

.hero__badges {
  margin-bottom: var(--space-8);
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 3;
}

/* ── Stats Section ── */
.stats-section {
  position: relative;
  padding-block: var(--space-20);
  overflow: hidden;
}

.stats-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stats-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stats-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,64,35,0.92) 0%, rgba(27,107,58,0.85) 100%);
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stats-section .grid-4 {
  gap: var(--space-6);
}

/* ── About Image ── */
.about-image {
  position: relative;
}

.about-image__frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.about-image__frame::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 3px solid var(--primary-light);
  border-radius: var(--radius-xl);
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.about-image__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-xl);
  text-align: center;
  z-index: 2;
}

.about-image__badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.about-image__badge-text {
  display: block;
  font-size: var(--text-xs);
  color: var(--neutral-mid);
  font-weight: 500;
  margin-top: 4px;
  white-space: nowrap;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* ── CTA Section ── */
.cta-section {
  position: relative;
  padding-block: var(--space-24);
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  z-index: 0;
}

.cta-section__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.cta-section__inner > div:first-child {
  flex: 1;
  min-width: 300px;
}

.cta-section__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* ── Quote Section Grid ── */
.quote-section-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-12);
  align-items: start;
}

.quote-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--neutral-200);
}

/* ── Visually Hidden ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .quote-section-grid {
    grid-template-columns: 1fr;
  }
  .cta-section__inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-section__actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    padding-top: 0;
  }

  .hero__headline { font-size: var(--text-4xl); }
  .hero__sub { font-size: var(--text-base); }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__badges { justify-content: flex-start; }

  .about-image__badge { bottom: -12px; right: -12px; }
  .about-image__frame::before { display: none; }

  .cta-section__actions { flex-direction: column; width: 100%; }
  .cta-section__actions .btn { width: 100%; justify-content: center; }

  .quote-form-wrapper { padding: var(--space-6); }
}

@media (max-width: 480px) {
  .hero__headline { font-size: var(--text-3xl); }
  .stats-section .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
