/* ============================================
   SPINE ALIGN CHIROPRACTIC — CUSTOM STYLES
   ============================================ */

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
  background: #9fb3c8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #627d98;
}

/* Navigation transitions */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4900a;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-link {
  border-bottom: 1px solid #d9e2ec;
  padding-bottom: 0.5rem;
}
.mobile-link:last-child {
  border-bottom: none;
}

/* Scroll reveal animations — progressive enhancement only */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  .reveal:nth-child(5) { transition-delay: 0.4s; }
  .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Service cards */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #102a43, #d4900a);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover::before {
  opacity: 1;
}

/* FAQ */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-content.open {
  max-height: 300px;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}
.nav-scrolled .nav-text {
  color: #102a43 !important;
}
.nav-scrolled .nav-text-secondary {
  color: #486581 !important;
}
.nav-scrolled .nav-link {
  color: #334e68 !important;
}

/* Smooth focus outlines */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Selection color */
::selection {
  background: #f6d78a;
  color: #102a43;
}

/* Map styling */
iframe {
  filter: saturate(0.8) contrast(1.05);
  transition: filter 0.3s ease;
}
iframe:hover {
  filter: saturate(1) contrast(1);
}

/* Accessibility: focus visible */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #d4900a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print styles */
@media print {
  nav, #hero, #testimonials, #faq, #contact {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
