/* Saris Golden Hearts Daycare — custom styles layered on top of Tailwind CDN */

:root {
  --gold: #ECA413;
  --green: #509567;
  --cream: #F8F6F1;
  --ink: #2A2622;
  --muted: #7C736A;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background-color: var(--cream);
}

h1, h2, h3, h4, .font-heading {
  font-family: "Nunito", sans-serif;
}

/* Hero / section background images with readable overlay */
.bg-hero {
  background-image: linear-gradient(rgba(248, 246, 241, 0.78), rgba(248, 246, 241, 0.92)), url("../images/hero-children.jpg");
  background-size: cover;
  background-position: center;
}

.bg-testimonials {
  background-image: linear-gradient(rgba(248, 246, 241, 0.90), rgba(248, 246, 241, 0.94)), url("../images/testimonials-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Sticky mobile call button */
.sticky-call {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: 9999px;
  background-color: var(--green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(42, 38, 34, 0.25);
}

@media (min-width: 768px) {
  .sticky-call { display: none; }
}

/* Card hover lift */
.card-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(42, 38, 34, 0.12);
}

/* Simple fade-in for form confirmation messages */
.fade-in {
  animation: fadeIn 0.3s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-in reveal (only active when JS adds .js-reveal — no-JS keeps content visible) */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal { opacity: 0; transform: translateY(20px); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .reveal.delay-1 { transition-delay: 0.08s; }
.js-reveal .reveal.delay-2 { transition-delay: 0.16s; }
.js-reveal .reveal.delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* Icon chip */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* FAQ accordion (native <details>) */
details.faq {
  border: 1px solid rgba(42, 38, 34, 0.08);
  border-radius: 0.85rem;
  background: #fff;
  overflow: hidden;
}
details.faq + details.faq { margin-top: 0.75rem; }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq .faq-body {
  padding: 0 1.25rem 1.2rem;
  color: rgba(42, 38, 34, 0.78);
}
.faq-chevron { transition: transform 0.25s ease; flex-shrink: 0; }
details.faq[open] .faq-chevron { transform: rotate(180deg); }

/* Decorative divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.divider span {
  height: 1px;
  width: 3rem;
  background: rgba(236, 164, 19, 0.45);
}
