/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* ===== Header States ===== */
#header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#header.header-scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 163, 36, 0.15);
}

/* ===== Nav Links - underline slide from left ===== */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #d4a324;
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after {
  width: 60%;
  left: 20%;
}
.nav-link:hover {
  color: #fff;
}

/* =============================================
   Button Slide Hover Effects
   Background slides in from left on hover,
   colors invert.
   ============================================= */

/* --- Gold Button (primary CTA) --- */
.btn-slide-gold {
  background: #d4a324;
  color: #0a1628;
  transition: color 0.4s ease;
}
.btn-slide-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f2244;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}
.btn-slide-gold:hover::before {
  transform: translateX(0);
}
.btn-slide-gold:hover {
  color: #d4a324;
}
.btn-slide-gold:hover .btn-slide-text {
  color: #d4a324;
}
.btn-slide-gold .btn-slide-text {
  color: #0a1628;
  transition: color 0.4s ease;
}

/* --- Outline Button (secondary CTA) --- */
.btn-slide-outline {
  background: transparent;
  color: #d4a324;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.btn-slide-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #d4a324;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}
.btn-slide-outline:hover::before {
  transform: translateX(0);
}
.btn-slide-outline:hover {
  color: #0a1628;
  border-color: #d4a324;
}
.btn-slide-outline:hover .btn-slide-text {
  color: #0a1628;
}
.btn-slide-outline .btn-slide-text {
  color: #d4a324;
  transition: color 0.4s ease;
}

/* --- Navy Button (form submit) --- */
.btn-slide-navy {
  background: #0f2244;
  color: #fff;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.btn-slide-navy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #d4a324;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}
.btn-slide-navy:hover::before {
  transform: translateX(0);
}
.btn-slide-navy:hover {
  color: #0a1628;
  border-color: #d4a324;
}
.btn-slide-navy:hover .btn-slide-text {
  color: #0a1628;
}
.btn-slide-navy:hover .btn-slide-text i {
  color: #0a1628;
}
.btn-slide-navy .btn-slide-text {
  color: #fff;
  transition: color 0.4s ease;
}

/* ===== FAQ Accordion ===== */
details summary {
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}

/* ===== Fade-in animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Form focus state ===== */
input:focus,
textarea:focus,
select:focus {
  border-color: #d4a324 !important;
  box-shadow: 0 0 0 3px rgba(212, 163, 36, 0.1) !important;
}

/* ===== Loading spinner ===== */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #d4a324;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Mobile menu ===== */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
#mobile-menu.open {
  display: block;
  max-height: 500px;
}

/* ===== Selection ===== */
::selection {
  background-color: rgba(212, 163, 36, 0.2);
  color: inherit;
}

/* ===== Hero video aspect fix ===== */
#hero video,
#footer video {
  object-fit: cover;
  min-height: 100%;
  min-width: 100%;
}

/* ===== Smooth scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 36, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 163, 36, 0.5);
}
