/* style.css - Maps Autoshop (Red, Black, White Theme) */

/* --- 1. CSS Variables for Theme Management --- */
:root {
    --primary-color: #111111; /* Sleek, dark black for headers and nav */
    --accent-color: #D90429;  /* High-performance racing red for buttons and highlights */
    --bg-light: #f4f4f4;      /* Slightly off-white background to make pure white cards pop */
    --text-dark: #1a1a1a;     /* Deep charcoal for readable body text */
    --text-light: #ffffff;    /* Pure white */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --card-shadow: 0 4px 10px rgba(0,0,0,0.15); 
    --transition: all 0.3s ease;
}

/* --- Dropdown Menu Styles --- */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 2rem;
}

.dropdown > a {
    padding-bottom: 20px; /* Expands hover area so menu doesn't vanish */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 280px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 100;
    top: 100%;
    left: 0;
    border-top: 3px solid var(--accent-color);
    border-radius: 0 0 4px 4px;
}

.dropdown-content a {
    color: var(--text-light) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    margin: 0 !important;
    border-bottom: 1px solid #222;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: #222;
    color: var(--accent-color) !important;
    padding-left: 25px; /* Slight indent on hover */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- 2. Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- 3. Navigation (Flexbox) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo span {
    color: var(--accent-color);
}

.navbar nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar nav a:hover {
    color: var(--accent-color);
}

/* --- 4. Buttons --- */
.btn-primary, .btn-secondary {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light) !important;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    margin-top: 1.5rem;
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-light);
}

/* --- 5. Hero Section (Flexbox) --- */
.hero {
    /* Dark gradient overlay so white text remains readable over any image */
    background: linear-gradient(rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.85)), url('assets/hero-bg.jpg') center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #cccccc; /* Slightly dimmed white for subtext */
}

/* --- 6. Services Section (CSS Grid) --- */
.services-section {
    padding: 4rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    color: #555;
    font-size: 1.1rem;
}

/* Fully responsive grid without Media Queries */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- 7. Service Cards --- */
.service-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.