/* ============================================
   Michael Tyler's Discount Autos
   Classic & Elegant Marketing Site
   ============================================ */

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

:root {
    --forest-dark: #0f2618;
    --forest: #1a3c2a;
    --forest-mid: #24523a;
    --forest-light: #2d6348;
    --gold: #c8a45c;
    --gold-light: #d4b76e;
    --gold-pale: #f0e2be;
    --cream: #faf8f4;
    --cream-dark: #f2efe8;
    --warm-gray: #6b6560;
    --warm-gray-light: #9e9890;
    --text-dark: #1a1a18;
    --text-body: #3a3834;
    --white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;
    --shadow-sm: 0 1px 3px rgba(26, 60, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 60, 42, 0.1);
    --shadow-lg: 0 8px 32px rgba(26, 60, 42, 0.12);
    --shadow-xl: 0 16px 48px rgba(26, 60, 42, 0.14);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --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(--text-body);
    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: inherit;
    text-decoration: none;
}

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

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--forest);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 16px;
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--forest-dark);
    border-color: var(--gold);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-light {
    background: transparent;
    color: var(--forest);
    border-color: var(--forest);
}
.btn-outline-light:hover, .btn-outline-light:focus {
    background: var(--forest);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-nav {
    background: var(--gold);
    color: var(--forest-dark);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}
.btn-nav:hover {
    background: var(--gold-light);
}

/* --- Section Shared --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    color: var(--forest-dark);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 60, 42, 0.08);
    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 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--forest-dark);
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--warm-gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--forest);
    position: relative;
    transition: all var(--transition);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--forest);
    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);
}

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

.nav-list a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-body);
    transition: color var(--transition);
    position: relative;
}
.nav-list a:not(.btn-nav):hover {
    color: var(--forest);
}
.nav-list a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}
.nav-list a:not(.btn-nav):hover::after {
    width: 100%;
}

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(26, 60, 42, 0.85) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(45, 99, 72, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(200, 164, 92, 0.25) 0%, transparent 50%),
        linear-gradient(160deg, #0a1f12 0%, #1a3c2a 35%, #24523a 65%, #1a3c2a 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
}

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

.hero-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
}

.hero-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: heroScrollPulse 2s ease-in-out infinite;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
}

@keyframes heroScrollPulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}

/* --- Trust Bar --- */
.trust-bar {
    background: var(--forest);
    padding: 0;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-right: 1px solid rgba(255,255,255,0.08);
    color: var(--white);
}
.trust-item:last-child {
    border-right: none;
}

.trust-icon {
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
}

.trust-item span {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* --- Inventory --- */
.inventory {
    background: var(--cream);
}

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

.car-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.car-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 7/5;
}

.car-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.car-card:hover .car-card-img img {
    transform: scale(1.05);
}

.car-card-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--forest);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.car-card-body {
    padding: 24px;
}

.car-card-title {
    font-size: 1.375rem;
    margin-bottom: 8px;
    color: var(--forest-dark);
}

.car-card-body p {
    font-size: 0.9375rem;
    color: var(--warm-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.car-card-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}
.car-card:hover .car-card-cta {
    color: var(--gold-light);
}

.inventory-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--warm-gray-light);
    font-style: italic;
}

/* --- Why Choose --- */
.why-choose {
    background: var(--white);
}

.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-image {
    position: relative;
}

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

.why-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.why-content {
    padding: 16px 0;
}

.why-content .section-subtitle {
    text-align: left;
    margin-bottom: 40px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.why-feature {
    display: flex;
    gap: 20px;
}

.why-feature-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-pale);
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
}

.why-feature-title {
    font-size: 1.125rem;
    margin-bottom: 6px;
    color: var(--forest-dark);
}

.why-feature p {
    font-size: 0.9375rem;
    color: var(--warm-gray);
    line-height: 1.65;
}

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

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

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(26, 60, 42, 0.06);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-pale);
}

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

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-title {
    font-size: 1.1875rem;
    margin-bottom: 10px;
    color: var(--forest-dark);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--warm-gray);
    line-height: 1.65;
}

/* --- Testimonials --- */
.testimonials {
    background: var(--forest);
}

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

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

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

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}
.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 8px;
}

.testimonial-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

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

.testimonial-author-avatar {
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--forest-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.8125rem;
}

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

.testimonial-author-location {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- CTA --- */
.cta-section {
    background: var(--cream-dark);
    padding: 80px 0;
}

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

.cta-text {
    flex: 1;
    min-width: 280px;
}

.cta-eyebrow {
    color: var(--gold) !important;
}

.cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--forest-dark);
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 1.0625rem;
    color: var(--warm-gray);
}

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

/* --- Location --- */
.location {
    background: var(--white);
}

.location-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.location-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
}

.location-map iframe {
    width: 100%;
    height: 100%;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 8px 0;
}

.location-detail {
    display: flex;
    gap: 16px;
}

.location-detail-icon {
    width: 48px;
    height: 48px;
    background: var(--forest);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.location-detail-icon svg {
    width: 22px;
    height: 22px;
}

.location-detail-label {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.location-detail p,
.location-detail a {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.6;
}

.location-detail a:hover {
    color: var(--forest);
    text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
    background: var(--forest-dark);
    padding: 56px 0 32px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.logo-footer .logo-mark {
    background: var(--forest-mid);
}

.footer-tagline {
    max-width: 320px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy,
.footer-address {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .why-layout {
        gap: 40px;
    }
    .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;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 20px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        z-index: 999;
    }

    .nav-list.open {
        right: 0;
    }

    .nav-list a {
        font-size: 1.0625rem;
    }

    .nav-list .btn-nav {
        margin-top: 8px;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 998;
    }
    .nav-overlay.active {
        display: block;
    }

    .hero {
        min-height: 100svh;
        padding: 100px 20px 60px;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }

    .trust-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-item {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .section {
        padding: 72px 0;
    }

    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .why-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-image {
        order: -1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .cta-actions {
        justify-content: center;
    }

    .location-layout {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .trust-items {
        grid-template-columns: 1fr;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 0.9375rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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