/* ============================================================
   WESTSIDE AUTO SALES — stylesheet
   Design language: the sign on the building. Slate siding,
   flag red, checkered-flag banding, heavy white block letters,
   odometer-mono data.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --slate-ink: #2a333c;   /* darkest siding — hero/footer ground */
  --slate: #37424c;       /* raised dark surfaces */
  --slate-edge: #46525c;  /* borders on dark */
  --paper: #f2f3f1;       /* light page background */
  --card: #ffffff;
  --ink: #17191c;
  --steel: #64707a;       /* muted text */
  --line: #dde0dd;        /* hairlines on light */
  --flag-red: #c1272d;    /* the banner red — primary accent */
  --flag-bright: #d5343b; /* hover red */
  --flag-deep: #a31e24;   /* red dark enough for text on light */
  --go: #2e7d46;          /* available */
  --amber: #e8a20c;       /* pending */
  --chalk: #f7f6f2;       /* text on dark */
  --chalk-dim: #b6bec5;

  --font-display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --font-body: "Archivo", "Segoe UI", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(23, 25, 28, 0.06), 0 8px 24px rgba(23, 25, 28, 0.07);
  --shadow-lift: 0 2px 4px rgba(23, 25, 28, 0.08), 0 16px 36px rgba(23, 25, 28, 0.12);
  --container: 1160px;

  /* the checkered-flag band */
  --checker: repeating-conic-gradient(#17191c 0% 25%, #ffffff 0% 50%);
  /* clapboard siding texture for dark zones */
  --siding: repeating-linear-gradient(
    180deg,
    transparent 0 13px,
    rgba(255, 255, 255, 0.045) 13px 14px
  );
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.04;
  margin: 0 0 0.5rem;
  letter-spacing: 0.005em;
}

h4 {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--steel);
}

p {
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 3px solid var(--flag-red);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--flag-red);
  color: #fff;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn-solid {
  background: var(--slate-ink);
  color: var(--chalk);
}

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

.btn-flag {
  background: var(--flag-red);
  color: #fff;
}

.btn-flag:hover {
  background: var(--flag-bright);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--chalk);
}

.btn-ghost-dark {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--chalk);
  background: transparent;
}

.btn-ghost-dark:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background: var(--flag-deep);
  color: #fff;
}

.btn-danger:hover {
  background: var(--flag-red);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.5rem 0.95rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(242, 243, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-mark {
  width: 66px;
  height: 34px;
  flex: 0 0 auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.98;
}

.logo-top {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.logo-bottom {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  color: var(--flag-deep);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:not(.btn):hover {
  border-bottom-color: var(--flag-red);
}

.site-nav a.active {
  border-bottom-color: var(--flag-red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0 11px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--slate-ink);
  background-image: var(--siding);
  color: var(--chalk);
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* the checkered-flag band */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 16px;
  background: var(--checker);
  background-size: 16px 16px;
  animation: flag-sweep 1.1s ease-out both 0.35s;
}

@keyframes flag-sweep {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.hero-inner {
  padding: 82px 22px 116px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  max-width: 14ch;
  margin: 0.45rem 0 1.1rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 8px 18px rgba(0, 0, 0, 0.3);
  animation: rise 0.7s ease-out both;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--chalk-dim);
  max-width: 56ch;
  margin-bottom: 1.9rem;
  animation: rise 0.7s ease-out both 0.12s;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  animation: rise 0.7s ease-out both 0.2s;
}

.hero-open-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--chalk-dim);
  border: 1px solid var(--slate-edge);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.hero-open-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4caf6d;
  box-shadow: 0 0 0 4px rgba(76, 175, 109, 0.22);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section-dark {
  background-color: var(--slate-ink);
  background-image: var(--siding);
  color: var(--chalk);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flag-deep);
  padding-bottom: 0.4rem;
  margin-bottom: 0.45rem;
  border-bottom: 3px solid var(--flag-red);
}

.hero .eyebrow,
.page-hero .eyebrow,
.section-dark .eyebrow {
  color: #fff;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  margin: 0;
}

.section-head .count {
  font-family: var(--font-mono);
  color: var(--steel);
  font-size: 0.95rem;
}

.section-title-lg {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  margin-bottom: 2.2rem;
}

/* ---------- Car cards ---------- */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.5rem;
}

.car-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid var(--line);
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.car-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--slate-ink);
}

.car-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-card-photo .status-chip {
  position: absolute;
  top: 12px;
  left: 12px;
}

.car-card-photo .photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(23, 25, 28, 0.78);
  color: var(--chalk);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}

.car-card-body {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.car-card-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.car-card-meta {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: var(--steel);
}

.car-card-price {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--flag-deep);
}

.status-chip {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.26rem 0.62rem;
  border-radius: 6px;
}

