/* Auto Men — Steel City black and gold theme */
:root {
  --bg: #101010;
  --surface: #1c1c1c;
  --surface-2: #242424;
  --line: #363636;
  --text: #ffffff;
  --muted: #bdbdbd;
  --gold: #ffb81c;
  --gold-light: #ffd866;
  --on-gold: #111111;
  --grad-hot: #ffb81c;
  --grad-cool: #ffb81c;
  --radius: 14px;
  --gutter: 16px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; color: #fff;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-call { background: var(--gold); color: var(--on-gold); box-shadow: none; }
.btn-call:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #000;
}
.site-header::after { content: ""; display: block; height: 3px; background: var(--gold); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.logo-block { background: var(--gold); color: var(--on-gold); padding: 5px 8px 4px; border-radius: 6px; }
.logo-word { letter-spacing: .02em; }
.skyline { flex: none; margin-left: 8px; }
@media (max-width: 479px) {
  .logo { gap: 4px; }
  .skyline { width: 104px; height: auto; margin-left: 4px; }
}

.calls { display: flex; gap: 8px; }

/* Two call buttons need their own row on phones. */
@media (max-width: 639px) {
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .calls { flex: 1 1 100%; }
  .calls .btn-call { flex: 1 1 0; padding: 10px 8px; font-size: .95rem; }
  .call-word { display: none; }
}
@media (max-width: 379px) {
  .btn-call svg { display: none; }
  .logo { font-size: 1.5rem; }
}

/* Hero */
.hero { padding-top: 24px; padding-bottom: 28px; }
.hero-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .5);
}
.hero-photo {
  position: absolute; inset: 0 0 auto; z-index: -2;
  width: 100%; height: 300px; object-fit: cover; object-position: 35% 45%;
}
/* Phones: the lot shows clearly at the top and fades into the text. */
.hero-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .6) 150px, #000 300px);
}
.hero-copy { padding: 190px 20px 26px; }
.hero-copy p { margin: 14px 0 0; color: #e8e8e8; font-size: 1.0625rem; line-height: 1.55; }
.hero-title {
  font-size: clamp(2.2rem, 6.5vw, 3.9rem);
  line-height: 1.04; text-transform: uppercase; color: #fff;
  border-left: 6px solid var(--gold);
  padding-left: 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}
.hero-grad {
  display: block; text-shadow: none;
  background: linear-gradient(90deg, #ffb81c 0%, #ffd866 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-copy .hero-tag {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
  font: 700 1.2rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; color: #fff;
}
.hero-tag span {
  padding: 8px 12px; border-radius: 999px;
  background: var(--gold); color: var(--on-gold);
}
/* Wide screens: the text sits over the left, the lot stays bright on the right. */
@media (min-width: 900px) {
  .hero-photo { height: 100%; object-position: 50% 40%; }
  .hero-panel::after { background: linear-gradient(90deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .88) 45%, rgba(0, 0, 0, .15) 78%, rgba(0, 0, 0, .05) 100%); }
  .hero-copy { padding: 44px 40px; max-width: 62%; }
}

/* Autumn leaves drifting over the lot photo */
.hero-copy { position: relative; z-index: 1; }
.leaves { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.leaves span {
  position: absolute; top: -50px; width: 32px; height: 32px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23e8741e' d='M16 1L18.500 7L22 5.500L21 12L25 8.500L26.500 11.500L31 11L29 16L31 17.500L24.500 23L25.500 26L17 25L17 31L15 31L15 25L6.500 26L7.500 23L1 17.500L3 16L1 11L5.500 11.500L7 8.500L11 12L10 5.500L13.500 7Z'/%3E%3Cpath fill='none' stroke='%23a84a0c' stroke-width='.9' d='M16 25V7M16 19L8 13M16 19L24 13M16 23L8 21M16 23L24 21'/%3E%3C/svg%3E");
  animation: leaf-fall 14s linear infinite;
}
.leaves span:nth-child(3n+2) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffb81c' d='M16 1L18.500 7L22 5.500L21 12L25 8.500L26.500 11.500L31 11L29 16L31 17.500L24.500 23L25.500 26L17 25L17 31L15 31L15 25L6.500 26L7.500 23L1 17.500L3 16L1 11L5.500 11.500L7 8.500L11 12L10 5.500L13.500 7Z'/%3E%3Cpath fill='none' stroke='%23b67f0c' stroke-width='.9' d='M16 25V7M16 19L8 13M16 19L24 13M16 23L8 21M16 23L24 21'/%3E%3C/svg%3E"); }
.leaves span:nth-child(3n) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23c8401e' d='M16 1L18.500 7L22 5.500L21 12L25 8.500L26.500 11.500L31 11L29 16L31 17.500L24.500 23L25.500 26L17 25L17 31L15 31L15 25L6.500 26L7.500 23L1 17.500L3 16L1 11L5.500 11.500L7 8.500L11 12L10 5.500L13.500 7Z'/%3E%3Cpath fill='none' stroke='%238a2a10' stroke-width='.9' d='M16 25V7M16 19L8 13M16 19L24 13M16 23L8 21M16 23L24 21'/%3E%3C/svg%3E"); }
.leaves span:nth-child(1) { left: 6%; animation-delay: -1s; }
.leaves span:nth-child(2) { left: 18%; width: 26px; height: 26px; animation-duration: 17s; animation-delay: -9s; }
.leaves span:nth-child(3) { left: 31%; animation-duration: 12s; animation-delay: -5s; }
.leaves span:nth-child(4) { left: 44%; width: 38px; height: 38px; animation-duration: 19s; animation-delay: -13s; }
.leaves span:nth-child(5) { left: 55%; width: 26px; height: 26px; animation-duration: 15s; animation-delay: -3s; }
.leaves span:nth-child(6) { left: 66%; width: 34px; height: 34px; animation-duration: 16s; animation-delay: -11s; }
.leaves span:nth-child(7) { left: 75%; animation-duration: 13s; animation-delay: -7s; }
.leaves span:nth-child(8) { left: 83%; width: 40px; height: 40px; animation-duration: 18s; animation-delay: -15s; }
.leaves span:nth-child(9) { left: 90%; width: 26px; height: 26px; animation-duration: 14s; animation-delay: -10s; }
.leaves span:nth-child(10) { left: 96%; width: 30px; height: 30px; animation-duration: 20s; animation-delay: -6s; }
@keyframes leaf-fall {
  0% { top: -8%; transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(26px) rotate(110deg); }
  50% { transform: translateX(-14px) rotate(210deg); }
  75% { transform: translateX(22px) rotate(300deg); }
  100% { top: 104%; transform: translateX(-8px) rotate(420deg); }
}
@media (max-width: 639px) { .leaves span:nth-child(even) { display: none; } }
@media (prefers-reduced-motion: reduce) { .leaves { display: none; } }

/* Filters */
.inventory { padding-bottom: 56px; }
.inventory:focus { outline: none; }
.filters {
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-search { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  font: 500 1rem var(--body);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23bdbdbd' stroke-width='2.5' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.field input::placeholder { color: #9a9a9a; }
.field input:focus-visible, .field select:focus-visible { border-color: var(--gold); outline-offset: 1px; }
@media (min-width: 768px) {
  .filters { grid-template-columns: 2fr 1fr 1fr; padding: 16px; }
  .field-search { grid-column: auto; }
}

.count { margin: 18px 0 14px; font-weight: 600; color: var(--muted); }
.count strong { color: var(--text); }

/* Available / Sold tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab {
  flex: 1; min-height: 46px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font: 700 1.15rem/1 var(--head); letter-spacing: .04em; text-transform: uppercase;
}
.tab:hover { border-color: var(--gold); color: var(--text); }
.tab[aria-pressed="true"] { background: var(--gold); border-color: transparent; color: var(--on-gold); }
.tab-n { font-family: var(--body); font-weight: 600; font-size: .9rem; opacity: .85; }
@media (min-width: 768px) { .tab { flex: 0 0 auto; min-width: 160px; } }

/* Grid + cards */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
}
.group-head {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-top: 12px;
}
.group-head:first-child { margin-top: 0; }
.group-head h3 { margin: 0; font: 700 1.9rem/1.1 var(--head); text-transform: uppercase; }
.group-head .tab-n { color: var(--muted); font-weight: 600; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card::before { content: ""; height: 4px; background: var(--gold); flex: none; }
.card:hover, .card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  transform: translateY(-2px);
}
.cover {
  position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0;
  aspect-ratio: 4 / 3; background: #111; cursor: zoom-in; overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .cover img { transform: scale(1.03); }
.cover:focus-visible { outline-offset: -4px; border-radius: 0; }
.badge {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .8);
  color: #fff; font: 600 .85rem/1.2 var(--body); box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}

/* Neutral placeholder for missing photos */
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(135deg, #1a1a1a 0 14px, #141414 14px 28px);
  color: #bdbdbd; font-weight: 600; font-size: .95rem;
}
.ph::before {
  content: ""; width: 56px; height: 42px; opacity: .7;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath fill='none' stroke='%23bdbdbd' stroke-width='1.5' stroke-linejoin='round' d='M2 4h4l2-2.5h8L18 4h4v12.5H2z'/%3E%3Ccircle cx='12' cy='10' r='4' fill='none' stroke='%23bdbdbd' stroke-width='1.5'/%3E%3C/svg%3E");
}
.ph[hidden] { display: none; }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.card-title { font-size: 1.75rem; text-transform: uppercase; }
.card-trim { margin: -4px 0 0; color: var(--muted); font-weight: 500; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.pill { padding: 4px 10px; border-radius: 999px; font-size: .875rem; font-weight: 600; border: 1px solid; }
.pill-blue { color: #ffd866; background: rgba(255, 184, 28, .14); border-color: rgba(255, 184, 28, .45); }
.pill-red { color: #fff; background: #2a2a2a; border-color: #4a4a4a; }
.pill-purple { color: #fff; background: #2a2a2a; border-color: #4a4a4a; }
.deal {
  align-self: flex-start; padding: 6px 12px; border-radius: 10px;
  background: rgba(255, 184, 28, .12); border: 1px solid rgba(255, 184, 28, .5);
  color: var(--gold-light); font-weight: 600; font-size: .9rem; line-height: 1.3;
}
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-tag {
  position: relative; display: inline-block;
  padding: 6px 14px 4px 24px;
  background: var(--gold); color: var(--on-gold);
  font: 700 1.9rem/1 var(--head); letter-spacing: .01em;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  border-radius: 0 8px 8px 0;
}
.price-tag::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--surface);
}
.price-tag.call { font-size: 1.4rem; padding-top: 9px; padding-bottom: 7px; }
.ask { font-weight: 600; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border-bottom: 2px solid var(--gold); }
.ask:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Description (collapsed by default) */
.desc { border-top: 1px solid var(--line); padding-top: 8px; }
.desc summary {
  cursor: pointer; font-weight: 600; color: var(--gold); min-height: 32px; display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.desc summary::-webkit-details-marker { display: none; }
.desc summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; font-size: .9rem; line-height: 1; }
.desc[open] summary::before { content: "\2212"; }
.desc p { margin: 6px 0 0; white-space: pre-line; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }

/* Pending and sold */
.deal-pending { background: #2a2a2a; border-color: #5a5a5a; color: #fff; }
.card-sold .cover img { filter: grayscale(.55) brightness(.8); }
.sold-flag {
  position: absolute; left: 10px; top: 10px; padding: 5px 12px; border-radius: 6px;
  background: var(--gold); color: var(--on-gold); font: 700 1rem/1.1 var(--head); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.price-tag.sold { background: #3a3a3a; color: #fff; font-size: 1.5rem; padding-top: 8px; padding-bottom: 6px; }
.sold-date { color: var(--muted); font-weight: 600; font-size: .95rem; }
.price-tag.sold .sold-price { font-family: var(--body); font-weight: 600; font-size: .95rem; color: #ddd; }

/* Empty state */
.empty {
  text-align: center; padding: 36px 20px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.empty-title { font: 700 1.6rem/1.1 var(--head); text-transform: uppercase; margin: 0 0 8px; }
.empty p { margin: 0 0 16px; color: var(--muted); }

/* Visit */
.visit { position: relative; padding: 48px 0 56px; background: #0a0a0a; }
.visit::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); }
.section-title { font-size: clamp(2rem, 6vw, 2.8rem); text-transform: uppercase; margin-bottom: 24px; }
.visit-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .visit-grid { grid-template-columns: repeat(3, 1fr); } }
.visit-item { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.visit-item h3 { font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.visit-item p { margin: 0 0 8px; }
address { font-style: normal; font-size: 1.125rem; margin-bottom: 12px; }
.text-link { font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.hours { margin: 0; display: grid; gap: 6px; font-size: 1.05rem; }
.hours div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--muted); }
.phone-big { font: 700 2rem/1.1 var(--head); color: var(--text); text-decoration: none; }
.phone-big:hover { color: var(--gold); }

/* Footer */
.site-footer { padding: 24px 0 32px; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; }

/* Gallery dialog */
.gallery {
  width: 100%; max-width: 1100px; max-height: 100%;
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--text);
}
.gallery::backdrop { background: rgba(0, 0, 0, .92); }
.gallery-inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; gap: 10px; margin: 8px;
}
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gallery-title { font-size: 1.5rem; text-transform: uppercase; padding-left: 4px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); background: #2a2a2a; }
.gallery-stage {
  position: relative; aspect-ratio: 4 / 3; max-height: 68vh; width: 100%;
  background: #000; border-radius: 10px; overflow: hidden; touch-action: pan-y;
}
.gallery-stage img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .75); border-color: rgba(255, 255, 255, .3); color: #fff; }
.nav-btn:hover { background: #000; }
.nav-btn.prev { left: 8px; }
.nav-btn.next { right: 8px; }
.gallery-caption { margin: 0; color: var(--muted); font-size: .95rem; padding: 0 4px; }
.gallery-caption b { color: var(--text); font-weight: 600; }
.thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.thumb {
  position: relative; flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: #111; cursor: pointer; opacity: .7; scroll-snap-align: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { font-size: 0; gap: 0; }
.thumb .ph::before { width: 26px; height: 20px; }
.thumb[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.thumb:hover { opacity: 1; }
.thumb:focus-visible { outline-offset: 0; }
@media (min-width: 768px) {
  .gallery-inner { padding: 16px; margin: 16px; }
  .thumb { width: 104px; }
  .nav-btn.prev { left: 12px; }
  .nav-btn.next { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .card:focus-within, .btn-call:hover { transform: none; }
  .card:hover .cover img { transform: none; }
}
