/* ============================================
   Cavalier Chiropractic — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1B2A4A;
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --- Navigation --- */
.site-header {
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 42, 74, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(27, 42, 74, 0.08);
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  color: #1B2A4A;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: #D4A84B;
  background: rgba(212, 168, 75, 0.06);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #D4A84B;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* --- Buttons --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #D4A84B 0%, #B8922E 100%);
  color: #1B2A4A;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 168, 75, 0.3);
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 75, 0.4);
  background: linear-gradient(135deg, #E0B85C 0%, #C8A038 100%);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  background: #1B2A4A;
  color: #D4A84B;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-navy:hover {
  background: #253E82;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 42, 74, 0.3);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  background: white;
  color: #1B2A4A;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* --- Hero --- */
.hero-section {
  position: relative;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: #D4A84B;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: #5770C2;
  bottom: -50px;
  left: 10%;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: #D4A84B;
  top: 40%;
  left: 30%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Floating Cards */
.floating-card {
  animation: floatCard 6s ease-in-out infinite;
}

.card-main {
  animation-delay: 0s;
}

.card-secondary {
  animation-delay: -2s;
}

.card-accent {
  animation-delay: -4s;
}

.card-info {
  animation-delay: -1s;
}

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

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

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

/* --- Mobile Menu --- */
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #1B2A4A;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.hamburger-line:nth-child(1) { top: 8px; }
.hamburger-line:nth-child(2) { top: 15px; }
.hamburger-line:nth-child(3) { top: 22px; }

#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  top: 15px;
  transform: translateX(-50%) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  top: 15px;
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  color: #1B2A4A;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
  background: rgba(212, 168, 75, 0.08);
  color: #B8922E;
}

/* --- Service Cards --- */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Approach Cards --- */
.approach-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.approach-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.faq-item:hover {
  border-color: rgba(212, 168, 75, 0.3);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-content.open {
  max-height: 200px;
}

.faq-content p {
  padding-top: 0.5rem;
}

/* --- Input Fields --- */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #1B2A4A;
  background: #FDFCFA;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.input-field::placeholder {
  color: #9CA3AF;
}

.input-field:hover {
  border-color: #D4A84B;
  background: white;
}

.input-field:focus {
  border-color: #D4A84B;
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
  background: white;
}

select.input-field {
  appearance: none;
  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='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .font-serif {
    font-size: 1.75rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .font-serif {
    font-size: 2rem !important;
  }
}
