/* ========================================
   Custom Styles for Boston Risk Group
   ======================================== */

/* --- Font & Base --- */
:root {
  --font: 'Inter', sans-serif;
}

body,
* {
  font-family: var(--font);
}

body {
  background-color: #0d1117;
  font-family: 'Inter', sans-serif;
  /* Base styles for page transitions */
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

/* Class to apply when a page is navigating away */
body.is-exiting {
  opacity: 0;
}

/* --- Spacing Utilities --- */
.mx-auto {
  margin-inline: auto;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.section-pad {
  padding-block: 3rem 4rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-block: 5rem 6rem;
  }
}

/* --- Video Hero Component --- */
.video-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 50vh;
}

@media (min-width: 768px) {
    .video-hero {
        min-height: 60vh;
    }
}

.video-hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.video-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(13, 17, 23, 0.8); /* Corresponds to bg-gray-900 with more opacity */
    z-index: 1;
}

.video-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0; /* Start hidden */
}


/* --- Scroll-triggered Header --- */
.header-scrolled {
  background-color: rgba(17, 24, 39, 0.8); /* bg-gray-900 with opacity */
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- Section Observer Animations --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}