/* ==========================================
   HERO SECTION - RESPONSIVE FONT SIZES
   Ensures readable text on all devices
   ========================================== */

/* Base styles - Desktop (1200px and above) */
.hero-title {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.25rem !important;
}

.hero-subtitle {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 400 !important;
}

/* Hero fallback display-3 */
.hero-fallback .display-3 {
    font-size: 3.5rem !important;
    line-height: 1.2 !important;
}

.hero-fallback .lead {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
}

/* ==========================================
   LARGE TABLETS AND BELOW (991px)
   ========================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.75rem !important;
        margin-bottom: 1.15rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.15rem !important;
        margin-bottom: 1.35rem !important;
    }
    
    .hero-fallback .display-3 {
        font-size: 2.75rem !important;
    }
    
    .hero-fallback .lead {
        font-size: 1.15rem !important;
    }
    
    .hero-overlay .btn-lg {
        padding: 0.85rem 1.75rem !important;
        font-size: 1rem !important;
    }
}

/* ==========================================
   TABLETS AND LANDSCAPE PHONES (767px)
   ========================================== */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.15rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.25 !important;
    }
    
    .hero-subtitle {
        font-size: 1.05rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .hero-fallback .display-3 {
        font-size: 2.15rem !important;
    }
    
    .hero-fallback .lead {
        font-size: 1.05rem !important;
    }
    
    .hero-overlay .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    .hero-overlay .col-lg-8,
    .hero-overlay .col-md-10 {
        padding: 0 1.5rem !important;
    }
}

/* ==========================================
   PORTRAIT PHONES (575px)
   ========================================== */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.65rem !important;
        margin-bottom: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.15rem !important;
        line-height: 1.5 !important;
    }
    
    .hero-fallback .display-3 {
        font-size: 1.65rem !important;
    }
    
    .hero-fallback .lead {
        font-size: 0.95rem !important;
    }
    
    .hero-overlay .btn-lg {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .hero-overlay .col-lg-8,
    .hero-overlay .col-md-10 {
        padding: 0 1rem !important;
    }
    
    /* Reduce button icon size */
    .hero-overlay .btn i {
        font-size: 0.85rem !important;
    }
}

/* ==========================================
   EXTRA SMALL PHONES (420px)
   ========================================== */
@media (max-width: 420px) {
    .hero-title {
        font-size: 1.45rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-subtitle {
        font-size: 0.875rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.5 !important;
    }
    
    .hero-fallback .display-3 {
        font-size: 1.45rem !important;
    }
    
    .hero-fallback .lead {
        font-size: 0.875rem !important;
    }
    
    .hero-overlay .btn-lg {
        padding: 0.6rem 1.1rem !important;
        font-size: 0.875rem !important;
    }
    
    .hero-overlay .col-lg-8,
    .hero-overlay .col-md-10 {
        padding: 0 0.75rem !important;
    }
}

/* ==========================================
   VERY SMALL DEVICES (360px)
   ========================================== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.3rem !important;
        margin-bottom: 0.65rem !important;
        line-height: 1.25 !important;
    }
    
    .hero-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 0.9rem !important;
        line-height: 1.45 !important;
    }
    
    .hero-fallback .display-3 {
        font-size: 1.3rem !important;
    }
    
    .hero-fallback .lead {
        font-size: 0.8rem !important;
    }
    
    .hero-overlay .btn-lg {
        padding: 0.55rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .hero-overlay .btn i {
        font-size: 0.75rem !important;
        margin-left: 0.25rem !important;
    }
}

/* ==========================================
   LARGE DESKTOPS (1400px and above)
   ========================================== */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 4rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.4rem !important;
        margin-bottom: 1.75rem !important;
    }
    
    .hero-fallback .display-3 {
        font-size: 4rem !important;
    }
    
    .hero-fallback .lead {
        font-size: 1.4rem !important;
    }
    
    .hero-overlay .btn-lg {
        padding: 1rem 2.5rem !important;
        font-size: 1.125rem !important;
    }
}

/* Ensure hero section maintains proper height on mobile */
@media (max-width: 767.98px) {
    .hero-carousel-section .carousel-item {
        min-height: 400px !important;
    }
    
    .hero-fallback {
        min-height: 400px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel-section .carousel-item {
        min-height: 350px !important;
    }
    
    .hero-fallback {
        min-height: 350px !important;
    }
}

@media (max-width: 420px) {
    .hero-carousel-section .carousel-item {
        min-height: 320px !important;
    }
    
    .hero-fallback {
        min-height: 320px !important;
    }
}


