/* Lloyd Manufacturing & Design — shared stylesheet.
   Design language from the lloydmanufacturing.com homepage design:
   Barlow / Barlow Condensed, navy #13233F, orange #F26A21, slate #5B7186. */

:root {
  --navy: #13233F;
  --navy-deep: #0C1830;
  --orange: #F26A21;
  --orange-dark: #C24E0E;
  --slate: #5B7186;
  --bg: #F5F7F9;
  --surface: #FFFFFF;
  --surface-2: #EAEFF3;
  --ink: #16233A;
  --ink-2: #43536B;
  --line: #D5DDE5;
  --on-navy: #EDF2F7;
  --on-navy-2: #A9BCD2;
  --chip: #EAEFF3;
  --green: #167A4A;
  --amber: #9A6A00;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1322;
    --surface: #111E33;
    --surface-2: #182842;
    --ink: #EAF0F7;
    --ink-2: #A9BCD2;
    --line: #26395A;
    --chip: #182842;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Barlow", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, [role="button"], select, summary, input:not([type="checkbox"], [type="radio"]) { min-height: 2rem; }
a { -webkit-tap-highlight-color: transparent; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: "Barlow Condensed", "Barlow", sans-serif; line-height: 1.05; margin: 0; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange-dark); margin: 0 0 10px;
}
@media (prefers-color-scheme: dark) { .kicker { color: var(--orange); } }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
header.site.scrolled { box-shadow: 0 6px 24px rgba(10, 22, 43, .14); }
.header-in { display: flex; align-items: center; gap: 26px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.brand img.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand img.logo-light { display: none; }
  .brand img.logo-dark { display: block; }
}
nav.main { margin-left: auto; display: flex; align-items: center; gap: 4px; }
nav.main a {
  text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink-2);
  padding: 10px 11px; border-radius: 6px; white-space: nowrap;
}
nav.main a:hover { color: var(--ink); background: var(--chip); }
nav.main a[aria-current="page"] { color: var(--ink); background: var(--chip); }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid var(--line);
  border-radius: 7px; padding: 8px 12px; font-weight: 700; font-size: 15px; color: var(--ink);
  cursor: pointer; min-height: 44px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Barlow", sans-serif; font-weight: 700; font-size: 16px;
  padding: 11px 20px; border-radius: 7px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 44px;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--slate); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; }
nav.main .btn { margin-left: 10px; }
header.site nav.main a.btn-orange { color: #fff; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  nav.main {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 20px 16px; gap: 2px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 10px; font-size: 17px; }
  nav.main .btn { margin: 8px 0 0; }
  .header-in { gap: 12px; position: relative; }
  .brand img { height: 38px; }
}

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--on-navy); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero .kicker { color: var(--orange); }
.hero h1 { font-size: clamp(44px, 6vw, 68px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lede { font-size: 19px; color: var(--on-navy-2); max-width: 34em; margin: 18px 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-facts div { font-size: 15px; color: var(--on-navy-2); }
.hero-facts strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 24px; font-weight: 600; color: #fff; line-height: 1.1; }
.hero-mark { display: flex; align-items: center; justify-content: center; }
.hero-mark img { width: min(100%, 420px); height: auto; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero-mark { display: none; }
}

/* ---------- page head (inner pages) ---------- */
.page-head { background: var(--navy); color: var(--on-navy); }
.page-head .wrap { padding-top: 44px; padding-bottom: 44px; }
.page-head .kicker { color: var(--orange); }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 700; text-transform: uppercase; }
.page-head p { color: var(--on-navy-2); font-size: 18px; max-width: 42em; margin: 14px 0 0; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 46em; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; text-transform: uppercase; }
.sec-head p { color: var(--ink-2); font-size: 18px; margin: 12px 0 0; }

/* ---------- shop lines ---------- */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.line-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.line-card .mark { background: var(--navy); padding: 26px 22px 18px; display: flex; align-items: center; gap: 14px; }
.line-card .mark img { height: 40px; width: auto; }
.line-card .mark span { color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 26px; font-weight: 700; text-transform: uppercase; }
.line-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.line-card h3 { font-size: 27px; font-weight: 700; text-transform: uppercase; }
.line-card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.line-card ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: 15.5px; }
.line-card ul li { padding: 5px 0 5px 20px; position: relative; border-top: 1px dashed var(--line); }
.line-card ul li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px; background: var(--orange); }
.line-card .go { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--orange-dark); text-decoration: none; }
@media (prefers-color-scheme: dark) { .line-card .go { color: var(--orange); } }
.line-card .go:hover { text-decoration: underline; }
@media (max-width: 900px) { .lines { grid-template-columns: 1fr; } }

