/* ===================================
   Beaver Valley Auto Service
   Classic & Elegant Auto Repair Website
   =================================== */

/* CSS Custom Properties */
:root {
    --navy-950: #0a1628;
    --navy-900: #0f2140;
    --navy-800: #152d56;
    --navy-700: #1a3665;
    --navy-600: #1e4078;
    --navy-500: #255094;
    --navy-100: #d0ddef;
    --navy-50:  #eef3fa;
    
    --gold-600: #9a7b3e;
    --gold-500: #C5A059;
    --gold-400: #d4b76a;
    --gold-300: #e0c98a;
    --gold-200: #e8d9a8;
    --gold-100: #f5ecd3;
    --gold-50:  #faf6eb;
    
    --white: #ffffff;
    --off-white: #fafafa;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.05);
    --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 8px 30px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 16px 50px rgba(10, 22, 40, 0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    --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: var(--font-sans);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.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(--navy-900);
}

/* 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: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--gold-500);
    color: var(--navy-950);
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background-color: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--navy-900);
    border: 1.5px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--navy-700);
    color: var(--navy-700);
    background-color: var(--navy-50);
}

.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: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 12px;
}

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

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-600);
    max-width: 560px;
    line-height: 1.7;
}

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

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

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

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

.logo-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold-500);
    letter-spacing: 0.02em;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.2;
}

.logo-text span {
    color: var(--gold-600);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    font-weight: 400;
}

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

.nav-links a:not(.btn) {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

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

.btn-nav {
    padding: 10px 20px;
    background-color: var(--navy-800);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.btn-nav:hover {
    background-color: var(--navy-700);
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--navy-900);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    z-index: 999;
    padding: 24px;
    flex-direction: column;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.mobile-close {
    padding: 8px;
    color: var(--navy-900);
}

.mobile-link {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-900);
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.mobile-link-cta {
    margin-top: 24px;
    text-align: center;
    border-bottom: none;
    color: var(--gold-600);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(197, 160, 89, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(37, 80, 148, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--gold-400);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
    font-weight: 700;
}

.hero-title em {
    color: var(--gold-400);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--navy-100);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
}

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

.hero-actions .btn-primary {
    background-color: var(--gold-500);
    color: var(--navy-950);
}

.hero-actions .btn-primary:hover {
    background-color: var(--gold-400);
}

.hero-actions .btn-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.hero-actions .btn-secondary:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.hero-trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-100);
    font-size: 0.9375rem;
}

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

/* Hero Image */
.hero-image {
    position: relative;
}

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

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

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

.hero-stats {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--white);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.stat-card {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 500;
}

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

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

.service-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    background-color: var(--white);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    margin-bottom: 20px;
}

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

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

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

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

.about-image {
    position: relative;
}

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

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.1), transparent);
    pointer-events: none;
}

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

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

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-color: var(--gold-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-600);
}

.value-item h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    padding: 100px 0;
    background-color: var(--navy-900);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(197, 160, 89, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.testimonials .section-tag {
    color: var(--gold-400);
}

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

.testimonials .section-subtitle {
    color: var(--navy-100);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--gold-500);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--navy-100);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--navy-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--white);
    font-size: 0.9375rem;
}

.author-location {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info .section-title {
    text-align: left;
}

.contact-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-color: var(--navy-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 4px;
}

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

.contact-link {
    color: var(--navy-700);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--gold-600);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-form h3 {
    font-size: 1.375rem;
    margin-bottom: 24px;
    color: var(--navy-900);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--gray-800);
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

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

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

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

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

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: var(--gold-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-600);
}

.form-success h3 {
    margin-bottom: 12px;
}

.form-success p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* Map */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--navy-950);
    padding: 60px 0 0;
}

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

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

.footer-desc {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

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

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

.footer-links a {
    font-size: 0.9375rem;
    color: var(--gray-500);
}

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

.footer-contact p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.8;
}

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

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

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

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

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-image-wrapper img {
        height: 480px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 72px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-image-wrapper img {
        height: 400px;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 20px;
        display: inline-block;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

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

/* Accessibility: Reduced Motion */
@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;
    }
}

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

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
