/* Motonex Autocare - The Reliable Restoration */
/* Brand colors: Deep purple #5D1A7D, Pink accent #E73A7B */

:root {
    --purple-dark: #5D1A7D;
    --purple-darker: #4a1570;
    --purple-light: #7B2A9E;
    --pink-accent: #E73A7B;
    --pink-light: #f06292;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-800: #343a40;
    --gray-900: #212529;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--purple-dark);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(93, 26, 125, 0.98);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}

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

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-list a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Lucida, sans-serif;
}

.nav-list a:hover {
    color: var(--pink-accent);
}

.phone-btn {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 20px;
    background: var(--pink-accent);
    border-radius: 6px;
    transition: background 0.2s;
}

.phone-btn:hover {
    background: var(--pink-light);
    color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--purple-dark) url("../images/hero-bg.png") center center / cover no-repeat;
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(93, 26, 125, 0.4);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(93, 26, 125, 0.5) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--pink-accent);
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text {
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    opacity: 0.95;
}

.hero-phone {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pink-accent);
    margin-bottom: 24px;
    text-decoration: none;
}

.hero-phone:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-primary {
    background: var(--pink-accent);
    color: white;
    border: 2px solid var(--pink-accent);
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--gray-100);
}

.section-dark {
    background: var(--purple-dark);
    color: var(--white);
}

.section-cta {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-light));
    text-align: center;
}

/* Our Services - background image */
#services {
    position: relative;
    background: var(--gray-100) url("../images/services-bg.png") center center / cover no-repeat;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

#services .container {
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--pink-accent);
    margin-bottom: 8px;
    font-weight: 700;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.section-dark .section-title,
.section-cta .section-title {
    color: white;
}

.section-text {
    max-width: 700px;
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.section-dark .section-text {
    color: rgba(255, 255, 255, 0.9);
}

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

.service-card {
    background: white;
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(93, 26, 125, 0.1);
    border-top: 4px solid var(--pink-accent);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--purple-dark);
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--purple-dark);
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pink-accent);
}

.services-note {
    max-width: 700px;
    margin-bottom: 32px;
    font-size: 0.95rem;
    color: var(--gray-800);
}

/* Work Gallery */
.work-gallery {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:not(:has(img)) {
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-end;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(93, 26, 125, 0.9));
    color: white;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Partners */
.partners-logos {
    margin-top: 32px;
}

.partner-placeholder {
    padding: 40px;
    background: var(--gray-200);
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    color: var(--purple-dark);
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.review-card {
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--pink-accent);
}

.review-text {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--gray-800);
}

.review-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--purple-dark);
}

.review-source {
    font-size: 12px;
    color: var(--gray-800);
    opacity: 0.8;
}

/* Contact */
.contact-tagline {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

#contact .btn {
    margin-top: 16px;
}

/* Footer */
.footer {
    background: var(--purple-darker);
    color: white;
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto repeat(4, minmax(140px, 1fr));
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    align-items: start;
}

.footer-logo img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--pink-accent);
}

.footer-col p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

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

.footer-email {
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 18px;
    transition: background 0.2s;
}

.footer-social a:hover {
    background: var(--pink-accent);
    color: white;
}

.footer-bottom {
    padding: 24px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

    .phone-btn {
        display: none;
    }

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

    .header-inner {
        padding: 12px 16px;
    }

    .logo-img {
        height: 40px;
    }

    .section {
        padding: 60px 0;
    }
}

/* Mobile menu active state - JS will add class */
.nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple-dark);
    padding: 24px;
}

.nav.active .nav-list {
    flex-direction: column;
    gap: 16px;
}
