/* ===================================
   Black River Roadside Repair
   Classic & Elegant Auto Repair Site
   =================================== */

/* CSS Variables */
:root {
    --charcoal: #2C3E50;
    --charcoal-dark: #1A252F;
    --charcoal-light: #34495E;
    --coral: #E07A5F;
    --coral-dark: #C0604A;
    --coral-light: #F4A893;
    --cream: #FDF8F5;
    --cream-dark: #F5EDE8;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #FDF8F5;
    --text-muted: #7F8C8D;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
    --shadow-hover: 0 8px 30px rgba(44, 62, 80, 0.15);
}

/* 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);
    line-height: 1.6;
    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 1.5rem;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--charcoal);
    margin-bottom: 1rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

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

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

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

.btn-block {
    width: 100%;
    text-align: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

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

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

.btn-nav {
    background-color: var(--coral);
    color: var(--white) !important;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.btn-nav:hover {
    background-color: var(--coral-dark);
}

.btn-nav::after {
    display: none;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--charcoal-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

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

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

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

.mobile-link {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.pexels.com/photos/8985602/pexels-photo-8985602.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 37, 47, 0.7) 0%,
        rgba(44, 62, 80, 0.6) 50%,
        rgba(26, 37, 47, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding-top: 5rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(253, 248, 245, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 6rem 0;
}

/* Services */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--cream);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.service-card .icon {
    color: var(--coral);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

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

/* About */
.about {
    background-color: var(--cream);
}

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

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

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content .lead {
    font-size: 1.25rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cream-dark);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--coral);
}

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

/* Why Us */
.why-us {
    background-color: var(--charcoal);
    color: var(--text-light);
}

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

.why-us .section-desc {
    color: rgba(253, 248, 245, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: var(--coral);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature h4 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.feature p {
    color: rgba(253, 248, 245, 0.7);
    font-size: 0.9375rem;
}

/* Contact */
.contact {
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.contact-item .label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-item .value {
    font-size: 1.125rem;
    color: var(--charcoal);
    font-family: var(--font-serif);
}

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

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

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--cream);
    padding: 2.5rem;
    border-radius: 8px;
}

.contact-form h3,
.form-success h3 {
    font-size: 1.75rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--white);
    transition: var(--transition);
}

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

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

.form-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Map */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background-color: var(--charcoal-dark);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-brand p {
    color: rgba(253, 248, 245, 0.6);
    font-size: 0.9375rem;
}

.footer-contact p {
    color: rgba(253, 248, 245, 0.6);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

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

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

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(253, 248, 245, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(253, 248, 245, 0.4);
    font-size: 0.875rem;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
