/* Fiducial Main Content Design - Typography, Layout, Colors */

/* Typography Variables */
:root {
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Roboto', 'Inter', sans-serif;
}

/* Heading Styles - Fiducial Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.022rem;
  color: #222222;
  margin-top: 10px;
  margin-bottom: 10px;
}

h1 {
  font-size: 3rem; /* 48px */
  line-height: 130%;
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: 800; /* Enhanced for stronger hierarchy */
}

h2 {
  font-size: 2.5rem; /* 40px */
  line-height: 120%;
  font-weight: 700;
}

h3 {
  font-size: 2rem; /* 32px */
  line-height: 120%;
  font-weight: 700;
}

h4 {
  font-size: 1.8rem; /* 28.8px */
  line-height: 120%;
  font-weight: 600;
}

h5 {
  font-size: 1.5rem; /* 24px */
  line-height: 120%;
  font-weight: 600;
}

h6 {
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
}

/* Hero heading specific enhancement */
.hero h1 {
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Body Text Styles */
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #222222;
}

p {
  font-family: var(--font-body);
  font-size: 1.05rem; /* 16.8px */
  font-weight: 400;
  line-height: 1.75rem; /* 28px */
  color: #5a5a5a;
  letter-spacing: -0.022rem;
  margin-bottom: 10px;
}

/* Section Backgrounds - Alternating White/Gray */
.section-white {
  background-color: #ffffff;
  padding: 80px 0; /* Increased for enhanced depth */
}

.section-gray {
  background-color: #f5f5f5; /* Softer tone for better contrast */
  padding: 80px 0; /* Increased for enhanced depth */
}

.section-light-gray {
  background-color: #f1f1f1;
  padding: 60px 0;
}

/* Content Width Constraints */
.content-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
}

/* Responsive Section Padding */
@media (max-width: 1199px) {
  .section-white,
  .section-gray,
  .section-light-gray {
    padding: 60px 0; /* Tablet responsive */
  }
}

@media (max-width: 767px) {
  .section-white,
  .section-gray,
  .section-light-gray {
    padding: 40px 0; /* Mobile responsive */
  }

  h1 {
    font-size: 2.5rem; /* 40px on mobile */
  }

  h2 {
    font-size: 2rem; /* 32px on mobile */
  }

  h3 {
    font-size: 1.75rem; /* 28px on mobile */
  }
}

/* Stat Cards - Neutral Design with Red Accents */
.stat-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-card); /* Enhanced shadow token */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover,
.stat-card:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated); /* Enhanced shadow on hover */
  will-change: transform, box-shadow; /* Only on hover for performance */
}

/* Remove will-change after transition */
.stat-card:not(:hover):not(:focus) {
  will-change: auto;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem; /* 40px */
  font-weight: 700;
  color: #cd2e26; /* Fiducial red */
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 1rem; /* 16px */
  font-weight: 400;
  color: #5a5a5a;
  line-height: 1.5;
}

/* Hero Card Carousel - Refined Styling */
.hero-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero-card-bg {
  background: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero-card-badge {
  background-color: #cd2e26;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-card .card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #222222;
}

.hero-card .card-text,
.hero-card .card-description {
  font-family: var(--font-body);
  font-weight: 400;
  color: #5a5a5a;
}

.hero-card .metric-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #cd2e26;
}

.hero-card .feature-icon {
  color: #cd2e26;
}

/* Carousel Indicators */
.carousel-indicator {
  background-color: #d1d1d1;
  transition: background-color 0.3s ease;
}

.carousel-indicator.active,
.carousel-indicator:hover {
  background-color: #cd2e26;
}

/* Button Styles - Fiducial Design */
.btn-primary,
.button-primary {
  background-color: #cd2e26;
  color: #fff;
  border: 2px solid #cd2e26;
  border-radius: 4px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover,
.button-primary:hover,
.cta-primary:hover {
  background-color: #be1e2c;
  border-color: #be1e2c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn-primary:active,
.button-primary:active,
.cta-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary,
.button-secondary {
  background-color: transparent;
  color: #cd2e26;
  border: 2px solid #cd2e26;
  border-radius: 4px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover,
.button-secondary:hover {
  background-color: #cd2e26;
  border-color: #cd2e26;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}


/* Callout Boxes */
.callout {
  background-color: #f9f9f9;
  border-left: 4px solid #cd2e26;
  padding: 20px;
  margin: 20px 0;
}

.callout p {
  font-family: var(--font-body);
  font-weight: 400;
  color: #5a5a5a;
  margin-bottom: 0;
}

/* Related Articles Cards */
.related-card,
.interactive-card {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.related-card:hover,
.interactive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.related-card:active,
.interactive-card:active {
  transform: translateY(-2px); /* Slight press effect */
}

.related-badge {
  background-color: #f1f1f1;
  color: #cd2e26;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 3px;
  display: inline-block;
}

.related-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #222222;
  font-size: 1.25rem;
  margin: 12px 0;
}

.related-description {
  font-family: var(--font-body);
  font-weight: 400;
  color: #5a5a5a;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Content Dividers */
.content-divider {
  margin: 40px 0;
}

.divider-line {
  height: 1px;
  background-color: rgba(0,0,0,0.08);
}

/* Hero Description Override */
.hero-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75rem;
  color: #5a5a5a;
}

/* Hero Badge Override */
.hero-badge {
  font-family: var(--font-body);
  font-weight: 500;
  color: #5a5a5a;
}

/* FAQ Sections */
.faq-question {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #222222;
  font-size: 1.25rem;
}

.faq-answer {
  font-family: var(--font-body);
  font-weight: 400;
  color: #5a5a5a;
  font-size: 1.05rem;
  line-height: 1.75rem;
}

/* Prose Content Override */
.prose p,
.prose li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75rem;
  color: #5a5a5a;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-heading);
  color: #222222;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .content-container {
    max-width: 960px;
  }
}

@media (max-width: 767px) {
  .content-container {
    padding: 0;
  }

  .stat-card {
    padding: 24px;
  }

  .stat-value {
    font-size: 2rem; /* 32px on mobile */
  }

  .btn-primary,
  .btn-secondary,
  .button-primary,
  .button-secondary {
    padding: 10px 20px;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }
}
