/* ROOT Level Healing - Modern Website Styles - v12.3 (Final Padding Fix) */

/* ---------------------------------- */
/* 1. Reset and Base Styles
/* ---------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1E293B;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------------------------------- */
/* 2. Typography
/* ---------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  word-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: 3.75rem; font-weight: 800; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: #64748B;
}

/* ---------------------------------- */
/* 3. Buttons
/* ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  min-width: 140px;
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #0891B2 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  min-width: 180px;
}

.btn-yellow {
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  color: #2563EB !important;
  border: 2px solid #F59E0B;
}

.btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(245 158 11 / 0.2), 0 4px 6px -4px rgb(245 158 11 / 0.2);
}

/* ---------------------------------- */
/* 4. General Section Styles
/* ---------------------------------- */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #64748B;
  line-height: 1.6;
}

/* ---------------------------------- */
/* 5. Hero Section
/* ---------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-background {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -2;
}

.gradient-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(8, 145, 178, 0.8) 100%);
  z-index: -1;
}

.floating-elements {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.floating-element.element-1 { width: 200px; height: 200px; top: 10%; left: 10%; animation-delay: 0s; }
.floating-element.element-2 { width: 150px; height: 150px; top: 60%; right: 15%; animation-delay: 2s; }
.floating-element.element-3 { width: 100px; height: 100px; bottom: 20%; left: 20%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  text-align: center;
  color: #FFFFFF;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 4rem;
}

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: #FCD34D;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------------------------------- */
/* 6. Problem/Solution Section
/* ---------------------------------- */
.problem-solution {
  background: #F8FAFC;
}

.problem-solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.problem-card, .solution-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover, .solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.card-icon {
  width: 64px; height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.problem-card .card-icon { background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%); color: #DC2626; }
.solution-card .card-icon { background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%); color: #059669; }

.problem-list, .solution-list {
  list-style: none;
  margin-top: 1.5rem;
  padding-left: 0;
}

.problem-list li, .solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #64748B;
}

.problem-list li::before { content: "⚠️"; flex-shrink: 0; }
.solution-list li::before { content: "✅"; flex-shrink: 0; }

/* ---------------------------------- */
/* 7. Education & Video Section
/* ---------------------------------- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.education-card {
  background: #FFFFFF;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.education-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-content h3 { font-size: 1.25rem; }

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000000;
}

.education-card .video-embed {
  border-radius: 0.75rem 0.75rem 0 0;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.download-card {
  background: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
  color: #FFFFFF;
  justify-content: center;
  text-align: center;
}

.download-card .card-content h3,
.download-card .card-content p {
  color: #FFFFFF;
}

.download-icon {
  width: 64px; height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #FFFFFF;
}

/* ---------------------------------- */
/* 8. Testimonials Section
/* ---------------------------------- */
.testimonials {
  background: #F8FAFC;
  padding-bottom: 0;
}

.testimonial-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
  background: #FFFFFF;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.testimonial-content, .testimonial-video {
  min-width: 0;
}

