/* Affordable Trailers of LaGrange
   One memorable thing: the red and white reflective tape every trailer wears. Everything else stays plain and sturdy. */
:root {
  --ink: #1d2a30;
  --steel: #55646b;
  --galv: #edf0ef;
  --line: #cbd3d2;
  --paper: #ffffff;
  --dot: #c8102e;
  --dot-dark: #a10d25;
  --go: #1f7a3f;
  --wait-bg: #fff4d6;
  --wait: #7a5200;
  --head: 'Archivo', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dot-dark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.top :focus-visible, .foot :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--head); font-stretch: 75%; font-weight: 800; line-height: 1.04; letter-spacing: -0.005em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-top: 1.4em; }
h3 { font-size: 1.3rem; font-weight: 700; }
.h3 { font-size: 1.3rem; font-weight: 700; margin-top: 0; }
.trailer .h3 { margin: 10px 0 6px; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.25rem; color: var(--steel); }

/* The tape */
.tape { height: 8px; background: repeating-linear-gradient(90deg, var(--dot) 0 46px, #fff 46px 112px); }

/* Header: a dark sign band, then the menu and search on galvanized grey */
.top { background: var(--ink); color: #fff; }
.top-row { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-main { font-family: var(--head); font-stretch: 75%; font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.25rem); }
.brand-sub { font-size: .9rem; color: #c9d3d6; margin-top: 4px; }
.top-call, .top-cart { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border: 2px solid #4b5c63; border-radius: 6px; }
.top-call:hover, .top-cart:hover { color: #fff; border-color: #fff; }
.count { display: inline-block; min-width: 1.6em; padding: 0 .4em; margin-left: .4em; border-radius: 1em; background: var(--dot); text-align: center; font-size: .95rem; line-height: 1.6; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; background: var(--galv); }
.top-nav { box-shadow: 0 0 0 100vmax var(--galv); clip-path: inset(0 -100vmax); }
.top-nav nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.top-nav nav a { color: var(--ink); font-weight: 700; text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.top-nav nav a[aria-current="page"], .top-nav nav a:hover { border-bottom-color: var(--dot); color: var(--ink); }
.top-search { display: flex; flex: 1 1 280px; max-width: 460px; margin-left: auto; }
.top-search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 10px 12px; border: 2px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; background: #fff; color: var(--ink); }
.top-search button { font: inherit; font-weight: 700; font-size: 1rem; padding: 0 16px; border: 2px solid var(--ink); background: var(--ink); color: #fff; border-radius: 0 6px 6px 0; cursor: pointer; }
.top .top-nav :focus-visible { outline-color: var(--ink); }
/* Phones: the call button says "Call" instead of the whole number */
.call-word { display: none; }
@media (max-width: 640px) {
  .call-num { display: none; }
  .call-word { display: inline; }
  .top-search { max-width: none; margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 640px) and (min-width: 0px) {
  .top-row { padding-top: 10px; padding-bottom: 10px; }
}

main { display: block; min-height: 50vh; padding-bottom: 48px; }
main > .band:last-child { margin-bottom: -48px; }
.flash { margin: 16px 0 0; padding: 12px 16px; border-left: 6px solid var(--go); background: #eaf5ee; max-width: none; }
.flash-err { border-left-color: var(--dot); background: #fdecee; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 2px solid var(--dot); border-radius: 6px; background: var(--dot); color: #fff; font: 700 1.05rem/1 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--dot-dark); border-color: var(--dot-dark); color: #fff; }
.btn.quiet { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.quiet:hover { background: var(--galv); color: var(--ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Home */
.hero { padding-top: 40px; padding-bottom: 8px; }
.hero h1 { max-width: 15ch; }
.finder { margin: 24px 0 8px; padding: 20px; background: var(--galv); border-radius: 8px; max-width: 760px; }
.finder label { display: block; font-weight: 700; margin-bottom: 8px; }
.finder-row { display: flex; gap: 0; }
.finder input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 2px solid var(--ink); border-right: 0; border-radius: 6px 0 0 6px; }
.finder button { border-radius: 0 6px 6px 0; }
.finder p { margin: 10px 0 0; font-size: 1rem; color: var(--steel); }
.two-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 8px; }
.door { display: block; padding: 22px 20px; border: 2px solid var(--ink); border-radius: 8px; text-decoration: none; }
.door:hover { background: var(--galv); color: var(--ink); }
.door strong { display: block; font-family: var(--head); font-stretch: 75%; font-weight: 800; font-size: 1.7rem; line-height: 1.05; }
.door span { display: block; color: var(--steel); margin-top: 6px; }
@media (max-width: 640px) { .two-doors { grid-template-columns: 1fr; } }

/* Category lists: plain columns of links, not cards */
.cats { list-style: none; padding: 0; margin: 0; columns: 3 240px; column-gap: 32px; }
.cats li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.cats a { font-weight: 700; text-decoration: none; }
.cats a:hover { text-decoration: underline; }
.cats .n { color: var(--steel); font-variant-numeric: tabular-nums; font-size: 1rem; }
.cats.big a { font-size: 1.15rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; padding-top: 12px; border-top: 4px solid var(--ink); }
.steps li::before { content: counter(s); font-family: var(--head); font-stretch: 75%; font-weight: 800; font-size: 2rem; display: block; line-height: 1; margin-bottom: 6px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }
.hours { list-style: none; padding: 0; margin: 0 0 1em; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line); max-width: 420px; }
.band { background: var(--galv); padding: 32px 0 36px; margin-top: 40px; }
.band .visit h2, .band .visit h3 { margin-top: 0; }

/* Breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 20px 0 10px; display: flex; flex-wrap: wrap; gap: 4px; font-size: 1rem; }
.crumbs li + li::before { content: '/'; margin-right: 4px; color: var(--steel); }
.crumbs a { color: var(--steel); }

/* Catalog */
.cat-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 4px 0 12px; font-size: 1rem; }
.filters label { display: inline-flex; gap: 8px; align-items: center; }
.filters select { font: inherit; padding: 6px 8px; border: 2px solid var(--line); border-radius: 6px; background: #fff; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.subcats a { display: inline-block; padding: 8px 12px; border: 2px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 1rem; }
.subcats a:hover { border-color: var(--ink); color: var(--ink); }
.subcats .n { font-weight: 400; color: var(--steel); }
.plist { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.prow { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prow-img img, .noimg { display: block; width: 88px; height: 88px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.noimg { background: repeating-linear-gradient(135deg, var(--galv) 0 10px, #fff 10px 20px); }
.prow-name { font-family: var(--body); font-stretch: normal; font-weight: 700; font-size: 1.1rem; line-height: 1.3; margin: 0 0 4px; letter-spacing: 0; }
.prow-name a { text-decoration: none; }
.prow-name a:hover { text-decoration: underline; }
.prow-meta { margin: 0 0 4px; color: var(--steel); font-size: .95rem; font-variant-numeric: tabular-nums; }
.prow-buy { text-align: right; }
.prow-buy .price { margin: 0 0 8px; }
.prow .btn { min-height: 44px; padding: 0 14px; font-size: 1rem; }
@media (max-width: 640px) {
  .prow { grid-template-columns: 72px 1fr; }
  .prow-img img, .noimg { width: 72px; height: 72px; }
  .prow-buy { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .prow-buy .price { margin: 0; }
}
.price { font-family: var(--head); font-stretch: 75%; font-weight: 800; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stock { margin: 0; font-size: .95rem; font-weight: 700; }
.stock::before { content: ''; display: inline-block; width: .7em; height: .7em; margin-right: .45em; border-radius: 2px; vertical-align: baseline; }
.stock-in { color: var(--go); }
.stock-in::before { background: var(--go); }
.stock-order { color: var(--wait); }
.stock-order::before { background: #d39b00; }
.pager { display: flex; gap: 18px; align-items: center; margin: 20px 0; }
.empty { padding: 20px; background: var(--galv); border-radius: 8px; }

/* Product page */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 8px; }
@media (max-width: 760px) { .pd { grid-template-columns: 1fr; } }
.pd-img { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fff; }
.pd-img img { display: block; margin: 0 auto; max-height: 460px; object-fit: contain; }
.pd-img .noimg { width: 100%; height: 280px; }
@media (max-width: 760px) {
  .pd-img { padding: 8px; }
  .pd-img img { max-height: 260px; }
  .pd-img .noimg { height: 160px; }
}
.pd-img img + img { margin-top: 12px; }
.pd h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.pd-meta { color: var(--steel); font-variant-numeric: tabular-nums; }
.pd .price { font-size: 2.4rem; margin: 10px 0 8px; }
.buybox { margin: 16px 0; padding: 16px; border: 2px solid var(--ink); border-radius: 8px; }
.buybox p { margin: 0 0 10px; }
.add { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.qty { display: flex; flex-direction: column; font-size: .95rem; font-weight: 700; }
.qty input { width: 90px; font: inherit; padding: 10px; border: 2px solid var(--line); border-radius: 6px; margin-top: 4px; }
.specs { border-collapse: collapse; width: 100%; max-width: 640px; font-size: 1rem; margin-bottom: 1.2em; }
.specs .hint { display: block; font-weight: 400; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--steel); font-weight: 700; }
.desc { white-space: pre-line; }

/* Cart and checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .95rem; color: var(--steel); border-bottom: 2px solid var(--ink); padding: 8px 6px; }
.cart-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cart-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-table input[type=number] { width: 70px; font: inherit; padding: 6px; border: 2px solid var(--line); border-radius: 6px; }
@media (max-width: 640px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 4px 0; }
  .cart-table td.item { grid-column: 1 / -1; }
}
.totals { margin: 16px 0 0 auto; max-width: 380px; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.totals td { padding: 6px 0; }
.totals td:last-child { text-align: right; }
.totals .grand td { border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.25rem; padding-top: 10px; }
.note { padding: 12px 16px; border-left: 6px solid #d39b00; background: var(--wait-bg); max-width: 68ch; }
.form { max-width: 640px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.form legend { font-family: var(--head); font-stretch: 75%; font-weight: 800; font-size: 1.5rem; margin-bottom: 8px; }
.form label { display: block; font-weight: 700; margin: 12px 0 4px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 6px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 8px; margin: 10px 0; font-weight: 400 !important; }
.choice input { margin-top: 5px; width: 20px; height: 20px; }
.choice strong { display: block; }
.choice[aria-disabled="true"] { opacity: .65; }
.row2 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.hint { font-size: .95rem; color: var(--steel); margin: 4px 0 0; }
.status-line { font-size: 1.2rem; font-weight: 700; }
.did-you-mean { font-size: 1.1rem; margin-bottom: .4em; }

/* Trailers */
.tlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.trailer { border-top: 4px solid var(--ink); padding-top: 12px; }
.trailer img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Footer */
.foot { background: var(--ink); color: #e6ebec; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-name { font-family: var(--head); font-stretch: 75%; font-weight: 800; font-size: 1.5rem; color: #fff; margin-bottom: .4em; }
.foot-h { font-family: var(--body); font-stretch: normal; font-weight: 700; font-size: 1.05rem; letter-spacing: 0; margin: 0 0 8px; color: #fff; }
.foot .hours li { border-bottom-color: #3a4a51; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { padding: 4px 0; }
.foot-legal { font-size: .95rem; color: #c9d3d6; padding-top: 12px; padding-bottom: 24px; margin: 0 auto; max-width: var(--wrap); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .top, .foot, .add, .top-search { display: none; } }
