/* ============================================
   W-Right Automotive Repair — Styles
   Charcoal + Coral | Clean Minimalist
   ============================================ */

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

:root {
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --charcoal-muted: #6b6b6b;
    --coral: #e8634a;
    --coral-light: #f07860;
    --coral-dark: #d4523a;
    --white: #ffffff;
    --off-white: #fafafa;
    --cream: #f5f3f0;
    --border: #e8e5e0;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

em {
    font-style: italic;
    color: var(--coral);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 24px;
}

/* --- Buttons --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.cta-button.primary {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.cta-button.primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 99, 74, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.cta-button.secondary:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.cta-button.large {
    padding: 18px 40px;
    font-size: 0.9375rem;
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
}

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

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

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal-muted);
    position: relative;
}

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

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

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

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

.nav-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--charcoal);
    transition: var(--transition);
}

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

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

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

/* --- Mobile Nav --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.97);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

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

.mobile-cta {
    margin-top: 16px;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: var(--cream);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 24px;
}

.hero-headline {
    margin-bottom: 24px;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.15;
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--charcoal-muted);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.8;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--charcoal);
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal-muted);
}

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

.hero-image-wrapper {
    position: relative;
}

.hero-image-main {
    position: relative;
    overflow: hidden;
}

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

.hero-image-accent {
    position: absolute;
    bottom: -40px;
    left: -60px;
    width: 260px;
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

.hero-badge {
    position: absolute;
    top: 32px;
    right: -24px;
    background: var(--white);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-badge svg {
    color: var(--coral);
}

.hero-badge span {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--white);
}

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

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

.service-card {
    padding: 48px 36px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--coral);
}

.service-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.125rem;
}

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

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

.about-image-side {
    position: relative;
}

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

.about-image-overlay {
    position: absolute;
    bottom: 40px;
    right: -32px;
    background: var(--charcoal);
    color: var(--white);
    padding: 32px 40px;
}

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

.overlay-number {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
}

.overlay-year {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--white);
    line-height: 1;
}

.overlay-label {
    font-size: 0.8125rem;
    color: var(--charcoal-muted);
}

.about-content {
    padding-left: 24px;
}

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

.about-values {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--charcoal);
}

.value-item svg {
    color: var(--coral);
    flex-shrink: 0;
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 100px 0;
    background: var(--charcoal);
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--charcoal-muted);
    font-size: 1.0625rem;
}

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

.cta-banner .cta-button.secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta-banner .cta-button.secondary:hover {
    background: var(--white);
    color: var(--charcoal);
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--white);
}

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

.contact-description {
    font-size: 1rem;
    color: var(--charcoal-muted);
    margin-bottom: 48px;
    line-height: 1.8;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--coral);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--charcoal);
}

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

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

/* --- Form --- */
.contact-form-wrapper {
    background: var(--cream);
    padding: 56px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(232, 99, 74, 0.1);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 32px;
}

.form-success svg {
    color: var(--coral);
    margin-bottom: 24px;
}

.form-success h4 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--charcoal-muted);
    font-size: 0.9375rem;
}

/* --- Map --- */
.map-section {
    border-top: 1px solid var(--border);
}

.map-container {
    position: relative;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--white), transparent);
    pointer-events: none;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 72px 0 40px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

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

.footer-brand p {
    color: var(--charcoal-muted);
    font-size: 0.9375rem;
    max-width: 320px;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal-muted);
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--charcoal-light);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--charcoal-muted);
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 48px;
    }
    
    .hero-image-accent {
        left: -32px;
        bottom: -24px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero::before {
        width: 100%;
        opacity: 0.5;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-content {
        padding-right: 0;
        order: 2;
    }
    
    .hero-image-wrapper {
        order: 1;
    }
    
    .hero-image-main img {
        height: 400px;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .hero-badge {
        right: 16px;
        top: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .cta-button {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image-side img {
        height: 400px;
    }
    
    .about-image-overlay {
        right: 16px;
        bottom: 24px;
    }
    
    .about-content {
        padding-left: 0;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .cta-button {
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .stat-divider {
        display: none;
    }
}