.testimonial-meta { margin-bottom: 1.5rem; }
.testimonial-author { font-weight: 700; color: #2563EB; font-size: 1.125rem; }
.testimonial-role { color: #64748B; font-size: 0.875rem; }

.testimonial-highlight {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border-left: 4px solid #2563EB;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-style: italic;
}

.testimonial-story p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #64748B;
}

.testimonial-video .video-embed {
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.video-caption { text-align: center; padding-top: 1rem; }
.video-caption h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.video-caption p { color: #64748B; font-size: 0.875rem; margin: 0; }

.lab-results-wrapper {
  background: #F8FAFC;
  padding: 3rem 1.5rem;
  margin-top: 3rem;
  border-radius: 1.5rem;
  text-align: center;
}

.lab-results-wrapper h4 {
  font-size: 1.875rem;
  margin-bottom: 2rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.result-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #FFFFFF;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.result-label { display: block; font-size: 0.75rem; color: #64748B; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.result-value { display: block; font-size: 1.25rem; font-weight: 700; color: #2563EB; }
.results-note { font-size: 1rem; color: #64748B; font-style: italic; margin: 0; }

/* ---------------------------------- */
/* 9. Lab Reports Gallery & Modal
/* ---------------------------------- */
.lab-reports-section {
  margin-top: 0;
  text-align: center;
  background: #F8FAFC;
  padding-top: 3rem;
  padding-bottom: 3rem; /* <<< THE FIX */
}

.lab-reports-background {
  /* This class is no longer needed with the simpler fix, but we'll leave it in the HTML for clarity */
}

.lab-reports-subtitle {
  color: #64748B;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.lab-reports-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.lab-report-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lab-report-thumbnail {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  width: 100%;
}

.lab-report-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.lab-report-thumbnail img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: block;
}

.thumbnail-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #FFFFFF;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.lab-report-thumbnail:hover .thumbnail-overlay { transform: translateY(0); }
.thumbnail-info h4 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.thumbnail-info p { font-size: 0.875rem; opacity: 0.9; margin-bottom: 0.75rem; }
.view-icon { display: inline-block; font-size: 0.875rem; font-weight: 600; padding: 0.5rem 1rem; background: rgba(37, 99, 235, 0.9); border-radius: 0.375rem; }

.lab-report-date {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid #E2E8F0;
  max-width: 220px;
}

.date-label { display: block; font-size: 0.75rem; color: #64748B; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; font-weight: 600; }
.date-value { display: block; font-size: 0.875rem; color: #2563EB; font-weight: 700; }

/* Modal Styles */
.modal {
  display: none; position: fixed; z-index: 2000; left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative; margin: 2% auto; padding: 0;
  width: 90%; max-width: 1200px; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}

.modal-content img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 0.5rem; }

.modal-close {
  position: absolute; top: -40px; right: 0;
  color: #FFFFFF; font-size: 2rem; font-weight: bold; cursor: pointer; z-index: 2001;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.5); border-radius: 50%;
  transition: background 0.3s ease;
}

.modal-close:hover { background: rgba(0, 0, 0, 0.8); }

.modal-navigation {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 600px;
  margin-top: 1rem; padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
}

.nav-btn {
  background: rgba(37, 99, 235, 0.9); color: #FFFFFF; border: none;
  padding: 0.75rem 1.5rem; border-radius: 0.5rem;
  cursor: pointer; font-weight: 600; transition: background 0.3s ease;
}

.nav-btn:hover { background: #2563EB; }
.nav-btn:disabled { background: rgba(100, 116, 139,.5); cursor: not-allowed; }
#modalTitle { color: #FFFFFF; font-weight: 700; font-size: 1.125rem; }

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

/* ---------------------------------- */
/* 10. CTA Section
/* ---------------------------------- */
.cta-section {
  background: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
  color: #FFFFFF;
  text-align: center;
}

.cta-content { max-width: 600px; margin: 0 auto; }
.cta-title { color: #FFFFFF; }
.cta-subtitle { color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; }

.cta-buttons {
  display: flex; gap: 1rem; justify-content: center;
  margin-bottom: 2rem; flex-wrap: wrap;
}

.cta-note p { color: rgba(255, 255, 255, 0.8); font-size: 0.875rem; margin: 0; }

.trust-signals {
  display: flex; justify-content: center; gap: 2rem;
  flex-wrap: wrap; margin-top: 2rem;
}

.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9); font-size: 0.875rem; font-weight: 500;
}

/* ---------------------------------- */
/* 11. Footer
/* ---------------------------------- */
.footer {
  background: #1E293B;
  color: #FFFFFF;
}

.footer .container {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.footer-disclaimer {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.footer-disclaimer p { font-size: 0.8rem; color: #94A3B8; line-height: 1.5; }
.footer-disclaimer p strong { color: #E2E8F0; }

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p { color: #94A3B8; font-size: 0.875rem; margin: 0; }

/* ---------------------------------- */
/* 12. Animations
/* ---------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------- */
/* 13. Responsive Design (Media Queries)
/* ---------------------------------- */

/* For Tablets and larger */
@media (min-width: 769px) {
  .testimonial-featured {
    grid-template-columns: 1fr 1fr;
    padding: 3rem;
  }

  .education-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* For Tablets and smaller desktops */
@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
}

/* For smaller tablets and large phones */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.125rem; }
  .hero-stats { gap: 2rem; }
  .problem-solution-grid, .education-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .lab-reports-gallery { grid-template-columns: 1fr; }
  .modal-navigation { flex-direction: column; gap: 1rem; }
}

/* For mobile phones */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .problem-card, .solution-card { padding: 1.5rem; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-report-thumbnail img { height: 300px; }
}
