/* Custom Styles for Modern Look (More Eye-Catching and Animative) */

/* --- UPDATED ROOT VARIABLES (Ensure High Contrast) --- */
:root {
    /* These values are now INJECTED dynamically into a <style> block in header.php */
    /* --bs-primary: #007BFF; */ 
    /* --bs-secondary: #FF4500; */
    
    --bs-dark-text: #212529;
    --bs-white: #ffffff;
    --bs-shadow-color: rgba(0, 0, 0, 0.2);
    --bs-light-bg: #f5f5f5;
    --about-bar-green: #689f38; /* Specific green for the About section bar */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--bs-dark-text);
    /* Apply subtle initial fade-in to the whole page */
    animation: fadeIn 0.8s ease-out;
}

/* Keyframe for Page Load Fade-in */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Typography and Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
}

/* Stronger contrast for main section headings */
.display-5 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 50px !important;
    transition: transform 0.3s ease-out;
}
.display-5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--bs-primary); /* Uses Dynamic Primary Color */
    border-radius: 2px;
    transition: width 0.4s ease-out;
}
.display-5:hover::after {
    width: 100px;
}




/* --- 1. DARK HEADER STYLES (Matching Image) --- */

#header-dark {
    background-color: #ffffff !important; /* Dark charcoal color */
    border-bottom: 3px solid var(--bs-primary); /* Uses Dynamic Primary Color */
}

.logo-image {
    max-height: 75px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}
.logo-image:hover {
    transform: rotate(2deg) scale(1.05);
}

/* Base Nav Links for Dark Theme */
.nav-link-dark {
    color: var(--bs-white) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1.5rem 0.75rem;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link-dark:hover, .nav-link-dark.active-link {
    color: var(--bs-primary) !important; /* Uses Dynamic Primary Color */
    transform: translateY(-1px);
}

.vertical-divider {
    width: 2px;
    height: 35px;
    background-color: #444444;
}

/* Call Now CTA Styling */
.call-now-cta {
    position: relative;
    padding-left: 10px;
    transition: all 0.3s ease;
}

.call-icon {
    color: #444444;
    font-size: 1.8rem;
    position: relative;
    top: 5px;
}
.call-now-cta:hover .call-icon {
    color: var(--bs-primary); /* Uses Dynamic Primary Color */
}

.call-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #aaaaaa !important;
    line-height: 1;
}

.call-number {
    font-size: 1.3rem;
    color: var(--bs-dark-text);
    line-height: 1.1;
    transition: color 0.3s ease;
}
.call-now-cta:hover .call-number {
    color: var(--bs-primary); /* Uses Dynamic Primary Color */
}

/* --- 2. HERO SLIDER --- */
.hero-slide-content {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
}
.hero-slide-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: transparent;
    -webkit-text-stroke: 1px var(--bs-white);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0; 
    transform: translateY(20px);
}
.hero-slide-content p {
    font-size: 1.35rem;
    font-weight: 400;
    /* max-width: 700px; */
    margin-bottom: 40px;
    color: var(--bs-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0; 
    transform: translateY(20px);
}
.hero-slide-content .btn-light {
    color: var(--bs-secondary); /* Uses Dynamic Secondary Color */
    font-weight: 800;
    padding: 15px 35px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    opacity: 0; 
    transform: scale(0.9);
}

/* --- 3. ON-SCROLL REVEAL ANIMATIONS (FIXED CSS) --- */
 .section-reveal {
    opacity: 0; 
    transform: translateY(50px);
}

.section-reveal-ready {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.section-reveal .card,
.section-reveal .feature-box,
.section-reveal .process-item,
.section-reveal .list-group-item {
    opacity: 0;
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s; 
    transform: translateY(20px);
}

.section-reveal.active .card,
.section-reveal.active .feature-box,
.section-reveal.active .process-item,
.section-reveal.active .list-group-item {
    opacity: 1;
    transform: translateY(0);
}

/* --- 4. ABOUT US SECTION (Split Layout) --- */
.about-section-split {
    padding: 100px 0;
}
.about-main-title {
    font-size: 2.5rem !important;
    line-height: 1.2;
    text-align: left;
}
.about-main-title::after {
    display: none;
}
.about-visual-col {
    padding-left: 50px;
    height: 100%;
}
.about-foreground-img {
  position: absolute;
  bottom: -124px;
  left: 33%;
  width: 40%;
  z-index: 5;
  border-radius: 605px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.green-experience-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background-color: var(--about-bar-green);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}
.vertical-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
    transform: rotate(-90deg);
    transform-origin: center center;
    position: absolute;
    letter-spacing: 2px;
}
.about-features-list li {
    padding-bottom: 8px;
    font-size: 1rem;
    color: var(--bs-dark-text);
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.about-features-list li:hover {
    color: var(--bs-primary); /* Uses Dynamic Primary Color */
    transform: translateX(5px);
}

/* --- 5. FOOTER ENHANCEMENTS --- */
.bg-dark {
    background-color: #111111 !important;
}
.footer-heading {
    color: var(--bs-white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--bs-primary); /* Uses Dynamic Primary Color */
    border-radius: 2px;
    transition: width 0.3s ease;
}
.footer-heading:hover::after {
    width: 50px;
}
.footer-links a, .footer-contact-list a {
    color: #cccccc !important;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links a:hover, .footer-contact-list a:hover {
    color: var(--bs-primary) !important; /* Uses Dynamic Primary Color */
    padding-left: 5px;
}
.social-icon-link {
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1.5rem !important;
}
.social-icon-link:hover {
    color: var(--bs-primary) !important; /* Uses Dynamic Primary Color */
    transform: translateY(-3px);
}

/* --- 6. UTILITY ICONS STYLING (WHATSAPP & SCROLL TOP) --- */
.whatsapp-btn, .scroll-to-top-btn {
    position: fixed;
    z-index: 1050;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.whatsapp-btn {
    bottom: 80px;
    background-color: #25D366;
    color: white;
    font-size: 1.5rem;
    border: none;
}
.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1) rotate(5deg);
}
.scroll-to-top-btn {
    bottom: 20px;
    background-color: var(--bs-primary); /* Uses Dynamic Primary Color */
    color: white;
    font-size: 1.2rem;
    border: none;
    opacity: 0;
    visibility: hidden;
}
.scroll-to-top-btn:hover {
    background-color: #343a40;
    transform: scale(1.05);
}
.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.5s ease-out forwards;
}

