:root {
    --navy:    #1a1f2e;
    --navy2:   #0f1320;
    --red:     #c9a227;
    --red2:    #e8be3a;
    --white:   #f5f5f5;
    --muted:   #999;
    --border:  #2d3550;
    --radius:  6px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #fff;
    color: #222;
    line-height: 1.65;
}

/* ── HEADER ──────────────────────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--navy);
    border-bottom: 3px solid var(--red);
    transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

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

.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.logo-sub { color: rgba(255,255,255,0.55); font-size: 0.7rem; letter-spacing: 0.12em; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    align-items: center;
}
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}
.nav-links a:hover { color: #aac4ff; }

.btn-nav {
    background: var(--red) !important;
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 700;
}
.btn-nav:hover { background: var(--red2) !important; color: #fff !important; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.875rem; }

.btn-dark { background: var(--navy2); }
.btn-dark:hover { background: #002060; }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 0.85rem 2rem;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: #fff; color: #fff; }

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('hero.jpg') center center / cover no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,20,60,0.82) 0%, rgba(0,10,40,0.70) 60%, rgba(80,0,20,0.65) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 900px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #aac4ff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    text-shadow: 0 3px 30px rgba(0,0,0,0.6);
}
.hero-content h1 span { color: var(--red2); }

.hero-sub {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin-bottom: 2.5rem;
}

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

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 1.4rem;
    animation: bounce 2s infinite;
    z-index: 1;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── SECTIONS ────────────────────────────────────────────────────────── */
section { padding: 5.5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.navy-section { background: var(--navy);  color: var(--white); }
.red-section  { background: var(--red);   color: #fff; }

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.6rem;
}
h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--red);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}
h2.left { text-align: left; }
h2.left::after { margin-left: 0; }
.navy-section h2::after, .red-section h2::after { background: #fff; }

.section-sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 3rem;
    font-size: 1rem;
}
.navy-section .section-sub { color: rgba(255,255,255,0.65); }
.red-section .section-sub  { color: rgba(255,255,255,0.8); }

/* ── INVENTORY GRID ──────────────────────────────────────────────────── */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}

.vehicle-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.vehicle-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }

.photo-counter {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
}

.vehicle-photo-wrap { position: relative; }
.vehicle-photo-wrap img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: #000;
    display: block;
}
.vehicle-photo .no-photo {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.vehicle-info {
    padding: 1.2rem 1.4rem 1.4rem;
}
.vehicle-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.2rem;
}
.vehicle-trim { font-size: 0.82rem; color: #777; margin-bottom: 0.6rem; }
.vehicle-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}
.vehicle-details span { font-size: 0.8rem; color: #555; }
.vehicle-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 0.9rem;
}

.inventory-empty {
    display: flex;
    justify-content: center;
    padding: 4rem 1rem;
}
.empty-box {
    text-align: center;
    max-width: 400px;
}
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-box h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.empty-box p  { color: #666; }

/* ── ABOUT ───────────────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-text p { color: #444; margin-top: 1rem; }

/* ── IMAGE PLACEHOLDER ───────────────────────────────────────────────── */
.img-placeholder {
    background: #e8ecf5;
    border: 2px dashed #b0bcdc;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #888;
    font-size: 0.85rem;
    aspect-ratio: 4/3;
    text-align: center;
    padding: 1rem;
}
.img-placeholder.large { aspect-ratio: unset; min-height: 320px; }
.img-placeholder small  { font-size: 0.75rem; color: #aaa; }

/* ── HOURS ───────────────────────────────────────────────────────────── */
.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.hours-table { padding-top: 0.5rem; }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
td {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 0.95rem;
    color: var(--white);
}
td:last-child {
    text-align: right;
    color: #aac4ff;
    font-weight: 600;
}

.contact-info { margin-top: 1.5rem; }
.contact-info p { margin-bottom: 0.5rem; font-size: 0.95rem; color: rgba(255,255,255,0.8); }
.contact-info a { color: #aac4ff; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.cta-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
}
.cta-box h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 0.6rem; }
.cta-box p  { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* ── FORMS ───────────────────────────────────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 680px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.2);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.3);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.45); }
textarea { resize: vertical; }

/* ── FOOTER ──────────────────────────────────────────────────────────── */
footer {
    background: var(--navy2);
    color: var(--white);
    padding: 3.5rem 2rem 1.5rem;
    border-top: 3px solid var(--red);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.footer-brand .logo-main { font-size: 0.85rem; }
.footer-brand span { color: var(--muted); font-size: 0.85rem; }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: #aac4ff; }

.footer-bottom {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.78rem;
}

/* ── TOAST ───────────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--navy);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    opacity: 0;
    transition: transform 0.35s, opacity 0.35s;
    z-index: 999;
    white-space: nowrap;
}
.toast.show    { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: #3a3; color: #8f8; }
.toast.error   { border-color: #933; color: #f88; }

/* ── SCROLL REVEAL ───────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .about-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
    .hours-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0; right: 0;
        background: var(--navy);
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 2px solid var(--red);
    }
    .nav-links.open { display: flex; }
    .nav-toggle  { display: block; }
    .form-row    { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 2rem; }
}

@media (max-width: 480px) {
    section { padding: 4rem 1.25rem; }
    .hero-btns { flex-direction: column; align-items: center; }
}
