/* ============================================
   HTMA LANDING PAGE STYLES
   ============================================ */

/* -----------------------------------------
   HERO SECTION (V3 Style)
   ----------------------------------------- */
.htma-hero {
  background: linear-gradient(135deg, #F5F0E8 0%, #F9F5F0 100%);
  padding: calc(80px + 3rem) 0 4rem;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.htma-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(139, 154, 130, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.htma-hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .htma-hero-content {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 0.5rem 2.5rem;
  }

  .htma-hero-content > .htma-hero-badge {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .htma-hero-content > .htma-hero-text {
    grid-column: 1;
    grid-row: 2;
  }

  .htma-hero-content > .htma-hero-image {
    grid-column: 2;
    grid-row: 1 / -1;
  }
}

.htma-hero-text {
  position: relative;
  z-index: 1;
}

.htma-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #8B9A82, #6B7A62);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  justify-self: start;
  width: fit-content;
}

.htma-hero-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: #6B7A62;
  margin-bottom: 1rem;
}

.htma-hero-title span {
  display: block;
}

.htma-hero-subtitle {
  font-size: 1rem;
  color: #6B6B6B;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.htma-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.htma-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.htma-btn-primary {
  background: linear-gradient(135deg, #8B9A82, #6B7A62);
  color: white;
  border: none;
}

.htma-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 154, 130, 0.4);
  color: white;
}

.htma-btn-primary svg {
  stroke: white;
}

/* Section CTA - centered button after section content */
.htma-section-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.htma-btn-secondary {
  background: white;
  color: #4A4B49;
  border: 2px solid #E5E5E5;
}

.htma-btn-secondary:hover {
  border-color: #8B9A82;
  color: #8B9A82;
}

.htma-hero-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #6B6B6B;
}

.htma-hero-trust svg {
  color: #8B9A82;
  fill: #8B9A82;
}

.htma-hero-image {
  position: relative;
}

.htma-hero-image img {
  width: 100%;
  max-height: 65vh;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
  .htma-hero-badge {
    order: -2;
    justify-self: center;
  }

  .htma-hero-text {
    text-align: center;
  }

  .htma-hero-cta {
    justify-content: center;
  }

  .htma-hero-trust {
    justify-content: center;
  }

  .htma-hero-image {
    order: -1;
  }
}

@media (max-width: 767px) {
  .htma-hero {
    padding-top: calc(80px + 1rem);
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  .htma-hero-stat {
    padding: 0.75rem 1rem;
  }

  .htma-hero-stat-number {
    font-size: 1.25rem;
  }
}

/* -----------------------------------------
   SECTION STYLES
   ----------------------------------------- */
.htma-section {
  padding: 5rem 0;
}

.htma-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--color-charcoal);
  text-align: center;
  margin-bottom: 1rem;
}

.htma-section-subtitle {
  text-align: center;
  color: var(--color-medium-gray);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.htma-section-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-charcoal);
  margin-bottom: 3rem;
  font-weight: 500;
}

/* -----------------------------------------
   WHAT IS HTMA SECTION
   ----------------------------------------- */
.htma-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .htma-intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.htma-intro-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-charcoal);
  margin-bottom: 1.5rem;
}

.htma-intro-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  display: block;
}

@media (max-width: 767px) {
  .htma-intro-image {
    max-width: 233px;
  }
}

.htma-comparison-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--color-light-cream);
}

.comparison-item.highlight {
  background: var(--color-sage);
  color: white;
}

.comparison-item.highlight h4,
.comparison-item.highlight p {
  color: white;
}

.comparison-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-charcoal);
}

.comparison-item p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--color-medium-gray);
}

.comparison-icon {
  display: block;
  margin-top: 0.5rem;
}

.comparison-icon svg {
  stroke: #4A4B49;
}

.comparison-icon svg path,
.comparison-icon svg circle,
.comparison-icon svg polyline,
.comparison-icon svg line,
.comparison-icon svg rect {
  stroke: #4A4B49;
}

