/* 
 * Total Health Systems - V5 HT360-Inspired Design
 * Modern Blue Theme Based on HustleTraining360.com
 * 
 * Primary Brand Color: #2E86DE (Blue)
 * Secondary Color: #FF6348 (Coral Orange)
 * Target Audience: Children and Adults in South Florida communities
 * Accessibility: WCAG 2.1 AA compliance with high contrast ratios
 * Typography: Minimum 18px font size for enhanced readability
 * Design Approach: Clean, modern, professional with blue theme
 */

/* ============================================
   CSS CUSTOM PROPERTIES (CSS VARIABLES)
   ============================================ */
:root {
  /* Brand Colors - HT360 Blue Theme */
  --brand-primary: #2E86DE;
  --brand-primary-dark: #1B6BB6;
  --brand-primary-light: #4B96E8;
  --brand-primary-hover: #1E5F9E;
  --brand-secondary: #FF6348;
  --brand-secondary-dark: #E55439;
  --brand-secondary-light: #FF7A64;
  
  /* Modern Blue Theme Palette */
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-dark-gray: #2C3E50;
  --color-medium-gray: #5A6C7D;
  --color-light-gray: #F7F9FC;
  --color-border: #E1E8ED;
  --color-accent-blue: #3498DB;
  --color-success-green: #27AE60;
  --color-warning-orange: #F39C12;
  --color-info-cyan: #17A2B8;
  --color-light-blue: #EBF3FD;
  --color-coral: #FF6348;
  
  /* Background Colors - Modern Blue Theme */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F9FC;
  --bg-accent: linear-gradient(135deg, #EBF3FD 0%, #F7F9FC 100%);
  --bg-hero: linear-gradient(135deg, rgba(46, 134, 222, 0.1) 0%, rgba(255, 99, 72, 0.05) 50%, #FFFFFF 100%);
  --bg-dark: #2C3E50;
  
  /* High Contrast Text Colors */
  --text-primary: #2C3E50;
  --text-secondary: #5A6C7D;
  --text-muted: #7F8C8D;
  --text-light: #FFFFFF;
  --text-accent: #2E86DE;
  
  /* Typography - Accessibility-First Sizing */
  --font-size-base: 18px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Touch Targets (Minimum 44px for accessibility) */
  --min-touch-target: 44px;
  
  /* Border Radius - More modern */
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
  
  /* Shadows - Blue Theme */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-color: 0 4px 20px rgba(46, 134, 222, 0.15);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
}

/* ============================================
   GLOBAL STYLES & TYPOGRAPHY
   ============================================ */

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-weight: 400;
}

/* Enhanced Typography for Modern Look */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 800;
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Links - High Contrast and Clear Indication */
a {
  color: var(--brand-primary);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ============================================
   BOOTSTRAP OVERRIDES - BRIGHTER THEME
   ============================================ */

/* Primary Color Overrides */
.text-primary {
  color: var(--brand-primary) !important;
}

.bg-primary {
  background-color: var(--brand-primary) !important;
}

.border-primary {
  border-color: var(--brand-primary) !important;
}

/* Button Overrides - More Modern */
.btn {
  min-height: var(--min-touch-target);
  min-width: var(--min-touch-target);
  font-size: var(--font-size-base);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border-color: var(--brand-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--brand-primary-hover), var(--brand-primary));
  border-color: var(--brand-primary-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(46, 134, 222, 0.3);
}

.btn-primary:focus {
  outline: 2px solid var(--brand-primary-light);
  outline-offset: 2px;
}

.btn-outline-primary {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: transparent;
  box-shadow: var(--shadow-sm);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border-color: var(--brand-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-color);
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--font-size-lg);
  min-height: 56px;
  border-radius: var(--border-radius-lg);
}

/* Form Controls - Modern Style */
.form-control,
.form-select {
  min-height: var(--min-touch-target);
  font-size: var(--font-size-base);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 14px 18px;
  transition: all var(--transition-fast);
  background-color: var(--bg-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(46, 134, 222, 0.25);
  background-color: #FEFEFE;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: var(--font-size-base);
}

/* Card Overrides - Modern Bright Style */
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  background-color: var(--bg-primary);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ============================================
   INFO BAR - NEW FEATURE
   ============================================ */

.info-bar {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light)) !important;
  border-bottom: 4px solid var(--brand-secondary);
  font-size: 15px;
  font-weight: 500;
}

