/* ========================================
   Auto Tech Repair - Classic & Elegant
   Color Palette: Burgundy + Blush
======================================== */

/* CSS Custom Properties */
:root {
    --burgundy: #7A1C22;
    --burgundy-dark: #5C1418;
    --burgundy-light: #9A252C;
    --blush: #FDF6F6;
    --blush-light: #FFF9F9;
    --blush-dark: #F5E6E6;
    --cream: #FAF3F3;
    --charcoal: #2D2D2D;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #7A7A7A;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(122, 28, 34, 0.08);
    --shadow-md: 0 4px 20px rgba(122, 28, 34, 0.12);
    --shadow-lg: 0 8px 40px rgba(122, 28, 34, 0.15);
    --transition: all 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', sans-serif;
    color: var(--text-dark);
    background-color: var(--blush-light);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

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

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

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

.btn-primary:hover {
    background-color: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-white:hover {
    background-color: var(--blush);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

/* Section Utilities */
.section-subtitle {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 12px;
}

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

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--burgundy-light));
    margin: 0 auto;
    border-radius: 2px;
}

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

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--burgundy);
    letter-spacing: 0.05em;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-medium);
    position: relative;
}

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

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

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--burgundy);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--blush);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.mobile-menu a:hover {
    color: var(--burgundy);
}

.close-menu {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--burgundy);
    padding: 8px;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--blush-light) 0%, var(--cream) 50%, var(--blush) 100%);
    padding-top: 72px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero-content {
    padding-right: 16px;
}

.hero-subtitle {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 20px;
    position: relative;
    padding-left: 60px;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 48px;
    height: 2px;
    background-color: var(--burgundy);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero h1 .accent {
    color: var(--burgundy);
    font-style: italic;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.8;
}

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

.hero-trust {
    display: flex;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 400;
}

.trust-item svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 3px solid var(--burgundy);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

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

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

.service-card {
    background: var(--blush-light);
    border-radius: 8px;
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    border-radius: 50%;
    color: var(--white);
}

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

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

/* ========================================
   About Section
======================================== */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--blush) 100%);
}

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

.about-image {
    position: relative;
}

.about-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-stats {
    position: absolute;
    bottom: -32px;
    right: -32px;
    display: flex;
    gap: 16px;
}

.stat {
    background: var(--white);
    padding: 24px 28px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

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

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

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

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.about-content .section-line {
    margin: 0 0 32px 0;
}

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

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 400;
}

.about-features svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

/* ========================================
   CTA Section
======================================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 50%, var(--burgundy-light) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ========================================
   Contact Section
======================================== */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

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

.info-card {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--blush-light);
    border-radius: 8px;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    border-radius: 50%;
    color: var(--white);
    flex-shrink: 0;
}

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

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

.info-card a {
    color: var(--text-medium);
}

.info-card a:hover {
    color: var(--burgundy);
}

.contact-form-wrapper {
    background: var(--blush-light);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--blush-dark);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--blush-dark);
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(122, 28, 34, 0.1);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 4px;
    color: #2e7d32;
    font-weight: 600;
    margin-top: 16px;
}

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

.form-success svg {
    flex-shrink: 0;
}

/* ========================================
   Footer
======================================== */
.footer {
    background-color: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

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

.footer .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer .logo-icon {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
}

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

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 72px;
        padding-bottom: 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-subtitle {
        padding-left: 0;
    }
    
    .hero-subtitle::before {
        display: none;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-wrapper img {
        height: 350px;
    }
    
    .image-accent {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-stats {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        margin-top: 24px;
    }
    
    .about-content .section-subtitle {
        text-align: center;
    }
    
    .about-content .section-line {
        margin: 0 auto 32px;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-features {
        justify-items: center;
    }
    
    .about-content .btn {
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 28px 24px;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .stat {
        padding: 16px 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