.comparison-item.highlight .comparison-icon svg,
.comparison-item.highlight .comparison-icon svg path,
.comparison-item.highlight .comparison-icon svg circle,
.comparison-item.highlight .comparison-icon svg polyline,
.comparison-item.highlight .comparison-icon svg line,
.comparison-item.highlight .comparison-icon svg rect {
  stroke: white;
}

.comparison-vs {
  text-align: center;
  font-weight: 600;
  color: var(--color-sage);
  font-size: 1.1rem;
}

/* -----------------------------------------
   JOURNEY CARDS
   ----------------------------------------- */
.htma-journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .htma-journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .htma-journey-grid {
    grid-template-columns: 1fr;
  }
}

.htma-journey-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.htma-journey-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.journey-icon {
  margin-bottom: 1rem;
  color: #8B9A82;
  text-align: center;
}

.journey-icon svg {
  stroke: #8B9A82;
}

.journey-icon svg path,
.journey-icon svg circle,
.journey-icon svg polyline,
.journey-icon svg line,
.journey-icon svg rect {
  stroke: #8B9A82;
}

.htma-journey-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
  text-align: center;
}

.htma-journey-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-medium-gray);
}

/* -----------------------------------------
   QUIZ CHECKLIST
   ----------------------------------------- */
.bg-sage-light {
  background-color: var(--color-sage-light);
}

.htma-quiz-container {
  max-width: 600px;
  margin: 0 auto;
}

.htma-quiz-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.htma-quiz-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.htma-quiz-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.htma-quiz-checkbox {
  display: none;
}

.htma-quiz-checkmark {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border: 2px solid var(--color-sage, #8B9A82);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Faint checkmark on hover (before checked) */
.htma-quiz-item:hover .htma-quiz-checkbox:not(:checked) + .htma-quiz-checkmark::after {
  content: '';
  width: 6px;
  height: 12px;
  border: solid var(--color-sage, #8B9A82);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.htma-quiz-checkbox:checked + .htma-quiz-checkmark {
  background: var(--color-sage, #8B9A82);
  border-color: var(--color-sage, #8B9A82);
}

.htma-quiz-checkbox:checked + .htma-quiz-checkmark::after {
  content: '';
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
  opacity: 1;
}

.htma-quiz-text {
  font-size: 1rem;
  color: var(--color-charcoal);
  line-height: 1.5;
}

.htma-quiz-result {
  margin-top: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease, max-height 0.4s ease, margin-top 0.4s ease;
  max-height: 0;
  overflow: hidden;
}

.htma-quiz-result.active {
  opacity: 1;
  transform: translateY(0);
  max-height: 300px;
  margin-top: 2rem;
}

.quiz-result-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--color-sage);
}

.quiz-result-icon {
  display: block;
  margin-bottom: 1rem;
  color: #8B9A82;
}

.quiz-result-icon svg {
  stroke: #8B9A82;
}

.quiz-result-icon svg path,
.quiz-result-icon svg circle,
.quiz-result-icon svg polyline,
.quiz-result-icon svg line,
.quiz-result-icon svg rect {
  stroke: #8B9A82;
}

.quiz-result-text {
  font-size: 1.1rem;
  color: var(--color-charcoal);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* -----------------------------------------
   BENEFITS GRID
   ----------------------------------------- */
.htma-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .htma-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .htma-benefits-grid {
    grid-template-columns: 1fr;
  }
}

.htma-benefit-card {
  background: var(--color-cream);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.htma-benefit-card:hover {
  transform: translateY(-3px);
}

.benefit-icon {
  display: block;
  margin-bottom: 0.75rem;
  color: #8B9A82;
}

.benefit-icon svg {
  stroke: #8B9A82;
}

.benefit-icon svg path,
.benefit-icon svg circle,
.benefit-icon svg polyline,
.benefit-icon svg line,
.benefit-icon svg rect {
  stroke: #8B9A82;
}

.htma-benefit-card h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin: 0;
  line-height: 1.4;
}

.htma-benefits-closing {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-charcoal);
  max-width: 800px;
  margin: 2rem auto 0;
  line-height: 1.7;
}

/* -----------------------------------------
   TIMELINE
   ----------------------------------------- */
.htma-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.htma-timeline::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-sage-light, #C5CFC0);
  z-index: 0;
}

@media (max-width: 576px) {
  .htma-timeline::before {
    left: 20px;
  }
}

.htma-timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.htma-timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-number {
  width: 50px;
  height: 50px;
  background-color: #4A4B49;
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 576px) {
  .timeline-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .htma-timeline-item {
    gap: 1rem;
  }
}

.htma-timeline-item:hover .timeline-number,
.htma-timeline-item.active .timeline-number {
  background-color: #8B9A82;
  transform: scale(1.1);
}

.timeline-content {
  flex: 1;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.htma-timeline-item:hover .timeline-content,
.htma-timeline-item.active .timeline-content {
  background: var(--color-warm-cream, #F5F0E8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-medium-gray);
  margin: 0;
}

/* -----------------------------------------
   RESEARCH SECTION
   ----------------------------------------- */
.htma-research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .htma-research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .htma-research-grid {
    grid-template-columns: 1fr;
  }
}

.research-card {
  background: var(--color-cream);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.research-icon {
  display: block;
  margin-bottom: 1rem;
  color: #8B9A82;
}

.research-icon svg {
  stroke: #8B9A82;
}

.research-icon svg path,
.research-icon svg circle,
.research-icon svg polyline,
.research-icon svg line,
.research-icon svg rect {
  stroke: #8B9A82;
}

.research-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}

.research-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-medium-gray);
  margin-bottom: 0.75rem;
}

