/* Eddie Hobbs Automotive — concept preview styles (rail floor plan, 2026)
   Floor plan identity: the page is built like a shop counter. A fixed
   front-counter rail (badge, phone, hours, index) never leaves; the
   work scrolls past it in one offset column. The hero is a painted
   shop sign over a framed bay photo, reviews are a ledger, and the
   form is a paper work order. Nothing here reuses the FadedScape
   floor plan: no top header, no centered bands, no card grids. */

:root {
  --paper: #f4f1ea;
  --paper-deep: #e9e2d2;
  --card: #fffdf6;
  --ink: #1b1e22;
  --ink-soft: #5b6066;
  --steel: #22272e;
  --steel-deep: #121519;
  --amber: #e8a13a;
  --amber-soft: #f0c979;
  --amber-deep: #9a670f;
  --line: rgba(27, 30, 34, 0.18);
  --line-light: rgba(244, 241, 234, 0.18);
  --shadow: 0 24px 55px rgba(19, 22, 26, 0.25);
  --shadow-soft: 0 12px 30px rgba(19, 22, 26, 0.12);
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --rail-w: 302px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--steel-deep);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: var(--amber-deep); }
a:hover { color: var(--steel); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.sr-only {
  position: absolute; 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: 1rem; top: -10rem; z-index: 120;
  padding: 0.7rem 1rem; border-radius: 999px;
  color: var(--steel-deep); background: var(--amber); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

h1, h2, h3 {
  font-family: "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.04;
  font-weight: 800;
}
h1 { margin: 0; font-size: clamp(2.7rem, 5.6vw, 4.9rem); max-width: 14ch; }
h2 { margin: 0; font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.1rem; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  align-items: start;
}

/* ---------- Front counter rail ---------- */
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1.8rem 1.5rem 1.4rem;
  color: #d8d2c2;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.022) 0 12px, transparent 12px 24px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.022) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, var(--steel) 0%, var(--steel-deep) 90%);
  border-right: 4px solid var(--amber);
}
.rail-brand { display: flex; align-items: center; gap: 0.8rem; color: #fff; text-decoration: none; }
.rail-brand:hover { color: #fff; }
.brand-badge {
  display: grid; place-items: center;
  width: 54px; height: 54px; flex: none;
  border-radius: 12px;
  color: var(--steel-deep); background: var(--amber);
  font-family: "Arial Narrow", sans-serif; font-weight: 800; font-size: 1.3rem;
  box-shadow: inset 0 0 0 2px rgba(19, 22, 26, 0.25);
}
.brand-words {
  font-family: "Arial Narrow", sans-serif; font-weight: 800;
  font-size: 1.5rem; text-transform: uppercase; line-height: 1.02;
}
.brand-words small { display: block; color: var(--amber-soft); font-size: 0.82rem; letter-spacing: 0.34em; }

.rail-call {
  display: block;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  color: var(--steel-deep); background: var(--amber);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(232, 161, 58, 0.3);
}
.rail-call:hover { color: var(--steel-deep); background: var(--amber-soft); }
.rail-call-label { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.rail-call-number { display: block; font-family: var(--mono); font-size: 1.32rem; font-weight: 700; }

.rail-facts { display: grid; gap: 1rem; margin: 0; }
.rail-facts div { padding-top: 0.85rem; border-top: 1px solid var(--line-light); }
.rail-facts dt {
  color: var(--amber-soft);
  font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.rail-facts dd { margin: 0; color: #efe9db; font-weight: 600; line-height: 1.45; }

.rail-nav { display: grid; gap: 0.2rem; }
.rail-nav a {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  color: #e8e4da; text-decoration: none; font-weight: 700;
}
.rail-nav a span { font-family: var(--mono); font-size: 0.8rem; color: var(--amber); }
.rail-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

.rail-note { margin: 0; font-size: 0.92rem; color: #b7b0a0; }
.rail-fineprint { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--line-light); font-size: 0.8rem; color: #8f897c; }

/* ---------- Main column ---------- */
.main-col {
  min-width: 0;
  background: var(--paper);
  padding: clamp(1.6rem, 4.5vw, 4rem) clamp(1.2rem, 4.5vw, 4.2rem) 0;
}
.main-col > main { max-width: 920px; }

/* Sign hero */
.hero-kicker {
  display: inline-block; margin: 0 0 1rem;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-deep);
  border-block: 2px solid var(--amber);
  padding: 0.3rem 0.1rem;
}
.hero-lede { max-width: 600px; margin: 1.3rem 0 0; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-soft); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }
.chip {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); font-size: 0.92rem;
  box-shadow: var(--shadow-soft);
}
.chip strong { color: var(--amber-deep); }
.hero-photo-frame {
  margin: 2rem 0 0;
  border: 3px solid var(--steel);
  outline: 1px solid var(--amber);
  outline-offset: -9px;
  background: var(--steel);
  box-shadow: var(--shadow);
}
.hero-photo-frame img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.hero-photo-frame figcaption {
  padding: 0.6rem 1rem;
  color: #c9c2b2; font-size: 0.86rem; font-style: italic;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.8rem 1.35rem;
  border: 1px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 800; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--steel-deep); background: var(--amber); }
.button-primary:hover { color: var(--steel-deep); background: var(--amber-soft); }
.button-dark { color: #fff; background: var(--steel); }
.button-dark:hover { color: #fff; background: var(--steel-deep); }
.button-ghost { color: var(--amber-deep); background: transparent; border-color: rgba(154, 103, 15, 0.5); }
.button.full { width: 100%; }

/* Sections with ruled index heads */
.section { padding: clamp(3.2rem, 6vw, 4.8rem) 0 0; }
.ruled-head {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding-bottom: 1.3rem; margin-bottom: 1.8rem;
  border-bottom: 3px solid var(--steel);
}
.ruled-num {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--amber);
  -webkit-text-stroke: 1px rgba(154, 103, 15, 0.55);
  line-height: 1;
  padding-top: 0.3rem;
}
.ruled-head p { margin: 0.5rem 0 0; color: var(--ink-soft); max-width: 62ch; }

/* Service board */
.board {
  border-radius: 20px;
  padding: clamp(1.1rem, 3vw, 2rem);
  color: #efe9db;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--steel) 0%, var(--steel-deep) 80%);
  box-shadow: var(--shadow);
}
.board-item {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 1rem 0.2rem;
  border-bottom: 1px dashed rgba(240, 201, 121, 0.28);
}
.board-item:last-child { border-bottom: 0; }
.board-item > div { flex: 1; }
.board-item h3 { margin: 0 0 0.2rem; color: #fff; }
.board-item p { margin: 0; color: #c9c2b2; font-size: 0.96rem; }
.board-tag {
  flex: none;
  padding: 0.26rem 0.7rem;
  border: 1px solid rgba(240, 201, 121, 0.55); border-radius: 999px;
  color: var(--amber-soft);
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}

/* The shop */
.about-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.about-copy p { color: var(--ink-soft); font-size: 1.04rem; margin-top: 0; }
.pull-quote {
  margin: 1.6rem 0 0; padding: 1.15rem 1.3rem;
  border-left: 5px solid var(--amber);
  background: var(--card); border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow-soft);
  font-size: 1.18rem; font-weight: 650;
}
.pull-quote cite { display: block; margin-top: 0.45rem; font-size: 0.9rem; font-style: normal; color: var(--ink-soft); font-weight: 600; }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; max-height: 430px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-soft); }
.about-photo figcaption { margin-top: 0.55rem; color: var(--ink-soft); font-size: 0.87rem; font-style: italic; }

/* The ledger */
.ledger { border-top: 2px solid var(--steel); }
.ledger-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.2rem; align-items: baseline;
  margin: 0; padding: 1.15rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.ledger-stars { color: var(--amber); letter-spacing: 0.18em; font-size: 0.95rem; }
.ledger-row p { margin: 0; font-size: 1.12rem; font-weight: 650; }
.ledger-row cite { font-style: normal; font-weight: 700; color: var(--amber-deep); white-space: nowrap; }

/* Work order */
.request-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.work-order {
  position: relative;
  padding: 0 1.5rem 1.6rem 2.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 2px dashed rgba(27, 30, 34, 0.4);
  box-shadow: var(--shadow-soft);
}
.work-order::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 11px; width: 10px;
  background-image: radial-gradient(circle 4px, var(--paper) 3.5px, rgba(27,30,34,0.25) 4px, transparent 5px);
  background-size: 10px 34px;
  background-repeat: repeat-y;
}
.wo-head {
  margin: 0 -1.5rem 1.2rem -2.4rem;
  padding: 0.85rem 1.5rem 0.85rem 2.4rem;
  background: var(--steel);
  color: #fff;
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; align-items: baseline;
}
.wo-title { font-family: var(--mono); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 1.05rem; }
.wo-sub { color: var(--amber-soft); font-size: 0.88rem; font-family: var(--mono); }
.demo-notice { margin: 0 0 1.2rem; padding: 0.9rem; border: 1px solid rgba(232, 161, 58, 0.6); border-radius: 10px; background: #fdf3dd; color: var(--ink-soft); font-size: 0.94rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.field label {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.field label span { color: var(--amber-deep); }
.optional { letter-spacing: 0.02em; text-transform: none; font-family: inherit; font-weight: 500; }
input, select, textarea {
  width: 100%;
  border: 0; border-bottom: 2px solid rgba(27, 30, 34, 0.35);
  border-radius: 6px 6px 0 0;
  padding: 0.6rem 0.5rem;
  color: var(--ink); background: rgba(233, 226, 210, 0.35);
  font: inherit;
}
input:focus, select:focus, textarea:focus { border-bottom-color: var(--amber-deep); background: rgba(233, 226, 210, 0.6); outline: none; }
textarea { resize: vertical; }
.wo-submit {
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: 0; border-radius: 10px;
  color: var(--steel-deep); background: var(--amber);
  font: inherit; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(232, 161, 58, 0.35);
}
.wo-submit:hover { background: var(--amber-soft); }
.form-message { margin: 1rem 0 0; padding: 1rem; border-radius: 10px; }
.form-message.error { color: #7c1d0d; background: #fde7df; }
.form-message.success { color: var(--ink); background: #f3ecd9; }
.form-message h3 { margin-top: 0; font-size: 1.02rem; }
.form-message label { display: block; margin-bottom: 0.4rem; font-weight: 750; }
.form-message button { margin-top: 0.7rem; }
.work-order .form-message.error { margin: 0 0 1rem; }

.next-steps {
  padding: 1.5rem;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--paper-deep);
}
.next-steps h3 { margin-top: 0; font-size: 1.3rem; }
.next-steps ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.85rem; color: var(--ink-soft); }
.next-steps ol strong { color: var(--ink); }
.next-note { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); }

/* Colophon */
.colophon {
  max-width: 920px;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-bottom: 2.2rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.colophon .checker {
  height: 14px; margin-bottom: 1.4rem;
  background: repeating-conic-gradient(var(--steel-deep) 0% 25%, #fff 0% 50%);
  background-size: 28px 28px;
  border-block: 3px solid var(--amber);
}
.colophon p { margin: 0.3rem 0; }
.colophon strong { color: var(--ink); }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Assistant */
.assistant-shell { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; }
.assistant-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 52px; padding: 0.8rem 1.05rem;
  border: 0; border-radius: 999px;
  color: var(--steel-deep); background: var(--amber);
  box-shadow: 0 16px 36px rgba(13, 15, 18, 0.4);
  font: inherit; font-weight: 800; cursor: pointer;
}
.assistant-toggle span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--steel-deep); }
.assistant-panel {
  position: absolute; right: 0; bottom: 66px;
  width: min(390px, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow);
}
.assistant-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.1rem 0.7rem; color: #fff; background: var(--steel); }
.assistant-header h2 { font-size: 1.08rem; color: #fff; }
.assistant-header p { margin: 0.15rem 0 0; color: #c9c2b2; font-size: 0.88rem; }
.assistant-close { border: 0; color: #fff; background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.assistant-disclosure { margin: 0; padding: 0.85rem 1.1rem; color: var(--ink-soft); background: #fdf3dd; font-size: 0.9rem; }
.assistant-log { display: grid; gap: 0.65rem; max-height: 290px; overflow: auto; padding: 1rem; }
.assistant-message { margin: 0; padding: 0.72rem 0.9rem; border-radius: 14px; line-height: 1.45; }
.assistant-message.bot { background: #f0ead9; }
.assistant-message.user { justify-self: end; color: #fff; background: var(--steel); }
.assistant-prompts { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 1rem 0.8rem; }
.assistant-prompts button {
  border: 1px solid rgba(27, 30, 34, 0.3); border-radius: 999px;
  padding: 0.42rem 0.7rem; color: var(--steel); background: #fff;
  font: inherit; font-size: 0.88rem; cursor: pointer;
}
.assistant-form { display: flex; gap: 0.5rem; padding: 0.9rem; border-top: 1px solid var(--line); }
.assistant-form input { flex: 1; border: 1px solid rgba(27,30,34,0.35); border-radius: 10px; background: #fff; }
.assistant-form button { border: 0; border-radius: 10px; padding: 0 1rem; color: var(--steel-deep); background: var(--amber); font: inherit; font-weight: 800; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --rail-w: 262px; }
  .about-grid, .request-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 16px; }
  .layout { grid-template-columns: 1fr; }
  .rail {
    position: static; height: auto; overflow: visible;
    border-right: 0; border-bottom: 4px solid var(--amber);
    gap: 1.1rem; padding: 1.3rem 1.2rem 1.2rem;
  }
  .rail-facts { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .rail-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .rail-nav a { border: 1px solid var(--line-light); }
  .rail-fineprint { margin-top: 0; }
  .ledger-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .board-item { flex-direction: column; gap: 0.35rem; }
  .form-row { grid-template-columns: 1fr; }
  body { padding-bottom: 56px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: var(--steel-deep); border-top: 3px solid var(--amber);
  }
  .mobile-bar a { padding: 0.95rem 0.5rem; text-align: center; color: #fff; font-weight: 800; text-decoration: none; }
  .mobile-bar a:first-child { color: var(--steel-deep); background: var(--amber); }
  .assistant-shell { bottom: 4.6rem; }
}
@media (max-width: 560px) {
  .rail-facts { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
