/* General Body & Typography */
:root {
    --primary-color: #0056b3; /* A strong blue for corporate feel */
    --secondary-color: #007bff; /* A slightly lighter blue */
    --accent-color: #ffc107; /* A warm yellow for accents/buttons */
    --text-dark: #343a40;
    --text-light: #6c757d;
    --background-light: #f8f9fa;
    --background-dark: #e9ecef;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section Padding & Backgrounds */
.section-padding {
    padding: 80px 0;
}

.section-alt-background {
    background-color: var(--background-dark);
}

/* Headings */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
}

.section-content {
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-dark); /* Changed to dark for better contrast on yellow */
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px var(--shadow-light);
}

.btn-primary:hover {
    background-color: #e0a800; /* Darker yellow on hover */
    transform: translateY(-2px);
    color: var(--text-dark);
}

/* Header & Navigation */
.header-main {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-main .nav-list {
    display: flex;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.1rem;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden by default for desktop */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.section-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-driving.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 180px 0 100px; /* Adjust padding to account for fixed header */
    display: flex;
    align-items: center;
    min-height: 100vh; /* Make hero section full viewport height */
    margin-top: -85px; /* Negative margin to pull hero up under fixed header */
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1; /* Allow content to grow and push hero-btn down */
}

.hero-headline {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 2px 2px 4px var(--shadow-medium);
}

.hero-subheadline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--white);
    font-weight: 300;
}

.hero-btn {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 400px; /* Ensures image doesn't get too small */
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.about-content {
    flex: 1.5;
}

.about-content .section-title,
.about-content .section-subtitle {
    text-align: left;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    padding: 30px;
    text-align: center;
    position: relative;
    border-top: 5px solid var(--secondary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 50px auto 0;
}

.accordion-item {
    background-color: var(--white);
    border: 1px solid var(--background-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.accordion-header {
    width: 100%;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 20px 25px;
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(0deg);
}

.accordion-header:hover {
    background-color: var(--background-dark);
}

.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--background-light);
}

.accordion-content p {
    padding-bottom: 20px;
    color: var(--text-light);
}

/* Contact Section */
.contact-container {
    text-align: center;
}

.contact-details-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.contact-info, .contact-social {
    flex: 1;
    min-width: 280px; /* Ensure minimum width for columns */
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: left;
}

.contact-info h3, .contact-social h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.contact-info p i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.3rem;
    min-width: 25px; /* Ensures icon alignment */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 2.2rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer Section */
.section-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrap for responsiveness */
    text-align: center;
}

.footer-copyright {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-hero {
        padding-top: 150px;
        min-height: 80vh;
    }

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

    .hero-subheadline {
        font-size: 1.3rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        min-width: unset;
        width: 80%;
        margin-bottom: 40px;
    }

    .about-content .section-title,
    .about-content .section-subtitle {
        text-align: center;
    }

    .services-grid, .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 10px 0;
    }

    .nav-main {
        position: relative; /* For toggle button positioning */
    }

    .nav-list {
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 8px 15px var(--shadow-light);
        border-top: 1px solid var(--background-dark);
        padding: 20px 0;
        max-height: 0; /* Hidden by default */
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .nav-list.active {
        max-height: 300px; /* Adjust as needed for menu items */
    }

    .nav-item {
        margin: 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid var(--background-dark);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex; /* Show toggle button */
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

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

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-subheadline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-details-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info, .contact-social {
        min-width: unset;
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }
    .hero-subheadline {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
}