/* ===================================
   Advanced Automotive — Styles
   Classic & Elegant
   =================================== */

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

:root {
    --terracotta: #B85A44;
    --terracotta-dark: #9A4A36;
    --terracotta-light: #D4826E;
    --sand: #F5F0E8;
    --sand-dark: #E8DFD0;
    --sand-light: #FAF7F2;
    --charcoal: #2C2C2C;
    --charcoal-light: #4A4A4A;
    --cream: #FDFCFA;
    --gold: #C9A96E;
    --gold-light: #D4BC8A;
    
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(44, 44, 44, 0.06);
    --shadow-md: 0 4px 16px rgba(44, 44, 44, 0.08);
    --shadow-lg: 0 8px 32px rgba(44, 44, 44, 0.10);
    --shadow-xl: 0 16px 48px rgba(44, 44, 44, 0.12);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

a:hover {
    color: var(--terracotta-dark);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--charcoal);
    color: var(--sand);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 1rem;
}

.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;
    color: var(--charcoal);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--terracotta), var(--gold));
    margin-bottom: 2rem;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--terracotta);
    color: #fff;
    border-color: var(--terracotta);
}

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

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 90, 68, 0.1);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--charcoal);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
}

.logo:hover {
    color: var(--terracotta);
}

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

.logo-light {
    color: var(--sand);
}

.logo-light:hover {
    color: var(--terracotta-light);
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.primary-nav a {
    color: var(--charcoal-light);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.primary-nav a:hover {
    color: var(--terracotta);
    background: rgba(184, 90, 68, 0.06);
}

.nav-cta {
    background: var(--terracotta) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--terracotta-dark) !important;
    color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    left: 0;
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 44, 44, 0.82) 0%,
        rgba(44, 44, 44, 0.65) 50%,
        rgba(154, 74, 54, 0.55) 100%
    );
}

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

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* --- Services --- */
.services {
    padding: 7rem 0;
    background: var(--cream);
}

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

.service-card {
    background: var(--sand-light);
    border: 1px solid var(--sand-dark);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

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

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

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

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

/* --- About --- */
.about {
    padding: 7rem 0;
    background: var(--sand);
}

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

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

.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 .section-title {
    text-align: left;
}

.about-content .section-divider {
    margin-bottom: 2rem;
}

.about-content p {
    color: var(--charcoal-light);
    margin-bottom: 1.25rem;
    font-size: 1.025rem;
}

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

.stat {
    text-align: center;
}

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

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

/* --- Why Us --- */
.why-us {
    padding: 7rem 0;
    background: var(--charcoal);
    color: var(--sand);
}

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

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

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

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

.why-item {
    position: relative;
    padding-left: 5rem;
}

.why-number {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--terracotta);
    opacity: 0.4;
    line-height: 1;
}

.why-item h3 {
    font-size: 1.35rem;
    color: var(--sand);
    margin-bottom: 0.75rem;
}

.why-item p {
    color: rgba(245, 240, 232, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- Testimonials --- */
.testimonials {
    padding: 7rem 0;
    background: var(--cream);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial {
    background: var(--sand-light);
    border: 1px solid var(--sand-dark);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all var(--transition);
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.quote-mark {
    color: var(--terracotta);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.testimonial footer {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
}

/* --- Contact --- */
.contact {
    padding: 7rem 0;
    background: var(--sand);
}

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

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

.contact-info .section-divider {
    margin-bottom: 2rem;
}

.contact-info > p {
    color: var(--charcoal-light);
    font-size: 1.025rem;
    margin-bottom: 2.5rem;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item dt {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terracotta);
    color: #fff;
    border-radius: var(--radius-sm);
}

.contact-item dd {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    line-height: 1.7;
}

.contact-item a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
}

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

/* Form */
.contact-form-wrapper {
    background: var(--cream);
    border: 1px solid var(--sand-dark);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal-light);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--sand-light);
    border: 1px solid var(--sand-dark);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(184, 90, 68, 0.12);
}

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

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

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

.form-success svg {
    color: var(--terracotta);
    margin: 0 auto 1rem;
}

.form-success h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--charcoal-light);
}

/* --- Footer --- */
.site-footer {
    background: var(--charcoal);
    color: var(--sand);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.25rem;
}

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

.footer-links a {
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-contact p {
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(245, 240, 232, 0.6);
    text-decoration: none;
    transition: color var(--transition);
}

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

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

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.4);
}

/* --- 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 --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid .testimonial:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--cream);
        box-shadow: var(--shadow-xl);
        padding: 6rem 2rem 2rem;
        transition: right var(--transition);
        z-index: 100;
    }
    
    .primary-nav.open {
        right: 0;
    }
    
    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .primary-nav a {
        display: block;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-item {
        padding-left: 0;
        padding-top: 1rem;
        border-top: 1px solid rgba(245, 240, 232, 0.1);
    }
    
    .why-number {
        display: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid .testimonial:last-child {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        gap: 2rem;
    }
    
    .header-inner {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Mobile nav overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 44, 44, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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