/* Custom overrides for Pain Management & MRI
   Tailwind handles most styling; use this file for site-specific tweaks. */

:root {
  --color-navy: #0b3a5c;
  --color-blue: #1565a8;
  --color-sky: #e8f3fb;
  --color-white: #ffffff;
  --color-slate: #5a6b7a;
}

/* Smooth scroll for in-page anchors */
html {
  scroll-behavior: smooth;
}

/* Offset sticky header when jumping to anchors */
[id] {
  scroll-margin-top: 6rem;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* Subtle entrance motion */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.7s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-fade-up,
  .group:hover img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Blog post body typography */
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  color: var(--color-navy);
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-content h2 { font-size: 1.5rem; }
.blog-content h3 { font-size: 1.25rem; }
.blog-content h4 { font-size: 1.1rem; }

.blog-content p {
  margin-bottom: 1rem;
}

.blog-content ol,
.blog-content ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.blog-content ol { list-style: decimal; }
.blog-content ul { list-style: disc; }

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
  border-radius: 0.75rem;
}

.blog-content strong {
  color: var(--color-navy);
}
