/* styles.css */

:root {
    --primary-color: #4fb747; /* #F7941F; */
    --secondary-color: #333333;
    --light-bg: #f8f9fa;
}

/* Navbar Styles */
.navbar {
    background: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-brand img {
    max-height: 150px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    max-height: 60px;
}

.nav-link {
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-size: 1.2rem; /* Larger font when at top */
    text-shadow: 0.08em 0.08em 0.08em rgba(0,0,0,0.7);
}

.navbar.scrolled .nav-link {
    color: var(--light-bg) !important;
    font-size: 0.9rem; /* Smaller font when scrolled */
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
}

/* Style for when the mobile menu is opened */
.navbar.menu-opened {
    background-color: rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Ensure the navbar is visible against any background when menu is open */
.navbar.menu-opened .navbar-brand img {
    /* You can add a filter here if needed for better visibility */
    opacity: 1;
}

/* Fix for the nav-link text color when menu is open */
.navbar.menu-opened .nav-link {
    color: white !important;
}

/* Add scroll-triggered animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    background: linear-gradient(90deg, rgba(0,0,0,0.90), rgba(0,0,0,0.0)), url('img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    
    color: white;
    position: relative;
    min-height: 600px;
    /*min-height: 100vh; /* Make hero section at least full viewport height */
    display: flex;
    align-items: center;
    padding-top: 80px; /* Account for fixed navbar */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content .emphasis {
    color: var(--primary-color);
    font-style: italic;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 0.08em 0.08em 0.08em rgba(0,0,0,0.4);
}

.hero h2 {
    text-shadow: 0.08em 0.08em 0.08em rgba(0,0,0,0.4);
}


/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Off-Road Ready Section */
.off-road-ready {
    padding: 5rem 0;
    background-color: white;
}

.section-subtitle {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

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

.contact-info {
    background-color: var(--light-bg);
    padding: 3rem 0;
}


/* Services Section */
.services {
    padding: 5rem 0;  
}

.service-card {
    /* background: white; */
    padding: 1rem;
    border-radius: 8px;
    /* box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); */
    /* margin-bottom: 2rem; */
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card a {
    color: white;
    text-decoration: none;
}

/* Reviews Section */
.reviews {
    padding: 5rem 0;
}

/* Brand Showcase */
.brand-showcase {
    padding: 5rem 0;
}

.brand-showcase img {
    max-height: 100px;
    width: auto;
}

/* .partner-logo {
    width: 100%;
    height: auto;
    max-width: 300px;
} */

.partner-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 10px;
}

.partner-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Ensure proper spacing for smaller screens */
@media (max-width: 767px) {
    .partner-logo-container {
        height: 80px;
        margin-bottom: 15px;
    }
}

/* Ratings Modal */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    cursor: pointer;
    color: #ddd;
    font-size: 24px;
    margin-right: 5px;
}

.rating-stars label .material-symbols-outlined {
    font-size: 30px;
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: var(--primary-color);
}

/* Customer review cards */
.customer-reviews .card {
    transition: transform 0.3s ease;
}

.customer-reviews .card:hover {
    transform: translateY(-5px);
}

/* Override material icons for stars */
.text-warning .material-symbols-outlined {
    color: #FFD700;
    font-size: 20px;
}


/* Contact Form */
.contact-form {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.form-control {
    padding: 0.75rem;
    border-radius: 4px;
}

/* Build Details */
.build-detail {
    padding-top: 80px;
}

/* Always show dark navbar on detail pages */
.build-detail .navbar {
    background: rgba(0,0,0,0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.build-detail .navbar .navbar-brand img {
    max-height: 60px;
}

.build-detail .navbar .nav-link {
    color: var(--light-bg) !important;
    font-size: 0.9rem;
}

.build-gallery {
    position: relative;
}

.build-main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

.build-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail {
    cursor: pointer;
    height: 70px;
    object-fit: cover;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.gallery-thumbnail:hover, .gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.build-card {
    transition: transform 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.build-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Style the content area */
.card-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1rem 0;
}

.accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    color: #212529;
}

/* Footer */
footer {
    background-color: black;
    color: white;
    padding: 2rem 0 2rem;
}

footer a {
    color: white;
    text-decoration: none;
}

.social-links {
    display: flex;
    justify-content: flex-start; /* Center the icons by default */
    align-items: left;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 1rem; /* Use gap for consistent spacing */
}

.social-links a {
    display: inline-block; /* Ensure links have proper box model */
    margin: 0; /* Remove margin and use gap instead */
}

.social-links img {
    width: 40px;
    height: 40px;
    width: auto;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.social-links img:hover {
    opacity: 1;
}

/* Ensure proper alignment on mobile */
@media (max-width: 768px) {
    .social-links {
        justify-content: flex-start; /* Right aligned on mobile */
        margin: 1rem 0;
    }
    
    /* Align heading to match links */
    .col-md-4 h4.text-md-start {
        text-align: left !important;
    }
}

/* Fix for mobile navigation overlay issue */
@media (max-width: 991px) {
    body.menu-open {
        /* Remove the padding-top that was causing the white space */
        position: relative; /* Ensure relative positioning */
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    
    /* Ensure the navbar is above all other content */
    .navbar {
        z-index: 1050;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 1); /* Always visible on mobile */
    }
    
    /* Style the mobile menu background */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.9); /* Dark background */
        padding: 1rem;
        border-bottom: 3px solid var(--primary-color);
        max-height: calc(100vh - 100px); /* Prevent overflow */
        overflow-y: auto; /* Allow scrolling if many menu items */
    }
    
    /* Fix text visibility in the menu - ensure it's ALWAYS white regardless of scroll position */
    .navbar-collapse .nav-link {
        color: solid var(--primary-color) !important; /* Force white text in mobile menu */
        padding: 0.75rem 1rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-shadow: 1px 1px 1px rgba(0,0,0,0.5); /* Add text shadow for better visibility */
    }

    
    /* Prevent content from being hidden behind fixed navbar */
    .navbar-brand img {
        max-height: 80px; /* Smaller logo on mobile */
    }
}