/* Typography System - Consistent fonts across the website */


:root {
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font Sizes */
    --font-size-xs: 0.75rem;      
    --font-size-sm: 0.875rem;     
    --font-size-base: 1rem;       
    --font-size-lg: 1.125rem;     
    --font-size-xl: 1.25rem;      
    --font-size-2xl: 1.5rem;      
    --font-size-3xl: 1.875rem;    
    --font-size-4xl: 2.25rem;     
    --font-size-5xl: 3rem;        
    --font-size-6xl: 3.75rem;    

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
}

/* Global Typography Styles */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: #333;
}

/* Headings */
h1, .h1 {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: #333;
    margin-bottom: 1rem;
}

/* Page title headings (not banners) */
.page-title, .section-title {
    color: #1f4c7a;
    text-transform: uppercase;
}

h2, .h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: #333;
    margin-bottom: 0.75rem;
}

/* Section headings */
.section-heading {
    color: #1f4c7a;
}

h3, .h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: #1f4c7a;
    margin-bottom: 0.5rem;
}

h4, .h4 {
    font-family: var(--font-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: #1f4c7a;
    margin-bottom: 0.5rem;
}

h5, .h5 {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: #333;
    margin-bottom: 0.25rem;
}

h6, .h6 {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: #333;
    margin-bottom: 0.25rem;
}

/* Banner Text */
.banner-text, .hero-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-bold);
    color: white !important;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: var(--line-height-tight);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Body Text Variants */
.text-lead {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: #444;
}

.text-body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: #333;
}

.text-small {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: #666;
}

/* Gallery and Project Text */
.gallery-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: white;
    text-transform: uppercase;
    text-align: center;
}

/* Homepage overlay headings - specific styling for homepage carousel headings */
.overlay-text h1,
.overlay-text h2 {
    color: white !important;
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.overlay-text a {
    color: white !important;
    text-decoration: none;
}

.overlay-text a:hover {
    color: #f0f0f0 !important;
}

/* Project page header headings - tea, asambleya, koboo pages */
header .text-white h1,
header .text-white .display-3 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.gallery-description, .project-description {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    color: #333;
    line-height: var(--line-height-relaxed);
}

.gallery-overlay-text {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    z-index: 10;
}

/* Navigation Text */
.nav-text {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

/* Form Text */
.form-label {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: #333;
}

.form-control {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
}

.form-control::placeholder {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: #999;
}

/* Button Text */
.btn {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

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

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

/* Responsive Typography */
@media (max-width: 1024px) {
    .banner-text, .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    h1, .h1 {
        font-size: var(--font-size-4xl);
    }
    
    .gallery-title {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 768px) {
    .banner-text, .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    h1, .h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2, .h2 {
        font-size: var(--font-size-2xl);
    }
    
    .gallery-title {
        font-size: var(--font-size-2xl);
    }
    
    .gallery-overlay-text {
        font-size: var(--font-size-base);
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .banner-text, .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    h1, .h1 {
        font-size: var(--font-size-2xl);
    }
}
