/* ============================================
   CR AUTO Repair — Classic & Elegant
   Burgundy + Blush Palette
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --burgundy: #800020;
    --burgundy-dark: #5c0018;
    --burgundy-light: #a0304a;
    --blush: #f5e6d3;
    --blush-light: #faf3eb;
    --blush-dark: #e8d0b8;
    --cream: #fdf8f4;
    --warm-white: #fffaf6;
    --charcoal: #2a1f1a;
    --dark-brown: #3d2b1f;
    --medium-brown: #6b5040;
    --light-gray: #9e8e84;
    --soft-shadow: 0 4px 24px rgba(61, 43, 31, 0.08);
    --medium-shadow: 0 8px 40px rgba(61, 43, 31, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-brown);
}

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 24px;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--blush-dark);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--soft-shadow);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-brown);
}

.nav-logo:hover {
    color: var(--burgundy);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--medium-brown);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--burgundy);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--burgundy);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--burgundy) !important;
    font-weight: 600 !important;
}

.nav-phone::after {
    display: none !important;
}

.nav-phone:hover {
    color: var(--burgundy-dark) !important;
}

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

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--dark-brown);
    transition: var(--transition);
    display: block;
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--burgundy) 0%,
        #6b0a28 25%,
        #8c4a5e 50%,
        var(--blush) 75%,
        var(--blush-light) 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(128, 0, 32, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 230, 211, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(107, 74, 94, 0.3) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-trust {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.trust-item svg {
    opacity: 0.9;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--burgundy);
    color: #ffffff;
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(128, 0, 32, 0.3);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-light {
    background: #ffffff;
    color: var(--burgundy);
    border-color: #ffffff;
}

.btn-light:hover {
    background: var(--blush-light);
    transform: translateY(-2px);
    box-shadow: var(--medium-shadow);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- Section Shared ---------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--dark-brown);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-brown);
    max-width: 560px;
    margin: 0 auto;
}

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

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

.service-card {
    background: var(--warm-white);
    border: 1px solid var(--blush-dark);
    border-radius: 8px;
    padding: 36px 28px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--medium-shadow);
    border-color: var(--blush);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blush-light);
    border-radius: 12px;
    margin-bottom: 20px;
}

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

.service-card p {
    font-size: 0.95rem;
    color: var(--medium-brown);
    line-height: 1.7;
}

/* ---------- About Section ---------- */
.about {
    padding: 100px 0;
    background: var(--blush-light);
}

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

.about-image {
    position: relative;
}

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

.about-image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 200px;
    height: 200px;
    background: var(--burgundy);
    border-radius: 8px;
    opacity: 0.08;
    z-index: -1;
}

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

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1rem;
    color: var(--medium-brown);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--blush-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--burgundy);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--light-gray);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- Why Us Section ---------- */
.why-us {
    padding: 100px 0;
    background: var(--cream);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.why-card {
    background: var(--warm-white);
    border: 1px solid var(--blush-dark);
    border-radius: 8px;
    padding: 40px 32px;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--medium-shadow);
}

.why-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--blush-dark);
    margin-bottom: 16px;
    line-height: 1;
}

.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark-brown);
}

.why-card p {
    font-size: 0.95rem;
    color: var(--medium-brown);
    line-height: 1.8;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(
        135deg,
        var(--burgundy-dark) 0%,
        var(--burgundy) 50%,
        var(--burgundy-light) 100%
    );
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Contact Section ---------- */
.contact {
    padding: 100px 0 60px;
    background: var(--blush-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 56px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blush);
    border-radius: 10px;
}

.contact-item h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--medium-brown);
    line-height: 1.6;
}

.contact-item a {
    color: var(--medium-brown);
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--warm-white);
    border: 1px solid var(--blush-dark);
    border-radius: 8px;
    padding: 36px;
}

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

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-brown);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--cream);
    border: 1px solid var(--blush-dark);
    border-radius: 4px;
    padding: 12px 14px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 4px;
    color: #276749;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-success.show {
    display: flex;
}

/* Map */
.contact-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--blush-dark);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark-brown);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 0;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-logo:hover {
    color: var(--blush);
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 20px;
}

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

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

.footer-links a:hover {
    color: var(--blush);
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

/* ---------- Mobile Menu Overlay ---------- */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    padding: 32px 24px;
    gap: 24px;
    border-top: 1px solid var(--blush-dark);
}

.nav-links.mobile-open a {
    font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        padding: 100px 20px 80px;
    }
    
    .hero-trust {
        gap: 20px;
    }
    
    .services {
        padding: 72px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about {
        padding: 72px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 320px;
    }
    
    .about-content .section-eyebrow,
    .about-content .section-title {
        text-align: center;
    }
    
    .about-content .section-subtitle,
    .about-text {
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .why-us {
        padding: 72px 0;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-banner {
        padding: 60px 0;
    }
    
    .contact {
        padding: 72px 0 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
