/* ==================================================================
   Beauty Maven — Custom Styles
   Tailwind (CDN, no build step) handles utility classes in index.php.
   This file holds: fonts, custom animations, and small pieces of UI
   Tailwind's utility classes can't express on their own.

   Palette sourced from the Beauty Maven logo: deep near-black with a
   vivid cyan accent (plus a violet secondary for ambient depth).
   ================================================================== */

:root {
  --color-cream: #f5f1ea;
  --color-charcoal: #0f1215;
  --color-charcoal-2: #171b1f;
  --color-accent: #00b6f6;
  --color-accent-light: #7fe3ff;
  --color-violet: #7c6ff0;
  --color-whatsapp: #25d366;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  background-color: var(--color-charcoal);
  color: var(--color-cream);
}

.font-serif {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--color-accent);
  color: var(--color-charcoal);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-charcoal);
}
::-webkit-scrollbar-thumb {
  background: #2a3238;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ---------- Focus visibility (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Sticky nav ---------- */
#site-nav {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#site-nav.nav-scrolled {
  background-color: rgba(15, 18, 21, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Mobile menu ---------- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
#mobile-menu.is-open {
  max-height: 480px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------- Magnetic buttons ---------- */
.btn-magnetic {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Hero background float ---------- */
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-2%, 3%) rotate(2deg); }
}
.animate-float-slow {
  animation: floatSlow 12s ease-in-out infinite;
}

@keyframes floatSlower {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -2%) scale(1.05); }
}
.animate-float-slower {
  animation: floatSlower 16s ease-in-out infinite;
}

/* ---------- WhatsApp floating button pulse ---------- */
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.pulse-whatsapp {
  animation: pulseRing 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ---------- FAQ accordion ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.faq-item .faq-question .chev {
  transition: transform 0.35s ease;
}
.faq-item.is-open .faq-question .chev {
  transform: rotate(180deg);
}

/* ---------- Underline hover for text links ---------- */
.link-underline {
  position: relative;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.link-underline:hover::after {
  width: 100%;
}

/* ---------- Star rating ---------- */
.stars {
  color: var(--color-accent-light);
  letter-spacing: 2px;
}

/* ---------- Divider glow ---------- */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.5;
}

/* ---------- Image overlay helper (for photo sections needing text contrast) ---------- */
.photo-overlay {
  background: linear-gradient(180deg, rgba(15, 18, 21, 0.2) 0%, rgba(15, 18, 21, 0.85) 100%);
}
