/* ============================================================
   Oasis Cleaning – main.css
   Complements Tailwind CDN with animations & custom utilities
   ============================================================ */

/* ── Animated Background Blobs ────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  mix-blend-mode: multiply;
  opacity: 0.4;
}
.blob-violet {
  top: -20%; left: -10%;
  width: 60vw; height: 60vw;
  background: #c4b5fd; /* violet-300 */
  animation: blobFloat1 20s ease-in-out infinite;
}
.blob-rose {
  top: 20%; right: -10%;
  width: 50vw; height: 50vw;
  background: #fda4af; /* rose-300 */
  animation: blobFloat2 25s ease-in-out infinite;
}
.blob-amber {
  bottom: -20%; left: 20%;
  width: 70vw; height: 70vw;
  background: #fde68a; /* amber-200 */
  animation: blobFloat3 15s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: scale(1)   rotate(0deg); }
  50%       { transform: scale(1.2) rotate(90deg); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: scale(1)   rotate(0deg); }
  50%       { transform: scale(1.3) rotate(-90deg); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: scale(1)   rotate(0deg); }
  50%       { transform: scale(1.1) rotate(45deg); }
}

/* ── Scroll Reveal Animations ─────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delayed {
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── Reveal Text (scroll-driven opacity) ───────────────────── */
.reveal-text {
  color: rgba(15, 23, 42, 0.15);
  transition: color 0s;
}
.reveal-text .word {
  display: inline-block;
  margin-right: 0.3em;
  transition: color 0.4s ease, opacity 0.4s ease;
  opacity: 0.15;
}
.reveal-text .word.is-lit {
  color: rgb(15, 23, 42);
  opacity: 1;
}

/* ── Navbar scroll shrink ─────────────────────────────────── */
#navbar.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ── Bento Card hover layer ───────────────────────────────── */
.bento-card {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.4s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.is-open .faq-answer {
  max-height: 500px;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* ── Parallax ─────────────────────────────────────────────── */
.parallax-img {
  will-change: transform;
}

/* ── Prose content (legal pages) ─────────────────────────── */
.prose-content p,
.space-y-10 p {
  line-height: 1.75;
  color: #475569; /* slate-600 */
}
.prose-content ul,
.space-y-10 ul {
  color: #475569;
  line-height: 1.75;
}

/* ── Form focus ring ─────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  outline: none;
}

/* ── Success/Error toast ─────────────────────────────────── */
#form-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  max-width: 24rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s;
}
#form-toast.show {
  transform: translateY(0);
  opacity: 1;
}
#form-toast.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
#form-toast.error {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fda4af;
}

/* ── Mobile menu placeholder ─────────────────────────────── */
@media (max-width: 767px) {
  .fade-up { transform: translateY(24px); }
}
