/* Approach Page Styles - Unified Numbered Sections */

/* ============================================
   HERO SECTION
   ============================================ */

.approach-hero {
  background: #FAFAF8;
  padding: clamp(4rem, 3rem + 4vw, 6rem) 0;
}

.approach-hero__content {
  max-width: 800px;
}

.approach-hero__title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
  font-weight: 500;
  color: #2A2A2A;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.approach-hero__subtitle {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  color: #6B6B6B;
  line-height: 1.7;
  max-width: 700px;
}

/* ============================================
   NUMBERED SECTIONS - Core Pattern
   ============================================ */

.approach-section {
  padding: clamp(3.5rem, 3rem + 2vw, 5rem) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.approach-section:last-of-type {
  border-bottom: none;
}

.approach-section--light {
  background: #FAFAF8;
}

.approach-section--white {
  background: #FFFFFF;
}

.approach-section__header {
  margin-bottom: 1.5rem;
}

.approach-section__number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2F5A1E;
  background: rgba(47, 90, 30, 0.1);
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.approach-section__title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 500;
  color: #2A2A2A;
  line-height: 1.2;
}

.approach-section__content {
  max-width: 700px;
}

.approach-section__content p {
  font-size: 1rem;
  color: #4A4A4A;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.approach-section__content p:last-child {
  margin-bottom: 0;
}

.approach-section__content strong {
  color: #2A2A2A;
}

.approach-section__content em {
  color: #6B6B6B;
}

/* ============================================
   DIAGRAMS
   ============================================ */

.approach-diagram {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.approach-diagram img {
  width: 100%;
  height: auto;
  display: block;
}

.approach-diagram--centered {
  max-width: 700px;
  margin: 2rem auto 0;
}

/* ============================================
   CALLOUT BOX
   ============================================ */

.approach-callout {
  background: linear-gradient(135deg, rgba(47, 90, 30, 0.06) 0%, rgba(74, 222, 128, 0.06) 100%);
  border-left: 3px solid #2F5A1E;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 1rem;
  color: #2A2A2A;
  line-height: 1.6;
}

.approach-callout strong {
  color: #2F5A1E;
}

/* ============================================
   TABLES
   ============================================ */

.approach-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.approach-table th,
.approach-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #E8E8E6;
}

.approach-table th {
  background: rgba(0, 0, 0, 0.02);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6B6B6B;
}

.approach-table td {
  color: #4A4A4A;
}

.approach-table tr:last-child td {
  border-bottom: none;
}

.approach-table td:first-child {
  font-weight: 600;
  color: #2F5A1E;
  white-space: nowrap;
}

/* Accuracy column styling */
.approach-accuracy--high {
  color: #2F5A1E;
  font-weight: 500;
}

.approach-accuracy--medium {
  color: #D97706;
  font-weight: 500;
}

