/* ============================================================
   Brian's Auto Service — briansautooc.com
   Palette from the shop badge: charcoal, bone, brand orange.
   Display: Saira Condensed · Body: Barlow
   ============================================================ */

:root {
  --ink: #14171c;        /* page charcoal (matches badge bg) */
  --panel: #1d222a;      /* raised charcoal */
  --line: #2c333e;       /* hairlines on dark */
  --orange: #f04e23;     /* brand orange from the logo */
  --orange-deep: #c93a15;
  --bone: #f2efe9;       /* light section background */
  --bone-line: #ddd7cc;
  --text: #e9e7e2;       /* text on dark */
  --ink-text: #1a1d22;   /* text on light */
  --dim: #97a0ab;        /* secondary on dark */
  --dim-light: #5d646e;  /* secondary on light */
  --ok: #58c472;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: "Barlow", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: "Saira Condensed", "Barlow", sans-serif;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1.05;
  font-weight: 800;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .35em; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: .03em; }
p  { margin-bottom: 1em; }
.lead { font-size: 1.15rem; color: var(--dim); max-width: 56ch; }
.light .lead { color: var(--dim-light); }

/* Job-ticket eyebrow — the little tag above headings */
.ticket {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--orange);
  margin-bottom: 14px;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .ticket { white-space: normal; letter-spacing: .14em; }
}
.ticket::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--orange);
}

/* Caution-stripe divider — signature element, used twice on the site */
.stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange) 0 16px,
    var(--ink) 16px 32px
  );
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 23, 28, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}
/* Header needs more room than the body wrap once the nav grew */
.site-header .wrap { max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand b {
  font-family: "Saira Condensed", sans-serif;
  font-size: 1.25rem; font-weight: 800; letter-spacing: .06em;
  color: #fff; text-transform: uppercase; white-space: nowrap;
}
.brand b span { color: var(--orange); }
.since-badge {
  font-family: "Saira Condensed", sans-serif;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em;
  color: var(--dim); border: 1px solid var(--line); border-radius: 20px;
  padding: 3px 10px; white-space: nowrap;
  margin-right: 22px;              /* breathing room before the nav links */
}
@media (max-width: 1220px) { .since-badge { display: none; } }

nav.main { margin-left: auto; display: flex; gap: 26px; align-items: center; flex-wrap: nowrap; }
nav.main a:not(.call-btn) { white-space: nowrap; }
nav.main a {
  color: var(--text); text-decoration: none;
  font-weight: 500; font-size: .98rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--orange); }

.call-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--orange); color: #fff !important;
  font-weight: 700; text-decoration: none;
  padding: 11px 28px; border-radius: var(--radius);
  border-bottom: none !important;
  white-space: nowrap;
  flex: none;
  min-width: 210px;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  transition: background .15s ease;
}
.call-btn .tel-icon { flex: none; }
.call-btn:hover { background: var(--orange-deep); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font-size: 1.4rem; line-height: 1;
  padding: 8px 12px; cursor: pointer;
}

/* ---------- Open/closed status chip ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; color: var(--dim);
}
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.status.open .dot { background: var(--ok); box-shadow: 0 0 8px rgba(88,196,114,.7); }
.status.open { color: #bfe9c9; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero .badge { justify-self: center; }
.hero .badge img {
  width: min(320px, 70vw);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}
.hero p.sub { color: var(--dim); font-size: 1.2rem; max-width: 48ch; margin: 18px 0 28px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  border: none; cursor: pointer;
  font-family: "Barlow", sans-serif;
  white-space: nowrap; flex: none;
}
.btn.primary { background: var(--orange); color: #fff; transition: background .15s; }
.btn.primary:hover { background: var(--orange-deep); }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--orange); color: #fff; }
/* Ghost buttons on a light background need dark text, not the on-dark colour */
.light .btn.ghost, section.light .btn.ghost, .dt-wrap .btn.ghost {
  color: var(--ink-text);
  border-color: var(--bone-line);
}
.light .btn.ghost:hover, section.light .btn.ghost:hover, .dt-wrap .btn.ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: #fff;
}
.hero .status { margin-top: 22px; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.light { background: var(--bone); color: var(--ink-text); }
section.panel { background: var(--panel); }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--bone-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 4px; background: var(--orange); border-radius: 0 4px 4px 0;
  opacity: 0; transition: opacity .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(26,29,34,.12); }
