/* ===========================================
   FOOTER & HERO STANDARDIZATION FIX
   Feb 8, 2026 - Comprehensive audit fix
   =========================================== */

/* ===========================================
   HERO SECTION - Always dark, always visible
   BULLETPROOF: Even if images fail, text stays readable
   =========================================== */

/* Default hero - ensure minimum dark background */
.hero {
    background-color: #171717;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

/* Ensure hero content is above any backgrounds */
.hero > .container,
.hero > div {
    position: relative;
    z-index: 2;
}

/* Hero text ALWAYS white with maximum specificity */
.hero h1,
.hero .hero-title,
section.hero h1,
section[class*="hero"] h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p,
.hero .hero-subtitle,
section.hero p,
section[class*="hero"] p {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Hero stats - always visible on dark */
.hero-stats {
    position: relative;
    z-index: 2;
}

.hero-stat .number,
.hero .hero-stat .number {
    color: #E86A33 !important;
    -webkit-text-fill-color: #E86A33 !important;
}

.hero-stat .label,
.hero .hero-stat .label {
    color: rgba(255, 255, 255, 0.7) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.7) !important;
}

/* Homepage hero exception - light background */
body.home-page .hero,
.hero.hero-light {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%) !important;
}

body.home-page .hero h1,
body.home-page .hero .hero-title,
.hero.hero-light h1 {
    color: #171717 !important;
    -webkit-text-fill-color: #171717 !important;
    text-shadow: none;
}

body.home-page .hero p,
body.home-page .hero .hero-subtitle,
.hero.hero-light p {
    color: #525252 !important;
    -webkit-text-fill-color: #525252 !important;
    text-shadow: none;
}

/* Ensure screen media doesn't get print overrides */
@media screen {
    .hero h1 {
        color: #ffffff !important;
    }
    .hero p {
        color: rgba(255, 255, 255, 0.9) !important;
    }
}

/* ===========================================
   FOOTER - Text-based logo (no image failures)
   =========================================== */

/* Footer base styles */
.footer {
    background: #171717 !important;
    color: #d4d4d4;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Footer brand section */
.footer-brand {
    max-width: 300px;
}

@media (max-width: 767px) {
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .social-links {
        justify-content: center !important;
    }
}

/* Text-based footer logo - won't break if images fail */
.footer-brand .logo,
.footer-brand a.logo,
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
    text-decoration: none;
}

@media (max-width: 767px) {
    .footer-brand .logo,
    .footer-brand a.logo,
    .footer-logo {
        align-items: center;
    }
}

/* Hide img tags in footer logo - use text instead */
.footer-brand .logo img,
.footer-brand a.logo img {
    display: none !important;
}

/* Text logo styles */
.footer-brand .logo .lit,
.footer-brand a.logo .lit,
.footer-logo .lit,
.footer-brand .logo > span:first-child:not(.tagline),
.footer-brand a.logo > span:first-child:not(.tagline) {
    font-size: 2.5rem;
    font-weight: 900;
    color: #E86A33;
    letter-spacing: -1px;
    line-height: 1;
}

.footer-brand .logo .tagline,
.footer-brand a.logo .tagline,
.footer-logo .tagline,
.footer-brand .logo > span:last-child,
.footer-brand a.logo > span:last-child {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: #a3a3a3;
}

/* Social links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #262626;
    border-radius: 50%;
    color: #a3a3a3;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #E86A33;
    color: #ffffff;
    transform: translateY(-4px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Footer links */
.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 767px) {
    .footer-links ul {
        align-items: center;
    }
}

.footer-links a {
    font-size: 0.9rem;
    color: #a3a3a3;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-links a:hover {
    color: #E86A33;
}

/* Footer bottom */
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #262626;
    text-align: center;
    font-size: 0.875rem;
    color: #737373;
}

/* ===========================================
   CONTACT HERO FIX - ensure gradient shows
   =========================================== */
.contact-hero {
    background: linear-gradient(135deg, #E86A33 0%, #f59e0b 100%) !important;
    color: #ffffff;
}

/* ===========================================
   PAGE HEADER (About, etc.) - ensure visible
   =========================================== */
.page-header {
    background: #fafafa !important;
}

.page-header h1 {
    color: #171717 !important;
}

.page-header p {
    color: #525252 !important;
}