/* Status badges */
.approach-status {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.approach-status--auto {
  background: rgba(47, 90, 30, 0.1);
  color: #2F5A1E;
}

.approach-status--review {
  background: rgba(217, 119, 6, 0.1);
  color: #D97706;
}

/* ============================================
   TWO-COLUMN LAYOUT
   ============================================ */

.approach-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

.approach-two-col__item h3 {
  font-family: 'Recoleta', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #2A2A2A;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.approach-two-col__note {
  font-size: 0.875rem;
  color: #6B6B6B;
  margin-bottom: 1rem;
  font-style: italic;
}

.approach-two-col__item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.approach-two-col__item li {
  padding: 0.625rem 0;
  color: #4A4A4A;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.approach-two-col__item li:last-child {
  border-bottom: none;
}

/* Labels */
.approach-label {
  display: inline-block;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
}

.approach-label--blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.approach-label--green {
  background: rgba(47, 90, 30, 0.1);
  color: #2F5A1E;
}

/* ============================================
   LISTS
   ============================================ */

/* Example quotes list */
.approach-examples {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.approach-examples li {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-left: 2px solid #D1D1D1;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: #4A4A4A;
  font-style: italic;
}

/* Subheading */
.approach-subhead {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: #2A2A2A;
  margin: 2rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Numbered phases list */
.approach-phases {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  counter-reset: phase;
}

.approach-phases li {
  padding: 1rem 0;
  padding-left: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9375rem;
  color: #4A4A4A;
  line-height: 1.6;
}

.approach-phases li:last-child {
  border-bottom: none;
}

.approach-phases li strong {
  display: block;
  color: #2F5A1E;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* Regular lists in content */
.approach-section__content ul:not(.approach-examples):not(.approach-results) {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.approach-section__content ul:not(.approach-examples):not(.approach-results) li {
  margin-bottom: 0.5rem;
  color: #4A4A4A;
}

/* Numbered questions list */
.approach-questions {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  counter-reset: question;
}

.approach-questions li {
  counter-increment: question;
  padding: 0.875rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9375rem;
  color: #4A4A4A;
  line-height: 1.5;
}

.approach-questions li:last-child {
  border-bottom: none;
}

.approach-questions li::before {
  content: counter(question);
  position: absolute;
  left: 0;
  top: 0.875rem;
  width: 20px;
  height: 20px;
  background: rgba(47, 90, 30, 0.1);
  color: #2F5A1E;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.approach-questions li strong {
  color: #2A2A2A;
}

/* ============================================
   RESULTS SECTION - Prominent
   ============================================ */

.approach-section--results {
  background: linear-gradient(135deg, #2F5A1E 0%, #3D7328 100%);
  padding: clamp(4rem, 3rem + 3vw, 6rem) 0;
}

.approach-section--results .approach-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.approach-section--results .approach-section__number {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.approach-section--results .approach-section__title {
  color: #FFFFFF;
}

.approach-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.approach-result-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.approach-result-card__value {
  display: block;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.approach-result-card__label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
}

.approach-result-card__note {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.approach-results-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   PART HEADERS - Section dividers
   ============================================ */

.approach-part-header {
  padding: clamp(3rem, 2.5rem + 2vw, 4rem) 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.approach-part-header--process {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAF8 100%);
}

.approach-part-header--tech {
  background: #FAFAF8;
}

.approach-part-header__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2F5A1E;
  background: rgba(47, 90, 30, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.approach-part-header__title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  font-weight: 500;
  color: #2A2A2A;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.approach-part-header__subtitle {
  font-size: 1.0625rem;
  color: #6B6B6B;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   GOVERNANCE GRID - 3-column
   ============================================ */

.approach-governance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.approach-governance-item {
  background: #FAFAF8;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 1.5rem;
}

.approach-governance-item h4 {
  font-family: 'Recoleta', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #2A2A2A;
  margin-bottom: 0.75rem;
}

.approach-governance-item p {
  font-size: 0.9375rem;
  color: #5A5A5A;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.approach-cta {
  background: #FAFAF8;
  padding: clamp(4rem, 3rem + 3vw, 6rem) 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.approach-cta__title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 500;
  color: #2A2A2A;
  margin-bottom: 0.75rem;
}

.approach-cta__subtitle {
  font-size: 1rem;
  color: #6B6B6B;
  margin-bottom: 2rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .approach-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .approach-table {
    font-size: 0.875rem;
  }

  .approach-table th,
  .approach-table td {
    padding: 0.75rem 0.625rem;
  }

  .approach-diagram {
    margin: 1.5rem -1rem;
    border-radius: 0;
  }

  .approach-results-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .approach-result-card__value {
    font-size: 2.5rem;
  }

  .approach-part-header {
    padding: 2.5rem 0;
  }

  .approach-governance-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .approach-governance-item {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .approach-section__content {
    max-width: 100%;
  }

  .approach-table th:nth-child(3),
  .approach-table td:nth-child(3) {
    display: none;
  }

  .approach-questions li {
    padding-left: 1.75rem;
  }
}

/* ============================================
   MODE-SPECIFIC CONTENT VISIBILITY
   ============================================ */

/* Hide claims content when in underwriting mode */
body.mode-underwriting [data-mode="claims"] {
  display: none !important;
}

/* Hide underwriting content when in claims mode */
body.mode-claims [data-mode="underwriting"] {
  display: none !important;
}

/* Default: show underwriting content when no mode class is set */
body:not(.mode-underwriting):not(.mode-claims) [data-mode="claims"] {
  display: none !important;
}
