/* ============================================
   MC AUTOCARE — Main Stylesheet
   Dark industrial theme with red accent
   ============================================ */

/* --- Reset & Variables --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #141414;
    --bg-darker: #0d0d0d;
    --bg-card: #1e1e1e;
    --bg-card-hover: #282828;
    --text-primary: #ffffff;
    --text-secondary: #d4d4d4;
    --text-muted: #999999;
    --accent: #e63946;
    --accent-hover: #d12836;
    --accent-glow: rgba(230, 57, 70, 0.25);
    --border: #2a2a2a;
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

/* Light theme overrides */
body.light-theme {
    --bg-dark: #ffffff;
    --bg-darker: #f2f2f2;
    --bg-card: #ffffff;
    --bg-card-hover: #f7f7f7;
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border: #d0d0d0;
    --accent-glow: rgba(230, 57, 70, 0.12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

.required {
    color: var(--accent);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

/* --- Theme Toggle --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun {
    display: none;
}

body.light-theme .theme-toggle .icon-sun {
    display: block;
}

body.light-theme .theme-toggle .icon-moon {
    display: none;
}

/* Light theme header */
body.light-theme .header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: #ccc;
}

body.light-theme .hero {
    background: var(--bg-darker);
}

body.light-theme .hamburger span {
    background: var(--text-primary);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1400px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.logo:hover {
    color: var(--text-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: 16px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

.btn-nav {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-darker);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 80%, rgba(230,57,70,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 80px,
        rgba(230, 57, 70, 0.015) 80px,
        rgba(230, 57, 70, 0.015) 82px
    );
}

/* --- Hero pattern background --- */
.hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 1;
    background-image:
        /* Diagonal grid */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            rgba(230, 57, 70, 0.07) 30px,
            rgba(230, 57, 70, 0.07) 31.5px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 30px,
            rgba(230, 57, 70, 0.07) 30px,
            rgba(230, 57, 70, 0.07) 31.5px
        ),
        /* Dots pattern */
        radial-gradient(circle, rgba(230, 57, 70, 0.12) 1.2px, transparent 1.2px);
    background-size: auto, auto, 22px 22px;
}

/* Accent corner glow */
.hero-pattern::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(230, 57, 70, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-pattern::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(230, 57, 70, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Light theme pattern — stronger for visibility */
body.light-theme .hero-pattern {
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            rgba(230, 57, 70, 0.09) 30px,
            rgba(230, 57, 70, 0.09) 31.5px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 30px,
            rgba(230, 57, 70, 0.09) 30px,
            rgba(230, 57, 70, 0.09) 31.5px
        ),
        radial-gradient(circle, rgba(230, 57, 70, 0.15) 1.2px, transparent 1.2px);
    background-size: auto, auto, 22px 22px;
}

/* --- Hero Carousel --- */
.hero-carousel {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--accent);
}

/* Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.carousel-arrow:hover {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.3);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

body.light-theme .carousel-arrow {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
}

body.light-theme .carousel-arrow:hover {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.15);
    color: var(--accent);
}

@media (max-width: 768px) {
    .carousel-arrow {
        display: none;
    }
    .hero-slide .hero-content {
        padding-left: 32px;
        padding-right: 32px;
    }
}

.hero-content {
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.4rem;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* --- Sections Common --- */
.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 48px;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: #444;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--bg-dark);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-values {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.value p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}

.about-image-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.4;
}

.about-image-placeholder span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
}

.about-image-placeholder .sub {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

/* Form messages */
.form-message {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: var(--accent);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 8px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-info-item h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-info-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--text-secondary);
}

.contact-info-item a:hover {
    color: var(--accent);
}

/* --- Footer --- */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links a,
.footer-services a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color var(--transition);
}

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

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--text-secondary);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 0;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .btn-nav {
        margin-top: 16px;
        width: 100%;
        text-align: center;
        border-bottom: none;
    }

    .hero-content {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .services {
        padding: 60px 0;
    }

    .about {
        padding: 60px 0;
    }

    .contact {
        padding: 60px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-subtitle {
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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

    .hero-slide .hero-content {
        padding-left: 28px;
        padding-right: 28px;
    }

    .carousel-dots {
        bottom: 14px;
    }
}
