/* General body styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4;
    position: relative; /* Ensure the body is positioned for absolute children */
    min-width: 320px;
}

/* Navigation bar */
nav {
    background-color: #4a4a4a; /* Softer gray for navbar */
    padding: 10px 20px;
    position: sticky;
    top: 0;
    width: 100%;
    box-sizing: border-box; /* Include padding in width */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space out logo and links */
}

/* Navigation links */
.nav-links {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Include padding in width */
}


.btn nav a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: bold;
}

.btn nav a:hover,
.btn nav a:focus {
    background-color: #df6d2f; /* Primary accent color */
    transform: scale(1.05);
}

.btn nav a:active {
    transform: scale(0.95);
}

/* Logo styling */
.logo {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
}

/* Hamburger menu styling */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.hamburger span {
    height: 3px;
    background: #fff;
    margin: 4px;
    width: 25px;
    transition: 0.3s;
    z-index: 1100;
}

/* Hamburger menu active state */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
}

/* Responsive design */
@media (max-width: 1000px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjusted for proper positioning */
        right: 20px;
        background-color: #4a4a4a; /* Match the navbar color for mobile menu */
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        width: 250px; /* Fixed width for the menu */
        max-width: 100%; /* Prevent overflow */
        box-sizing: border-box; /* Include padding in width */
        overflow: visible; /* Allow links to be visible */
        z-index: 1000; /* Ensure menu is on top */
        top: 60px; /* Adjust top positioning */
        right: 0; /* Align to the right edge */
    }

    .nav-links.active {
        display: block;
    }

    .hamburger {
        display: flex;
    }
    .nav-links a {
        display: block; /* Ensure full-width alignment */
        padding: 15px 20px; /* Consistent padding */
        text-align: left; /* Align text to the left in the menu */
        width: 90%; /* Make the buttons span the full width */
        box-sizing: border-box; /* Include padding in width */
    }
}



/* General button styling */
.btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    text-decoration: none;
    color: #fff;
    background-color: #df6d2f; /* Primary accent color */
    border: 2px solid #df6d2f;
    border-radius: 5px;
    display: inline-block;
    margin: 10px;
    transition: background-color 0.3s, transform 0.3s, border-color 0.3s;
    box-sizing: border-box;
}

.btn:hover {
    background-color: #ba2742; /* Secondary accent color */
    border-color: #ba2742;
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

/* Hero section styling */
.hero {
    background: url('/static/images/Jaxon_car.JPG') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    background-color: rgba(0,0,0,0.4);
    padding: 2%;
    border-radius: 1em;
}

.hero h1,
.hero p,
.hero .btn {
    margin: 0;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    font-size: 1.25rem;
}

.hero .btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    text-decoration: none;
    color: #fff;
    background-color: #df6d2f; /* Primary accent color */
    border: 2px solid #df6d2f;
    border-radius: 5px;
    display: inline-block;
    margin: 10px;
}

.hero .btn:hover {
    background-color: #ba2742; /* Secondary accent color */
    border-color: #ba2742;
    transform: scale(1.05);
}

/* Main content styling */
main {
    padding: 20px;
    text-align: center;
}

/* Container for centered content */
.text-section {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.text-section li{
    text-align: left;
    padding: 1rem;
    list-style-type: square;

}
.text-section h1 {
    font-weight: bolder;
    text-decoration: underline;
}

/* Footer buttons */
.footer-buttons {
    text-align: center;
    margin: 40px 0;
}

.footer-buttons .btn {
    display: inline-block;
    margin: 10px;
    max-width: 200px;
    padding: 12px 24px;
    font-size: 1rem;
}

/* Back to home button */
.back-to-home {
    display: block;
    margin: 40px auto;
    text-align: center;
}

header {
    max-width: 100%;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .text-section {
        padding: 15px;
        margin: 10px;
    }

    nav a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Styles for the Services Cards */

/* Container for service cards */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px;
}
.services-container a {
    text-decoration: none;
    color: #333;
}

/* Service card styles */
.service-card {
    width: 300px; /* Adjust width as needed */
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #fff;
    transition: transform 0.2s ease-in-out;
}

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

.service-image {
    /* width: 100%; */
    height: 200px; /* Adjust height as needed */
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.service-card p {
    font-size: 0.9rem;
    padding: 0 10px 20px;
    color: #777;
}

/* Responsive styles for the service cards */
@media (max-width: 768px) {
    .service-card {
        width: 90%; /* Full width on mobile */
    }
}
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* Space between cards */
    justify-content: center; /* Center align cards horizontally */
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px; /* Adjust width of each card */
    box-sizing: border-box; /* Ensure padding and border are included in total width */
    margin: 8px; /* Space around each card */
}

.card-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.contact-us-link {
    color: #777; /* Default link color */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-us-link:visited {
    color: #4a4a4a; /* Visited link color */
    text-decoration: underline;
}

.contact-us-link:hover {
    color: #df6d2f; /* Highlight on hover */
    text-decoration: underline; /* Add underline on hover */
}

.contact-us-link:active {
    color: #ba2742; /* Active state color */
}



.contact-us-link:focus {
    color: #333; /* Focused state color */
    outline: 2px dashed #df6d2f; /* Optional focus outline */
}

.error-section {
    text-align: center;
    padding: 20px 20px;
    max-width: 800px;
    margin: 50px auto;
    background: #FEFFFE;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.error-section h1 {
    font-size: 2rem;
}

.error-section h2 {
    font-size: 1.5rem;
}

.error-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
