/* ===== BOOTSTRAP 5.1.0 FOOTER FIX ===== */

/* 1. Ensure html and body take full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 2. Flexbox layout for sticky footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 3. Main content grows to push footer down */
main {
    flex: 1 0 auto;
}

/* 4. Footer stays at bottom */
.footer {
    flex-shrink: 0;
    /* CHANGED: Dark blue gradient replaced with #20de32 */
    background: linear-gradient(135deg, #20de32 0%, #17a325 100%);
}

/* ===== NAVBAR STYLING ===== */
.navbar {
    padding: 0.8rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        font-weight: 600;
    }

/* ===== CONTENT AREA ===== */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .navbar-collapse {
        margin-top: 1rem;
    }

    .nav-link {
        margin: 0.2rem 0;
        text-align: center;
    }

    .footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer ul {
        padding-left: 0;
    }
}

/* ===== ADDITIONAL STYLES ===== */
.bg-primary {
    background-color: #20de32 !important;
}

.text-warning {
    color: #ffc107 !important;
}

/* Button hover effects */
.btn-primary {
    background-color: #20de32;
    border-color: #20de32;
}

    .btn-primary:hover {
        /* CHANGED: Removed dark blue hover, set to a slightly darker green */
        background-color: #17a325;
        border-color: #17a325;
    }

/* ===== HERO SECTION - FIXED ===== */
.hero-section {
    position: relative;
    min-height: 90vh;
    /* CHANGED: Gradient is now all green tones */
    background: linear-gradient(135deg, #20de32 0%, #17a325 100%);
    overflow: hidden;
    padding: 4rem 0;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        opacity: 0.3;
        z-index: 1;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* CHANGED: Overlay changed from dark blue to green semi-transparent */
        background: linear-gradient(135deg, rgba(32, 222, 50, 0.9) 0%, rgba(23, 163, 37, 0.95) 100%);
        z-index: 2;
    }

.hero-content {
    position: relative;
    z-index: 3;
}

.quote-form-card {
    position: relative;
    z-index: 10 !important;
    background: white !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Remove previous hero-bg and hero-overlay classes */
.hero-bg,
.hero-overlay {
    display: none;
}

/* Logo styling */
.navbar-brand img {
    transition: all 0.3s ease;
    max-height: 45px;
    width: auto;
}

    .navbar-brand img:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }

/* Responsive logo sizing */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 35px;
    }
}

/* Footer logo styling */
footer img {
    transition: transform 0.3s ease;
    border-radius: 4px;
}

    footer img:hover {
        transform: scale(1.05);
    }

/* Footer link hover effects */
footer a:hover {
    text-decoration: underline !important;
}

/* SERVICE CARDS & FORM COLORS */
.quote-form-card .form-control-lg:focus,
.quote-form-card .form-select-lg:focus {
    border-color: #20de32;
    /* CHANGED: Glow color to match green */
    box-shadow: 0 0 0 0.25rem rgba(32, 222, 50, 0.25);
}
