/* ============================================
   Elevated Health RX - Brand System Styles
   Based on Brand Guidelines v1.0 Feb 2026
   ============================================ */

/* CSS Custom Properties - Brand Color System */
:root {
  /* Command Palette */
  --elevated-black: #1A1A1A;
  --rx-navy: #054077;
  --clinical-white: #FFFFFF;
  /* Trust Palette */
  --steel-blue: #1B6CB0;
  --midnight: #0A2540;
  --slate: #3D4F5F;
  /* Signal Palette */
  --signal-green: #00C853;
  --warm-amber: #F5A623;
  --alert-red: #D32F2F;
  /* Structural Neutrals */
  --ash: #6B7B8D;
  --mist: #E8ECF0;
  --bone: #F7F8FA;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bone);
  color: var(--slate);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* ============================================
   Marquee Animations
   ============================================ */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.animate-marquee {
  animation: marquee 60s linear infinite;
}

.animate-marquee-fast {
  animation: marquee 40s linear infinite;
}

.animate-marquee-reverse {
  animation: marquee-reverse 65s linear infinite;
}

.animate-marquee-slow {
  animation: marquee 72s linear infinite;
}

/* Pause animation on hover */
.pause-on-hover:hover .animate-marquee,
.pause-on-hover:hover .animate-marquee-reverse,
.pause-on-hover:hover .animate-marquee-slow {
  animation-play-state: paused;
}

.animate-marquee:hover,
.animate-marquee-slow:hover,
.animate-marquee-reverse:hover {
  animation-play-state: paused;
}

/* ============================================
   Fade-in Animation
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.fade-in-up.visible {
  opacity: 1;
}

/* Staggered delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ============================================
   FAQ / Objections Accordion
   ============================================ */
.faq-item .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

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

.faq-item .faq-icon {
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item.open {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Animated Checkmark (Guarantee Section)
   ============================================ */
@keyframes drawCircle {
  from { stroke-dashoffset: 283; }
  to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
  from { stroke-dashoffset: 50; }
  to { stroke-dashoffset: 0; }
}

.checkmark-circle {
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
}

.checkmark-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}

.animate-checkmark .checkmark-circle {
  animation: drawCircle 0.8s ease-out forwards;
}

.animate-checkmark .checkmark-check {
  animation: drawCheck 0.5s ease-out 0.5s forwards;
}

/* ============================================
   Header Scroll State
   ============================================ */
.header-scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Typography Utilities
   ============================================ */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Scroll Margin for Fixed Header
   ============================================ */
.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

/* ============================================
   Brand CTA Button Styles
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--signal-green);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.2);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(0, 200, 83, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--signal-green);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  border: 2px solid var(--signal-green);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--signal-green);
  color: white;
  transform: scale(1.02);
}

/* ============================================
   Journey Section Progress
   ============================================ */
.journey-progress-line {
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.3s ease-out;
}

.journey-step-dot {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.journey-step-dot.active {
  background-color: var(--rx-navy);
  border-color: var(--rx-navy);
}

/* ============================================
   Float Animations (Hero Photo Cascade)
   ============================================ */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}
.animate-float-slow { animation: float-slow 7s ease-in-out infinite; }
.animate-float-medium { animation: float-medium 5s ease-in-out infinite; }
.animate-float-fast { animation: float-fast 4s ease-in-out infinite; }

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Sticky CTA safe area */
.safe-bottom {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

/* Add space at bottom of page for sticky CTA on mobile */
@media (max-width: 1023px) {
  footer {
    padding-bottom: 5rem;
  }
}

/* Hero CTA glow */
.hero-cta {
  box-shadow:
    0 0 30px rgba(0,200,83,0.3),
    0 0 60px rgba(0,200,83,0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hero-cta:hover {
  box-shadow:
    0 0 40px rgba(0,200,83,0.45),
    0 0 80px rgba(0,200,83,0.2);
  transform: translateY(-1px);
}
