/* ========================================
   Condition Page Styles
   ======================================== */

/* Condition Hero */
.condition-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  padding: 120px 0 60px;
  color: var(--color-white);
}

@media (min-width: 768px) {
  .condition-hero {
    padding: 140px 0 80px;
  }
}

@media (min-width: 1024px) {
  .condition-hero {
    padding: 160px 0 100px;
  }
}

.condition-hero-inner {
  max-width: 900px;
}

.condition-hero h1 {
  color: var(--color-white);
  font-size: 1.875rem;
  margin-bottom: 16px;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .condition-hero h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .condition-hero h1 {
    font-size: 2.75rem;
  }
}

.condition-hero-subtitle {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-style: italic;
}

@media (min-width: 768px) {
  .condition-hero-subtitle {
    font-size: 1.25rem;
  }
}

.condition-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 480px) {
  .condition-hero-cta {
    flex-direction: row;
    gap: 16px;
  }
}

.condition-hero-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
}

.condition-hero-cta .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.condition-hero-cta .btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-right: 8px;
}

/* Content Narrow - For long-form reading */
.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.content-narrow h2 {
  font-size: 1.625rem;
  margin-bottom: 20px;
  margin-top: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .content-narrow h2 {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .content-narrow h2 {
    font-size: 2.125rem;
  }
}

.content-narrow h3 {
  font-size: 1.375rem;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--color-navy);
  line-height: 1.35;
}

@media (min-width: 768px) {
  .content-narrow h3 {
    font-size: 1.5rem;
  }
}

.content-narrow h4 {
  font-size: 1.1875rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--color-navy);
}

@media (min-width: 768px) {
  .content-narrow h4 {
    font-size: 1.125rem;
  }
}

.content-narrow p {
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .content-narrow p {
    font-size: 1.0625rem;
    line-height: 1.8;
  }
}

.content-narrow ul {
  margin: 16px 0 24px;
  padding-left: 0;
  list-style: none;
}

.content-narrow ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1.0625rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .content-narrow ul li {
    font-size: 1.0625rem;
    padding-left: 24px;
    margin-bottom: 10px;
  }
}

.content-narrow ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--color-teal);
  border-radius: 50%;
}

.content-narrow ul li strong {
  color: var(--color-navy);
}

/* Info Cards */
.info-card {
  background-color: var(--color-white);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .info-card {
    padding: 24px 28px;
    margin-bottom: 20px;
  }
}

.info-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 12px;
  margin-top: 0;
  color: var(--color-navy);
}

@media (min-width: 768px) {
  .info-card h3 {
    font-size: 1.125rem;
  }
}

.info-card p {
  margin-bottom: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .info-card p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* Mechanism Sections */
.mechanism-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-gray-200);
}

.mechanism-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.mechanism-section h3 {
  color: var(--color-primary);
  margin-top: 0;
}

/* Evidence Highlights */
.evidence-highlight {
  background-color: var(--color-gray-50);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  border-left: 4px solid var(--color-primary);
}

@media (min-width: 768px) {
  .evidence-highlight {
    padding: 28px 32px;
    margin: 24px 0;
  }
}

.evidence-highlight h4 {
  margin-top: 0;
  font-size: 1.1875rem;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .evidence-highlight h4 {
    font-size: 1.125rem;
  }
}

.evidence-highlight p {
  font-size: 1.0625rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .evidence-highlight p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

.evidence-highlight ul {
  margin-bottom: 0;
}

/* Stage Cards */
.stage-card {
  background-color: var(--color-white);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .stage-card {
    padding: 32px;
    margin-bottom: 24px;
  }
}

.stage-card h3 {
  margin-top: 0;
  font-size: 1.3125rem;
  color: var(--color-navy);
  line-height: 1.35;
}

@media (min-width: 768px) {
  .stage-card h3 {
    font-size: 1.25rem;
  }
}

.stage-quote {
  font-style: italic;
  color: var(--color-primary);
  font-size: 1.1875rem;
  margin-bottom: 16px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .stage-quote {
    font-size: 1.125rem;
  }
}

.stage-card h4 {
  margin-top: 24px;
  font-size: 1.0625rem;
  color: var(--color-navy);
}

@media (min-width: 768px) {
  .stage-card h4 {
    font-size: 1rem;
  }
}

/* Pathway Sections */
.pathway-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-gray-200);
}

