/* RDWI static sites - one stylesheet, no external fonts, no third-party requests.
   Brand: dark #1a1d21, red #c8102e, light #f5f6f7, white cards. Mobile first. */

:root {
 --dark: #1a1d21;
 --dark-2: #24282d;
 --red: #c8102e;
 --red-dark: #a30d26;
 --light: #f5f6f7;
 --line: #e2e5e8;
 --ink: #1a1d21;
 --muted: #5b6570;
 --white: #fff;
 --radius: 8px;
 --shadow: 0 1px 2px rgba(26, 29, 33, .06), 0 4px 16px rgba(26, 29, 33, .07);
 --wrap: 1100px;
}

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

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

body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ header */
.topbar { background: var(--dark); color: rgba(255, 255, 255, .8); font-size: 13px; }
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  align-items: center; justify-content: space-between; padding-top: 7px; padding-bottom: 7px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
/* The brand is a LOGO (optional) beside a two-LINE text block. .brand-name and .brand-sub are
   spans, so both need an explicit block/flex display: left inline they run together into
   "Robert's Diesel WorksDRYWALL CRANES - ORLANDO, FL". Never let them share a line. */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { flex: 0 0 auto; width: auto; max-height: 46px; }
.brand-mark { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.brand-name { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.brand-sub {
  display: block; margin-top: 2px; font-size: 11px; line-height: 1.25; color: var(--muted);
  letter-spacing: .09em; text-transform: uppercase; font-weight: 600;
}

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; padding: 11px 18px; border-radius: var(--radius); border: 0;
  font-size: 15px; line-height: 1.2; cursor: pointer;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--light); color: var(--ink); }
.btn-lg { padding: 14px 26px; font-size: 17px; }

.nav-toggle { display: none; }
.nav-btn {
  display: none; margin-left: 8px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 11px; cursor: pointer; font-size: 16px;
}

.mainnav { background: var(--dark-2); }
.mainnav ul {
  display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0;
}
.mainnav a {
  display: block; color: rgba(255, 255, 255, .88); text-decoration: none;
  padding: 12px 14px; font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
}
.mainnav a:hover, .mainnav a[aria-current="page"] { background: var(--red); color: #fff; }

/* ------------------------------------------------------------------ layout */
main { display: block; }
.section { padding: 44px 0; }
.section-tight { padding: 26px 0; }

.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 6px; color: #b6bcc3; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(27px, 4.4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(21px, 3vw, 28px); font-weight: 750; margin-top: 1.6em; }
h3 { font-size: 19px; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1.05em; }
.lede { font-size: 18px; color: #3a424b; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); }
                            .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.tile {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(26, 29, 33, .13); color: inherit; }
.tile-img { background: var(--light); aspect-ratio: 4 / 3; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 16px 18px 20px; }
.tile h3 { margin: 0 0 6px; font-size: 17px; }
.tile p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tile .more { margin-top: 10px; display: inline-block; color: var(--red); font-weight: 700; font-size: 14px; }

/* ------------------------------------------------------------------ hero */
.hero { background: var(--dark); color: #fff; }
.hero .wrap { display: grid; gap: 28px; padding-top: 46px; padding-bottom: 46px; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; } }
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .84); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .32); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hero-img img { border-radius: var(--radius); width: 100%; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); background: rgba(200, 16, 46, .12);
  padding: 5px 11px; border-radius: 100px; margin-bottom: 14px;
}
.hero .eyebrow { color: #ff8098; background: rgba(200, 16, 46, .22); }

/* ------------------------------------------------------------------ content */
.prose { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.05em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }

.layout { display: grid; gap: 34px; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.aside { position: sticky; top: 96px; display: grid; gap: 18px; }

.callout {
  border-left: 4px solid var(--red); background: #fff; padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); margin: 0 0 1.4em;
}
.callout strong { display: block; }
.sold { border-left-color: #8a6d0b; background: #fffaf0; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.4em; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 42%; font-weight: 700; color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------------------ gallery + pdfs */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0 0 1.6em; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding: 9px 12px; }

.pdf-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0 0 1.6em; }
.pdf {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  color: var(--ink); box-shadow: var(--shadow);
}
.pdf:hover { border-color: var(--red); color: var(--ink); }
.pdf .ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 6px; background: var(--red);
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .03em;
  display: flex; align-items: center; justify-content: center;
}
.pdf .t { font-weight: 650; font-size: 15px; line-height: 1.3; }
.pdf .s { font-size: 12.5px; color: var(--muted); }

/* The manuals page: one block per MODEL, each an anchor target so an ambiguous old PDF URL
   can 301 straight to the group that holds both candidate books. */
.manual-group { margin: 0 0 1.4em; scroll-margin-top: 90px; }
.manual-group > h3 {
  margin: 0 0 .55em; font-size: 16px; letter-spacing: .01em;
  padding-bottom: 5px; border-bottom: 1px solid var(--line);
}
.manual-group .pdf-list { margin-bottom: 0; }
.manual-group:target > h3 { color: var(--red); border-bottom-color: var(--red); }

/* Manuals hub filter. Progressive enhancement: the browse list below it is server-rendered
   and complete, so this box only narrows what is already on the page. */
.manual-filter { margin: 0 0 1.6em; }
.manual-filter input[type=search] {
  width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink);
}
.manual-filter input[type=search]:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.manual-filter #manual-count { margin: 8px 0 0; }
#manuals-index { display: none; }

/* ------------------------------------------------------------------ form */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .form-row-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 5px; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; color: var(--ink);
  background: #fff; border: 1px solid #c9ced4; border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
textarea { min-height: 140px; resize: vertical; }
.is-bad, .is-bad:focus { border-color: #c8102e; box-shadow: 0 0 0 3px rgba(200, 16, 46, .18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); }
.form-msg { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 650; }
.form-msg.ok { background: #eaf7ee; border: 1px solid #b8e2c4; color: #1d6b33; }
.form-msg.bad { background: #fdecef; border: 1px solid #f5c2cc; color: #99122a; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .74); margin-top: 52px; font-size: 14.5px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 26px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .84); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer address { font-style: normal; }
.legal {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px;
  font-size: 12.5px; color: rgba(255, 255, 255, .55);
}
.legal p { margin: 0 0 .5em; }

/* ------------------------------------------------------------------ mobile nav */
@media (max-width: 780px) {
  .nav-btn { display: block; }
  .mainnav { display: none; }
  .nav-toggle:checked ~ .mainnav { display: block; }
  .mainnav ul { flex-direction: column; }
  .mainnav li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .header-cta .btn span.long { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* Phone width: drop the tagline and keep the header to ONE row - wordmark | Call | menu. */
@media (max-width: 480px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 10px; }
  .brand { gap: 9px; min-width: 0; }
  .brand img { max-height: 36px; }
  .brand-name { font-size: 16.5px; }
  .brand-sub { display: none; }
  .header-cta { gap: 6px; flex: 0 0 auto; }
}

.linkgrid {
  list-style: none; margin: 0 0 1.6em; padding: 0;
  display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.linkgrid a {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; text-decoration: none; color: var(--ink); font-weight: 600;
  font-size: 14.5px; box-shadow: var(--shadow);
}
.linkgrid a:hover { border-color: var(--red); color: var(--red); }
