@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
    --ink: #15171c;
    --ink-2: #1f222a;
    --steel: #2b2e38;
    --bone: #f3efe6;
    --bone-2: #ece6d8;
    --amber: #ffb000;
    --amber-dark: #d99400;
    --text: #1c1d20;
    --muted: #6b6f7a;
    --line: #e2ddd0;
    --success: #1e8449;
    --danger: #c0392b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bone);
    color: var(--text);
    line-height: 1.5;
}
h1, h2, h3, .display {
    font-family: 'Anton', 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0 0 .4em;
}
.mono { font-family: 'IBM Plex Mono', monospace; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Site header ---------- */
.site-header {
    background: var(--ink);
    color: #fff;
    padding: 16px 0;
    position: sticky; top: 0; z-index: 50;
    border-bottom: 3px solid var(--amber);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; }
.site-brand { font-family: 'Anton', sans-serif; font-size: 1.4rem; text-transform: uppercase; color: #fff; white-space: nowrap; }
.site-brand span { color: var(--amber); }
.site-nav { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; font-weight: 600; font-size: 0.92rem; text-transform: uppercase; letter-spacing: .03em; }
.site-nav a:hover { color: var(--amber); }
.site-header-actions { display: flex; align-items: center; gap: 14px; font-size: 0.88rem; }
.cart-pill { background: var(--amber); color: var(--ink); padding: 6px 12px; border-radius: 20px; font-weight: 700; }
.staff-link { border: 1px solid rgba(255,255,255,.35); padding: 6px 12px; border-radius: 20px; }
.staff-link:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; padding: 56px 0 40px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 780px; }
.hero h1 span { color: var(--amber); }
.hero p.lede { color: #cfd2da; font-size: 1.05rem; max-width: 560px; margin-bottom: 26px; }

.search-bar { background: #fff; border-radius: 10px; padding: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)) auto; gap: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.search-bar select, .search-bar input { border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: 0.92rem; font-family: inherit; color: var(--text); }
.search-bar button { background: var(--amber); color: var(--ink); border: none; border-radius: 6px; padding: 10px 20px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 0.85rem; letter-spacing: .03em; }
.search-bar button:hover { background: var(--amber-dark); }

/* ---------- Section scaffolding ---------- */
.section { padding: 46px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.section-label { font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-dark); font-weight: 700; margin-bottom: 4px; }
.section h2 { font-size: 1.7rem; }
.section-link { font-weight: 600; font-size: 0.88rem; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }

/* ---------- Featured strip (varied sizes, not a uniform grid) ---------- */
.featured-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.featured-grid .side-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
@media (max-width: 780px) { .featured-grid { grid-template-columns: 1fr; } .featured-grid .side-stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; } }

.moto-card { position: relative; border-radius: 10px; overflow: hidden; background: var(--steel); color: #fff; display: block; min-height: 220px; }
.moto-card.large { min-height: 420px; }
.moto-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .35s ease; }
.moto-card:hover img { transform: scale(1.04); }
.moto-card .no-photo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6b7080; font-size: 0.85rem; background: var(--steel); }
.moto-card .overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(0deg, rgba(0,0,0,.82) 10%, transparent 100%); }
.moto-card .tag { display: inline-block; background: var(--amber); color: var(--ink); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; margin-bottom: 8px; }
.moto-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.moto-card .price { font-weight: 700; color: var(--amber); font-size: 1.05rem; }
.moto-card .meta { font-size: 0.78rem; color: #cfd2da; margin-top: 2px; }

/* ---------- Standard listing grid ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.listing-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.listing-card .thumb { height: 160px; background: var(--bone-2); position: relative; }
.listing-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .thumb .no-photo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.82rem; }
.listing-card .badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--amber); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.listing-card .body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.listing-card h3 { font-size: 1rem; margin-bottom: 4px; text-transform: none; font-family: 'Inter', sans-serif; font-weight: 700; }
.listing-card .price { font-weight: 800; color: var(--ink); font-size: 1.15rem; margin: 6px 0; }
.listing-card .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.listing-card .cta { margin-top: auto; display: flex; gap: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 6px; padding: 10px 16px; font-weight: 700; font-size: 0.85rem; cursor: pointer; text-transform: uppercase; letter-spacing: .02em; text-align: center; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-dark); }
.btn-outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--bone-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 0.76rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Filters bar ---------- */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 10px; align-items: end; }
.filter-bar label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: block; margin-bottom: 4px; }
.filter-bar select, .filter-bar input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-family: inherit; font-size: 0.88rem; }

/* ---------- Detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.gallery-main { border-radius: 10px; overflow: hidden; background: var(--steel); height: 360px; display: flex; align-items: center; justify-content: center; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .no-photo { color: #8b8f9c; font-family: 'Anton'; letter-spacing: .05em; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img { width: 70px; height: 52px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--amber); }

.spec-plate { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.spec-plate .stock-tag { font-family: 'IBM Plex Mono'; font-size: 0.78rem; color: var(--muted); }
.spec-plate .price-row { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 6px 0 18px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.spec-table td { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.spec-table td:first-child { color: var(--muted); width: 46%; }
.spec-table td.mono { font-family: 'IBM Plex Mono'; font-size: 0.84rem; }
.action-stack { display: grid; gap: 8px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.desc-block { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }

/* ---------- Forms (contact/reserve/test-ride modals-as-sections) ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-top: 16px; }
.form-card label { display: block; font-size: 0.78rem; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 0.92rem; }

/* ---------- Compare table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.88rem; }
.compare-table th { background: var(--ink); color: #fff; text-transform: uppercase; font-size: 0.75rem; letter-spacing: .04em; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 0.9rem; }
.alert-success { background: #e8f6ee; color: var(--success); border: 1px solid #bfe6cf; }
.alert-danger { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c0; }
.alert-info { background: #eef3fb; color: #1a3c6e; border: 1px solid #c7d9f2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd2da; padding: 40px 0 24px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; text-transform: uppercase; font-size: 0.85rem; letter-spacing: .05em; margin-bottom: 12px; }
.site-footer a:hover { color: var(--amber); }
.branch-item { margin-bottom: 12px; font-size: 0.88rem; }
.branch-item strong { color: #fff; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 0.8rem; color: #888c99; text-align: center; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