.pathway-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pathway-section h3 {
  margin-top: 0;
}

/* Journey Phases */
.journey-phase {
  background-color: var(--color-gray-50);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .journey-phase {
    padding: 24px 28px;
    margin-bottom: 20px;
  }
}

.journey-phase h3 {
  margin-top: 0;
  font-size: 1.1875rem;
  color: var(--color-navy);
  line-height: 1.35;
}

@media (min-width: 768px) {
  .journey-phase h3 {
    font-size: 1.125rem;
  }
}

.journey-phase p {
  margin-bottom: 12px;
  font-size: 1.0625rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .journey-phase p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

.journey-phase ul {
  margin-bottom: 0;
}

/* Emotional Cards */
.emotional-card {
  background-color: var(--color-white);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-teal);
}

@media (min-width: 768px) {
  .emotional-card {
    padding: 28px 32px;
    margin-bottom: 20px;
  }
}

.emotional-card h3 {
  margin-top: 0;
  font-size: 1.1875rem;
  color: var(--color-navy);
  line-height: 1.35;
}

@media (min-width: 768px) {
  .emotional-card h3 {
    font-size: 1.125rem;
  }
}

.emotional-card p {
  margin-bottom: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .emotional-card p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* Highlight Text */
.highlight-text {
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
  margin: 32px 0;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .highlight-text {
    font-size: 1.25rem;
  }
}

/* Pull Quote - Subtle emphasis for key statements */
.pull-quote {
  border-left: 3px solid var(--color-teal);
  padding: 20px 24px;
  margin: 32px 0;
  background-color: var(--color-gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.pull-quote p {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
}

@media (min-width: 768px) {
  .pull-quote {
    padding: 24px 32px;
    margin: 40px 0;
  }

  .pull-quote p {
    font-size: 1.1875rem;
  }
}

/* Key Takeaway Box */
.key-takeaway {
  background-color: #f0f7ff;
  border: 1px solid #d0e3f7;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
}

.key-takeaway-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.key-takeaway-title svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
}

.key-takeaway p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
  color: var(--color-text-dark);
}

@media (min-width: 768px) {
  .key-takeaway {
    padding: 28px 32px;
  }
}

/* Section Divider */
.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-teal);
  margin: 0 auto 32px;
  border-radius: 2px;
}

/* Increase section spacing for condition pages - targets sections with content-narrow */
.section:has(.content-narrow) {
  padding: 56px 0;
}

.section:has(.info-card) {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .section:has(.content-narrow),
  .section:has(.info-card) {
    padding: 72px 0;
  }
}

@media (min-width: 1024px) {
  .section:has(.content-narrow),
  .section:has(.info-card) {
    padding: 88px 0;
  }
}

/* References Section */
.references-section {
  background-color: var(--color-gray-100);
  padding: 40px 0;
}

.references-section h3 {
  font-size: 1.125rem;
  margin-bottom: 20px;
  color: var(--color-navy);
}

.references {
  column-count: 1;
  column-gap: 32px;
}

@media (min-width: 768px) {
  .references {
    column-count: 2;
  }
}

.references p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--color-text-medium);
  margin-bottom: 12px;
  break-inside: avoid;
}

.references sup {
  color: var(--color-primary);
  font-weight: 600;
}

/* Background utility */
.bg-light {
  background-color: var(--color-gray-50);
}

/* Sticky Mobile CTA */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background-color: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.sticky-cta-mobile .btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .sticky-cta-mobile {
    display: none;
  }
}

/* Add padding to footer to account for sticky CTA on mobile */
.footer {
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .footer {
    padding-bottom: 0;
  }
}

/* Content Grid - For image + text layouts */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .content-grid {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .content-grid.reverse {
    flex-direction: row-reverse;
  }
}

.content-text {
  flex: 1;
}

.content-text p {
  margin-bottom: 16px;
}

.content-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-image img {
  width: 100%;
  height: auto;
}

/* Benefit List */
.benefit-list {
  list-style: none;
  margin-top: 24px;
  padding-left: 0;
}

.benefit-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-left: 0;
}

.benefit-list li::before {
  display: none;
}

.benefit-list svg {
  width: 24px;
  height: 24px;
  fill: var(--color-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-list strong {
  display: block;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.benefit-list span {
  font-size: 0.9375rem;
  color: var(--color-text-medium);
}
