/* ========================================
   Eddie's Service Center - Stylesheet
   Classic & Elegant Auto Repair Website
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --charcoal-950: #0f1117;
    --charcoal-900: #1a1d27;
    --charcoal-800: #242836;
    --charcoal-700: #2e3347;
    --charcoal-600: #3d4260;
    
    --coral-500: #E07A5F;
    --coral-400: #e8976a;
    --coral-300: #f0b49a;
    --coral-600: #c4654a;
    
    --cream-100: #f8f5f2;
    --cream-200: #f0ebe5;
    --cream-300: #e8e0d8;
    
    --white: #ffffff;
    --text-dark: #1a1d27;
    --text-light: #f8f5f2;
    --text-muted: #6b7280;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', system-ui, sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
}

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

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

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

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

a {
    color: var(--coral-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--coral-600);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

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

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--charcoal-900);
    border-color: var(--white);
}

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

.btn-outline-dark:hover {
    background: var(--charcoal-900);
    color: var(--white);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

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

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--coral-500);
    margin-bottom: 12px;
}

.section-tag.light {
    color: var(--coral-300);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--charcoal-900);
    margin-bottom: 16px;
}

.section-title.light {
    color: var(--white);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

.section-desc.light {
    color: rgba(255,255,255,0.75);
}

/* ========================================
   HEADER
   ======================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

#main-header.scrolled {
    background: rgba(15, 17, 23, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
}

.logo-location {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--coral-300);
}

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

.main-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--coral-400);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral-500);
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 17, 23, 0.92) 0%,
        rgba(26, 29, 39, 0.85) 50%,
        rgba(46, 51, 71, 0.75) 100%
    );
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: center;
    padding-bottom: 60px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 48px;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.hero-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--coral-500), var(--coral-300));
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.hero-tagline {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--coral-300);
    background: rgba(224, 122, 95, 0.15);
    border: 1px solid rgba(224, 122, 95, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.text-coral {
    color: var(--coral-400);
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
    border-color: rgba(224, 122, 95, 0.3);
}

.stat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(224, 122, 95, 0.15);
    border: 1px solid rgba(224, 122, 95, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral-400);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 100px 0;
    background: var(--cream-100);
}

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

.section-header .section-desc {
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid var(--cream-300);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral-500), var(--coral-300));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

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

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(224, 122, 95, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral-500);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--coral-500);
    color: var(--white);
}

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

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

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}

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

.about-image {
    position: relative;
}

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

.about-img-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: var(--coral-500);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content .section-tag {
    margin-bottom: 12px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon.coral {
    background: rgba(224, 122, 95, 0.15);
    color: var(--coral-500);
}

.about-feature span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal-800);
}

/* ========================================
   WHY US SECTION
   ======================================== */
.why-us {
    padding: 100px 0;
    background: var(--charcoal-900);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.why-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 40px 28px;
    transition: all 0.4s ease;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(224, 122, 95, 0.3);
    transform: translateY(-8px);
}

.why-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--coral-500);
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.6;
}

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

.why-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--coral-500) 0%, var(--coral-600) 100%);
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

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

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 100px 0;
    background: var(--cream-100);
}

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

.contact-info .section-tag {
    margin-bottom: 12px;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(224, 122, 95, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral-500);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--charcoal-900);
    margin-bottom: 4px;
}

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

.contact-item a {
    color: var(--coral-500);
}

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

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cream-300);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    color: var(--charcoal-900);
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--charcoal-800);
    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(--cream-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--charcoal-900);
    background: var(--cream-100);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1);
}

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

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(224, 122, 95, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--coral-500);
}

.form-success h4 {
    font-size: 1.5rem;
    color: var(--charcoal-900);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-muted);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--charcoal-950);
    padding: 64px 0 0;
}

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

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--coral-400);
}

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

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

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 23, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-nav-overlay.active {
    display: flex;
}

.mobile-nav-overlay a {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-overlay a:hover {
    color: var(--coral-400);
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 160px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-card {
        padding: 32px;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img-main {
        height: 350px;
    }
    
    .about-img-accent {
        width: 120px;
        height: 120px;
        bottom: -16px;
        right: -16px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-card {
        padding: 24px;
    }
    
    .hero-headline {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 28px 24px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