.card:hover::before { opacity: 1; }
.card h3 { color: var(--ink-text); margin-bottom: 8px; }
.card p { color: var(--dim-light); margin: 0; font-size: .98rem; }

/* dark variant */
.panel .card, .dark-card {
  background: var(--ink); border-color: var(--line);
}
.panel .card h3 { color: #fff; }
.panel .card p { color: var(--dim); }

.card-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fdece7; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.panel .card-icon { background: rgba(240,78,35,.14); }
.card-icon span { width: 14px; height: 14px; background: var(--orange); display: block; transform: rotate(45deg); }

/* ---------- Reviews / social proof ---------- */
.stars { color: var(--orange); letter-spacing: .05em; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 44px; }
.stat-strip div { text-align: center; border-right: 1px solid var(--line); }
.stat-strip div:last-child { border-right: none; }
.stat-strip .num { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 2.2rem; color: #fff; line-height: 1; }
.stat-strip .label { color: var(--dim); font-size: .88rem; }
.testimonial { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.testimonial p { color: var(--text); font-size: .98rem; margin: 10px 0 14px; }
.testimonial .who { color: var(--dim); font-size: .85rem; font-weight: 600; }
.trust-badges { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: 1fr 1fr; row-gap: 24px; } }

/* ---------- Forms ---------- */
form.lead-form {
  background: #fff; border: 1px solid var(--bone-line); border-radius: 14px;
  padding: 34px 30px;
  box-shadow: 0 18px 44px rgba(26,29,34,.10);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-text); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--bone-line); border-radius: 8px;
  font: inherit; font-size: 1rem; color: var(--ink-text);
  background: #fdfcfa;
}
/* Date fields size themselves from their internal spinner unless told otherwise */
input[type=date] {
  height: 51px;
  -webkit-appearance: none;
  appearance: none;
}
/* Match dropdowns to the height/look of the text inputs */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fdfcfa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath fill='%235d646e' d='M7 9 0 0h14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding: 0 40px 0 14px;
  height: 51px;
  cursor: pointer;
  color-scheme: light;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(240,78,35,.45); outline-offset: 1px;
  border-color: var(--orange);
}
textarea { min-height: 120px; resize: vertical; }
input[type=file] { height: auto; padding: 11px 14px; cursor: pointer; }
.plate-row { display: flex; gap: 8px; }
.plate-row input { flex: 1; min-width: 0; }
.plate-row select {
  width: 84px; flex: none;
  padding: 0 28px 0 10px;
  background-position: right 8px center;
  border: 1.5px solid var(--bone-line); border-radius: 8px;
  font: inherit; font-size: 1rem; color: var(--ink-text);
  background-color: #fdfcfa; cursor: pointer;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--dim-light); }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--dim-light); margin-top: 14px; }
.form-error {
  background: #fdecea; border: 1px solid #f5c6c0; color: #8c2f24;
  padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; display: none;
}

/* ---------- Mailing list band ---------- */
.list-band { background: var(--panel); }
.list-band .inner {
  display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.list-band form { display: flex; gap: 10px; flex-wrap: wrap; }
.list-band input[type=email] {
  background: var(--ink); border-color: var(--line); color: var(--text);
  min-width: 280px;
}

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; max-width: 380px; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.light .hours td { border-color: var(--bone-line); color: var(--ink-text); }
.hours td:last-child { text-align: right; color: var(--dim); }
.light .hours td:last-child { color: var(--dim-light); }
.hours tr.today td { color: var(--orange); font-weight: 700; }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: start; }
.info-block h3 { margin: 22px 0 8px; }
.info-block h3:first-child { margin-top: 0; }
.big-phone {
  font-family: "Saira Condensed", sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .03em;
  color: inherit; text-decoration: none;
}
.big-phone:hover { color: var(--orange); }

/* ---------- Footer ---------- */
footer { background: var(--ink); padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
footer h3 { font-size: 1.05rem; letter-spacing: .12em; color: var(--dim); margin-bottom: 14px; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--orange); }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
.foot-brand img { height: 92px; margin-bottom: 14px; }
.copyright { color: var(--dim); font-size: .88rem; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 64px 0 48px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* ---------- Thank you ---------- */
.thanks { min-height: 46vh; display: grid; place-items: center; text-align: center; padding: 96px 20px; }

/* ---------- Map embed ---------- */
.map-embed { width: 100%; height: 260px; border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Book: new vs existing split ---------- */
.book-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 28px; }
.book-split > div { border-radius: 12px; padding: 20px; }
.book-split .existing { background: #fff; border: 1.5px solid var(--orange); }
.book-split .new { background: #fff; border: 1px solid var(--bone-line); }
.book-split h3 { font-size: 1.1rem; margin-bottom: 6px; }
.book-split p { color: var(--dim-light); font-size: .9rem; margin-bottom: 14px; }
@media (max-width: 560px) { .book-split { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 1220px) {
  /* mid widths: drop the brand wordmark so nav + phone never collide */
  .brand b { display: none; }
  .call-btn { min-width: 0; padding: 10px 20px; }
  nav.main { gap: 20px; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero .badge { order: -1; justify-self: center; margin-bottom: 8px; }
  .hero .badge img { width: 190px; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid, .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  nav.main {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 18px 20px; gap: 16px;
  }
  nav.main.open { display: flex; }
  .nav-toggle { display: block; }
  /* In the stacked menu the pill sizes to its content, so it needs its
     own padding back — the mid-width rule above trims it for a tight bar. */
  nav.main .call-btn {
    padding: 12px 28px;
    width: auto;
    align-self: flex-start;
  }
}
@media (max-width: 720px) {
  .grid.cols-3, .grid.cols-2, .form-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}


/* ---------- Moved ribbon ---------- */
.moved-ribbon { background: var(--orange); color: #fff; }
.moved-ribbon .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 20px; font-size: .95rem; }
.moved-ribbon strong {
  font-family: "Saira Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: .16em; font-weight: 800; background: rgba(0,0,0,.22);
  padding: 3px 10px; border-radius: 3px; flex: none;
}
.moved-ribbon b { white-space: nowrap; }
.moved-ribbon a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.moved-ribbon .x {
  margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.55);
  color: #fff; border-radius: 4px; width: 26px; height: 26px; line-height: 1;
  cursor: pointer; flex: none; font-size: 1rem;
}
.moved-ribbon .x:hover { background: rgba(0,0,0,.22); }

/* ---------- Hero photo ---------- */
.hero .wrap.with-photo { grid-template-columns: 1.02fr .98fr; }
.hero-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 22px 50px rgba(0,0,0,.5);
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 20% 64%; }
.hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  background: linear-gradient(to top, rgba(12,14,18,.92), rgba(12,14,18,0));
  font-family: "Saira Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: .1em; font-size: .88rem; color: #fff;
}
.hero-photo figcaption span { color: var(--orange); }
@media (max-width: 900px) {
  .hero .wrap.with-photo { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 16 / 10; }
}

/* ---------- Arrival / landmark directions ---------- */
.arrival { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: start; margin: 0 0 34px; }
.arrival ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: step; }
.arrival li { position: relative; padding-left: 40px; margin-bottom: 15px; counter-increment: step; }
.arrival li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff;
  font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: .9rem;
  display: grid; place-items: center;
}
.arrival .shopshot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--bone-line); }
.arrival .shopshot img { width: 100%; display: block; }
.arrival .shopshot figcaption { padding: 10px 14px; background: #fff; font-size: .88rem; color: var(--dim-light); }
@media (max-width: 820px) { .arrival { grid-template-columns: 1fr; } }


/* ---------- Location band (caution-striped, full width) ---------- */
.loc-band { background: var(--ink); padding: 0; }
.loc-band .stripe { display: block; }
.loc-band .inner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px 40px; flex-wrap: wrap; text-align: center;
  padding: 26px 20px;
}
.loc-band .tag {
  font-family: "Saira Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: .2em; font-weight: 800; font-size: .8rem;
  color: #fff; background: var(--orange); padding: 5px 12px; border-radius: 3px;
}
.loc-band .addr {
  font-family: "Saira Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 800; font-size: clamp(1.3rem, 3vw, 2rem);
  color: #fff; margin: 0;
}
.loc-band .cross { color: var(--orange); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase;
  font-family: "Saira Condensed", sans-serif; font-weight: 700; margin: 0; }