/* ---------- products ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button {
  font-family: "Barlow", sans-serif; font-weight: 600; font-size: 15.5px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer; min-height: 40px;
}
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.product .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sku { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--slate); text-transform: uppercase; }
.fmt { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--chip); color: var(--ink-2); padding: 4px 9px; border-radius: 5px; white-space: nowrap; }
.product h3 { font-size: 25px; font-weight: 600; }
.product p { margin: 0; color: var(--ink-2); font-size: 15.5px; flex: 1; }
.status { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status.live { background: #E6F4EC; color: var(--green); }
.status.order { background: #FFF3D6; color: var(--amber); }
.status.soon { background: var(--chip); color: var(--ink-2); }
.status.free { background: #E8EEF7; color: var(--navy); }
@media (prefers-color-scheme: dark) { .status.free { color: #fff; background: #1A2E52; } }
.product .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: "Barlow Condensed", sans-serif; font-size: 28px; font-weight: 700; }
.price small { display: block; font-family: "Barlow", sans-serif; font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.buy {
  font-weight: 700; font-size: 15.5px; background: var(--orange); color: #fff;
  border: none; border-radius: 7px; padding: 10px 18px; cursor: pointer; min-height: 42px;
  white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center;
}
.buy:hover { background: var(--orange-dark); }
.buy.navy { background: var(--navy); }
.buy.navy:hover { background: var(--navy-deep); }
.buy.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.buy.ghost:hover { border-color: var(--slate); }
.buy[aria-disabled="true"] { background: var(--chip); color: var(--ink-2); cursor: default; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }
.shop-note { margin-top: 26px; color: var(--ink-2); font-size: 15.5px; max-width: 46em; }
.shop-note strong { color: var(--ink); }

/* ---------- LloydCad band ---------- */
.cad-band { background: var(--navy); color: var(--on-navy); }
.cad-band .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.cad-band .kicker { color: var(--orange); }
.cad-band h2 { font-size: clamp(34px, 4.5vw, 50px); font-weight: 700; text-transform: uppercase; }
.cad-band p { color: var(--on-navy-2); font-size: 17.5px; }
.wb-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin: 20px 0 26px; padding: 0; list-style: none; }
.wb-list li { padding: 8px 0 8px 20px; position: relative; border-top: 1px solid rgba(255,255,255,.14); font-size: 16px; }
.wb-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; background: var(--orange); }
.wb-list li span { color: var(--on-navy-2); display: block; font-size: 14px; }
.cad-band .panel { background: #0E1B33; border: 1px solid #2A4066; border-radius: 12px; padding: 22px; }
.cad-band .panel h3 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.cad-band .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #243656; font-size: 15.5px; }
.cad-band .row:last-of-type { border-bottom: 0; }
.cad-band .row strong { color: #fff; white-space: nowrap; }
.cad-band .panel p { font-size: 14.5px; margin: 14px 0 0; }
.domain-note { margin-top: 20px; font-size: 15px; color: var(--on-navy-2); }
.domain-note strong { color: #fff; }
@media (max-width: 860px) { .cad-band .wrap { grid-template-columns: 1fr; } .wb-list { grid-template-columns: 1fr; } }

/* ---------- guides ---------- */
.guide-rows { border-top: 1px solid var(--line); }
.guide-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 26px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.guide-row h3 { font-size: 24px; font-weight: 600; }
.guide-row p { margin: 3px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 46em; }
.guide-row .meta { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; text-align: right; }
.guide-row .meta strong { display: block; color: var(--ink); font-size: 15px; }
.guide-row .state { font-weight: 700; color: var(--ink-2); white-space: nowrap; font-size: 15px; }
@media (max-width: 640px) { .guide-row { grid-template-columns: 1fr auto; } .guide-row .meta { display: none; } }

/* ---------- steps / how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.step b { font-family: "Barlow Condensed", sans-serif; font-size: 22px; display: block; margin-bottom: 6px; text-transform: uppercase; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- detail lists (robotics / metrology) ---------- */
.detail-list { display: grid; gap: 20px; }
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.detail h3 { font-size: 28px; font-weight: 700; text-transform: uppercase; }
.detail h3 .sku { display: block; margin-bottom: 4px; }
.detail p { color: var(--ink-2); font-size: 16px; max-width: 52em; }
.detail ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; }
.detail ul li { margin: 4px 0; }
.detail .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- request forms ---------- */
.request-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.req-types { display: grid; gap: 12px; margin-top: 22px; }
.req-type { border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; background: var(--surface); }
.req-type strong { display: block; font-size: 16.5px; }
.req-type span { color: var(--ink-2); font-size: 15px; }
form.request { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px; margin-bottom: 24px; }
form.request h3 { font-size: 27px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
form.request .hint { color: var(--ink-2); font-size: 15px; margin: 0 0 18px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.field .file-note { font-size: 13.5px; color: var(--ink-2); margin-top: 5px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 560px) { .form-2col { grid-template-columns: 1fr; } }
.form-status { display: none; border-radius: 9px; padding: 16px 18px; margin-top: 16px; font-size: 15.5px; }
.form-status.ok { display: block; border: 1px solid var(--green); background: #E6F4EC; color: #0E4A2C; }
.form-status.info { display: block; border: 1px solid var(--orange); background: var(--chip); color: var(--ink); }
.form-status.err { display: block; border: 1px solid #B3261E; background: #FDECEA; color: #5F1410; }
.form-status strong { display: block; margin-bottom: 4px; }
@media (prefers-color-scheme: dark) {
  .form-status.ok { background: #12291C; color: #BFE8CF; }
  .form-status.err { background: #331512; color: #F5C6C2; }
}
@media (max-width: 900px) { .request-grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about-body { max-width: 46em; }
.about-body p { font-size: 17.5px; color: var(--ink-2); }
.about-body p strong { color: var(--ink); }
.about-body h2 { font-size: 30px; margin: 34px 0 10px; text-transform: uppercase; }

/* ---------- footer ---------- */
footer.site { background: var(--navy-deep); color: var(--on-navy-2); padding: 46px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
footer.site .foot-logo img { height: 44px; width: auto; }
footer.site h4 { font-family: "Barlow Condensed", sans-serif; color: #fff; font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { padding: 3px 0; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.foot-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; font-size: 14px; }
.foot-note { font-size: 14px; margin-top: 16px; max-width: 34em; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 16px);
  background: var(--navy-deep); color: #fff; border-radius: 8px; padding: 13px 20px;
  font-size: 15.5px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 60; max-width: min(92vw, 520px); text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
