/* ============================================
   Imperial Beach Bub — Custom Styles
   ============================================ */

/* ---- Base & Utilities ---- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f3fa;
}
::-webkit-scrollbar-thumb {
  background: #b3c2e0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8da4d0;
}

/* ---- Navigation ---- */
.nav-header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(13, 34, 80, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile menu */
#mobileMenu {
  animation: slideDown 0.3s ease forwards;
}

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

.mobile-link {
  display: block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  color: #e5b024;
  padding-left: 8px;
}

/* ---- Buttons ---- */
.btn-gold {
  background: linear-gradient(135deg, #e9bc3e 0%, #e5b024 50%, #d99610 100%);
  color: #0d2250;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #efce6f 0%, #e9bc3e 50%, #e5b024 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 176, 36, 0.35);
  color: #0d2250;
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-light {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

/* ---- Badges & Labels ---- */
.label-gold {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b87608;
  background: linear-gradient(135deg, #faf0d0, #f5e0a0);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid #f5e0a0;
}

.label-light {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #efce6f;
  background: rgba(233, 188, 62, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(233, 188, 62, 0.3);
}

.badge-gold {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d2250;
  background: rgba(233, 188, 62, 0.9);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* ---- Service Cards ---- */
.card-service {
  opacity: 1;
}

/* ---- Input Fields ---- */
.input-field {
  border: 1.5px solid #d9e0f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #0d2250;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.input-field::placeholder {
  color: #8da4d0;
}

.input-field:hover {
  border-color: #b3c2e0;
}

.input-field:focus {
  border-color: #e5b024;
  box-shadow: 0 0 0 3px rgba(229, 176, 36, 0.15);
}

.input-field.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ---- FAQ ---- */
.faq-item {
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(13, 34, 80, 0.06);
}

.faq-content {
  animation: faqOpen 0.3s ease forwards;
}

@keyframes faqOpen {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

.faq-content.collapsing {
  animation: faqClose 0.25s ease forwards;
}

@keyframes faqClose {
  from {
    opacity: 1;
    max-height: 200px;
  }
  to {
    opacity: 0;
    max-height: 0;
  }
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Hero Badge Animation ---- */
.hero-badge {
  animation: badgeIn 0.8s ease forwards;
}

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

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .font-display {
    line-height: 1.15;
  }
}
