/* Custom styles for Clausen's Boat House */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Ensure content is visible by default for accessibility */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-text-color {
  color: #1a2f45;
}

.nav-scrolled .nav-link {
  color: #1a2f45;
}

/* Mobile menu active state */
.mobile-nav-link {
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4a843;
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
  width: 100%;
}

/* Custom select arrow */
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='%236b7280' 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 1rem center;
  padding-right: 2.5rem;
}

/* Subtle hover effects on cards */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #d4a843;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #d4a843;
  color: #1a2f45;
}

/* Remove default focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
  background: #9fb3c8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #627d98;
}

/* Hero text shadow for readability */
#hero h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Floating card animation */
@media (prefers-reduced-motion: no-preference) {
  .absolute.-bottom-6.-left-6 {
    animation: float 3s ease-in-out infinite;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Image hover zoom */
.rounded-3xl.overflow-hidden img {
  transition: transform 0.5s ease;
}

.rounded-3xl.overflow-hidden:hover img {
  transform: scale(1.03);
}

/* Ensure all links are clickable */
a {
  cursor: pointer;
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.2;
  }
}

/* Print styles */
@media print {
  nav, #contact-form, .scroll-reveal {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