.info-bar-content {
  gap: 1rem;
}

.info-bar-link {
  transition: all var(--transition-fast);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
}

.info-bar-link:hover {
  background-color: var(--brand-secondary);
  color: var(--text-primary) !important;
  text-decoration: none;
  transform: translateY(-2px) scale(1.1);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
  font-size: 16px;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--brand-secondary);
  color: var(--text-primary) !important;
  transform: translateY(-2px) scale(1.1);
  text-decoration: none;
}

.social-link:focus {
  text-decoration: none;
}

/* ============================================
   HEADER & NAVIGATION - ENHANCED
   ============================================ */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--bg-primary) !important;
  box-shadow: var(--shadow-sm);
}

.navbar {
  padding: var(--spacing-md) 0;
}

.navbar-brand {
  padding: 0;
}

.logo-img {
  max-height: 65px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo-img:hover {
  transform: scale(1.03);
}

.navbar-nav .nav-link {
  font-size: var(--font-size-base);
  font-weight: 600;
  padding: 12px 12px !important;
  margin: 0 2px;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: var(--min-touch-target);
  display: flex;
  align-items: center;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--brand-primary);
  background: linear-gradient(135deg, rgba(46, 134, 222, 0.1), rgba(255, 99, 72, 0.05));
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  color: var(--brand-primary);
  background: linear-gradient(135deg, rgba(46, 134, 222, 0.15), rgba(255, 99, 72, 0.08));
}

.navbar-toggler {
  padding: 10px 14px;
  font-size: var(--font-size-lg);
  border: 2px solid var(--brand-primary);
  border-radius: var(--border-radius);
  min-height: var(--min-touch-target);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(46, 134, 222, 0.25);
}

/* ============================================
   HERO SECTION - BRIGHT & MODERN
   ============================================ */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border: none;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 134, 222, 0.4) 0%, rgba(255, 99, 72, 0.2) 100%);
  z-index: 2;
}

/* Decorative Elements - Removed for cleaner look */

/* Carousel Styling - Enhanced */
#heroCarousel {
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
  opacity: 1;
  background: linear-gradient(135deg, var(--brand-primary-hover), var(--brand-primary));
  transform: translateY(-50%) scale(1.1);
}

.hero-section .carousel-control-prev {
  left: 30px;
}

.hero-section .carousel-control-next {
  right: 30px;
}

.hero-content h1 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  font-weight: 800;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-content .lead {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-xl);
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
  margin-top: var(--spacing-lg);
}

/* Hero Button Styling */
.hero-cta .btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
}

.hero-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-image img {
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  transition: transform var(--transition-normal);
}

.hero-image:hover img {
  transform: scale(1.02);
}

/* ============================================
   SECTION HEADINGS & LAYOUTS - ENHANCED
   ============================================ */

.section-heading {
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  position: relative;
  text-align: center;
}

.section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background: var(--brand-primary);
  margin: var(--spacing-md) auto 0;
  border-radius: 3px;
  opacity: 1;
}

/* Animate heading border gradient when first viewed */
.section-heading.heading-border-animate::after {
  animation: headerBorderGradient 2.8s ease-in-out forwards;
  animation-delay: 0.5s;
  animation-fill-mode: forwards !important;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)) !important;
}

@keyframes headerBorderGradient {
  0% {
    background: var(--brand-primary) !important;
    transform: scaleX(0.3);
  }
  50% {
    background: var(--brand-primary) !important;
    transform: scaleX(1);
  }
  100% {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)) !important;
    transform: scaleX(1);
  }
}

/* Ensure gradient is shown for all section headings after initial load */
.section-heading::after {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)) !important;
}

/* Override for animated elements to ensure gradient persists */
.section-heading.heading-animated::after,
.section-heading.heading-border-animate::after {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)) !important;
  animation-fill-mode: forwards !important;
}

section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Section Divider Borders - Full Width with Gradient Animation */
section:not(.hero-section):not(:first-child)::before, footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary)) !important;
  transform: scaleX(1);
  opacity: 1;
  z-index: 1;
}

