/* ============================================
   Shenandoah Valley Deer Hunters — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* --- Utility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #0d9488;
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 100;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --- Header --- */
.header {
  will-change: transform;
}

/* --- Hero --- */
.hero {
  position: relative;
}

.hero-bg {
  will-change: transform;
}

.hero-overlay {
  background-image: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.45) 50%,
    rgba(15, 23, 42, 0.85) 100%
  );
}

.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%2314b8a6' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* Hero entrance animations (above the fold — always visible) */
.hero-eyebrow {
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.hero-headline {
  animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
  animation: fadeSlideUp 0.8s ease-out 0.6s both;
}

.hero-ctas {
  animation: fadeSlideUp 0.8s ease-out 0.8s both;
}

.scroll-indicator {
  animation: fadeIn 0.8s ease-out 1.2s both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Scroll Indicator --- */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* --- Reveal Animations (below the fold only) --- */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 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; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Section Spacing --- */
.section {
  position: relative;
}

/* --- Reveal Tag --- */
.reveal-tag {
  display: inline-block;
}

/* --- Product Cards --- */
.product-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  border-color: rgba(20, 184, 166, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- CTA Buttons --- */
.cta-primary {
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.4);
}

.cta-secondary {
  transition: transform 0.2s ease;
}

.cta-secondary:hover {
  transform: translateY(-2px);
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  gap: 3rem;
}

/* --- Service Items --- */
.service-item {
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.service-item:hover {
  transform: translateX(4px);
}

/* --- Mobile Nav --- */
#mobile-nav {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* --- Footer --- */
.footer {
  position: relative;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .stats-row {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .stats-row {
    gap: 2rem;
  }
}

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

/* --- Selection --- */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f1f5f9;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
