/* ========================================
   Gaby's Drink Bar — Custom Styles
   Classic & Elegant · Midnight Blue + Mint
   ======================================== */

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

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(107, 179, 146, 0.2);
  color: #0a1628;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 213, 194, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 213, 194, 0.5);
}

/* ---- Scroll Animations (Progressive Enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal[data-reveal="left"] {
    transform: translateX(-24px);
  }

  .reveal[data-reveal="right"] {
    transform: translateX(24px);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ---- Scroll Dot Animation ---- */
@keyframes scrollDot {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 16px); opacity: 0; }
}

.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

/* ---- Mobile Menu Transitions ---- */
.menu-line {
  display: block;
}

#mobile-menu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}

/* ---- Header Scroll State ---- */
#site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---- Link Hover Effects ---- */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

/* ---- Input Autofill Styling ---- */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #faf7f0 inset !important;
  box-shadow: 0 0 0 30px #faf7f0 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ---- Image Hover Wrapper ---- */
.rounded-sm img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ---- Print Styles ---- */
@media print {
  #site-header,
  #mobile-menu,
  .scroll-dot {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
