/* Custom styles for Magic Smoke Shops And Cigars */

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #9bb5d0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7196bc;
}

/* Selection color */
::selection {
  background: #4fd1c5;
  color: #0d1b2a;
}

/* Smooth image rendering */
img {
  -webkit-font-smoothing: antialiased;
  image-rendering: -webkit-optimize-contrast;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #4fd1c5;
  outline-offset: 2px;
}

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

/* Scroll reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  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;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
  .reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
  .reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
  .reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06);
}

/* Active nav link */
.nav-link-active {
  color: #1a9e94 !important;
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* Subtle pattern for hero background */
.hero-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(79, 209, 197, 0.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(13, 27, 42, 0.02) 0%, transparent 50%);
}

/* Card hover lift */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
}
