/* Custom styles for Magnolias Tailoring and Alterations */

/* Selection color */
::selection {
  background: rgba(196, 144, 48, 0.3);
  color: #f2f7f0;
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid #d4a84b;
  outline-offset: 2px;
}

/* Navbar glass effect */
.navbar-scrolled {
  background: rgba(10, 14, 9, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(55, 79, 37, 0.3);
}

/* Mobile menu open state */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Mobile menu links animation */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
.menu-btn-active #bar1 {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn-active #bar2 {
  opacity: 0;
}
.menu-btn-active #bar3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* Subtle pattern overlay for sections */
section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 168, 75, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Image hover overlay */
.group:hover .hover-overlay {
  opacity: 1;
}

/* Gold border glow on focus for inputs */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 1px rgba(212, 168, 75, 0.2);
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Prevent layout shift on select */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a3c288' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Print styles */
@media print {
  header, footer, #contactForm, #successMessage { display: none; }
  body { background: white; color: black; }
  section { page-break-inside: avoid; }
}
