/* ========================================
   Raff Distillerie — Custom Styles
   Premium Dark Luxury Theme
   ======================================== */

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 154, 30, 0.3);
  color: #f9edc8;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #040a14;
}
::-webkit-scrollbar-thumb {
  background: #1c355a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d49a1e;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: transparent;
}

#navbar.scrolled {
  background: rgba(4, 10, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 154, 30, 0.1);
}

/* Mobile menu */
.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Hamburger animation */
.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menuBtn.active .menu-line:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ========================================
   Hero Section
   ======================================== */
#hero {
  position: relative;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #040a14, transparent);
  pointer-events: none;
}

/* ========================================
   Section Dividers
   ======================================== */
section + section::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 154, 30, 0.3), transparent);
  margin: 0 auto;
}

/* ========================================
   Card Hover Effects
   ======================================== */
.group:hover .group-hover\:scale-x-100 {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
textarea:focus {
  background: rgba(15, 31, 54, 0.8);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   Gold Gradient Text Utility
   ======================================== */
.text-gold-gradient {
  background: linear-gradient(135deg, #e9be52 0%, #d49a1e 50%, #c48018 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Subtle Glow Effects
   ======================================== */
.glow-gold {
  box-shadow: 0 0 40px rgba(212, 154, 30, 0.15);
}

/* ========================================
   Animation Keyframes
   ======================================== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ========================================
   Scroll Reveal (Progressive Enhancement)
   Only applies when JS is available and
   user prefers motion
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Fallback: always visible if JS disabled */
@media not all and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Reduced motion: never animate */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  .floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
  }

  section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ========================================
   Focus Visible for Accessibility
   ======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d49a1e;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  body {
    background: white;
    color: black;
  }
  .no-print {
    display: none;
  }
}