/* Animate border gradient when first viewed */
section.border-animate:not(.hero-section):not(:first-child)::before, footer.border-animate::before {
  animation: sectionBorderGradient 2.5s ease-in-out forwards;
  animation-delay: 0.3s;
  animation-fill-mode: forwards !important;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary)) !important;
}

@keyframes sectionBorderGradient {
  0% {
    background: var(--brand-primary) !important;
    transform: scaleX(0.2);
  }
  30% {
    background: var(--brand-primary) !important;
    transform: scaleX(1);
  }
  100% {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary)) !important;
    transform: scaleX(1);
  }
}

/* Ensure all sections and footer show gradient after initial load */
section:not(.hero-section):not(:first-child)::before, footer::before {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary)) !important;
}

/* Override for animated elements to ensure gradient persists */
section.border-animated:not(.hero-section):not(:first-child)::before,
section.border-animate:not(.hero-section):not(:first-child)::before,
footer.border-animated::before,
footer.border-animate::before {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary)) !important;
  animation-fill-mode: forwards !important;
}

.bg-light {
  background: var(--bg-accent) !important;
}

/* ============================================
   SERVICES SECTION - BRIGHT & CHEERFUL
   ============================================ */

.services-section {
  background: var(--bg-primary);
}

.service-card {
  height: 100%;
  transition: all var(--transition-normal);
  border: 2px solid var(--brand-primary);
  background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-secondary);
}

.service-image {
  margin-bottom: var(--spacing-md);
}

.service-placeholder-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius);
  background-color: var(--color-light-gray);
  border: 2px solid var(--brand-primary);
  transition: all var(--transition-normal);
}

.service-card:hover .service-placeholder-img {
  border-color: var(--brand-secondary);
  transform: scale(1.05);
}

