/* --- CSS Variables for Easy Re-branding --- */
:root {
    --primary-color: #ff3e3e;     /* High-energy accent color (perfect for automotive) */
    --dark-bg: #121214;           /* Deep dark modern background */
    --card-bg: #1c1c1f;           /* Slightly lighter dark for contrast */
    --text-main: #ffffff;         /* Crisp white body text */
    --text-muted: #a0a0a5;        /* Soft gray for readable paragraphs */
    --header-height: 80px;
}

/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;       /* FIXED: Corrected the box-box-sizing typo */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: rgba(18, 18, 20, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #26262b;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* --- Reusable CTA Button Styles --- */
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.phone-cta {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary-color);
}

.phone-cta:hover {
    background-color: var(--primary-color);
}

.primary-cta {
    background-color: var(--primary-color);
    color: #ffffff;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.4);
}

.secondary-cta {
    background-color: #26262b;
    color: var(--text-main);
    margin-left: 1rem;
}

.secondary-cta:hover {
    background-color: #333339;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(18,18,20,0.4) 0%, rgba(18,18,20,1) 100%), 
                radial-gradient(circle at top right, rgba(255,62,62,0.15), transparent 40%);
}

.hero-content {
    max-width: 800px;
    width: 90%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* --- Section Global Layout --- */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.services-section, .gallery-section, .quote-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Services Card Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #26262b;
    transition: transform 0.3s ease;
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* --- Work / Gallery Layout --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #26262b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    border: 2px dashed #333339;
    padding: 2rem;
    text-align: center;
}

/* --- Contact & Lead Capture Form --- */
.quote-section {
    background-color: var(--card-bg);
    border-radius: 16px;
    margin-top: 4rem;
    margin-bottom: 4rem;
    border: 1px solid #26262b;
}

.quote-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.quote-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quote-container p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-form input, .quote-form select {
    width: 100%;
    padding: 1rem;
    background-color: var(--dark-bg);
    border: 1px solid #26262b;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;         /* FIXED: Added font reset to prevent fallback fonts */
}

.quote-form input:focus, .quote-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-submit {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid #26262b;
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
    .nav-menu { display: none; } 
    .hero-title { font-size: 2.5rem; }
    .secondary-cta { 
        margin-left: 0; 
        margin-top: 1rem;        /* FIXED: Added visual margin-top for stacked mobile buttons */
        display: block; 
    }
}

/* --- Gallery Image Formatting --- */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05); 
}