/* ============================================================
   FLEET PORTAL
   ============================================================ */
.portal-bar { background: var(--panel); border-bottom: 1px solid var(--line); }
.portal-bar .inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 0; }
.portal-bar .acct {
  font-family: "Saira Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: .1em; font-weight: 800; color: #fff; font-size: 1.05rem;
}
.portal-bar .acct em { font-style: normal; color: var(--dim); font-weight: 600; letter-spacing: .06em; }
.portal-bar .out { margin-left: auto; color: var(--dim); font-size: .9rem; text-decoration: none; }
.portal-bar .out:hover { color: var(--orange); }
.portal-nav { display: flex; gap: 26px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 0; }
.portal-nav a {
  font-family: "Saira Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 700; font-size: .88rem;
  color: var(--dim); text-decoration: none; padding: 13px 0;
  border-bottom: 3px solid transparent;
}
.portal-nav a:hover { color: #fff; }
.portal-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }

/* KPI row */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.kpi {
  background: #fff; border: 1px solid var(--bone-line); border-radius: var(--radius);
  padding: 20px 22px; border-left: 4px solid var(--bone-line);
}
.kpi.alert { border-left-color: var(--orange); }
.kpi.warn { border-left-color: #e0a32e; }
.kpi.good { border-left-color: var(--ok); }
.kpi .num { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ink-text); }
.kpi .label { color: var(--dim-light); font-size: .88rem; margin-top: 6px; }

