/* Custom overrides and enhancements */

/* Smooth focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #9333ea;
  color: #fff;
}

/* Ensure hero is always visible — no JS gating */
#hero {
  opacity: 1;
}

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

/* Print styles */
@media print {
  header, footer, #contact-form, #form-success { display: none; }
  body { color: #000; background: #fff; }
  .serif { font-family: Georgia, serif; }
}

/* Ensure images load without layout shift */
img {
  max-width: 100%;
  height: auto;
}

/* Subtle grain texture on dark sections */
.bg-plum-950::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Button ripple effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}
