/* ============================================
   Flower Barn — Custom Styles
   ============================================ */

/* Base & Smooth Scrolling */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Selection Color */
::selection {
  background-color: #0d9488;
  color: white;
}

/* ============================================
   Navigation
   ============================================ */
#nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ============================================
   Hero Background Text Animation
   ============================================ */
.hero-bg-text {
  animation: drift 20s ease-in-out infinite;
  will-change: transform;
}

@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5vw); }
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal[data-delay="1"] { transition-delay: 0.1s; }
  .reveal[data-delay="2"] { transition-delay: 0.2s; }
  .reveal[data-delay="3"] { transition-delay: 0.3s; }
  .reveal[data-delay="4"] { transition-delay: 0.4s; }
}

/* For environments where JS doesn't run — content is already visible */
/* JS adds .revealed class for the animation trigger */

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

.mobile-link {
  transition: opacity 0.3s ease;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
  .hero-bg-text {
    font-size: 28vw;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-bg-text {
    font-size: 22vw;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  #nav,
  #mobile-menu,
  .hero-bg-text {
    display: none;
  }

  body {
    color: #0f172a;
    background: white;
  }

  a {
    color: #0d9488;
  }
}
