/* ============================================
   Evergreen Auto Rebuild — Custom Styles
   Classic & Elegant Auto Repair Website
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-teal: #1a5f5f;
    --color-teal-dark: #134a4a;
    --color-teal-light: #237a7a;
    --color-slate: #3d4f5f;
    --color-slate-dark: #2c3e4a;
    --color-slate-light: #6b7f8f;
    --color-cream: #f7f4f0;
    --color-cream-dark: #ede8e0;
    --color-gold: #d4a574;
    --color-gold-light: #e0b88e;
    --color-white: #ffffff;
    --color-text: #2c3e4a;
    --color-text-light: #6b7f8f;
    --color-border: #e0d8cf;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(26, 95, 95, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 95, 95, 0.1);
    --shadow-lg: 0 8px 40px rgba(26, 95, 95, 0.12);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 244, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.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: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-teal);
}

.nav-logo-icon {
    flex-shrink: 0;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-slate);
    letter-spacing: 0.02em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition);
}

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

.nav-link:hover {
    color: var(--color-teal);
}

.nav-cta {
    background: var(--color-teal);
    color: var(--color-white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-cta:hover {
    background: var(--color-teal-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-slate);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 95, 95, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-accent {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    margin-bottom: 24px;
    border-radius: 2px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.hero-headline {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--color-slate-dark);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline br {
    display: none;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

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

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

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

.hero-image {
    position: relative;
}

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

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

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 200px;
    height: 200px;
    border: 3px solid var(--color-gold);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.4;
}

.hero-badge {
    position: absolute;
    bottom: 24px;
    right: -24px;
    background: var(--color-white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-slate-dark);
    font-size: 0.9rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

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

.btn-secondary:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}

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

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

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

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

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

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

/* ============================================
   Section Styles
   ============================================ */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.section-eyebrow.light {
    color: var(--color-gold-light);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

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

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    border-radius: 2px;
    margin-bottom: 40px;
}

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

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

.section-header .section-divider {
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    padding: 40px 32px;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--color-teal);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-white);
}

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

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

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--color-cream);
}

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

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-image-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 260px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream);
}

.about-image-secondary img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.about-content {
    padding: 20px 0;
}

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

.about-stats {
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 40px 0;
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-teal);
    margin-bottom: 4px;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.about-content .btn {
    margin-top: 8px;
}

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

.why-us .section-eyebrow {
    color: var(--color-gold-light);
}

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

.why-us .section-divider {
    margin-left: auto;
    margin-right: auto;
}

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

.why-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.why-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.7;
}

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

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

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--color-teal);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='0.03'%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");
}

.cta-bg {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-title {
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 40px;
}

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

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--color-cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--color-slate-dark);
    line-height: 1.6;
}

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

.contact-item a:hover {
    color: var(--color-teal-dark);
    text-decoration: underline;
}

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

.contact-form-wrapper {
    background: var(--color-cream);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

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

.form-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-slate);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: var(--transition);
    outline: none;
}

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

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

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

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

.form-success svg {
    margin: 0 auto 16px;
}

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

.form-success p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-slate-dark);
    padding: 80px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

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

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

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

.footer-links ul li a:hover {
    color: var(--color-white);
}

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

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

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

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

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

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(247, 244, 240, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-headline {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .hero-headline br {
        display: inline;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image-wrapper img {
        height: 350px;
    }
    
    .hero-badge {
        right: 16px;
        bottom: 16px;
    }
    
    .hero-trust {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image-secondary {
        right: 0;
        bottom: -30px;
        width: 200px;
    }
    
    .about-image-secondary img {
        height: 140px;
    }
    
    .why-us {
        padding: 80px 0;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .why-card {
        padding: 32px;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}