.service-card .card-title {
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.service-card .card-text {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.special-programs-section {
  background: var(--bg-accent);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
}

.additional-service-card {
  background: linear-gradient(135deg, #FFFFFF, #FEFEFE);
  border: 2px solid var(--brand-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.additional-service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent);
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.additional-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-secondary);
}

.additional-service-card:hover::before {
  top: -30%;
  right: -30%;
  transform: scale(1.5);
}

/* ============================================
   COMMUNITY CLASSES SECTION
   ============================================ */

/* Fun Section - Matching HT360 Style */
.community-classes-section {
  background: var(--bg-primary);
  padding: 4rem 0;
}

.fun-section-image-container {
  position: relative;
}

.fun-section-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote {
  position: absolute;
  bottom: -30px;
  left: 30px;
  right: 30px;  
  color: white;
  padding: 1.5rem;
  /*
  background: var(--brand-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  */
  max-width: 400px;
}

.quote-icon {
  background: white;
  color: var(--brand-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.quote-icon i {
  font-size: 1.2rem;
}

.testimonial-quote p {
  font-style: italic;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.quote-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.fun-section-content {
  padding-left: 3rem;
}

.fun-section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.fun-section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.fun-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.fun-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  background: var(--brand-secondary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fun-feature-item span {
  font-weight: 600;
  color: var(--text-primary);
}

.btn-orange {
  background: linear-gradient(135deg, var(--brand-secondary), #e55641);
  border: none;
  color: white;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.btn-orange:hover {
  background: linear-gradient(135deg, #e55641, var(--brand-secondary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
  text-decoration: none;
}

.uppercase {
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .fun-section-content {
    padding-left: 0;
    margin-top: 3rem;
  }
  
  .fun-section-title {
    font-size: 2rem;
  }
  
  .testimonial-quote {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 1.5rem;
    max-width: none;
  }
}

/* ============================================
   TRANSFORM HEALTH CTA SECTION
   ============================================ */

/* Transform Health CTA - Blue Background Style */
.transform-health-cta {
  background: var(--brand-primary);
  color: white;
  padding: 4rem 0;
}

.cta-image-container {
  margin-right: 2rem;
}

.cta-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-content {
  padding-left: 2rem;
}

.cta-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: #ffe06b;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.cta-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cta-description strong {
  color: white;
  font-weight: 700;
}

.cta-description em {
  font-style: italic;
  color: white;
}

.btn-cta-white {
  background: white;
  color: var(--brand-primary);
  border: 2px solid white;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.btn-cta-white:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

@media (max-width: 991px) {
  .cta-image-container {
    margin-right: 0;
    margin-bottom: 2rem;
  }
  
  .cta-content {
    padding-left: 0;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

/* ============================================
   TESTIMONIALS SECTION - REDESIGNED
   ============================================ */

section#testimonials.testimonials-section {
  background: linear-gradient(135deg, rgba(25, 25, 112, 0.1) 0%, rgba(0, 128, 128, 0.15) 35%, rgba(75, 0, 130, 0.1) 70%, rgba(128, 0, 128, 0.15) 100%) !important;
  position: relative;
  overflow: hidden;
  padding-bottom: 8rem !important;
}

/* Override Bootstrap bg-light specifically */
#testimonials.bg-light {
  background: linear-gradient(135deg, rgba(25, 25, 112, 0.1) 0%, rgba(0, 128, 128, 0.15) 35%, rgba(75, 0, 130, 0.1) 70%, rgba(128, 0, 128, 0.15) 100%) !important;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="%23FFD700" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat;
  opacity: 0.6;
  pointer-events: none;
}

.testimonial-card {
  background: linear-gradient(135deg, #FFFFFF, #FEFEFE);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--brand-secondary);
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--brand-secondary);
  margin-bottom: var(--spacing-sm);
  opacity: 0.8;
  line-height: 1;
}

.testimonial-text {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-style: italic;
  flex-grow: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: auto;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(190, 29, 44, 0.1);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--brand-primary);
  position: relative;
}

/* Testimonial avatar border animation - gradient border */
.testimonial-avatar.avatar-border-animate {
  animation: avatarBorderGradient 2.2s ease-in-out forwards;
  animation-delay: 0.8s;
  animation-fill-mode: forwards !important;
}

@keyframes avatarBorderGradient {
  0% {
    border: 3px solid var(--brand-primary);
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(45deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary)) border-box;
    transform: scale(1);
  }
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-author {
  flex-grow: 1;
}

.testimonial-author h5 {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: var(--font-size-base);
  margin-bottom: 4px;
}

.testimonial-author p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 0;
}

.testimonial-rating {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.testimonial-rating i {
  color: var(--brand-secondary);
  font-size: 16px;
}

#testimonialsCarousel .carousel-indicators {
  bottom: -80px;
}

#testimonialsCarousel .carousel-indicators [data-bs-target] {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  opacity: 0.5;
  margin: 0 8px;
  transition: all var(--transition-normal);
}

#testimonialsCarousel .carousel-indicators .active {
  opacity: 1;
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
  transform: scale(1.2);
}

/* Two testimonials side by side */
@media (min-width: 768px) {
  .testimonials-row {
    display: flex;
    gap: var(--spacing-lg);
  }
  
  .testimonial-item {
    flex: 1;
  }
}

/* ============================================
   BLOG SECTION - ENHANCED
   ============================================ */

.blog-section {
  background: var(--bg-primary);
}

.blog-card {
  transition: all var(--transition-normal);
  border: 2px solid var(--brand-primary);
  overflow: hidden;
  background: linear-gradient(135deg, #FFFFFF, #FEFEFE);
}

.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-secondary);
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-normal);
  border-bottom: 3px solid var(--brand-primary);
}

.blog-card:hover .blog-image img {
  transform: scale(1.08);
  border-bottom-color: var(--brand-secondary);
}

.blog-meta .category-btn {
  font-size: 0.8rem;
  padding: 6px 12px;
  border: none;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.blog-meta .category-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-title-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
  transition: all var(--transition-fast);
}

.blog-title-link:hover {
  color: var(--brand-secondary);
  text-decoration: underline;
}

/* ============================================
   SCHEDULE SECTION - ENHANCED
   ============================================ */

.schedule-section {
  background: var(--bg-accent);
}

.wellness-living-widget {
  background: linear-gradient(135deg, #FFFFFF, #FEFEFE);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--brand-secondary);
  min-height: 500px;
  overflow: hidden;
}

.wellness-living-widget .wl-widget {
  min-height: 600px;
  max-height: 800px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--border-radius);
}

/* ============================================
   CONTACT SECTION - ENHANCED
   ============================================ */

.contact-section {
  background: var(--bg-primary);
}

.contact-info h3 {
  color: var(--brand-primary);
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
}

.contact-item {
  margin-bottom: var(--spacing-lg);
}

.contact-icon-wrapper {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.contact-icon-wrapper i {
  color: var(--brand-primary);
  margin-top: 4px;
  font-size: var(--font-size-lg);
  background: linear-gradient(135deg, rgba(46, 134, 222, 0.1), rgba(255, 99, 72, 0.05));
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-link {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

.contact-link:hover,
.contact-link:focus {
  text-decoration: underline;
  color: var(--brand-secondary);
}

.contact-form h3 {
  color: var(--brand-primary);
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
}

/* ============================================
   FOOTER - ENHANCED
   ============================================ */

footer {
  background: #0b5bef !important;
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.site-footer {
  background: #0b5bef !important;
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-primary);
  transform: scaleX(0.3);
}

.site-footer.border-animate::before {
  animation: sectionBorderSlide 2s ease-in-out forwards;
  animation-delay: 0.5s;
}

.footer-logo {
  max-height: 90px;
  width: auto;
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-base);
  line-height: 1.7;
}

.footer-heading {
  color: var(--brand-secondary);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
  padding: 4px 0;
  display: inline-block;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--brand-secondary);
  text-decoration: underline;
  transform: translateX(5px);
}

.footer-contact-item {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: baseline;
  font-size: var(--font-size-base);
}

.footer-contact-item i {
  color: var(--brand-secondary);
  margin-right: var(--spacing-sm);
  font-size: var(--font-size-base);
  line-height: 1.4;
  background: rgba(255, 99, 72, 0.2);
  padding: 6px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.3);
  margin: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-copyright,
.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-base);
}

/* ============================================
   BACK TO TOP BUTTON - ENHANCED
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border: 2px solid var(--brand-secondary);
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 0.9;
  visibility: visible;
}

.back-to-top:hover {
  opacity: 1;
  background: linear-gradient(135deg, var(--brand-primary-hover), var(--brand-primary));
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(46, 134, 222, 0.4);
}

/* ============================================
   APP CTA SECTION - ENHANCED
   ============================================ */

.app-cta-section {
  background-color: #0B5BEF;
  color: var(--color-white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* Ensure APP CTA section gets a top border */
.app-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-primary);
  transform: scaleX(1);
  opacity: 1;
  z-index: 1;
}

/* Animate APP CTA border gradient when first viewed */
.app-cta-section.border-animate::before {
  animation: sectionBorderGradient 2.5s ease-in-out forwards;
  animation-delay: 0.3s;
  animation-fill-mode: forwards !important;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary)) !important;
}

