/* ============================================
   John Wilkin's Boat Dock — Custom Styles
   Premium Dark Luxury · Charcoal + Coral
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(255, 107, 74, 0.3);
  color: #F5F0EB;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0A0C0E;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 74, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 74, 0.5);
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(10, 12, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 200, 188, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #FF6B4A;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #FF6B4A;
}

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

#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

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

#menu-toggle.active .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: rotate(-45deg) translate(3px, -3px);
}

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

.mobile-link {
  position: relative;
}

/* ============================================
   Hero
   ============================================ */
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

.animate-scroll-indicator {
  animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  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.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

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

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

/* ============================================
   Form Styles
   ============================================ */
select option {
  background: #111316;
  color: #F5F0EB;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .reveal {
    transform: translateY(24px);
  }
}

/* ============================================
   Focus visible for accessibility
   ============================================ */
:focus-visible {
  outline: 2px solid rgba(255, 107, 74, 0.6);
  outline-offset: 2px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
  #navbar, #contact-form, button {
    display: none;
  }
  body {
    background: #fff;
    color: #111;
  }
}
