/* =========================================================
   Ellavon Beauty Studio — Site styles
   Tailwind handles utilities; this file holds bespoke pieces:
   custom animations, third-party tweaks, and components that
   are awkward to express in pure utility classes.
   ========================================================= */

/* ---------- Base typography ---------- */
body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: #ffffff;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ---------- Smooth scroll & focus ---------- */
html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; border-radius: 6px; }

/* ---------- Generic transitions ---------- */
.smooth-hover { transition: all 0.3s ease; }

/* ---------- Colorful image effect (kontras dengan tema monochrome) ---------- */
.colorful-image {
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.6s ease, transform 0.6s ease;
}
.colorful-image:hover {
  filter: grayscale(0%);
}

/* ---------- Glassy navbar ---------- */
.nav-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}
#navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.08);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Floating WhatsApp button ---------- */
.floating-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.floating-wa__btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #0a0a0a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, background 0.3s ease;
}
.floating-wa:hover .floating-wa__btn {
  transform: scale(1.08);
  background: #1f2937;
}
.floating-wa__pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(0.85); opacity: 0.6; }
  70%  { transform: scale(1.6);  opacity: 0;   }
  100% { transform: scale(1.6);  opacity: 0;   }
}
.floating-wa__tip {
  position: absolute;
  right: 70px;
  background: #0a0a0a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.floating-wa:hover .floating-wa__tip {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Selection ---------- */
::selection { background: #0a0a0a; color: #fff; }

/* ---------- Reduced motion friendly ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating-wa__pulse { animation: none; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ---------- Mobile WhatsApp button ---------- */
@media (max-width: 640px) {
  .floating-wa__tip { display: none; }
  .floating-wa { bottom: 1rem !important; right: 1rem !important; }
}
