/*
Theme Name: M-Power Collision Centre
Theme URI: https://example.com
Description: Professional collision repair WordPress theme - Single page site
Version: 1.0.0
Author: M-Power
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mpower-theme
Domain Path: /languages
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
header {
    background: #1a1a1a;
    color: white;
    padding: 20px 0;
    border-bottom: 4px solid #d32f2f;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.company-info h1 {
    font-size: 24px;
    margin-bottom: 3px;
    font-weight: 700;
    letter-spacing: 1px;
}

.mpi-badge {
    background: #d32f2f;
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #d32f2f;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(211,47,47,0.3) 100%), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23222" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #d32f2f;
    color: white;
}

.btn-primary:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1a1a1a;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
.section {
    padding: 80px 20px;
    border-bottom: 1px solid #eee;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
    font-weight: 700;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

.about-content p {
    margin-bottom: 20px;
}

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

.service-card {
    background: #f9f9f9;
    padding: 30px;
    border-left: 5px solid #d32f2f;
    transition: all 0.3s;
}

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

.service-card h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.service-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    transition: transform 0.3s;
}

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

.gallery-image-container {
    display: flex;
    height: 300px;
    background: #e0e0e0;
}

.before-image, .after-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #999;
    position: relative;
}

.before-image {
    background: linear-gradient(45deg, #d0d0d0 25%, transparent 25%, transparent 75%, #d0d0d0 75%, #d0d0d0),
                linear-gradient(45deg, #d0d0d0 25%, transparent 25%, transparent 75%, #d0d0d0 75%, #d0d0d0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: #c0c0c0;
}

.after-image {
    background: linear-gradient(45deg, #90EE90 25%, transparent 25%, transparent 75%, #90EE90 75%, #90EE90),
                linear-gradient(45deg, #90EE90 25%, transparent 25%, transparent 75%, #90EE90 75%, #90EE90);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: #80DD80;
}

.divider {
    width: 3px;
    background: #d32f2f;
    margin: 0 10px;
}

.before-label, .after-label {
    position: absolute;
    top: 10px;
    font-size: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 2px;
}

.before-label {
    left: 10px;
}

.after-label {
    right: 10px;
}

.gallery-content {
    padding: 20px;
}

.gallery-content h3 {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.gallery-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: #1a1a1a;
    color: white;
    padding: 80px 20px;
    border-bottom: none;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    color: #d32f2f;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
}

.contact-info h3 {
    color: white;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-info p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 5px;
}

.contact-info a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input, .form-textarea {
    padding: 15px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: white;
    font-size: 14px;
    border-radius: 2px;
    font-family: inherit;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #888;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    padding: 15px;
    background: #d32f2f;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.3s;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    background: #b71c1c;
}

/* Footer */
footer {
    background: #0a0a0a;
    color: #888;
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid #222;
}

footer a {
    color: #d32f2f;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin-left: 0;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid, .gallery {
        grid-template-columns: 1fr;
    }
}
