/* ============================================
   Marco's Cosmetic Car Repairs - Main Styles
   ============================================ */

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --gold: #c9a84c;
    --gold-light: #e8c96a;
    --gold-dark: #a07830;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --mid-gray: #e0e0e0;
    --dark-gray: #555;
    --text: #2c2c2c;
    --text-light: #666;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

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

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

.gold-text {
    color: var(--gold);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

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

.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--gold);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 16px 0;
}

.navbar.scrolled {
    background: var(--primary);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.nav-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--white);
    letter-spacing: 1px;
}

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

.logo-sub {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold);
    background: rgba(255,255,255,0.1);
}

.nav-cta {
    background: var(--gold);
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Hero Slider
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.85) 0%,
        rgba(26, 26, 46, 0.6) 50%,
        rgba(26, 26, 46, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 60px;
    animation: fadeInUp 0.8s ease;
}

.hero-tagline {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-sub {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 500px;
}

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

.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.hero-prev,
.hero-next {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.3);
}

/* ============================================
   Trust Bar
   ============================================ */

.trust-bar {
    background: var(--primary);
    padding: 24px 0;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.trust-icon {
    font-size: 1.8rem;
    color: var(--gold);
}

.trust-item div {
    display: flex;
    flex-direction: column;
}

.trust-item strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.trust-item span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   Section Styles
   ============================================ */

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */

.about {
    background: var(--light-gray);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    max-height: 500px;
}

.about-content .section-label {
    text-align: left;
}

.about-content h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
}

.stat span {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Services Section
   ============================================ */

.services {
    background: var(--white);
}

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

.service-card {
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    background: var(--white);
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

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

.service-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery {
    background: var(--primary);
}

.gallery .section-header h2 {
    color: var(--white);
}

.gallery .section-label {
    color: var(--gold);
}

.gallery .section-desc {
    color: rgba(255,255,255,0.7);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-caption,
.ba-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 20px 12px 12px;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.ba-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    z-index: 2;
}

.before-label {
    background: #e74c3c;
    color: var(--white);
}

.after-label {
    background: #27ae60;
    color: var(--white);
}

.gallery-cta {
    text-align: center;
}

.gallery-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ============================================
   Reviews Section
   ============================================ */

.reviews {
    background: var(--light-gray);
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.rating-summary .stars {
    color: var(--gold);
    font-size: 1.3rem;
}

.rating-summary strong {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
}

.rating-summary span {
    color: var(--text-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--gold);
}

.review-card.featured {
    border-top-color: var(--gold);
    background: linear-gradient(135deg, #fff9ee 0%, var(--white) 100%);
}

.review-stars {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--mid-gray);
}

.reviewer-info strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
}

.reviewer-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.reviews-cta {
    text-align: center;
}

/* ============================================
   Why Choose Us Section
   ============================================ */

.why-us {
    background: var(--white);
}

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

.why-content .section-label {
    text-align: left;
}

.why-content h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 32px;
}

.why-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.why-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fff9ee, #fef3d0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-item h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.why-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.why-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    background: var(--light-gray);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--gold-dark);
}

.contact-cta-box {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 8px;
}

.contact-cta-box h3 {
    color: var(--white);
    margin-bottom: 8px;
}

.contact-cta-box p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.contact-cta-box .btn {
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 1.3rem;
}

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

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

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--mid-gray);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

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

.form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    font-weight: 600;
    margin-top: 16px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--gold-light);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-contact span {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}

.footer-rating {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-rating .stars {
    color: var(--gold);
    font-size: 1rem;
}

.footer-rating span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

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

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 999;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-cta {
        font-size: 1.1rem;
        padding: 14px 28px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1000;
    }

    .hero-content {
        padding: 0 24px;
    }

    .about-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

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

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

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

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

    .trust-items {
        gap: 20px;
    }

    .about-stats {
        gap: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .hero-sub {
        font-size: 0.95rem;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .about-stats {
        flex-direction: column;
        gap: 16px;
    }
}