.research-source {
  font-size: 0.8rem;
  color: var(--color-sage);
  font-style: italic;
}

.htma-lab-info {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.htma-lab-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}

.htma-lab-info p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-medium-gray);
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.lab-certifications {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.certification-badge {
  background: var(--color-sage-light);
  color: var(--color-charcoal);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* -----------------------------------------
   FAQ SECTION
   ----------------------------------------- */
.htma-faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.htma-faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.htma-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-charcoal);
  transition: background 0.2s ease;
}

.htma-faq-question:hover {
  background: var(--color-light-cream);
}

.htma-faq-question span:first-child {
  flex: 1;
  padding-right: 1rem;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--color-sage);
  transition: transform 0.3s ease;
}

.htma-faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.htma-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
}

.htma-faq-item.active .htma-faq-answer {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem;
}

.htma-faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-medium-gray);
  margin-bottom: 1rem;
}

.htma-faq-answer ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.htma-faq-answer li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-medium-gray);
  margin-bottom: 0.75rem;
}

.htma-faq-answer a {
  color: var(--color-sage);
  text-decoration: underline;
}

.htma-faq-answer a:hover {
  color: var(--color-charcoal);
}

/* -----------------------------------------
   FINAL CTA SECTION
   ----------------------------------------- */
.htma-cta-section {
  background: linear-gradient(135deg, var(--color-sage-dark, #5A5F56) 0%, var(--color-sage-green, #8B9A82) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.htma-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.htma-cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: white;
}

.htma-cta-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.htma-trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.htma-trust-list li {
  position: relative;
  padding-left: 1.5em;
  color: white;
}

.htma-trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
}

.htma-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--color-sage-dark, #5A5F56);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.htma-cta-btn:hover {
  background: var(--color-warm-cream, #F5F0E8);
  transform: translateY(-2px);
  color: var(--color-sage-dark, #5A5F56);
}

.htma-cta-btn svg {
  stroke: currentColor;
}

.htma-cta-link {
  color: white;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.htma-cta-link:hover {
  color: #D4D4D4;
}

/* -----------------------------------------
   DISCLAIMER
   ----------------------------------------- */
.htma-disclaimer {
  background: var(--color-light-cream);
  padding: 2rem 0;
}

.htma-disclaimer p {
  font-size: 0.85rem;
  color: var(--color-medium-gray);
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