.status-available {
  background: var(--go);
  color: #fff;
}

.status-pending {
  background: var(--amber);
  color: var(--ink);
}

.status-sold {
  background: var(--flag-red);
  color: #fff;
}

/* ---------- Empty / notice states ---------- */
.notice-card {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--steel);
}

.notice-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.notice-card .btn {
  margin-top: 1rem;
}

/* ---------- Value strip (why us) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.value-item {
  border-top: 4px solid var(--flag-red);
  padding-top: 1.1rem;
}

.value-item h3 {
  font-size: 1.12rem;
}

.value-item p {
  color: var(--steel);
  margin: 0;
  font-size: 0.97rem;
}

.section-dark .value-item p {
  color: var(--chalk-dim);
}

/* ---------- Banner (trade-in CTA) ---------- */
.banner {
  background-color: var(--slate);
  background-image: var(--siding);
  border: 1px solid var(--slate-edge);
  color: var(--chalk);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.banner h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 0;
}

.banner p {
  margin: 0.35rem 0 0;
  color: var(--chalk-dim);
}

/* ---------- Inventory filter bar ---------- */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 1.7rem;
  box-shadow: var(--shadow);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.filter-field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.filter-field input,
.filter-field select {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  min-width: 0;
}

.filter-field input:focus,
.filter-field select:focus {
  outline: 3px solid var(--flag-red);
  outline-offset: 1px;
}

.filter-clear {
  align-self: end;
}

.results-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 1.1rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background-color: var(--slate-ink);
  background-image: var(--siding);
  color: var(--chalk);
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 12px;
  background: var(--checker);
  background-size: 12px 12px;
}

.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 52px 22px 58px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0.35rem 0 0.4rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.page-hero p {
  color: var(--chalk-dim);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Car detail ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--slate-ink);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(23, 25, 28, 0.72);
  color: var(--chalk);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.gallery-nav:hover {
  background: var(--flag-red);
  color: #fff;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(23, 25, 28, 0.78);
  color: var(--chalk);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  background: var(--slate-ink);
  aspect-ratio: 4 / 3;
}

.gallery-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.gallery-thumbs button:hover img {
  opacity: 1;
}

.gallery-thumbs button.current {
  border-color: var(--flag-red);
}

.gallery-thumbs button.current img {
  opacity: 1;
}

.detail-title h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 0.5rem 0 0.3rem;
}

.detail-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  margin: 0.4rem 0 0.2rem;
  color: var(--flag-deep);
}

.detail-price-note {
  font-size: 0.78rem;
  color: var(--steel);
  margin-bottom: 1.1rem;
}

.detail-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1.1rem 0 1.6rem;
}

/* the window sticker */
.sticker {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sticker-head {
  background: var(--flag-red);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.09em;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--ink);
}

.sticker-head .mono {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.sticker table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sticker td {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.sticker tr:first-child td {
  border-top: none;
}

.sticker td:first-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  width: 42%;
  padding-top: 0.72rem;
}

.sticker td:last-child {
  font-weight: 600;
}

.detail-description {
  margin-top: 1.6rem;
}

.detail-description h3 {
  font-size: 1.15rem;
}

.detail-description p {
  color: #3a4048;
  white-space: pre-line;
}

.detail-history {
  margin-top: 1rem;
}

/* ---------- Info cards (trade-in / contact) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--flag-red);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-card h3 {
  font-size: 1.15rem;
}

.info-card p {
  color: var(--steel);
  margin: 0 0 1rem;
  font-size: 0.97rem;
}

.info-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.info-card .big-mono {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  word-break: break-all;
}

/* checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  padding-left: 1.7rem;
  position: relative;
  color: #3a4048;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  background: var(--flag-red);
  border-radius: 3px;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}

.hours-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 420px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* ---------- Prose (about) ---------- */
.prose {
  max-width: 68ch;
  font-size: 1.05rem;
  color: #2c3138;
}

.prose p {
  margin-bottom: 1.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--slate-ink);
  background-image: var(--siding);
  color: var(--chalk);
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  height: 12px;
  background: var(--checker);
  background-size: 12px 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
  padding: 56px 22px 42px;
}

.footer-brand .logo-bottom {
  color: #ff8d92;
}