/* Data table */
.dt-wrap { background: #fff; border: 1px solid var(--bone-line); border-radius: var(--radius); overflow: hidden; }
.dt-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 22px; border-bottom: 1px solid var(--bone-line);
}
.dt-head h3 { margin: 0; color: var(--ink-text); }
.dt-head .spacer { margin-left: auto; }
table.dt { width: 100%; border-collapse: collapse; }
table.dt th {
  text-align: left; font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: .11em; font-size: .78rem;
  color: var(--dim-light); font-weight: 700; padding: 12px 22px; background: #faf8f5;
  border-bottom: 1px solid var(--bone-line); white-space: nowrap;
}
table.dt td { padding: 15px 22px; border-bottom: 1px solid var(--bone-line); color: var(--ink-text); font-size: .95rem; vertical-align: middle; }
table.dt tr:last-child td { border-bottom: none; }
table.dt tbody tr:hover { background: #fdfcfa; }
table.dt .unit { font-family: "Saira Condensed", sans-serif; font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; }
table.dt .sub { display: block; color: var(--dim-light); font-size: .84rem; margin-top: 2px; }
table.dt .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.dt td.right, table.dt th.right { text-align: right; }

/* Status pills */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "Saira Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: .1em; font-weight: 700; font-size: .76rem;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.due { background: #fdece7; color: #b8391a; }
.pill.soon { background: #fdf3e0; color: #8a6410; }
.pill.ok { background: #eaf6ed; color: #2f6b41; }
.pill.shop { background: #e9eef6; color: #2e4a75; }

/* Login */
.login-shell { min-height: 72vh; display: grid; place-items: center; padding: 60px 20px; }
.login-card {
  width: 100%; max-width: 430px; background: #fff; border: 1px solid var(--bone-line);
  border-radius: var(--radius); padding: 34px 32px; box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.login-card h1 { color: var(--ink-text); font-size: 1.9rem; margin-bottom: 6px; }
.login-card .sub { color: var(--dim-light); font-size: .95rem; margin-bottom: 24px; }
.login-card label { margin-top: 16px; }
.login-card input[type=password] {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--bone-line);
  border-radius: 8px; font: inherit; background: #fdfcfa; color: var(--ink-text);
}
.login-card .btn { width: 100%; justify-content: center; margin-top: 24px; }
.login-foot { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--dim-light); }

/* Vehicle detail */
.veh-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--bone-line); border: 1px solid var(--bone-line); border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.spec-grid div { background: #fff; padding: 16px 20px; }
.spec-grid dt { font-family: "Saira Condensed", sans-serif; text-transform: uppercase; letter-spacing: .11em; font-size: .74rem; color: var(--dim-light); font-weight: 700; }
.spec-grid dd { margin: 5px 0 0; color: var(--ink-text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Odometer inline form */
.odo-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.odo-form input { width: 150px; }

@media (max-width: 900px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
}
.dt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) {
  table.dt { min-width: 720px; }
}

/* ---------- Memorial ribbon ---------- */
/* White band with brand-orange rules top and bottom, so it separates cleanly
   from the dark header without shouting. Cormorant italic softens the tone —
   the rest of the site is deliberately industrial, and this shouldn't be. */
.memorial-ribbon {
  background: #fff; color: var(--ink-text);
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
}
.memorial-ribbon .wrap {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 20px;
}
.memorial-ribbon .msg-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--ink-text);
}
.memorial-ribbon b { font-style: normal; font-weight: 600; color: var(--ink-text); }
.memorial-ribbon a {
  color: var(--orange-deep); font-weight: 600; font-size: .95rem;
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.memorial-ribbon a:hover { color: var(--orange); }
.memorial-ribbon .x {
  margin-left: auto; background: transparent; border: 1px solid var(--bone-line);
  color: var(--dim-light); border-radius: 4px; width: 26px; height: 26px; line-height: 1;
  cursor: pointer; flex: none; font-size: 1rem;
}
.memorial-ribbon .x:hover { border-color: var(--orange); color: var(--orange-deep); }
@media (max-width: 560px) {
  .memorial-ribbon .msg-text { font-size: 1.08rem; }
}

/* ---------- Memorial page ---------- */
.memorial-hero { padding: 72px 0 56px; text-align: center; }
.memorial-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500; text-transform: none; letter-spacing: .01em;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.15;
}
.memorial-portrait {
  width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 32px;
  border: 3px solid var(--line);
}
.memorial-body h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600; text-transform: none; letter-spacing: .01em;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}
.memorial-body .prose { max-width: 56ch; margin: 0 auto; }
/* Cormorant is a light, high-contrast face — it needs a larger size and more
   line-height than Barlow to stay comfortable to read. */
.memorial-body .prose p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem; font-weight: 400; line-height: 1.75;
  margin-bottom: 1.1em;
}
.light.memorial-body .prose p { color: #4a4640; }
.memorial-body .ticket { justify-content: center; }
.memorial-body .support-card p { font-family: "Barlow", sans-serif; }
@media (max-width: 560px) {
  .memorial-body .prose p { font-size: 1.2rem; }
}
.memorial-rule { width: 60px; height: 3px; background: var(--orange); margin: 0 auto 30px; }
.support-card {
  background: #fff; border: 1px solid var(--bone-line); border-radius: var(--radius);
  padding: 34px 30px; max-width: 620px; margin: 0 auto; text-align: center;
  box-shadow: 0 18px 44px rgba(26,29,34,.08);
}
.support-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600; text-transform: none; letter-spacing: .01em;
  font-size: 1.7rem; color: var(--ink-text); margin-bottom: 10px;
}
.support-card .price {
  font-family: "Saira Condensed", sans-serif; font-weight: 800;
  font-size: 2.4rem; color: var(--ink-text); line-height: 1;
}
.support-card .closes { color: var(--dim-light); font-size: .95rem; margin-top: 16px; }
