/**
 * Font Consistency CSS
 * This file ensures consistent font sizes across the entire website
 */

:root {
    /* Font Size Variables */
    --font-size-xxl: 4.2rem;    /* Main headings (h1) */
    --font-size-xl: 3.6rem;     /* Section titles (h2) */
    --font-size-lg: 2.8rem;     /* Sub-section titles (h3) */
    --font-size-md: 2.4rem;     /* Card titles (h4) */
    --font-size-sm: 2rem;       /* Small titles (h5) */
    --font-size-xs: 1.8rem;     /* Smallest titles (h6) */
    --font-size-body: 1.6rem;   /* Body text */
    --font-size-small: 1.4rem;  /* Small text, captions */
    
    /* Line Height Variables */
    --line-height-heading: 1.3;
    --line-height-body: 1.8;
}

/* Base Typography */
body {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
}

/* Heading Typography */
h1, .h1 {
    font-size: var(--font-size-xxl);
    line-height: var(--line-height-heading);
    margin-bottom: 2rem;
}

h2, .h2 {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-heading);
    margin-bottom: 1.8rem;
}

h3, .h3 {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-heading);
    margin-bottom: 1.6rem;
}

h4, .h4 {
    font-size: var(--font-size-md);
    line-height: var(--line-height-heading);
    margin-bottom: 1.4rem;
}

h5, .h5 {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-heading);
    margin-bottom: 1.2rem;
}

h6, .h6 {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-heading);
    margin-bottom: 1rem;
}

/* Common Text Elements */
p {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: calc(var(--font-size-body) * 1.125);
    line-height: var(--line-height-body);
}

.small, small {
    font-size: var(--font-size-small);
}

/* Section Titles */
.section-title {
    font-size: var(--font-size-xl);
    margin-bottom: 2rem;
    color: var(--primary);
}

.section-subtitle {
    font-size: calc(var(--font-size-body) * 1.125);
    line-height: var(--line-height-body);
    margin-bottom: 3rem;
    color: var(--secondary);
}

/* Page Headers */
.page-header h1 {
    font-size: var(--font-size-xxl);
    color: var(--white);
}

/* Navigation */
.nav-link {
    font-size: var(--font-size-body);
}

/* Buttons */
.btn {
    font-size: var(--font-size-body);
}

.btn-lg {
    font-size: calc(var(--font-size-body) * 1.125);
}

.btn-sm {
    font-size: var(--font-size-small);
}

/* Forms */
input, 
select, 
textarea, 
.form-control {
    font-size: var(--font-size-body);
}

label {
    font-size: var(--font-size-body);
}

/* Cards */
.card-title {
    font-size: var(--font-size-md);
}

.card-subtitle {
    font-size: var(--font-size-xs);
}

/* Lists */
ul, ol {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
}

/* Breadcrumbs */
.breadcrumb {
    font-size: var(--font-size-small);
}

/* Responsive Typography */
@media (max-width: 1200px) {
    :root {
        --font-size-xxl: 3.8rem;
        --font-size-xl: 3.2rem;
        --font-size-lg: 2.6rem;
        --font-size-md: 2.2rem;
    }
}

@media (max-width: 992px) {
    :root {
        --font-size-xxl: 3.6rem;
        --font-size-xl: 3rem;
        --font-size-lg: 2.4rem;
        --font-size-md: 2rem;
        --font-size-sm: 1.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-xxl: 3.2rem;
        --font-size-xl: 2.8rem;
        --font-size-lg: 2.2rem;
        --font-size-md: 1.8rem;
        --font-size-sm: 1.6rem;
        --font-size-xs: 1.5rem;
    }
}

@media (max-width: 576px) {
    :root {
        --font-size-xxl: 2.8rem;
        --font-size-xl: 2.4rem;
        --font-size-lg: 2rem;
        --font-size-md: 1.8rem;
        --font-size-sm: 1.6rem;
        --font-size-xs: 1.4rem;
        --font-size-body: 1.5rem;
    }
}
