/* Custom styles — overrides and additions beyond Tailwind */

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

/* Nav glass effect */
#nav.scrolled {
  background: rgba(254, 252, 248, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Mobile menu link hover */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c93e1a;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

/* Hamburger animation */
#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  width: 1.375rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Image hover zoom wrapper */
.overflow-hidden img {
  display: block;
}

/* Subtle pattern on hero */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .overflow-hidden img { transition: none; }
  .overflow-hidden img:hover { transform: none; }
}
