/* ============================================
   Twelve the Beau Monde Boutique — Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(56, 161, 125, 0.3);
  color: #f0f3f9;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d131c;
}
::-webkit-scrollbar-thumb {
  background: #2c3d56;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d5272;
}

/* --- Divider Line --- */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 161, 125, 0.3), transparent);
}

/* --- Scroll Line Animation --- */
@keyframes scroll-line {
  0% { top: -16px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.scroll-line {
  animation: scroll-line 2s ease-in-out infinite;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal[data-delay="100"] { transition-delay: 100ms; }
  .reveal[data-delay="200"] { transition-delay: 200ms; }
  .reveal[data-delay="300"] { transition-delay: 300ms; }
}

/* --- Hero Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-text {
    opacity: 0;
    transform: translateX(-30px);
    animation: heroSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  }
  .hero-image {
    opacity: 0;
    transform: translateX(30px);
    animation: heroSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  }
  @keyframes heroSlideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* --- Navbar Scroll State --- */
#navbar.scrolled {
  background: rgba(7, 10, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(44, 61, 86, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Mobile Menu --- */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* --- Form Inputs --- */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.form-input:focus {
  border-color: #5bbf9a;
  box-shadow: 0 0 0 3px rgba(91, 191, 154, 0.15);
  background-color: rgba(21, 31, 46, 0.8);
}
.form-input::placeholder {
  color: #5e6f94;
}

/* --- Card Hover --- */
.card-group {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-group:hover {
  transform: translateY(-6px);
}

/* --- Nav Link Underline --- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #5bbf9a;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Nav Link --- */
.mobile-nav-link {
  position: relative;
}

/* --- Button Ripple (subtle) --- */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid #5bbf9a;
  outline-offset: 2px;
}

/* --- Responsive tweaks --- */
@media (max-width: 767px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
}
