/* Font Imports are handled in HTML via Google Fonts CDN */

:root {
    /* Brand Colors */
    --primary-blue: #003366;
    --primary-orange: #FF6600;
    --primary-gold: #FFD700;
    --white: #FFFFFF;
    --light-gray: #F4F4F4;
    --text-dark: #333333;
    --text-light: #666666;
    
    --transition: all 0.3s ease;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Global Reset & Base */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Bootstrap Overrides - Force Brand Colors */
.bg-primary {
    background-color: var(--primary-blue) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-warning {
    color: var(--primary-gold) !important;
}

.btn-primary {
    background: linear-gradient(45deg, #FF6600, #ff8533);
    border: none;
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #e65c00, #ff6600);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
    color: #fff;
}

.btn-outline-primary {
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-orange);
    color: #fff;
    border-color: var(--primary-orange);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title h2 {
    color: var(--primary-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    transition: var(--transition);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar.sticky-top.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-blue) !important;
    font-family: var(--font-heading);
    margin: 0 5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-orange) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-title {
    color: var(--primary-blue);
    font-weight: 700;
}

.card-text {
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.9)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    opacity: 0.1; /* Fallback */
    z-index: -1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white; 
}

/* Page Headers (Common across pages) */
.page-header {
    background: var(--primary-blue);
    /* Improve the look with a subtle gradient matching hero */
    background: linear-gradient(135deg, var(--primary-blue) 0%, #002244 100%);
    color: var(--white);
    padding: 80px 0;
    margin-bottom: 0; /* Bootstrap sometimes adds margin */
    text-align: center;
}

.page-header h1 {
    color: var(--white) !important;
    font-weight: 700;
}

/* Footer Improved */
footer {
    background-color: #001a33 !important; /* Rich Dark Blue instead of black/gray */
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.95rem;
}

footer h3, footer h5 {
    color: var(--white) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

footer h3.text-warning {
    color: var(--primary-gold) !important;
}

footer a {
    color: rgba(255,255,255,0.7) !important;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-orange) !important;
    padding-left: 5px;
}

footer .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

footer .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

footer .form-control:focus {
    background: rgba(255,255,255,0.2);
    color: white;
    box-shadow: none;
    border-color: var(--primary-gold);
}

footer .btn-primary {
    background: var(--primary-orange);
    color: white;
    border-radius: 4px; /* Slightly sharper for input group */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

footer hr {
    opacity: 0.2;
}

/* Floating Actions */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20bd5a;
    color: white;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    background-color: var(--primary-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* Partner Logos */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    height: 50px;
    object-fit: contain;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid var(--primary-orange);
}

/* Contact Form */
.form-control {
    background-color: var(--light-gray);
    border: 1px solid transparent;
    color: var(--text-dark);
    padding: 12px 15px;
    border-radius: 8px;
}

.form-control:focus {
    background-color: var(--white);
    color: var(--text-dark);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.1);
}

.form-floating label {
    color: var(--text-light);
}

/* -------------------------------------------------------------------------- */
/* Mobile Responsiveness                                                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    /* Navbar collapse styles */
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        
        /* Mobile Overlay Fix */
        position: absolute;
        top: 100%; /* Position it right below the navbar */
        left: 0;
        right: 0;
        z-index: 1050; /* Ensure it floats above everything */
        width: 100%;
    }
    
    .nav-link {
        margin: 10px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Section Padding reduction */
    .section-padding {
        padding: 50px 0;
    }
    
    /* Hero Section Adjustment */
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p.lead {
        font-size: 1rem;
    }

    /* Hero Buttons - Reduced Width & Centered */
    .hero-section .btn {
        display: block;
        width: 70%; /* Reduced from 100% */
        margin: 0 auto 15px auto !important; /* Center and stack */
    }
    
    /* About Preview Section - Center & Justify */
    .about-preview-section {
        text-align: center;
    }
    
    .about-preview-section p {
        text-align: justify;
    }
    
    .about-preview-section .list-unstyled {
        display: inline-block;
        text-align: left;
    }
    
    /* Page Headers */
    .page-header {
        padding: 50px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Category Filters - Grid Wrapping for Mobile */
    #categoryFilters {
        display: flex;
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center; /* Center the buttons */
        padding-bottom: 0;
        margin-bottom: 20px;
        gap: 10px;
    }

    .category-btn {
        flex: 1 1 auto; /* Grow to fill space but keep reasonable width */
        white-space: normal; /* Allow text to wrap inside button if needed */
        font-size: 0.9rem; /* Slightly smaller text */
        padding: 8px 15px;
    }
    
    /* Why Choose Us - Mobile Alignment */
    .why-choose-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .why-choose-item i {
        margin-right: 0 !important;
        margin-bottom: 10px;
        font-size: 2rem !important; /* Make icon slightly bigger */
    }
    
    /* Who We Are - Mobile Alignment */
    .who-we-are-text {
        text-align: center;
    }
    
    .who-we-are-text p {
        text-align: justify;
    }

    /* Footer Mobile Improvements */
    footer {
        text-align: center;
    }

    footer h3.text-warning {
        font-size: 2rem; /* Make Logo Bigger */
        margin-top: 10px;
    }

    footer .col-lg-4, footer .col-lg-2, footer .col-lg-3 {
        margin-bottom: 30px; /* Spacing between columns */
    }
    
    footer .input-group {
        justify-content: center;
    }
    
    footer .mt-3 {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    
    footer .mt-3 a {
        margin-right: 0 !important;
    }

    .input-group {
        margin-top: 10px;
    }
    
    /* Floating Buttons */
    .scroll-top {
        right: 20px;
        bottom: 80px; /* Above WhatsApp */
        width: 40px;
        height: 40px;
    }
    
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}
