/* ============================================
   Small Town Auto Sales — Custom Styles
   Palette: Charcoal (#2A2A2A) + Coral (#F47B5B)
   Fonts: Playfair Display + Inter
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --charcoal: #2A2A2A;
    --charcoal-light: #3D3D3D;
    --charcoal-dark: #1A1A1A;
    --coral: #F47B5B;
    --coral-dark: #E06A4A;
    --coral-light: #F9A892;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F8F8F8;
    --gray-100: #F2F2F2;
    --gray-200: #E8E8E8;
    --gray-300: #D1D1D1;
    --gray-400: #A0A0A0;
    --gray-500: #6E6E6E;
    --gray-600: #4A4A4A;
    --gray-700: #333333;
    --gray-800: #2A2A2A;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* ---- SECTION LABEL ---- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1rem;
}

/* ---- SECTION HEADER ---- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.8;
}

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

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

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--charcoal);
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--coral);
}

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

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--gray-600);
    transition: color var(--transition);
}

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

.nav-phone {
    color: var(--coral) !important;
    font-weight: 400 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

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

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--charcoal-dark);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

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

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

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

.hero p {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 300;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.75rem;
    background: var(--coral);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    transition: background var(--transition);
}

.hero-cta:hover {
    background: var(--coral-dark);
}

/* ---- SECTIONS ---- */
.section {
    padding: 7rem 0;
}

/* ---- ABOUT ---- */
.about {
    background: var(--white);
}

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

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 2px;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

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

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

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

.stat-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}

/* ---- INVENTORY ---- */
.inventory {
    background: var(--gray-50);
}

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

.inv-card {
    background: var(--white);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: box-shadow var(--transition), transform var(--transition);
}

.inv-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.inv-card-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.inv-card-body {
    padding: 2rem;
}

.inv-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.inv-card-body p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.75;
}

.inventory-cta {
    text-align: center;
    padding: 3rem;
    background: var(--charcoal);
    border-radius: 2px;
}

.inventory-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ---- BUTTONS ---- */
.btn-outline {
    display: inline-block;
    padding: 0.9rem 2.25rem;
    border: 1px solid var(--coral);
    color: var(--coral);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--transition);
}

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

.btn-solid {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--coral);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background var(--transition);
}

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

/* ---- WHY US ---- */
.why-us {
    background: var(--white);
}

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

.feature {
    text-align: left;
    padding: 2.5rem 0;
    border-top: 1px solid var(--gray-200);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.5rem;
    color: var(--coral);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.feature p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.8;
}

/* ---- VISIT / CONTACT ---- */
.visit {
    background: var(--gray-50);
}

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

.visit-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.visit-info > p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--coral);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 0.35rem;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

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

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

.visit-map {
    height: 480px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

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

/* ---- FOOTER ---- */
.footer {
    background: var(--charcoal-dark);
    padding: 4rem 0 2.5rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.footer-contact a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-contact span {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-copy {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    text-align: center;
}

.footer-copy p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 3rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image img {
        height: 280px;
    }

    .about-stats {
        gap: 2rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .visit-map {
        height: 320px;
    }

    .section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        padding: 0 1.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-contact {
        flex-direction: column;
        gap: 0.75rem;
    }
}
