/**
 * Homepage Specific Styles
 * Styles unique to the homepage (index.php)
 */

/* ========================================
   HERO SECTION - Homepage
   ======================================== */

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-navy-dark);
  padding: var(--space-20) 0;
}

.home-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.home-hero-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1), transparent 50%);
}

.home-hero-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPjxwYXRoIGQ9Ik0gMTAwIDAgTCAwIDAgMCAxMDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyaWQpIi8+PC9zdmc+');
  opacity: 0.4;
}

.home-hero-content {
  position: relative;
  z-index: var(--z-base);
  width: 100%;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-inner {
  max-width: var(--container-lg);
  text-align: center;
  color: var(--color-white);
}

/* Hero Title */
.home-hero-title {
  font-size: var(--text-4xl);
  line-height: var(--leading-none);
  margin-bottom: var(--space-8);
  letter-spacing: var(--tracking-tight);
}

.home-hero-title-line {
  display: block;
  color: rgba(255, 255, 255, 0.9);
}

.home-hero-title-accent {
 /* display: block;*/
  background: linear-gradient(to right, var(--color-yellow), #fde047, var(--color-yellow-dark));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Hero Subtitle & Description */
.home-hero-subtitle {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: #dbeafe;
  margin-bottom: var(--space-6);
}

.home-hero-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(191, 219, 254, 0.8);
  margin-bottom: var(--space-16);
  max-width: var(--container-md);
  margin-left: auto;
  margin-right: auto;
}

.home-hero-description .highlight {
  color: var(--color-yellow);
  font-weight: var(--font-semibold);
}

/* Responsive Hero */
@media (min-width: 1024px) {
  .home-hero-title {
    font-size: var(--text-5xl);
  }

  .home-hero-subtitle {
    font-size: var(--text-3xl);
  }

  .home-hero-description {
    font-size: var(--text-xl);
  }
}

@media (min-width: 1280px) {
  .home-hero-title {
    font-size: var(--text-6xl);
  }
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
  padding: var(--space-32) 0 var(--space-24) 0;
  background-color: var(--color-white);
}

.stat-card {
  position: relative;
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-0.5rem);
}

.stat-card-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-navy-dark);
  border-radius: var(--border-radius-2xl);
  transform: scale(1.05);
  transition: transform var(--transition-slow);
}

.stat-card:hover .stat-card-bg {
  transform: scale(1.08);
}

.stat-card-content {
  position: relative;
  background: var(--gradient-navy-dark);
  border-radius: var(--border-radius-2xl);
  padding: var(--space-10);
  border: 1px solid rgba(250, 204, 21, 0.2);
  box-shadow: var(--shadow-2xl);
  text-align: center;
}

.stat-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
  color: var(--color-yellow);
  margin: 0 auto var(--space-6);
}

.stat-number {
  font-size: var(--text-6xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  line-height: var(--leading-none);
  margin-bottom: var(--space-3);
}

.stat-suffix {
  color: var(--color-yellow);
}

.stat-label {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.stat-description {
  color: rgba(191, 219, 254, 0.7);
  font-size: var(--text-sm);
}

/* ========================================
   PURPOSE SECTION (What It Means)
   ======================================== */

.purpose-section {
  padding: var(--space-32) 0;
  background: linear-gradient(to bottom right, var(--color-gray-50), var(--color-white), #eff6ff);
  position: relative;
  overflow: hidden;
}

.purpose-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to bottom left, rgba(59, 130, 246, 0.1), transparent);
  pointer-events: none;
}

/* ========================================
   TESTIMONIAL SECTION
   ======================================== */

.testimonial-section {
  padding: var(--space-24) 0;
  background: var(--color-white);
  text-align: center;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.testimonial-star {
  width: var(--icon-md);
  height: var(--icon-md);
  color: var(--color-yellow);
  fill: currentColor;
}

.testimonial-quote {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-12);
  line-height: var(--leading-tight);
}

.testimonial-quote .text-accent {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-blue-dark);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--container-xl);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-item {
  text-align: center;
}

.testimonial-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
  margin: 0 auto var(--space-4);
  color: var(--color-blue-light);
}

.testimonial-item h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.testimonial-item p {
  font-size: var(--text-base);
  color: var(--color-gray-600);
}

/* ========================================
   CTA SECTION - For Patients
   ======================================== */

.cta-section {
  padding: var(--space-32) 0;
  background: var(--gradient-navy-dark);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0zNiAxOGMzLjMxNCAwIDYgMi42ODYgNiA2cy0yLjY4NiA2LTYgNi02LTIuNjg2LTYtNiAyLjY4Ni02IDYtNnoiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9nPjwvc3ZnPg==');
  opacity: 0.4;
  pointer-events: none;
}

.cta-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
  color: var(--color-white);
}

.cta-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-yellow);
}

.cta-description {
  font-size: var(--text-xl);
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-12);
  max-width: var(--container-md);
  margin-left: auto;
  margin-right: auto;
}

.cta-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .cta-benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cta-benefit {
  text-align: center;
}

.cta-benefit-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
  margin: 0 auto var(--space-4);
  color: var(--color-yellow);
}

.cta-benefit h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
  color: var(--color-white);
}

.cta-benefit p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
}

.cta-button-wrapper {
  text-align: center;
}

/* ========================================
   FOR CHIROPRACTORS SECTION
   ======================================== */

.for-chiropractors-section {
  padding: var(--space-32) 0;
  background: var(--color-white);
}

.badge-showcase {
  margin-top: var(--space-12);
}

.badge-showcase-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  text-align: center;
  margin-bottom: var(--space-8);
  color: var(--color-gray-900);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  justify-items: center;
  align-items: center;
}

@media (min-width: 640px) {
  .badge-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .badge-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.badge-grid-item {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--transition-base);
  animation: fadeInUp 0.6s ease-out backwards;
}

.badge-grid-item:nth-child(1) { animation-delay: 0.1s; }
.badge-grid-item:nth-child(2) { animation-delay: 0.2s; }
.badge-grid-item:nth-child(3) { animation-delay: 0.3s; }
.badge-grid-item:nth-child(4) { animation-delay: 0.4s; }
.badge-grid-item:nth-child(5) { animation-delay: 0.5s; }
.badge-grid-item:nth-child(6) { animation-delay: 0.6s; }

.badge-grid-item:hover {
  transform: translateY(-0.5rem) scale(1.05);
}

.badge-grid-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  user-select: none;
  pointer-events: none;
}

/* Badge item container (supports both .badge-item and .badge-grid-item) */
.badge-item,
.badge-grid-item {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--transition-base);
}

.badge-item:hover,
.badge-grid-item:hover {
  transform: translateY(-0.5rem) scale(1.05);
}

/* Badge Image Protection - Prevents right-click, drag, and save */
.badge-image-protected {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-base);
  padding:10px!important;
}

.badge-item:hover .badge-image-protected,
.badge-grid-item:hover .badge-image-protected {
  transform: scale(1.1);
}

/* Protection overlay */
.protected-badge {
  position: relative;
}

.protected-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  cursor: not-allowed;
  z-index: 3;
}

/* Responsive badge sizes */
@media (max-width: 768px) {
  .badge-image-protected {
    max-width: 65px;
    max-height: 65px;
  }
}

@media (max-width: 480px) {
  .badge-image-protected {
    max-width: 50px;
    max-height: 50px;
  }
}

/* ========================================
   FAQ SNAPSHOT SECTION
   ======================================== */

.faq-snapshot-section {
  padding: var(--space-24) 0;
  background: var(--gradient-light-blue);
}
