/* Custom styles that complement Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Subtle image hover zoom */
img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Selection color */
::selection {
  background: #d4a853;
  color: #0a1628;
}

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

/* Subtle pattern for cream sections */
.bg-cream::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(10, 22, 40, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Mobile menu button animation */
.menu-line {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
}

/* Button ripple effect */
button, a {
  position: relative;
  overflow: visible;
}

/* Print styles */
@media print {
  header, footer, #contactForm, #successMsg {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