.footer-tag {
  color: var(--chalk-dim);
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

.site-footer h4 {
  color: var(--chalk-dim);
}

.site-footer address {
  font-style: normal;
  color: var(--chalk);
  margin-bottom: 0.6rem;
}

.footer-link {
  display: block;
  color: var(--chalk);
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.footer-link:hover {
  color: #ff8d92;
}

.footer-email {
  font-size: 0.8rem;
  word-break: break-all;
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.3rem 0;
  color: var(--chalk);
}

.footer-pages {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--chalk-dim);
}

.footer-pages a {
  color: var(--chalk-dim);
  text-decoration: none;
}

.footer-pages a:hover {
  color: #ff8d92;
}

.footer-fine {
  border-top: 1px solid var(--slate-edge);
  padding-top: 1.4rem;
  padding-bottom: 2rem;
  color: #8b959e;
  font-size: 0.78rem;
}

.footer-fine p {
  margin: 0 0 0.5rem;
}

/* ---------- Floating call button ---------- */
.call-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  align-items: center;
  gap: 0.5rem;
  background: var(--flag-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.call-fab svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   ADMIN — Lot Manager
   ============================================================ */
.admin-body {
  background: var(--paper);
  min-height: 100vh;
}

.admin-topbar {
  background-color: var(--slate-ink);
  background-image: var(--siding);
  color: var(--chalk);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--flag-red);
}

.admin-topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-topbar .logo-text {
  color: var(--chalk);
}

.admin-topbar .logo-bottom {
  color: #ff8d92;
}

.admin-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 18px 90px;
}

.admin-hidden {
  display: none !important;
}

/* login */
.login-card {
  max-width: 420px;
  margin: 8vh auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--flag-red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 1.8rem;
}

.login-card h1 {
  font-size: 1.6rem;
}

.login-card p {
  color: var(--steel);
  font-size: 0.95rem;
}

/* forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--flag-red);
  outline-offset: 1px;
}

.field .hint {
  font-size: 0.78rem;
  color: var(--steel);
}

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

.form-grid .span-2 {
  grid-column: span 2;
}

.form-grid .span-3 {
  grid-column: span 3;
}

.form-msg {
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.form-msg.error {
  background: #fbe9e8;
  color: #8e2419;
  border: 1px solid #e8b6af;
}

.form-msg.ok {
  background: #e7f3ea;
  color: #1f5c35;
  border: 1px solid #b5d6c0;
}

.form-msg.info {
  background: #edf1f4;
  color: #3b4a57;
  border: 1px solid #ccd6de;
}

/* admin dashboard */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.stat-card .stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
}

.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.admin-toolbar h2 {
  font-size: 1.45rem;
  margin: 0;
}

.admin-list {
  display: grid;
  gap: 0.8rem;
}

.admin-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.8rem;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.admin-row-photo {
  width: 110px;
  height: 82px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate-ink);
}

.admin-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-row-main {
  min-width: 0;
}

.admin-row-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.15;
}

.admin-row-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  align-items: center;
}

.admin-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-select {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

/* photo manager */
.dropzone {
  border: 2px dashed #c5cbd0;
  border-radius: var(--radius-lg);
  background: #fafbfa;
  padding: 2rem 1.4rem;
  text-align: center;
  color: var(--steel);
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.dropzone.dragover {
  border-color: var(--flag-red);
  background: #fdefee;
}

.dropzone strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.photo-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate-ink);
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-tile .cover-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--flag-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.66rem;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
}

.photo-tile-bar {
  display: flex;
  background: var(--card);
  border-top: 1px solid var(--line);
}

.photo-tile-bar button {
  flex: 1;
  border: none;
  background: none;
  padding: 0.45rem 0.2rem;
  font-size: 0.95rem;
  color: var(--steel);
  border-left: 1px solid var(--line);
}

.photo-tile-bar button:first-child {
  border-left: none;
}

.photo-tile-bar button:hover {
  background: var(--paper);
  color: var(--ink);
}

.photo-tile-bar button.tile-delete:hover {
  color: var(--flag-red);
}

.upload-progress {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--flag-deep);
  margin-top: 0.7rem;
}

.admin-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}

.admin-form-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.4rem;
}

.vin-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
}

.vin-row .field {
  flex: 1;
  margin-bottom: 0;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0 1rem;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--flag-deep);
}

.checkbox-row label {
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar .filter-clear {
    grid-column: span 2;
  }

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

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

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

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

  .form-grid .span-2,
  .form-grid .span-3 {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 22px 1.4rem;
    gap: 0.4rem;
    display: none;
    box-shadow: var(--shadow-lift);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .site-nav .nav-call {
    margin-top: 0.9rem;
  }

  .call-fab {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding: 56px 22px 96px;
  }

  .section {
    padding: 54px 0;
  }

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

  .detail-ctas {
    grid-template-columns: 1fr;
  }

  .banner {
    padding: 1.8rem 1.4rem;
  }

  .admin-row {
    grid-template-columns: 84px 1fr;
  }

  .admin-row-photo {
    width: 84px;
    height: 64px;
  }

  .admin-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

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

  .form-grid .span-2,
  .form-grid .span-3 {
    grid-column: span 1;
  }

  .vin-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
