/* ===== FONT FAMILY UTILITIES ===== */

/* Added by html_checker.py --runfive */
body {
    overflow-x: hidden;
}

.creative_font_primary {
  font-family: var(--font-primary);
}

.site_font_secondary {
  font-family: var(--font-secondary);
}

.container_font_mono {
  font-family: var(--font-mono);
}

/* ===== SEMANTIC TYPOGRAPHY CLASSES ===== */

/* Display Styles - For major headings and hero text */
.modern_display_1 {
  font-family: var(--font-secondary);
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
}

.business_display_2 {
  font-family: var(--font-secondary);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.ui_display_3 {
  font-family: var(--font-secondary);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

/* Heading Styles - For section titles and content hierarchy */
.best_heading_1 {
  font-family: var(--font-secondary);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.app_heading_2 {
  font-family: var(--font-secondary);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.digital_heading_3 {
  font-family: var(--font-secondary);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
}

.web_heading_4 {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
}

.content_heading_5 {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
}

.agency_heading_6 {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
}

/* Body Text Styles */
.elite_body_large {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
}

.smart_body_base {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
}

.bright_body_small {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
}

/* Utility Text Styles */
.company_caption {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
}

.light_overline {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Code Styles */
.minimal_code_inline {
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  background-color: var(--bg-muted);
  color: var(--text-primary);
  padding: 0.125rem 0.25rem;
  border-radius: var(--radius-sm);
}

.main_code_block {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  background-color: var(--bg-muted);
  color: var(--text-primary);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

/* ===== SECTION-SPECIFIC TYPOGRAPHY ===== */

/* Hero Section Typography */
.core_hero_title {
  font-family: var(--font-secondary);
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.pro_hero_subtitle {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

/* Section Typography */
.unique_section_title {
  font-family: var(--font-secondary);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.page_section_subtitle {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.layout_section_description {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  max-width: 65ch; /* Optimal reading width */
}

/* Card Typography */
.clean_card_title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.premium_card_text {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--text-primary);
}

/* Navigation Typography */
.base_nav_link {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.base_nav_link:hover,
.base_nav_link:focus {
  color: var(--text-link);
  text-decoration: none;
}

/* Button Typography */
.studio_button_text {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
}

/* Footer Typography */
.new_footer_text {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--text-muted);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
  .core_hero_title {
    font-size: var(--text-4xl);
  }
  
  .unique_section_title {
    font-size: var(--text-3xl);
  }
  
  .modern_display_1 {
    font-size: var(--text-5xl);
  }
  
  .business_display_2 {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 480px) {
  .core_hero_title {
    font-size: var(--text-3xl);
  }
  
  .unique_section_title {
    font-size: var(--text-2xl);
  }
  
  .modern_display_1 {
    font-size: var(--text-4xl);
  }
}

/* ===== LINK STYLES - ADDITIVE TO BOOTSTRAP ===== */
a:not([class]) {
  color: var(--text-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all var(--transition-fast);
}

a:not([class]):hover,
a:not([class]):focus {
  color: var(--text-link-hover);
  text-decoration-thickness: 2px;
}

a:not([class]):visited {
  color: var(--text-link);
}

/* ===== TEXT UTILITIES ===== */
.design_text_gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.custom_text_shadow_sm {
  text-shadow: var(--shadow-xs);
}

.bold_text_shadow_md {
  text-shadow: var(--shadow-sm);
}

.fresh_text_balance {
  text-wrap: balance;
}

.section_text_pretty {
  text-wrap: pretty;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .base_nav_link,
  a:not([class]) {
    transition: none;
  }
}

@media (prefers-contrast: high) {
  .company_caption,
  .light_overline,
  .new_footer_text {
    color: var(--text-secondary);
  }
  
  .pro_hero_subtitle,
  .page_section_subtitle {
    color: var(--text-primary);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .core_hero_title,
  .unique_section_title,
  .best_heading_1,
  .app_heading_2 {
    break-after: avoid;
    page-break-after: avoid;
  }
  
  .design_text_gradient {
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
  }
}