/* Background grid pattern for APP CTA section */
.app-cta-section::after {
  content: '' !important;
  position: absolute !important;
  top: -80px !important;
  left: -80px !important;
  width: calc(100% + 160px) !important;
  height: calc(100% + 160px) !important;
  background: none !important;
  background-image: 
    repeating-linear-gradient(15deg, rgba(255, 255, 102, 0.2) 0px, rgba(255, 255, 102, 0.2) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(105deg, rgba(255, 255, 102, 0.2) 0px, rgba(255, 255, 102, 0.2) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(15deg, rgba(255, 255, 102, 0.1) 0px, rgba(255, 255, 102, 0.1) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(105deg, rgba(255, 255, 102, 0.1) 0px, rgba(255, 255, 102, 0.1) 1px, transparent 1px, transparent 80px) !important;
  animation: movingGrid 8s linear infinite !important;
  pointer-events: none !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  z-index: 1 !important;
}

@keyframes movingGrid {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(20px, -20px, 0);
  }
  100% {
    transform: translate3d(40px, -40px, 0);
  }
}

.app-cta-section .container {
  position: relative;
  z-index: 2;
}

.app-cta-section h2 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
  /* text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.8); */
}

.app-cta-section .lead {
  color: var(--color-white);
  margin-bottom: 2.5rem;
}

.custom-btn {
  background: linear-gradient(135deg, var(--brand-secondary), #e55641);
  border: 2px solid var(--color-white);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 99, 72, 0.4);
  min-width: 200px;
}


.custom-btn:hover {
  background: linear-gradient(135deg, #e55641, var(--brand-secondary));
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 99, 72, 0.6);
  text-decoration: none;
}

.custom-btn i {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--color-white);
}

