/* Clinics Page Styles */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* Card Hover Effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(31, 57, 51, 0.12);
}

.stat-icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-item:hover .stat-icon {
  transform: scale(1.1);
  background-color: #1F3933;
}

.stat-item:hover .stat-icon svg {
  color: white;
}

/* Stats Flow Design - Horizontal Flowing Layout */
.stats-flow-container {
  position: relative;
}

/* Ensure all stat items have equal height for even alignment */
.stats-flow-container .stat-item-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.stats-flow-container .stat-item-flow > p {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Remove any border-top from Stats Banner section */
section:has(.stats-flow-container) {
  border-top: none !important;
}

.stat-item-flow {
  position: relative;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item-flow:hover {
  transform: translateY(-8px);
}

.stat-icon-flow {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.stat-icon-flow svg {
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
}

.stat-item-flow:hover .stat-icon-flow {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 32px rgba(31, 57, 51, 0.25);
}

.stat-item-flow:hover .stat-icon-flow svg {
  transform: scale(1.1);
}

.stat-connector {
  position: absolute;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.stat-item-flow:hover .stat-connector {
  opacity: 0.7;
  transform: scaleX(1.1);
}

.stat-item-flow:hover ~ .stat-item-flow .stat-connector {
  opacity: 0.5;
}


/* Timeline Design - Vertical Stepper */
.timeline-container {
  position: relative;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 768px) {
  .timeline-container {
    padding-left: 0;
    padding-right: 0;
  }
}

.timeline-line {
  z-index: 1;
  box-shadow: 0 0 8px rgba(31, 57, 51, 0.2);
}

.timeline-dot {
  z-index: 20;
  transition: all 0.3s ease;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(31, 57, 51, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(31, 57, 51, 0);
  }
}

.timeline-step:hover .timeline-dot {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 0 12px rgba(31, 57, 51, 0.1);
}

/* Timeline Scroll Animation */
.timeline-step-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step-animate .step-content {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step-animate.visible .step-content {
  animation: slideInContent 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes slideInContent {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation for right-side content (step 2) */
.timeline-step:nth-child(3) .timeline-step-animate.visible .step-content {
  animation: slideInContentRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes slideInContentRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-content {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(31, 57, 51, 0.05) 0%, rgba(14, 111, 94, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.step-content:hover::before {
  opacity: 1;
}

.step-content:hover {
  transform: translateY(-4px);
  border-color: #0E6F5E;
}

.step-number-timeline {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.step-number-timeline::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.step-content:hover .step-number-timeline::after {
  width: 200%;
  height: 200%;
}

.step-content:hover .step-number-timeline {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(31, 57, 51, 0.3);
}

/* Mobile adjustments for timeline */
@media (max-width: 767px) {
  .timeline-container {
    padding-left: 0 !important;
  }
  
  .timeline-line {
    display: none !important;
  }
  
  .timeline-dot {
    display: none !important;
  }
  
  .step-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .timeline-step > div {
    align-items: center !important;
  }
  
  .timeline-step > div > div:not(.hidden) {
    max-width: 100% !important;
  }
  
  .timeline-step-animate.visible .step-content {
    animation: slideInContentMobile 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
  }
  
  @keyframes slideInContentMobile {
    from {
      opacity: 0;
      transform: translateX(20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

.step-card {
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(31, 57, 51, 0.15);
}

.step-number {
  transition: transform 0.3s ease;
}

.step-card:hover .step-number {
  transform: scale(1.1) rotate(5deg);
}

.feature-dot {
  transition: all 0.3s ease;
}

.feature-item:hover .feature-dot {
  transform: scale(1.3);
  background-color: #1F3933;
}

.testimonial-card {
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.02);
}

.rpm-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rpm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(31, 57, 51, 0.2);
}

.specialty-item {
  transition: all 0.3s ease;
}

.specialty-item:hover {
  transform: translateX(8px);
  background-color: white;
  box-shadow: 0 8px 16px rgba(31, 57, 51, 0.1);
}

.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateX(4px);
}

/* Hero Section with Gradient Background - extends behind navbar */
.hero-section-wrapper {
  position: relative;
  min-height: 105vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1F3933 0%, #0E6F5E 50%, #2A8A7A 100%);
  overflow: hidden;
  margin-top: -120px;
  padding-top: 150px;
  z-index: 1;
}

/* Hero title with tightened leading when wrapped */
.hero-title {
  line-height: 1.1;
}

/* Tighten leading between wrapped lines by ~10% using negative margin on line after br */
@media (min-width: 1024px) {
  .hero-title br {
    display: block;
    margin-bottom: -0.1em; /* Tighten leading by ~10% - negative margin reduces space */
  }
}

/* ============================================
   HERO SECTION - RESPONSIVE RULES (< 1367px)
   Both button and thumbnail variants follow same layout
   ============================================ */

/* Hide background video on all screens under 1367px */
@media (max-width: 1366px) {
  .hero-video-background {
    display: none !important;
  }
}

/* Mobile: 0px - 767px */
@media (max-width: 767px) {
  .hero-section-wrapper {
    min-height: 105vh;
    margin-top: -80px;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  
  .hero-content-overlay {
    padding: 100px 24px 60px 24px !important;
    min-height: 105vh;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .hero-content-overlay h1 {
    font-size: 32px !important;
    line-height: 40px !important;
    margin-bottom: 20px !important;
  }
  
  .hero-content-overlay p {
    font-size: 16px !important;
    line-height: 24px !important;
    margin-bottom: 24px !important;
  }
  
  .hero-content-overlay button {
    font-size: 14px !important;
    padding: 12px 24px !important;
  }
  
  /* Show thumbnail in button variant on mobile */
  .hero-section-wrapper:not(.hero-thumbnail-variant) .flex[class*="2xl:hidden"] {
    display: flex !important;
  }
  
  /* Thumbnail variant - ensure proper sizing on mobile */
  .hero-thumbnail-variant .aspect-video {
    max-width: 100% !important;
  }
  
  .hero-thumbnail-variant .relative.group.cursor-pointer {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Ensure proper spacing in grid on mobile */
  .hero-thumbnail-variant .grid {
    gap: 1.5rem !important;
  }
  
  .hipaa-logo-container {
    bottom: 100px !important;
    right: 3% !important;
  }
  
  .hipaa-logo {
    width: 100px !important;
    max-width: 100px !important;
  }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section-wrapper {
    min-height: 105vh;
    margin-top: -100px;
    padding-top: 140px;
    padding-bottom: 80px;
  }
  
  .hero-content-overlay {
    padding: 100px 24px 60px 24px !important;
    min-height: 105vh;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Show thumbnail in button variant on iPad size */
  .hero-section-wrapper:not(.hero-thumbnail-variant) .flex[class*="2xl:hidden"] {
    display: flex !important;
  }
  
  /* Thumbnail variant - ensure consistent sizing */
  .hero-thumbnail-variant .aspect-video {
    max-width: 100% !important;
  }
  
  .hero-thumbnail-variant .relative.group.cursor-pointer {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .hipaa-logo-container {
    bottom: 120px !important;
    right: 4% !important;
  }
  
  .hipaa-logo {
    width: 140px !important;
    max-width: 140px !important;
  }
}

/* Large Tablet/Desktop: 1024px - 1366px */
/* Max iPad size is 1024px, so hide thumbnail above this */
@media (min-width: 1024px) {
  /* Hide thumbnail in button variant above max iPad size (1024px+) - applies to all screens above iPad */
  /* Use multiple selectors to ensure it works - target by structure */
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay > div > div.flex.flex-col.items-center.gap-4,
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay > div > div.flex[class*="flex-col"][class*="items-center"],
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay > div > div[class*="2xl:hidden"][class*="flex-col"],
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay > div > div:has(img[alt*="Video thumbnail"]),
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay > div > div.mt-4.flex.flex-col {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Also hide the caption paragraph that follows the thumbnail */
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay > div > div.flex.flex-col + p,
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay > div > div.flex.flex-col ~ p {
    display: none !important;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .hero-section-wrapper {
    min-height: 105vh;
    margin-top: -110px;
    padding-top: 130px;
    padding-bottom: 100px;
  }
  
  .hero-content-overlay {
    padding: 100px 24px 60px 24px !important;
    min-height: 105vh;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  /* Center h1 and subtitle */
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay h1 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Hide line break in h1 to make it one line */
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-title br {
    display: none !important;
  }
  
  /* Show play button above iPad size (1024px+) - override hidden class */
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay > div > div[class*="hidden"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Thumbnail variant - control size for better responsiveness */
  .hero-thumbnail-variant .aspect-video {
    max-width: 100% !important;
  }
  
  .hero-thumbnail-variant .relative.group.cursor-pointer {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Ensure grid layout works well on this size */
  .hero-thumbnail-variant .grid {
    gap: 2rem !important;
  }
  
  .hipaa-logo-container {
    bottom: 130px !important;
    right: 4% !important;
  }
  
  .hipaa-logo {
    width: 150px !important;
    max-width: 150px !important;
  }
}

/* Specific fix for short screens (1024x600 and similar) */
@media (min-width: 1024px) and (max-width: 1366px) and (max-height: 700px) {
  .hero-section-wrapper {
    min-height: auto !important;
    padding-bottom: 60px !important;
  }
  
  .hero-thumbnail-variant {
    min-height: auto !important;
    padding-bottom: 60px !important;
  }
  
  .hero-thumbnail-variant .aspect-video {
    max-height: 300px !important;
  }
  
  /* Reduce padding to fit content better */
  .hero-thumbnail-variant > div {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }
}

/* Mobile navbar styles */
@media (max-width: 767px) {
  /* Mobile navbar - white background */
  [data-site-header].navbar-overlay {
    background: white !important;
    background-color: white !important;
  }
  
  /* Mobile navbar when scrolled */
  [data-site-header].navbar-overlay.navbar-scrolled {
    background: white !important;
    background-color: white !important;
  }
  
  /* Mobile menu button - theme color */
  [data-site-header].navbar-overlay button[data-action*="mobile-nav"] {
    color: #1F3933 !important;
  }
  
  /* Mobile menu button stays theme color when scrolled */
  [data-site-header].navbar-overlay.navbar-scrolled button[data-action*="mobile-nav"] {
    color: #1F3933 !important;
  }
  
  /* Logo - theme color (not inverted) */
  [data-site-header].navbar-overlay img {
    filter: none !important;
  }
  
  /* Logo stays theme color when scrolled */
  [data-site-header].navbar-overlay.navbar-scrolled img {
    filter: none !important;
  }
  
  /* Mobile menu background - always white when opened, regardless of scroll state */
  [data-site-header].navbar-overlay .mobile-menu-bg,
  [data-site-header].navbar-overlay.navbar-scrolled .mobile-menu-bg,
  .mobile-menu-bg {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
  }
  
  /* Mobile menu text - always dark when menu is opened, override all navbar overlay styles */
  [data-site-header].navbar-overlay .mobile-menu-bg a[class*="text-\[#1F3933\]"],
  [data-site-header].navbar-overlay.navbar-scrolled .mobile-menu-bg a[class*="text-\[#1F3933\]"],
  .mobile-menu-bg a[class*="text-\[#1F3933\]"] {
    color: #1F3933 !important;
  }
  
  [data-site-header].navbar-overlay .mobile-menu-bg a[class*="text-slate"],
  [data-site-header].navbar-overlay.navbar-scrolled .mobile-menu-bg a[class*="text-slate"],
  .mobile-menu-bg a[class*="text-slate"] {
    color: rgb(30, 41, 59) !important;
  }
  
  [data-site-header].navbar-overlay .mobile-menu-bg .text-gray-500,
  [data-site-header].navbar-overlay.navbar-scrolled .mobile-menu-bg .text-gray-500,
  .mobile-menu-bg .text-gray-500 {
    color: rgb(107, 114, 128) !important;
  }
  
  [data-site-header].navbar-overlay .mobile-menu-bg a:not([class*="text-\[#1F3933\]"]):not([class*="text-slate"]):not([class*="bg-"]),
  [data-site-header].navbar-overlay.navbar-scrolled .mobile-menu-bg a:not([class*="text-\[#1F3933\]"]):not([class*="text-slate"]):not([class*="bg-"]),
  .mobile-menu-bg a:not([class*="text-\[#1F3933\]"]):not([class*="text-slate"]):not([class*="bg-"]) {
    color: rgb(30, 41, 59) !important;
  }
  
  /* Override any general navbar overlay link styles for mobile menu */
  [data-site-header].navbar-overlay .mobile-menu-bg a,
  [data-site-header].navbar-overlay.navbar-scrolled .mobile-menu-bg a {
    color: rgb(30, 41, 59) !important;
  }
  
  /* Ensure all text elements in mobile menu are dark, override navbar overlay white text */
  [data-site-header].navbar-overlay .mobile-menu-bg div:not([class*="text-"]),
  [data-site-header].navbar-overlay.navbar-scrolled .mobile-menu-bg div:not([class*="text-"]),
  [data-site-header].navbar-overlay .mobile-menu-bg span:not([class*="text-"]),
  [data-site-header].navbar-overlay.navbar-scrolled .mobile-menu-bg span:not([class*="text-"]) {
    color: rgb(30, 41, 59) !important;
  }
}

/* Ensure hero starts at top of viewport */
body:has(.hero-section-wrapper) {
  padding-top: 0;
}

/* Video hero styles */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile adjustments for video container */
@media (max-width: 767px) {
  .hero-video-container {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
  }
}

/* Tablet adjustments for video container */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-video-container {
    min-height: 105vh;
    align-items: center;
    justify-content: center;
  }
}

/* Large tablet adjustments for video container */
@media (min-width: 1024px) and (max-width: 1366px) {
  .hero-video-container {
    min-height: 105vh;
    align-items: center;
    justify-content: center;
  }
}

/* Large desktop adjustments for video container (where background video plays) */
@media (min-width: 1367px) {
  .hero-video-container {
    min-height: 120vh;
    align-items: center;
    justify-content: center;
  }
}

.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
  cursor: default;
}

/* Gradient overlay removed - using background gradient instead */

.hero-video-foreground {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.8);
  width: 90vw;
  max-width: 1200px;
  max-height: 90vh;
  z-index: 2147483647 !important; /* Maximum z-index value */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: #000;
}

/* Mobile responsive modal */
@media (max-width: 768px) {
  .hero-video-foreground {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 85vh !important;
    border-radius: 16px !important;
  }
  
  .hero-video-foreground.active {
    transform: translate(-50%, -50%) scale(1) !important;
  }
}

.hero-video-foreground.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) scale(1);
  z-index: 2147483647 !important; /* Maximum z-index value */
}

.hero-video-foreground.active * {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.hero-video-foreground.active video {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.video-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.75) !important;
  z-index: 2147483646 !important; /* Just below modal */
  cursor: default;
  pointer-events: auto;
}

.hero-video-foreground video {
  border-radius: 24px;
  display: block;
  pointer-events: auto;
  cursor: pointer;
}

.hero-video-foreground button {
  pointer-events: auto;
  cursor: pointer;
  z-index: 10000;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.hero-video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-button-hero {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 4px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.play-button-hero:hover {
  transform: scale(1.1);
  background: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.play-button-hero svg {
  width: 40px;
  height: 40px;
  margin-left: 4px;
  fill: #1F3933;
}

.video-close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  transition: all 0.3s ease;
}

.video-close-button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

.hero-content-overlay {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 24px;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 150px);
}

/* Content overlay rules are now consolidated in the hero section rules above */

/* Large desktop - keep paragraph centered */
@media (min-width: 1367px) {
  .hero-section-wrapper:not(.hero-thumbnail-variant) {
    min-height: 120vh;
  }
  
  .hero-content-overlay {
    text-align: center !important;
  }
  
  .hero-content-overlay p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  
  /* Center h1 */
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay h1 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Hide line break in hero title when background video is showing (button variant) - make it one line */
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-title br {
    display: none !important;
  }
  
  /* Ensure thumbnail is hidden above max iPad size (1024px) - applies to all larger screens */
  .hero-section-wrapper:not(.hero-thumbnail-variant) .flex[class*="2xl:hidden"] {
    display: none !important;
  }
  
  /* Ensure play button is visible */
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-content-overlay > div > div[class*="hidden"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Large desktop - thumbnail variant (excludes MacBook 13 inch range 1280-1440px) */
@media (min-width: 1441px) {
  .hero-thumbnail-variant {
    min-height: 105vh;
  }
}

/* Thumbnail variant follows same responsive rules as button variant under 1367px */
/* No special rules needed - both variants use the same layout */

/* 2xl screens (1536px+) - adjust font size for single line */
@media (min-width: 1536px) {
  .hero-section-wrapper:not(.hero-thumbnail-variant) .hero-title {
    font-size: 65px;
    line-height: 1.1;
  }
}

/* Mobile content overlay rules are now consolidated in the hero section rules above */

/* HIPAA Logo */
.hipaa-logo-container {
  position: absolute;
  bottom: 140px;
  right: 5%;
  z-index: 5;
  pointer-events: none;
}

.hipaa-logo {
  width: 160px;
  height: auto;
  max-width: 160px;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
  .hipaa-logo-container {
    bottom: 120px;
    right: 4%;
  }
  
  .hipaa-logo {
    width: 120px;
    max-width: 120px;
  }
}

/* HIPAA Logo - Center positioning for thumbnail variant */
.hipaa-logo-left {
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

@media (max-width: 768px) {
  .hipaa-logo-left {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

/* SVG Wave Separator - Connected with proper wavy shape */
.wave-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
  pointer-events: none;
}

.wave-separator svg {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100px;
  min-height: 100px;
}

.wave-separator .wave-svg {
  width: 100%;
  height: 100%;
}

.wave-separator .shape-fill {
  fill: #F7F7F5;
  stroke: none;
}

/* Navbar overlay styles for hero section - must override Tailwind bg class */
/* Desktop: transparent, Tablet/Mobile: white */
[data-site-header].navbar-overlay {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  z-index: 100 !important;
}

/* Tablet: white background */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay {
    background: white !important;
    background-color: white !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
}

/* Large tablet: white background */
@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay {
    background: white !important;
    background-color: white !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
}

/* Mobile: always white background */
@media (max-width: 767px) {
  [data-site-header].navbar-overlay {
    background: white !important;
    background-color: white !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
}

/* Force override any Tailwind background utilities with higher specificity */
body [data-site-header].navbar-overlay,
html [data-site-header].navbar-overlay {
  background: transparent !important;
  background-color: transparent !important;
}

/* Tablet navbar override */
@media (min-width: 768px) and (max-width: 1024px) {
  body [data-site-header].navbar-overlay,
  html [data-site-header].navbar-overlay {
    background: white !important;
    background-color: white !important;
  }
}

/* Large tablet navbar override */
@media (min-width: 1024px) and (max-width: 1366px) {
  body [data-site-header].navbar-overlay,
  html [data-site-header].navbar-overlay {
    background: white !important;
    background-color: white !important;
  }
}

@media (max-width: 767px) {
  body [data-site-header].navbar-overlay,
  html [data-site-header].navbar-overlay {
    background: white !important;
    background-color: white !important;
  }
}

[data-site-header].navbar-overlay.bg-\[#F7F7F5\] {
  background: transparent !important;
  background-color: transparent !important;
}

/* Tablet navbar override */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay.bg-\[#F7F7F5\] {
    background: white !important;
    background-color: white !important;
  }
}

/* Large tablet navbar override */
@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay.bg-\[#F7F7F5\] {
    background: white !important;
    background-color: white !important;
  }
}

@media (max-width: 767px) {
  [data-site-header].navbar-overlay.bg-\[#F7F7F5\] {
    background: white !important;
    background-color: white !important;
  }
}

[data-site-header].navbar-overlay[class*="bg-"] {
  background: transparent !important;
  background-color: transparent !important;
}

/* Tablet navbar override */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay[class*="bg-"] {
    background: white !important;
    background-color: white !important;
  }
}

/* Large tablet navbar override */
@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay[class*="bg-"] {
    background: white !important;
    background-color: white !important;
  }
}

@media (max-width: 767px) {
  [data-site-header].navbar-overlay[class*="bg-"] {
    background: white !important;
    background-color: white !important;
  }
}

/* Desktop: white text when transparent */
[data-site-header].navbar-overlay nav a,
[data-site-header].navbar-overlay a:not([class*="bg-"]) {
  color: white !important;
}

/* Tablet: theme color text */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay nav a,
  [data-site-header].navbar-overlay a:not([class*="bg-"]) {
    color: #1F3933 !important;
  }
}

/* Large tablet: theme color text */
@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay nav a,
  [data-site-header].navbar-overlay a:not([class*="bg-"]) {
    color: #1F3933 !important;
  }
}

/* Mobile: theme color text */
@media (max-width: 767px) {
  [data-site-header].navbar-overlay nav a,
  [data-site-header].navbar-overlay a:not([class*="bg-"]) {
    color: #1F3933 !important;
  }
}

/* Desktop: white SVG when transparent */
[data-site-header].navbar-overlay svg {
  color: white !important;
  fill: white !important;
}

/* Tablet: theme color SVG */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay svg {
    color: #1F3933 !important;
    fill: #1F3933 !important;
  }
}

/* Large tablet: theme color SVG */
@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay svg {
    color: #1F3933 !important;
    fill: #1F3933 !important;
  }
}

/* Mobile: theme color SVG */
@media (max-width: 767px) {
  [data-site-header].navbar-overlay svg {
    color: #1F3933 !important;
    fill: #1F3933 !important;
  }
}

/* Desktop: white logo (inverted) when transparent */
[data-site-header].navbar-overlay img {
  filter: brightness(0) invert(1) !important;
}

/* Tablet: theme color logo */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay img {
    filter: none !important;
  }
}

/* Large tablet: theme color logo */
@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay img {
    filter: none !important;
  }
}

/* Mobile: theme color logo */
@media (max-width: 767px) {
  [data-site-header].navbar-overlay img {
    filter: none !important;
  }
}

/* Desktop: white button when transparent */
[data-site-header].navbar-overlay button {
  color: white !important;
}

/* Tablet: theme color button */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay button {
    color: #1F3933 !important;
  }
}

/* Large tablet: theme color button */
@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay button {
    color: #1F3933 !important;
  }
}

/* Mobile: theme color button */
@media (max-width: 767px) {
  [data-site-header].navbar-overlay button {
    color: #1F3933 !important;
  }
}

/* Desktop: white summary when transparent */
[data-site-header].navbar-overlay summary {
  color: white !important;
}

/* Tablet: theme color summary */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay summary {
    color: #1F3933 !important;
  }
}

/* Large tablet: theme color summary */
@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay summary {
    color: #1F3933 !important;
  }
}

/* Mobile: theme color summary */
@media (max-width: 767px) {
  [data-site-header].navbar-overlay summary {
    color: #1F3933 !important;
  }
}

[data-site-header].navbar-overlay summary svg {
  color: white !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay summary svg {
    color: #1F3933 !important;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay summary svg {
    color: #1F3933 !important;
  }
}

@media (max-width: 767px) {
  [data-site-header].navbar-overlay summary svg {
    color: #1F3933 !important;
  }
}

[data-site-header].navbar-overlay summary span {
  color: white !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay summary span {
    color: #1F3933 !important;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay summary span {
    color: #1F3933 !important;
  }
}

@media (max-width: 767px) {
  [data-site-header].navbar-overlay summary span {
    color: #1F3933 !important;
  }
}

[data-site-header].navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Override overlay styles when scrolled */
[data-site-header].navbar-overlay.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
}

[data-site-header].navbar-scrolled nav a,
[data-site-header].navbar-scrolled a:not([class*="bg-white"]):not([class*="bg-\[#1F3933\]"]) {
  color: rgb(30, 41, 59) !important;
}

[data-site-header].navbar-overlay.navbar-scrolled nav a,
[data-site-header].navbar-overlay.navbar-scrolled a:not([class*="bg-white"]):not([class*="bg-\[#1F3933\]"]) {
  color: rgb(30, 41, 59) !important;
}

[data-site-header].navbar-scrolled svg {
  color: rgb(71, 85, 105) !important;
  fill: rgb(71, 85, 105) !important;
}

[data-site-header].navbar-overlay.navbar-scrolled svg {
  color: rgb(71, 85, 105) !important;
  fill: rgb(71, 85, 105) !important;
}

[data-site-header].navbar-scrolled img {
  filter: none !important;
}

[data-site-header].navbar-overlay.navbar-scrolled img {
  filter: none !important;
}

[data-site-header].navbar-scrolled button {
  color: rgb(30, 41, 59) !important;
}

[data-site-header].navbar-overlay.navbar-scrolled button {
  color: rgb(30, 41, 59) !important;
}

[data-site-header].navbar-scrolled summary {
  color: rgb(30, 41, 59) !important;
}

[data-site-header].navbar-overlay.navbar-scrolled summary {
  color: rgb(30, 41, 59) !important;
}

[data-site-header].navbar-scrolled summary span {
  color: rgb(30, 41, 59) !important;
}

[data-site-header].navbar-overlay.navbar-scrolled summary span {
  color: rgb(30, 41, 59) !important;
}

/* CTA button overlay state */
/* Desktop: white button when transparent */
[data-site-header].navbar-overlay a[href*="contact-form"] {
  background: white !important;
  color: #1F3933 !important;
}

/* Tablet: theme color button */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay a[href*="contact-form"] {
    background: #1F3933 !important;
    color: white !important;
  }
}

/* Large tablet: theme color button */
@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay a[href*="contact-form"] {
    background: #1F3933 !important;
    color: white !important;
  }
}

/* Mobile: theme color button */
@media (max-width: 767px) {
  [data-site-header].navbar-overlay a[href*="contact-form"] {
    background: #1F3933 !important;
    color: white !important;
  }
}

[data-site-header].navbar-scrolled a[href*="contact-form"],
[data-site-header].navbar-overlay.navbar-scrolled a[href*="contact-form"] {
  background: #1F3933 !important;
  color: white !important;
}

/* Link underlines - desktop white when transparent, theme color when scrolled */
[data-site-header].navbar-overlay nav a::after {
  background-color: white !important;
}

[data-site-header].navbar-overlay.navbar-scrolled nav a::after {
  background-color: #1F3933 !important;
}

/* Tablet: always theme color */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay nav a::after {
    background-color: #1F3933 !important;
  }
  
  [data-site-header].navbar-overlay.navbar-scrolled nav a::after {
    background-color: #1F3933 !important;
  }
}

/* Large tablet: always theme color */
@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay nav a::after {
    background-color: #1F3933 !important;
  }
  
  [data-site-header].navbar-overlay.navbar-scrolled nav a::after {
    background-color: #1F3933 !important;
  }
}

/* Mobile: always theme color */
@media (max-width: 767px) {
  [data-site-header].navbar-overlay nav a::after {
    background-color: #1F3933 !important;
  }
  
  [data-site-header].navbar-overlay.navbar-scrolled nav a::after {
    background-color: #1F3933 !important;
  }
}

/* Language dropdown underline - desktop white when transparent */
[data-site-header].navbar-overlay summary {
  text-decoration-color: rgba(255, 255, 255, 0.5) !important;
}

[data-site-header].navbar-overlay summary:hover {
  text-decoration-color: white !important;
}

[data-site-header].navbar-overlay.navbar-scrolled summary {
  text-decoration-color: rgba(31, 57, 51, 0.5) !important;
}

[data-site-header].navbar-overlay.navbar-scrolled summary:hover {
  text-decoration-color: #1F3933 !important;
}

/* Tablet: theme color */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-site-header].navbar-overlay summary {
    text-decoration-color: rgba(31, 57, 51, 0.5) !important;
  }
  
  [data-site-header].navbar-overlay summary:hover {
    text-decoration-color: #1F3933 !important;
  }
  
  [data-site-header].navbar-overlay.navbar-scrolled summary {
    text-decoration-color: rgba(31, 57, 51, 0.5) !important;
  }
  
  [data-site-header].navbar-overlay.navbar-scrolled summary:hover {
    text-decoration-color: #1F3933 !important;
  }
}

/* Large tablet: theme color */
@media (min-width: 1024px) and (max-width: 1366px) {
  [data-site-header].navbar-overlay summary {
    text-decoration-color: rgba(31, 57, 51, 0.5) !important;
  }
  
  [data-site-header].navbar-overlay summary:hover {
    text-decoration-color: #1F3933 !important;
  }
  
  [data-site-header].navbar-overlay.navbar-scrolled summary {
    text-decoration-color: rgba(31, 57, 51, 0.5) !important;
  }
  
  [data-site-header].navbar-overlay.navbar-scrolled summary:hover {
    text-decoration-color: #1F3933 !important;
  }
}

/* Mobile: theme color */
@media (max-width: 767px) {
  [data-site-header].navbar-overlay summary {
    text-decoration-color: rgba(31, 57, 51, 0.5) !important;
  }
  
  [data-site-header].navbar-overlay summary:hover {
    text-decoration-color: #1F3933 !important;
  }
  
  [data-site-header].navbar-overlay.navbar-scrolled summary {
    text-decoration-color: rgba(31, 57, 51, 0.5) !important;
  }
  
  [data-site-header].navbar-overlay.navbar-scrolled summary:hover {
    text-decoration-color: #1F3933 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .fade-in-up,
  .fade-in,
  .slide-in-left,
  .slide-in-right {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .integration-scroll {
    animation: none;
  }
}

/* Image sharpening for CTA section */
section:has([alt*="cta"]) img,
section:has([alt*="CTA"]) img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  -ms-interpolation-mode: nearest-neighbor;
}

/* Integration Icons Horizontal Scroll Animation */
.integration-scroll {
  animation: scroll-integrations 40s linear infinite;
  will-change: transform;
}

@keyframes scroll-integrations {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

