/* Custom styles for Olive On Main */

:root {
  --cream-50: #faf8f5;
  --cream-100: #f5f0e8;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream-50);
}

/* Tailwind custom colors */
.bg-cream-50 {
  background-color: var(--cream-50);
}

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

/* Mobile menu transitions */
#mobile-menu {
  transition: transform 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream-50);
}
::-webkit-scrollbar-thumb {
  background: #1a2744;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c9972e;
}

/* Scroll reveal base state — visible by default for accessibility */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
}

#navbar.scrolled .font-serif {
  color: #1a2744 !important;
}

#navbar.scrolled a:not(.bg-navy-800):not(.text-gold-400) {
  color: #1a2744 !important;
}

/* Select dropdown styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a2744' 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: 40px;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d4a843;
  outline-offset: 2px;
}
</style>
