/* ============================================
   Velasquez Bar — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
}

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

::selection {
  background-color: #14532d;
  color: #fef9c3;
}

/* --- Navbar --- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding-top: 0;
}

.nav-fixed.scrolled {
  background-color: rgba(254, 249, 195, 0.97);
  box-shadow: 0 1px 20px rgba(20, 83, 45, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
}

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

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

/* --- Hero --- */
.hero-bg {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(20, 83, 45, 0.88) 0%,
    rgba(22, 101, 52, 0.82) 40%,
    rgba(13, 55, 29, 0.88) 100%
  );
}

/* --- CTA Buttons --- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef9c3;
  color: #14532d;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-primary:hover {
  background: #fefce8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fef9c3;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1.5px solid rgba(254, 249, 195, 0.4);
  text-decoration: none;
  transition: all 0.25s ease;
}

.cta-secondary:hover {
  border-color: rgba(254, 249, 195, 0.8);
  background: rgba(254, 249, 195, 0.08);
  transform: translateY(-2px);
}

/* --- Scroll Reveal Animations --- */
.reveal-up,
.reveal-left {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(0);
}

/* Progressive enhancement: animate on scroll when JS is available */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up.animate {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-left.animate {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Default visible state for no-JS fallback */
.reveal-up,
.reveal-left {
  opacity: 1;
  transform: none;
}

/* --- Photo Scroll Strip --- */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
  max-height: 400px;
}

.mobile-nav-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(20, 83, 45, 0.08);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* --- Card Hover Effects --- */
.card-emerald {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .card-emerald.animate {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #14532d;
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(20, 83, 45, 0.85) 0%,
      rgba(13, 55, 29, 0.92) 100%
    );
  }
}

/* --- Print Styles --- */
@media print {
  .nav-fixed,
  .animate-scroll,
  #hero {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