.custom-btn p {
  margin: 0;
  text-align: left;
  line-height: 1.2;
}

.custom-btn p span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffe06b;
}

@media (max-width: 768px) {
  .custom-btn {
    min-width: auto;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .app-cta-section {
    padding: 3rem 0;
  }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS - MODERN
   ============================================ */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--brand-primary);
  color: var(--color-white);
  padding: 10px 18px;
  z-index: 100;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 6px;
  color: var(--color-white);
}

/* Focus States - Enhanced */
*:focus {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-cta {
    justify-content: flex-start;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  :root {
    --font-size-base: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 10px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  :root {
    --font-size-base: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 26px;
  }
  
  .hero-section {
    min-height: 95vh;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .hero-content .lead {
    font-size: 1.6rem;
  }
  
  section {
    padding: 6rem 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 4.5rem;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
  .info-bar {
    font-size: 14px;
  }
  
  .info-bar-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .social-links {
    justify-content: center;
    margin-top: 0.5rem;
  }
  
  .hero-decoration-1,
  .hero-decoration-2 {
    display: none;
  }
  
  .hero-section .carousel-control-prev,
  .hero-section .carousel-control-next {
    width: 45px;
    height: 45px;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .testimonial-card {
    padding: var(--spacing-lg);
  }
  
  .custom-btn {
    min-width: auto;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .app-cta-section {
    padding: 4rem 0;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* ============================================
   REDUCED MOTION PREFERENCES
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .hero-decoration-1,
  .hero-decoration-2 {
    animation: none;
  }
  
  .app-cta-section::before {
    animation: none;
  }
}

/* ============================================
   UTILITY CLASSES - ENHANCED
   ============================================ */

.text-brand-primary {
  color: var(--brand-primary) !important;
}

.text-brand-secondary {
  color: var(--brand-secondary) !important;
}

.bg-brand-primary {
  background-color: var(--brand-primary) !important;
}

.bg-brand-secondary {
  background-color: var(--brand-secondary) !important;
}

.border-brand-primary {
  border-color: var(--brand-primary) !important;
}

.min-vh-75 {
  min-height: 75vh !important;
}

.text-large {
  font-size: var(--font-size-lg) !important;
}

.text-xl {
  font-size: var(--font-size-xl) !important;
}

.shadow-brand {
  box-shadow: var(--shadow-color) !important;
}

.highlight-text {
  background: linear-gradient(135deg, rgba(255, 99, 72, 0.1), rgba(46, 134, 222, 0.08));
  padding: 1rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--brand-primary);
}

/* Screen Reader Only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-only-focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: inherit !important;
  margin: inherit !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: inherit !important;
}

/* End of Total Health Systems New Bright Design Styles */

/* ============================================
   REQUIRED CHANGES: RED BUTTON OVERRIDES
   - Community Portal Buttons
   - a.book-call
   ============================================ */

/* Make all Community Portal Buttons red (limit to schedule section) */
.schedule-section .btn-primary {
  background: linear-gradient(135deg, #dc3545, #c82333) !important; /* Bootstrap danger red */
  border-color: #dc3545 !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.35) !important;
}

.schedule-section .btn-primary:hover,
.schedule-section .btn-primary:focus {
  background: linear-gradient(135deg, #c82333, #bd2130) !important;
  border-color: #bd2130 !important;
  transform: translateY(-2px);
}

/* Make the Book Call button red */
.book-call {
  background: linear-gradient(135deg, #dc3545, #c82333) !important;
  color: #fff !important;
  border-color: #dc3545 !important;
}

.book-call:hover,
.book-call:focus {
  background: linear-gradient(135deg, #c82333, #bd2130) !important;
  color: #fff !important;
  border-color: #bd2130 !important;
}

.grecaptcha-badge {
  display:none;
}