/* =========================
   index.css (mobile-first)
   Ordered media queries: min-width ascending
   ========================= */

:root {
  --accent: #b2186d;
  --accent-strong: #962f5d;
  --muted-bg: rgb(252, 233, 244);
  --content-max: 1100px;
}

/* ------------------------------ Base / Mobile ------------------------------ */
.get-help-btn {
  padding: 0;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  width: 96px;
  height: 40px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.get-help-btn:hover,
.get-help-btn:focus {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(178, 24, 109, 0.16);
}

.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
}

.hero-background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeCycle 21s infinite ease-in-out;
  animation-fill-mode: both;
}

/* Stagger each image so they phase across the timeline (21s total, 7 images => 3s offsets) */
.hero-background img:nth-child(1) { animation-delay: 0s; }
.hero-background img:nth-child(2) { animation-delay: 3s; }
.hero-background img:nth-child(3) { animation-delay: 6s; }
.hero-background img:nth-child(4) { animation-delay: 9s; }
.hero-background img:nth-child(5) { animation-delay: 12s; }
.hero-background img:nth-child(6) { animation-delay: 15s; }
.hero-background img:nth-child(7) { animation-delay: 18s; }

@keyframes fadeCycle {
  /* Each image will be visible for a window that overlaps the next image.
     21s / 7 images ≈ 3s per image slot; we set visible window to 25% of the
     animation so there are no gaps between fades. */
  0% { opacity: 0; }
  5% { opacity: 1; }
  30% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-background img { animation: none !important; opacity: 1 !important; }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  margin: 2rem 0 0.8rem;
  font-weight: 600;
  color: white;
}

.hero-accent { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(0.95rem, 3.2vw, 1.1rem);
  margin-bottom: 1.25rem;
  font-weight: 300;
  color: white;
}

.hero-buttons { margin-bottom: 1.25rem; }

.hero-stats {
    max-width: var(--content-max);
    max-width: var(--content-max);
    display: grid;
    padding: 1rem;
    gap: 1rem;
}

.stat-card {
  display: grid;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--muted-bg);
  border-radius: 24px;
  padding: 0.75rem 1rem;
  text-align: center;
  width: 100%;
  min-width: 150px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: inset 0 2px 6px rgba(43,1,65,0.06), 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover { transform: translateY(-6px); }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #2e2c42;
  margin-bottom: 6px;
}

.stat-label { font-size: 0.95rem; font-weight: 600; color: #111; }

/* Modal base */
#modal-container {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 1rem;
}

.modal-body {
  background-color: #fff;
  margin: auto;
  padding: 1rem;
  min-width: 200px;
  max-width: 340px;
  width: 100%;
  border-radius: 8px;
  text-align: center;
}

.modal-body h4 { margin: 0 0 0.5rem; color: #000; font-weight: 600; font-size: 1.5rem;}
.contact-list { color: #000; }

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

a[href^="tel:"] { color: var(--accent); font-weight: 700; text-decoration: none; }
a[href^="tel:"]:hover { color: var(--accent-strong); text-decoration: underline; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-background img { animation: none !important; opacity: 1 !important; }
}

@media (max-width: 480px) {
.stat-card {
  width: 100%;
  width: 180px;
}

.stat-number {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.modal-body {
  padding: 1rem;
  width: 270px;
}
}

@media (min-width: 735px) {
.hero-stats {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.75rem;
}

.stat-card {
  width: 100%;
  width: 200px;
}

.stat-number {
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.modal-body {
  padding: 1rem;
  width: 350px;
}
}

@media (min-width: 756px) {
.hero-stats {
  display: flex;
  gap: 15px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.75rem;
}

.stat-card {
  width: 100%;
  width: 180px;
}

.stat-number {
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.modal-body {
  padding: 1rem;
  width: 350px;
}
}

@media (min-width: 1000px) {
  .hero-stats {
  display: flex;
  justify-content: space-around;
}

.stat-card {
  padding: 1rem;
    width: 100%;
  width: 200px;
}
}

