/* Overhead Crane Co — site styles (v2, beam-and-hook) */
:root {
  --ink: #1E2227;
  --text: #2B3036;
  --muted: #5C6670;
  --line: #D9DDE1;
  --tile: #F1F2F3;
  --accent: #F2B705;
  --max: 1280px;
  --measure: 66ch;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; font-stretch: 112%; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.1; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.prose { max-width: var(--measure); color: var(--text); }
.prose h2 { margin-top: 1.6em; color: var(--ink); }
.prose > h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 54ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
.hidden { display: none; }

/* beam + header */
.beam { height: 10px; background: var(--ink); }
.site-head { border-bottom: 1px solid var(--line); background: #fff; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-top: -10px; flex-shrink: 0; }
.brand svg { width: 52px; height: 60px; flex-shrink: 0; }
.brand span { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; font-stretch: 112%; line-height: 1; padding-top: 10px; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-left: auto; font-weight: 500; font-size: 15.5px; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); color: var(--ink); }
.head-call { background: var(--accent); color: var(--ink) !important; font-weight: 700 !important; padding: 12px 16px; margin-left: 6px; border-radius: 4px; }
.head-call:hover { background: #d9a300; text-decoration: none !important; }
.menu-btn { display: none; font: inherit; font-weight: 600; background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 8px 14px; margin-left: auto; min-height: 44px; }
@media (max-width: 1120px) {
  .menu-btn { display: block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; padding: 8px 0 20px; gap: 14px; }
  .nav.open { display: flex; }
}

/* buttons */
.btn { display: inline-block; font-family: var(--font); font-weight: 700; font-size: 17px; padding: 15px 24px; border-radius: 4px; text-decoration: none; background: var(--accent); color: var(--ink); border: 2px solid var(--accent); cursor: pointer; line-height: 1.2; min-height: 44px; }
.btn:hover { background: #d9a300; border-color: #d9a300; color: var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--ink); font-weight: 600; }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { font-size: 15px; padding: 9px 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2rem; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero h1 { max-width: 12ch; }
.hero-img { margin: 0; background: var(--tile); aspect-ratio: 4 / 3; min-height: 300px; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { display: flex; align-items: flex-end; padding: 16px 20px; }
.placeholder span, .ph { font-size: 13px; color: var(--muted); font-weight: 500; }
@media (max-width: 860px) { .hero .wrap { padding-top: 40px; padding-bottom: 32px; gap: 28px; } .hero-img { min-height: 220px; } }

/* spec strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.strip .wrap > div { padding: 24px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.strip .wrap > div:first-child { padding-left: 0; }
.strip .wrap > div:last-child { border-right: 0; padding-right: 0; }
.strip b { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-stretch: 112%; line-height: 1.1; }
.strip span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .strip .wrap > div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; } .strip .wrap > div:last-child { border-bottom: 0; } }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--tile); padding: 64px 0; }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.section-head.row h2 { margin: 0; }
.section-head.row a { font-weight: 600; }
@media (max-width: 760px) { .section { padding: 48px 0; } .section.alt { padding: 44px 0; } }

/* product tiles */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile-img { display: flex; align-items: flex-end; padding: 14px 16px; background: var(--tile); aspect-ratio: 1 / 1; text-decoration: none; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; }
.tile-txt { display: flex; flex-direction: column; gap: 4px; }
.tile-txt a { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.tile-txt a:hover { text-decoration: underline; }
.tile-txt span { color: var(--muted); font-size: 15px; }
.tile .btn { align-self: flex-start; }

/* chooser */
.chooser { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; align-items: start; }
.chooser .section-head { margin-bottom: 0; }
.choose { border-top: 2px solid var(--ink); }
.choose > div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid #C9CFD4; }
.choose span { color: var(--muted); }
.choose a { font-weight: 600; }
.choose b { font-weight: 400; }
@media (max-width: 520px) { .choose > div { grid-template-columns: 1fr; gap: 4px; } }

/* crane list */
.cranelist { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 32px; border-top: 2px solid var(--ink); }
.cranelist > div { padding: 24px 0; display: flex; flex-direction: column; gap: 8px; }
.cranelist span { font-size: 15px; color: var(--muted); }
.cranelist a { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-stretch: 112%; text-decoration: none; line-height: 1.1; }
.cranelist a:hover { text-decoration: underline; }
.cranelist p { margin: 0; color: var(--muted); font-size: 16px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 40px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; }
.steps li::before { content: counter(step); grid-row: 1 / 3; font-size: 28px; font-weight: 700; font-stretch: 112%; color: var(--muted); line-height: 1; }
.steps h3, .steps p { grid-column: 2; }
.steps h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: 0; font-stretch: 100%; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* cities */
.cities { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 0; }
.cities a { display: inline-block; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 4px; text-decoration: none; font-weight: 600; }
.cities a:hover { background: var(--ink); color: #fff; }

/* inner page head */
.page-head { padding: 40px 0 48px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.aside { background: var(--tile); padding: 24px; position: sticky; top: 24px; }
.aside h3 { margin-top: 0; }
.aside ul { padding-left: 1.1em; margin: 0 0 1.2rem; color: var(--text); }

/* tables */
.spec, .table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: 15px; background: #fff; }
.spec th, .spec td, .table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 32%; font-weight: 600; color: var(--muted); }
.table thead th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.table td:first-child { font-weight: 600; }
.table td:last-child { color: var(--muted); }

/* product page */
.product { padding: 32px 0 64px; }
.product .crumbs { margin-bottom: 28px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 48px; align-items: start; }
.product-img { margin: 0; background: var(--tile); aspect-ratio: 1 / 1; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-info { display: flex; flex-direction: column; gap: 18px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--muted); }
.product-info h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0; }
.product-info .lede { font-size: 1.1rem; margin: 0; }
.pricebox { background: var(--tile); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.pricebox b { font-size: 18px; font-stretch: 112%; }
.pricebox span { color: var(--muted); font-size: 15px; }
.product-info .hero-actions { margin-top: 0; }
#added-msg { margin: 0; font-size: 15px; }
.specs { margin: 8px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; font-size: 15px; border-top: 2px solid var(--ink); padding-top: 16px; }
.specs dt { font-weight: 600; color: var(--muted); }
.specs dd { margin: 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 48px; align-items: start; }
.two h2 { font-size: 1.8rem; }
.also { margin: 16px 0 0; font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; font-size: 1.2rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--text); max-width: var(--measure); }

/* call band */
.callband { background: var(--ink); color: #fff; padding: 64px 0; }
.callband .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.callband h2 { color: #fff; margin: 0 0 8px; }
.callband p { margin: 0; color: #C9CFD4; font-size: 18px; }
.callband .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.callband .btn.ghost:hover { background: #fff; color: var(--ink); }

/* form */
.form { display: grid; gap: 16px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); min-height: 48px; }
.form textarea { min-height: 140px; }
.form .hint { font-size: .9rem; color: var(--muted); font-weight: 400; }

/* footer */
.site-foot { border-top: 1px solid var(--line); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding: 48px 0 32px; }
.site-foot h4 { font-size: 17px; font-weight: 700; margin: 0 0 10px; font-stretch: 112%; }
.site-foot p { color: var(--muted); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot li a { color: var(--muted); }
.legal { padding: 0 0 32px; color: var(--muted); font-size: 13px; }
@media (max-width: 480px) { .site-head .wrap { gap: 8px 12px; padding: 0 20px; } .brand span { font-size: 18px; } .brand svg { width: 44px; height: 50px; } .menu-btn { padding: 8px 12px; } .wrap { padding: 0 20px; } }

/* ---------------------------------------------------- jib crane builder */
.jb-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: 56px; align-items: start; }
.jb-main { min-width: 0; }
.jb-progress { margin-bottom: 28px; }
.jb-progress p { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.jb-track { height: 4px; background: var(--line); }
.jb-bar { height: 4px; background: var(--ink); width: 16%; transition: width .25s ease; }

.jb-resume { border: 2px solid var(--ink); padding: 18px 20px; margin-bottom: 28px; }
.jb-resume p { margin: 0 0 12px; font-weight: 600; }
.jb-resume div { display: flex; flex-wrap: wrap; gap: 10px; }

.jb-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.jb-step h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .4em; }
.jb-step .jb-lede { color: var(--muted); max-width: 54ch; margin-bottom: 22px; }
.jb-sub { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 34px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.jb-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.jb-opt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 4px; padding: 14px 16px; cursor: pointer; min-height: 56px; }
.jb-opt b { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.jb-opt span { font-size: 14px; line-height: 1.35; color: var(--muted); }
.jb-opt:hover { border-color: var(--muted); }
.jb-opt.on { border-color: var(--ink); background: var(--tile); }
.jb-opt.on b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }

.jb-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.jb-num label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.jb-num .hint { display: block; font-weight: 400; font-size: 13px; line-height: 1.3; color: var(--muted); }
.jb-suffixed { display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 4px; background: #fff; }
.jb-suffixed input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 0; background: transparent; color: var(--ink); min-height: 48px; border-radius: 4px; }
.jb-suffixed input:focus { outline: 0; }
.jb-suffixed:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.jb-suffixed span { display: flex; align-items: center; padding: 0 14px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); }

.jb-err, .jb-warn { font-size: 14px; line-height: 1.4; margin: 8px 0 0; }
.jb-err { font-weight: 600; }
.jb-warn { color: var(--muted); }
.jb-flags { font-size: 15px; line-height: 1.45; border-left: 4px solid var(--accent); background: var(--tile); padding: 14px 16px; margin: 0 0 24px; }

.jb-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.jb-extra { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.jb-link { font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); background: 0; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.jb-link:hover { color: var(--ink); }

.jb-side { position: sticky; top: 24px; }
.jb-sketch { background: var(--tile); padding: 16px 16px 10px; }
.jb-sketch svg { width: 100%; height: auto; }
.jb-sketch .jb-dim { font-family: var(--font); font-size: 13px; font-weight: 600; fill: var(--muted); }
.jb-cap { font-size: 13px; line-height: 1.4; color: var(--muted); margin: 10px 0 0; }
.jb-sum { margin-top: 24px; border-top: 2px solid var(--ink); padding-top: 16px; }
.jb-sum h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.jb-empty { font-size: 15px; color: var(--muted); margin: 0; }
.jb-sumline { display: block; width: 100%; text-align: left; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: 0; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; cursor: pointer; }
.jb-sumline:hover { color: var(--muted); }
.jb-fine { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 16px 0 0; }

@media (max-width: 900px) {
  .jb-layout { grid-template-columns: 1fr; gap: 32px; }
  .jb-side { position: static; order: -1; }
  .jb-sketch svg { max-height: 240px; }
}
.jb-printspec { display: none; }
@media print {
  .beam, .site-head, .site-foot, .jb-progress, .jb-nav, .jb-extra, .jb-resume, .page-head .hero-actions, .callband,
  .jb-step, .jb-sum, .jb-fine, .section.alt, #jb-resume { display: none !important; }
  .jb-layout { display: block; }
  .jb-side { position: static; }
  .jb-side .jb-printspec { display: block; margin: 0 0 18pt; }
  .jb-sketch { max-width: 420px; }
  .page-head .lede { display: none; }
  body { font-size: 12pt; }
}
.jb-opts.tight { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.jb-opts.tight .jb-opt { min-height: 48px; justify-content: center; }
.jb-sent { font: 500 15px/1.6 var(--font); white-space: pre-wrap; background: var(--tile); border-left: 4px solid var(--ink); padding: 18px 22px; margin: 0; max-width: 640px; }
@media print { .jb-sent { border: 1px solid #000; } }
