/* ============================================
   Rocky Point General Store — Custom Styles
   Premium Dark Luxury | Terracotta + Sand
   ============================================ */

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

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

body {
  background-color: #0e0c09;
  color: #f5efe6;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Typography */
.font-playfair {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0e0c09;
}
::-webkit-scrollbar-thumb {
  background: #c8956c40;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c8956c60;
}

/* Selection */
::selection {
  background: #c8956c40;
  color: #f5efe6;
}

/* ============================================
   Navigation
   ============================================ */
#nav {
  background: transparent;
}

#nav.scrolled {
  background: rgba(14, 12, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 149, 108, 0.1);
}

.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #c8956c !important;
}

/* Mobile Menu Button */
.menu-line {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

#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: 6px;
  transform: rotate(-45deg) translate(4px, -4px);
  margin: 0;
}

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

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

.mobile-link:hover {
  letter-spacing: 0.15em;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-tag {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-line {
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 0.45s; }
.hero-line:nth-child(3) { animation-delay: 0.6s; }

.hero-sub {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}

.hero-btn-primary {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
  opacity: 0;
}

.hero-btn-secondary {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
  opacity: 0;
}

.hero-stats {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.hero-img {
  animation: zoomIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   About Section
   ============================================ */
.about-images {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-images.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:nth-child(1) { transition-delay: 0.05s; }
.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.15s; }
.product-card:nth-child(4) { transition-delay: 0.2s; }
.product-card:nth-child(5) { transition-delay: 0.25s; }
.product-card:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   Section Reveals
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Gold Accent Animations
   ============================================ */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-shimmer {
  background: linear-gradient(90deg, #c8956c, #e8c4a0, #c8956c);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ============================================
   Cursor Glow (subtle)
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 149, 108, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ============================================
   Parallax-like slow scroll elements
   ============================================ */
.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.float-slower {
  animation: floatSlow 8s ease-in-out infinite reverse;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   Utility
   ============================================ */
.text-balance {
  text-wrap: balance;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  .hero-tag {
    font-size: 0.7rem;
  }

  h1 {
    font-size: 2.8rem !important;
    line-height: 1.05 !important;
  }

  @media (min-width: 768px) {
    h1 {
      font-size: 3.5rem !important;
    }
  }

  @media (min-width: 1024px) {
    h1 {
      font-size: 4.5rem !important;
    }
  }
}

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

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
