/* ============================================
   Capt. JED — Custom Styles
   Plum + Amber palette for Marco Island retail
   ============================================ */

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Selection */
::selection {
  background: #b06088;
  color: #faf5f8;
}

/* Smooth image rendering */
img {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Prevent jumpy scroll on anchor links */
@media (prefers-reduced-motion: no-preference) {
  scroll-behavior: smooth;
}

/* Mobile menu transitions are handled inline in HTML via classes */

/* Print styles */
@media print {
  nav, #hero, #gallery, .reveal {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card-lift:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (forced-colors: active) {
  .card-lift {
    border: 1px solid CanvasText;
  }
  button, a.btn-ripple {
    border: 1px solid CanvasText;
  }
}
