:root {
  --wf-red: #d71e28;
  --wf-red-dark: #b01c24;
  --wf-yellow: #fcc917;
  --ink: #1f1f1f;
  --text: #333;
  --muted: #666;
  --border: #d9d9d9;
  --surface: #fff;
  --background: #f5f3ef;
  --available-bg: #edf8f0;
  --available-border: #b8dcc3;
  --available-text: #245a34;
  --sold-bg: #fff1f1;
  --sold-border: #d8a1a1;
  --sold-text: #842525;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Wells Fargo Sans", Arial, Helvetica, sans-serif; color: var(--text); background: var(--background); line-height: 1.5; }
a { color: #8f161c; }
.site-header { color: #fff; background: var(--wf-red); border-bottom: 7px solid var(--wf-yellow); }
.header-inner { width: min(1280px, calc(100% - 36px)); min-height: 92px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; flex-direction: column; color: #fff; text-decoration: none; line-height: 1; }
.wordmark span { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 27px; letter-spacing: .025em; }
.wordmark small { margin-top: 8px; font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.header-contact { min-height: 42px; padding: 9px 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.85); border-radius: 3px; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.header-contact:hover, .header-contact:focus-visible { background: #fff; color: var(--wf-red-dark); }
.hero { background: #fff; border-bottom: 1px solid var(--border); }
.hero-inner { width: min(1280px, calc(100% - 36px)); margin: auto; padding: 30px 0; }
.hero img { display: block; width: 100%; height: clamp(230px, 38vw, 480px); object-fit: cover; object-position: center 52%; border-radius: 4px; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
main { width: min(1280px, calc(100% - 36px)); margin: 0 auto 54px; }
.page-intro { padding: 48px 4px 30px; }
.eyebrow { margin: 0 0 8px; color: var(--wf-red); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.location { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.about-card, .inventory-card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 2px 9px rgba(0,0,0,.06); }
.about-card { margin-bottom: 26px; padding: 27px 28px; }
.about-card h2, .inventory-heading h2 { margin: 0 0 9px; color: var(--ink); font-size: 24px; line-height: 1.25; }
.about-card p { max-width: 1050px; margin: 0; color: var(--muted); }
.inventory-card { overflow: hidden; }
.inventory-heading { padding: 23px 26px 18px; border-bottom: 1px solid var(--border); }
.inventory-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.scroll-guide { position: sticky; top: 0; z-index: 20; padding: 9px 25px 7px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.scroll-guide span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
.top-scroll { height: 20px; overflow-x: auto; overflow-y: hidden; }
.top-scroll-inner { height: 1px; }
.table-scroll { max-height: 72vh; overflow: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 1120px; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; text-align: left; font-size: 14px; }
th { position: sticky; top: 0; z-index: 5; background: #f1f1f1; color: var(--ink); font-size: 12px; white-space: normal; }
tbody tr:nth-child(even) { background: #fbfbfb; }
tbody tr:hover { background: #fff8e8; }
.sort-button { width: 100%; padding: 0; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: 700; text-align: left; }
.sort-button:hover, .sort-button:focus-visible { color: var(--wf-red-dark); text-decoration: underline; outline: none; }
.sort-label { display: inline-flex; flex-direction: column; align-items: flex-start; }
.sort-label small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.25; }
.sort-indicator { min-width: 10px; color: #777; font-size: 11px; }
.number-cell { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: center; }
.column-repairEstimate { width: 150px; min-width: 150px; max-width: 150px; text-align: center; }
.column-salePrice { width: 125px; min-width: 125px; max-width: 125px; text-align: center; }
.column-repairEstimate .sort-button,
.column-salePrice .sort-button { justify-content: center; text-align: center; }
.column-repairEstimate .sort-label,
.column-salePrice .sort-label { align-items: center; }
.vin-cell, .report-cell { white-space: nowrap; }
.status-tag { min-height: 26px; padding: 4px 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--available-border); border-radius: 999px; background: var(--available-bg); color: var(--available-text); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.status-sold { border-color: var(--sold-border); background: var(--sold-bg); color: var(--sold-text); }
.report-link { font-weight: 700; white-space: nowrap; }
.button { min-height: 38px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-primary, .learn-button { border: 1px solid var(--wf-red); background: var(--wf-red); color: #fff; }
.learn-button { white-space: nowrap; }
.button-primary:hover, .learn-button:hover { background: var(--wf-red-dark); }
.button-secondary { border: 1px solid #777; background: #fff; color: var(--ink); }
.site-footer { margin-top: 52px; border-top: 7px solid var(--wf-yellow); background: var(--wf-red); color: #fff; }
.site-footer div { width: min(1280px, calc(100% - 36px)); margin: auto; padding: 29px 0; font-size: 14px; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.58); }
.modal-dialog { position: relative; width: min(520px, 100%); padding: 30px; border-top: 7px solid var(--wf-yellow); border-radius: 4px; background: #fff; box-shadow: 0 20px 65px rgba(0,0,0,.3); }
.modal-dialog h2 { margin: 0 35px 12px 0; color: var(--ink); }
.modal-dialog p { margin: 0; }
.modal-close { position: absolute; top: 15px; right: 17px; border: 0; background: transparent; color: #555; cursor: pointer; font-size: 29px; line-height: 1; }
.modal-actions { margin-top: 25px; display: flex; justify-content: flex-end; gap: 10px; }
body.modal-open { overflow: hidden; }

@media (max-width: 720px) {
  .header-inner { min-height: auto; padding: 18px 0; flex-direction: column; align-items: stretch; }
  .wordmark { align-self: flex-start; }
  .header-contact { width: 100%; }
  .hero-inner { width: 100%; padding: 0; }
  .hero img { height: 240px; border-radius: 0; box-shadow: none; }
  main { width: min(100% - 24px, 1280px); }
  .page-intro { padding: 36px 2px 25px; }
  .about-card { padding: 22px; }
  .inventory-heading { padding: 21px; }
  .scroll-guide { padding-inline: 20px; }
  .table-scroll { max-height: 68vh; }
  th, td { padding: 12px 10px; font-size: 13px; }
  .modal-dialog { padding: 25px 22px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
}
