/* Custom styles */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* FIX: Changed max-width from 20% to 100% so images can actually fill their containers */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

/* Specific fix for your Logo so it stays a reasonable size since we changed .img-fluid */
.navbar-brand img {
    max-width: 200px; /* Adjust this to size your logo */
    height: auto;
}

/* --- NEW STYLES FOR THE GARAGE IMAGE --- */
.about-image img {
    width: 100%;
    height: 450px;     /* Forces a consistent height */
    object-fit: cover; /* Crops the image instead of squishing it */
    object-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #e63946;
    text-decoration: none;
}
.navbar-brand:hover {
    color: #c1121f;
}

/* Navbar styles */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}
.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}
.navbar-nav {
    align-items: center;
}
.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover {
    color: #e63946;
}

/* Make sure the navbar expands correctly on mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: white;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .navbar .container {
        position: relative;
    }
}

/* Hero section */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1486006920555-c77dcf18193c');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 76px;
    position: relative;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

/* Custom button styles */
.btn-danger {
    background-color: #e63946;
    border-color: #e63946;
    transition: background-color 0.3s, border-color 0.3s;
}
.btn-danger:hover {
    background-color: #c1121f;
    border-color: #c1121f;
}

/* Services section */
.service-card {
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.service-card:hover {
    transform: translateY(-10px);
}
.service-icon {
    font-size: 3rem;
    color: #e63946;
    margin-bottom: 1rem;
}

/* Section styles */
.services, .about, .contact, footer {
    position: relative;
    z-index: 1;
    background-color: #fff;
    padding: 3rem 0;
}

/* About section */
.about {
    background-color: #f8f9fa;
}

/* Footer styles */
footer {
    background-color: #333;
    color: #fff;
    padding-top: 3rem;
    padding-bottom: 2rem;
}
footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: #e63946;
    text-decoration: none;
}
footer h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}
footer ul {
    list-style: none;
    padding-left: 0;
}
footer ul li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
        background-attachment: scroll;
        margin-top: 66px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }

    /* Adjust garage image height for mobile so it's not too tall */
    .about-image img {
        height: 300px;
        margin-bottom: 20px;
    }
}