/**
 * Hero Section CSS Overrides
 * This file contains styles that completely override the hero section styles
 * to fix theme switching issues
 */

/* Common hero section styles */
.hero-section, .hero,
.about-hero,
.services-hero,
.contact-hero,
.terms-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero overlays - Make them darker for better text visibility */
.hero-overlay,
.about-hero-overlay,
.services-hero-overlay,
.contact-hero-overlay,
.terms-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 1;
}

/* DARK THEME OVERLAY */
[data-theme="dark"] .hero-overlay,
[data-theme="dark"] .about-hero-overlay,
[data-theme="dark"] .services-hero-overlay,
[data-theme="dark"] .contact-hero-overlay,
[data-theme="dark"] .terms-hero-overlay {
    background-color: rgba(0, 0, 0, 0.75) !important;
}

/* LIGHT THEME OVERLAY */
[data-theme="light"] .hero-overlay,
[data-theme="light"] .about-hero-overlay,
[data-theme="light"] .services-hero-overlay,
[data-theme="light"] .contact-hero-overlay,
[data-theme="light"] .terms-hero-overlay {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

/* Override the specific gradient background for light theme */
[data-theme="light"] .hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.6) 100%) !important;
}

/* Override the specific gradient background for dark theme */
[data-theme="dark"] .hero-overlay {
    background: linear-gradient(to right, rgba(18, 18, 18, 0.9) 30%, rgba(18, 18, 18, 0.8) 70%, rgba(18, 18, 18, 0.7) 100%) !important;
}

/* Hero content container */
.hero-section .container, .hero .container,
.about-hero .container,
.services-hero .container,
.contact-hero .container,
.terms-hero .container {
    position: relative;
    z-index: 2;
}

/* HOME PAGE SPECIFIC TITLE STYLING */
.hero-title {
    color: #ffffff !important;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.9) !important;
    font-weight: 900 !important;
    font-size: 4rem !important;
    font-family: 'Montserrat', sans-serif !important;
    margin-bottom: 1rem !important;
    letter-spacing: 2px !important;
}

/* DARK THEME TITLE */
[data-theme="dark"] .page-title {
    color: #ffffff !important;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8) !important;
    font-weight: 700 !important;
    font-size: 3.5rem !important;
    font-family: 'Montserrat', sans-serif !important;
    margin-bottom: 1rem !important;
    letter-spacing: 1px !important;
}

/* LIGHT THEME TITLE */
[data-theme="light"] .page-title {
    color: #ffffff !important;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8) !important;
    font-weight: 700 !important;
    font-size: 3.5rem !important;
    font-family: 'Montserrat', sans-serif !important;
    margin-bottom: 1rem !important;
    letter-spacing: 1px !important;
}

/* HOME PAGE HERO TEXT STYLING */
.hero-text {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.9) !important;
    font-weight: 400 !important;
    font-size: 1.25rem !important;
    max-width: 600px !important;
    margin-bottom: 2rem !important;
}

/* HERO SUBTITLE STYLING (HOME PAGE) */
.hero-subtitle {
    font-size: 2rem !important;
    color: #d53d3d !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8) !important;
}

/* DARK THEME LEAD TEXT */
[data-theme="dark"] .about-hero .lead,
[data-theme="dark"] .services-hero .lead,
[data-theme="dark"] .contact-hero .lead,
[data-theme="dark"] .terms-hero .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8) !important;
    font-weight: 400 !important;
    font-size: 1.2rem !important;
    max-width: 800px !important;
    margin: 0 auto 2rem auto !important;
}

/* LIGHT THEME LEAD TEXT */
[data-theme="light"] .about-hero .lead,
[data-theme="light"] .services-hero .lead,
[data-theme="light"] .contact-hero .lead,
[data-theme="light"] .terms-hero .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.9) !important;
    font-weight: 400 !important;
    font-size: 1.2rem !important;
    max-width: 800px !important;
    margin: 0 auto 2rem auto !important;
}

/* Special fix for the home page hero */
.hero-section, .hero {
    height: 80vh !important;
    min-height: 600px !important;
}

/* Special fix for other page heroes */
.about-hero,
.services-hero,
.contact-hero,
.terms-hero {
    height: 50vh !important;
    min-height: 400px !important;
}