/* ============================================
   Lone Star CBD Dispensary — Custom Styles
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #102a43;
}
::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e4b340;
}

/* Selection */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #102a43;
}

/* Navbar */
.nav {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.nav.scrolled {
  background: rgba(10, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile Menu */
.mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-link {
  position: relative;
  padding-left: 0;
}

.mobile-menu-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: #c9a84c;
  transition: width 0.3s ease;
}

.mobile-menu-link:hover::before {
  width: 16px;
}

/* Hero Shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: #c9a84c;
  top: -200px;
  right: -100px;
  animation: float1 20s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #c9a84c;
  bottom: -100px;
  left: -100px;
  animation: float2 15s ease-in-out infinite;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: #c9a84c;
  top: 40%;
  right: 10%;
  animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(40px, -40px) rotate(10deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Reveal Animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }

/* Product Cards */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a84c, #e4b340, #c9a84c);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover::before {
  opacity: 1;
}

/* Button Hover Effects */
a:hover {
  transition: all 0.3s ease;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 4px;
  border-radius: 4px;
}

/* 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;
  }
}

/* Large Screens */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 80rem;
  }
}

/* Small Screens */
@media (max-width: 360px) {
  .font-display.text-5xl {
    font-size: 2rem;
  }
}
