/* ============================================
   Aloha Keiki Provisions Company
   Premium Dark Luxury — Emerald & Cream
   ============================================ */

*, *::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;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #060a12;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 83, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 168, 83, 0.5);
}

/* Selection */
::selection {
  background: rgba(212, 168, 83, 0.3);
  color: #fefdf8;
}

/* ============================================
   Hero Orbs
   ============================================ */
.hero-orb {
  pointer-events: none;
}

.hero-orb--1 {
  background: radial-gradient(circle, #047857 0%, transparent 70%);
}

.hero-orb--2 {
  background: radial-gradient(circle, #065f46 0%, transparent 70%);
}

.hero-orb--3 {
  background: radial-gradient(circle, #d4a853 0%, transparent 70%);
}

/* ============================================
   Scroll Dot Animation
   ============================================ */
.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { top: 0; opacity: 1; }
  50% { top: 16px; opacity: 0.3; }
}

/* ============================================
   Bounce Slow (map pin)
   ============================================ */
@keyframes bounceSlow {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}

.animate-bounce-slow {
  animation: bounceSlow 2s ease-in-out infinite;
}

/* ============================================
   Scroll Reveal Animations
   (progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }

  /* Default visible state for all reveal elements */
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}

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

#mobileMenu:not(.open) {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  display: block;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================
   Navbar scrolled state
   ============================================ */
#navbar.scrolled {
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 83, 0.08);
}

#navbar.scrolled .menu-line {
  background: #fefdf8;
}

/* ============================================
   Menu line animation (hamburger → X)
   ============================================ */
#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 5px;
}

/* ============================================
   Focus styles for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(212, 168, 83, 0.6);
  outline-offset: 2px;
}

/* ============================================
   Image optimization
   ============================================ */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
  nav, #contactForm, .hero-orb, [class*="hero-orb"] {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
}
