/* Visée - Beauty Brand - Custom Styles */
/* Rose/blush palette for beauty niche */

body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Accent overrides - rose for beauty */
.bg-rose-100 { background-color: #ffe4e6; }
.bg-rose-200 { background-color: #fecdd3; }
.bg-rose-500 { background-color: #f43f5e; }
.bg-rose-600 { background-color: #e11d48; }
.text-rose-200 { color: #fecdd3; }
.text-rose-500 { color: #f43f5e; }
.text-rose-600 { color: #e11d48; }
.border-rose-500 { border-color: #f43f5e; }
.ring-rose-500 { --tw-ring-color: #f43f5e; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-up { animation: fadeUp 0.6s ease-out forwards; }
.animate-fade-up-delay { animation: fadeUp 0.6s ease-out 0.2s forwards; opacity: 0; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-pulse { animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#mobile-menu { transition: all 0.3s ease-in-out; }
#mobile-menu.open { display: block; }

/* Desktop nav: keep menu labels on one line (no vertical letter stacking) */
#header nav[class*="md:flex"] .nav-link,
#header nav[class*="md:flex"] .nav-dropdown .nav-link {
  white-space: nowrap;
}
#header nav[class*="md:flex"] {
  flex-wrap: nowrap;
}
#header .nav-dropdown {
  flex-shrink: 0;
}

/* ===== DESKTOP DROPDOWN: open only on hover, smooth UX ===== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  pointer-events: none;
  width: max-content;
  min-width: max-content;
  left: 0;
  writing-mode: horizontal-tb;
}
.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
  pointer-events: auto;
}
/* Chevron rotates when dropdown is open */
.nav-dropdown .nav-link svg {
  transition: transform 0.25s ease;
}
.nav-dropdown:hover .nav-link svg {
  transform: rotate(180deg);
}
/* Panel inner: bridge gap so hover doesn’t break between trigger and list */
.nav-dropdown-panel > div {
  margin-top: 0.25rem;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.12), 0 4px 12px -2px rgba(0,0,0,0.06);
  width: max-content;
  min-width: 12rem;
  writing-mode: horizontal-tb;
}
.nav-dropdown-panel a {
  display: block;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border-left: 3px solid transparent;
}
.nav-dropdown-panel a:hover {
  background-color: rgba(244, 63, 94, 0.06);
  border-left-color: #f43f5e;
}

/* Mobile accordion chevron */
.mobile-nav-group .mobile-nav-trigger svg { flex-shrink: 0; }
.mobile-nav-group.is-open .mobile-nav-trigger svg { transform: rotate(180deg); }
.mobile-nav-group .mobile-nav-items { overflow: hidden; }
.mobile-nav-group.is-open .mobile-nav-items { display: block !important; }

/* Current page in nav (set by script from pathname) */
header .nav-link.nav-current,
header .nav-dropdown.nav-current .nav-link { color: #e11d48; }
header .nav-dropdown-panel a.nav-current { background-color: #fff1f2; color: #e11d48; font-weight: 600; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f5f5f4; }
::-webkit-scrollbar-thumb { background: #a8a29e; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #78716c; }

button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid #f43f5e;
    outline-offset: 2px;
}

input::placeholder { color: #a8a29e; }
input:focus { outline: none; }

.testimonial-dot { width: 8px; height: 8px; border-radius: 9999px; background-color: #d6d3d1; transition: background-color 0.3s; cursor: pointer; }
.testimonial-dot.active { background-color: #f43f5e; }

#testimonial-carousel { position: relative; }
#testimonial-track { display: flex; transition: transform 0.3s ease; }
#testimonial-track > div { flex: 0 0 100%; padding: 0 1rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

::selection { background-color: #f43f5e; color: white; }
::-moz-selection { background-color: #f43f5e; color: white; }
