/* Typography System */

/* Base font sizes */
:root {
    /* Desktop (default) */
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    
    /* Line heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}

/* Base typography */
html {
    font-size: var(--font-size-base);
}

body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-weight: var(--font-weight-normal);
}

/* Headings */
h1 {
    font-size: var(--font-size-4xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

h4 {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.75rem;
}

h5 {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

h6 {
    font-size: var(--font-size-base);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

/* Paragraphs and text */
p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1rem;
}

.text-sm {
    font-size: var(--font-size-sm);
}

.text-lg {
    font-size: var(--font-size-lg);
}

.text-xl {
    font-size: var(--font-size-xl);
}

/* Navigation and menu items */
.nav-link {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

.dropdown-item {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
}

/* Cards and content blocks */
.card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.card-text {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

/* Buttons */
.btn {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

/* Responsive typography */
@media (max-width: 1200px) {
    :root {
        --font-size-4xl: 36px;
        --font-size-3xl: 28px;
        --font-size-2xl: 22px;
    }
}

@media (max-width: 992px) {
    :root {
        --font-size-4xl: 32px;
        --font-size-3xl: 26px;
        --font-size-2xl: 20px;
        --font-size-xl: 18px;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
        --font-size-sm: 13px;
        --font-size-lg: 16px;
        --font-size-xl: 18px;
        --font-size-2xl: 20px;
        --font-size-3xl: 24px;
        --font-size-4xl: 28px;
    }
    
    .card-title {
        font-size: var(--font-size-lg);
    }
    
    .nav-link {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 576px) {
    :root {
        --font-size-base: 14px;
        --font-size-sm: 12px;
        --font-size-lg: 15px;
        --font-size-xl: 16px;
        --font-size-2xl: 18px;
        --font-size-3xl: 22px;
        --font-size-4xl: 26px;
    }
    
    h1 {
        margin-bottom: 1.25rem;
    }
    
    h2 {
        margin-bottom: 1rem;
    }
    
    h3 {
        margin-bottom: 0.75rem;
    }
    
    .card-title {
        font-size: var(--font-size-base);
    }
    
    .btn {
        font-size: var(--font-size-sm);
    }
}

/* Special cases for mobile menu */
@media (max-width: 576px) {
    .custom-offcanvas .nav-link {
        font-size: var(--font-size-base);
    }
    
    .custom-offcanvas .collapse .nav-link {
        font-size: var(--font-size-sm);
    }
    
    .custom-offcanvas .offcanvas-title {
        font-size: var(--font-size-lg);
    }
}

a, .nav-link, .dropdown-item {
    text-decoration: none !important;
}

a:hover, .nav-link:hover, .dropdown-item:hover {
    text-decoration: none !important;
} 