/* Base Styles */
:root {
    --primary-color: #1e5799;
    --primary-dark: #103770;
    --primary-light: #3b7dbb;
    --secondary-color: #f39c12;
    --text-color: #333;
    --text-light: #777;
    --background-color: #fff;
    --background-light: #f8f9fa;
    --background-dark: #e9ecef;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

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

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

ul {
    list-style: none;
}

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

/* SVG Image Styles */
.team-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
}

.car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--background-light);
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--background-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.hidden {
    display: none;
}

.section {
    padding: 80px 0;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* Image Placeholders */
.image-placeholder {
    background-color: var(--background-dark);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    border-radius: var(--border-radius);
    font-style: italic;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background-color: var(--background-dark);
    border-radius: 50%;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--background-dark);
    color: white;
    text-align: center;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn {
    margin: 0 10px;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-icon svg {
    width: 50px;
    height: 50px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Cars Section */
.cars-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.car-card {
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    transition: var(--transition);
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.car-image {
    height: 200px;
    overflow: hidden;
}

.car-image .image-placeholder {
    height: 100%;
    border-radius: 0;
}

.car-details {
    padding: 20px;
}

.car-details h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.car-features {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.car-features li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.car-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Reviews Section */
.reviews-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.review-card {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 25px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 350px;
}

.review-rating {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.review-text {
    margin-bottom: 20px;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    margin-right: 15px;
}

.reviewer-info h4 {
    font-weight: 600;
}

.reviewer-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--background-light);
    text-align: center;
}

.newsletter p {
    max-width: 700px;
    margin: 0 auto 30px;
}

.newsletter .form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto 20px;
}

.newsletter input[type="email"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.form-check {
    display: flex;
    align-items: flex-start;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.form-check input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.form-check label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-method {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    margin-right: 15px;
    color: var(--primary-color);
}

.contact-method h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    margin-bottom: 10px;
}

.footer-links, .footer-legal, .footer-social {
    margin-bottom: 20px;
}

.footer-links h3, .footer-legal h3, .footer-social h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links a, .footer-legal a {
    color: white;
    opacity: 0.8;
    display: block;
    margin-bottom: 10px;
}

.footer-links a:hover, .footer-legal a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.social-icons a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom .btn-link {
    color: white;
    opacity: 0.8;
}

.footer-bottom .btn-link:hover {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

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

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

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

    .main-nav li {
        margin: 10px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .contact-container, .about-content {
        flex-direction: column;
    }

    .newsletter .form-group {
        flex-direction: column;
    }

    .newsletter input[type="email"] {
        border-right: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }

    .newsletter button {
        border-radius: var(--border-radius);
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

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

    .hero .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
