/* Custom styles that extend Tailwind */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #500724;
  color: #fde68a;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s;
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #d97706;
  transition: width 0.25s ease;
  margin-top: 2px;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu transitions */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobile-menu.open {
  max-height: 500px;
}

/* Smooth image loading */
img {
  background-color: #fce7f3;
}

/* Selection color */
::selection {
  background-color: #fce7f3;
  color: #500724;
}

/* Subtle pattern overlay for hero */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(253, 230, 180, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

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

/* Card hover glow effect */
.card-hover {
  position: relative;
}
.card-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  box-shadow: inset 0 1px 0 rgba(253, 230, 180, 0.3);
  pointer-events: none;
}
.card-hover:hover::after {
  opacity: 1;
}

/* Decorative dot pattern for sections */
.dot-pattern {
  background-image: radial-gradient(circle, #fce7f3 1px, transparent 1px);
  background-size: 24px 24px;
}
