/* Nortons Brew — Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background: #fce3e3;
  color: #6b2121;
}

/* Nav transition states */
nav.scrolled {
  background: rgba(250, 248, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Mobile menu */
.mobile-link {
  position: relative;
}

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

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

/* Menu open state */
body.menu-open {
  overflow: hidden;
}

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

#mobile-menu.menu-open #menu-icon {
  transform: rotate(90deg);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #b83434;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle image hover */
img {
  transition: transform 0.6s ease;
}

/* Form transitions */
input,
textarea {
  transition: border-color 0.3s ease;
}

/* Reduce 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) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .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; }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
  .reveal {
    transform: translateY(32px);
  }
}