/* --- 7. MISC CARD/PROCESS ANIMATIONS --- */
.shadow-sm:hover {
    box-shadow: 0 1rem 3rem var(--bs-shadow-color) !important;
    transform: translateY(-5px);
}
.shadow-sm:hover .fa-3x {
    transform: rotateY(360deg);
}
.process-item:hover {
    transform: translateX(10px);
}
.process-item:hover .process-icon-box {
    background-color: var(--bs-secondary); /* Uses Dynamic Primary Color */
    color: white !important;
}
.btn-outline-primary {
    border-color: var(--bs-secondary);
    color: var(--bs-s);
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}


/* --- MOBILE MENU & HEADER VISIBILITY FIXES --- */

/* --- MOBILE HEADER FIXES (Matching New Image) --- */
/* --- FIXES FOR DESKTOP ALIGNMENT AND MOBILE FUNCTIONALITY --- */

/* 1. Desktop Alignment Fix */
.navbar-collapse {
    /* Ensure the collapse element uses flexbox for its content alignment */
    display: flex;
    justify-content: flex-end;
}

.vertical-divider {
    /* Ensure divider is positioned correctly relative to the CTA/links */
    vertical-align: middle;
    width: 2px;
    height: 35px;
    background-color: #444444;
    margin-right: 0.5rem !important; /* Adjust spacing */
}

/* 2. Mobile Toggler and Menu Fix */
@media (max-width: 991.98px) {
    /* Remove the problematic CSS that hides the menu entirely */
    #navbarNav {
        /* Default Bootstrap behavior is to handle this, remove the display: none !important */
    }
    
    /* Make Toggler visible and style it for the dark background */
    .navbar-toggler-icon {
        filter: invert(1); /* Makes the hamburger icon white */
    }

    /* 3. Mobile CTA Fix (Must be visible on the top bar) */
    
    /* Style the CTA for the top bar (not inside the dropdown menu) */
    .call-now-cta-mobile {
        display: block !important;
        text-align: right;
    }
    
    .call-text-mobile {
        font-size: 0.65rem;
        color: #aaaaaa !important;
        line-height: 1;
    }
    
    .call-number-mobile {
        font-size: 1rem;
        color: var(--bs-dark-text);
        line-height: 1;
    }
    
    /* Hide the large desktop CTA when viewing on mobile */
    .call-now-cta {
        display: none !important;
    }

    /* 4. Fix Navigation Links in Mobile Dropdown */
    .navbar-nav {
        text-align: center;
        width: 100%;
        margin-top: 10px; /* Space below the header line */
    }
    .nav-link-dark {
        padding: 10px 0.75rem !important;
        border-bottom: 1px solid #333;
    }

}




/* --- MOBILE HERO BANNER TEXT VISIBILITY AND SIZE FIXES --- */

@media (max-width: 991.98px) {
    /* Adjustments for the HUGE, Outlined H1 text on mobile */
    .hero-slide-content h1 {
        font-size: 0.9rem !important;
        letter-spacing: 1px;
        -webkit-text-stroke: 0.5px var(--bs-white);
        /* FIX: Ensure the outlined text is readable against the background */
        color: var(--bs-white) !important; /* Change text color from transparent to white */
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); /* Add strong shadow */
    }

    /* Adjust supporting text (p) on mobile */
    .hero-slide-content p {
        font-size: 1rem;
        font-weight: 500;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }
    
    /* Ensure the dark overlay is strong for high contrast */
    .hero-slide-content {
        background-color: rgba(204, 201, 201, 0.7) !important; /* Increase opacity to 0.7 */
        min-height: 24vh; /* Ensure banner is adequately tall */

        background-position: center top !important; /* Forces the browser to anchor the image to the top */
        background-size: cover;
    }

    /* Hide the button/CTA on the hero if needed for a super clean look */
    .hero-slide-content .btn-light {
        display: display !important; 
        font-size: 13px;
        padding: 2%;
    }
}
/* ... (Other existing styles retained) ... */


.contact-info-column {
  background-color: var(--bs-primary); /* Uses Dynamic Primary Color */
}

.footer-logo-link.d-inline-block.mb-3 {
  width: 30%;
}

.text-primary {
  color: var(--bs-primary) !important; /* Uses Dynamic Primary Color */
}

.bg-primary {
  background-color: var(--bs-secondary) !important; /* Uses Dynamic Primary Color */
}

.accordion-button {
  background-color: var(--bs-light-bg);
  color: var(--bs-dark-text);
  font-weight: 600;
}

.btn-link {
  color: var(--bs-secondary);
}

.btn.btn-primary.btn-lg.rounded-pill.px-5.py-3.custom-submit-btn {
  background-color: var(--bs-secondary);
  border: none;
  font-weight: 700;
}

.text-decoration-none {
  color: var(--bs-secondary) !important;
  transition: color 0.3s ease;
}

.nav-link:focus, .nav-link:hover {
  color: var(--bs-secondary) !important;
}

.text-black {
  color: var(--bs-dark-text) !important;
}