/* Smart Glass Lifter. Brand: safety orange #FF9A00, charcoal #444444, Roboto.
   Orange is a fill and accent color only. Text on orange is charcoal (white fails contrast).
   Small orange text uses --orange-text (#A86400, 4.7:1 on white). */

@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff9a00;
  --orange-hover: #ffb03a;
  --orange-text: #a86400;
  --ink: #444444;
  --ink-deep: #2b2b2b;
  --ink-soft: #5f6368;
  --concrete: #f2f5f8;
  --line: #d6dbe1;
  --white: #ffffff;
  --radius: 6px;
  --wrap: 1200px;
  --header-h: 76px;
  --font: 'Roboto', Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--orange-text); text-underline-offset: 2px; }
a:hover { color: var(--ink-deep); }
h1, h2, h3 { color: var(--ink-deep); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 900; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink-deep); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.anchor { position: relative; top: calc(-1 * var(--header-h)); display: block; height: 0; }
.section-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none;
  padding: .8rem 1.3rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn .ico { flex: none; }
.btn-sm { font-size: .92rem; padding: .55rem .95rem; }
.btn-lg { font-size: 1.08rem; padding: 1rem 1.6rem; }
.btn-block { width: 100%; }
.btn.btn-primary { background: var(--orange); color: var(--ink-deep); border-color: var(--orange); }
.btn.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--ink-deep); }
.btn.btn-outline { background: transparent; color: var(--ink-deep); border-color: var(--ink); }
.btn.btn-outline:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: var(--white); }
.btn.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.btn.btn-outline-light:hover { background: var(--white); border-color: var(--white); color: var(--ink-deep); }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--orange-text); text-decoration: underline; cursor: pointer; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand img { width: 175px; height: auto; }
.dnav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.dnav a { color: var(--ink-deep); font-weight: 700; text-decoration: none; padding: .35rem 0; border-bottom: 3px solid transparent; }
.dnav a:hover { border-bottom-color: var(--orange); color: var(--ink-deep); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-deep); font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--orange-text); }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 11px; width: 24px; height: 3px; background: var(--ink-deep); border-radius: 2px; transition: transform .2s, opacity .2s; }
.bars { top: 21px; }
.bars::before { content: ''; left: 0; top: -8px; }
.bars::after { content: ''; left: 0; top: 8px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-8px) rotate(-45deg); }
.mmenu { border-top: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem; display: grid; gap: .75rem; background: var(--white); }
.mmenu[hidden] { display: none; }
.mmenu ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
.mmenu li a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink-deep); font-weight: 700; font-size: 1.15rem; text-decoration: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); min-height: min(78vh, 720px); background: var(--ink-deep); }
.hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4.5rem); color: #e9ebee; max-width: 640px; justify-self: end; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 3.9vw, 3.6rem); }
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #d7dade; max-width: 38ch; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.hero-call { margin: 0; color: #c9cdd2; }
.hero-call a { color: var(--white); font-weight: 800; }
.hero-call a:hover { color: var(--orange); }
.hero-photo { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-photo::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--orange); }

/* Why */
.why { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.why-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why-list { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.25rem; }
.why-list li { padding-top: .9rem; border-top: 3px solid var(--orange); }
.why-list h3 { margin-bottom: .3rem; }
.why-list p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.why-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.why-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Fleet */
.fleet { background: var(--concrete); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { margin-bottom: 2.5rem; }
.fleet-group + .fleet-group { margin-top: 3.5rem; }
.group-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 2.5rem; align-items: end; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--ink); }
.group-title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 900; margin: 0; }
.group-head p { margin: 0; color: var(--ink-soft); }
.machines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.machine { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.machine-img { display: block; background: var(--white); padding: 1.25rem 1.25rem 0; }
.machine-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.machine-body { padding: 1.1rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.machine h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: .4rem; }
.machine h3 a { color: var(--ink-deep); text-decoration: none; }
.machine h3 a:hover { color: var(--orange-text); text-decoration: underline; }
.machine-body > p { color: var(--ink-soft); font-size: 1rem; }
.machine-body > p:first-of-type { flex: 1; }
.machine-price { font-weight: 700; color: var(--ink); margin: .9rem 0 1rem; font-size: .98rem; }
.machine-actions { display: grid; grid-template-columns: 1fr; gap: .6rem; }

/* Data plate: the stamped capacity plate found on lifting equipment */
.plate {
  --rivet: radial-gradient(circle, #9aa1a8 0 2.5px, transparent 3px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: .4rem 0 0;
  border: 2px solid var(--ink); border-radius: 4px; background-color: #fbfbfc;
  background-image: var(--rivet), var(--rivet), var(--rivet), var(--rivet);
  background-size: 12px 12px; background-repeat: no-repeat;
  background-position: 3px 3px, calc(100% - 3px) 3px, 3px calc(100% - 3px), calc(100% - 3px) calc(100% - 3px);
}
.plate div { padding: .65rem .7rem .6rem; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.plate div + div { border-left: 1px solid var(--line); }
.plate dt { font-size: .78rem; color: var(--ink-soft); line-height: 1.2; }
.plate dd { margin: .2rem 0 0; font-weight: 900; font-size: 1.12rem; color: var(--ink-deep); line-height: 1.15; font-variant-numeric: tabular-nums; }

/* Gallery */
.jobs { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.gallery { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: 1rem; }
.gallery li { break-inside: avoid; margin-bottom: 1rem; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(20, 20, 20, .9); }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink-deep); font-size: 2rem; line-height: 1; cursor: pointer; }

/* Steps */
.steps { background: var(--ink-deep); color: #d7dade; padding: clamp(4rem, 8vw, 6rem) 0; }
.steps h2 { color: var(--white); }
.step-list { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.step-list li { counter-increment: step; border-top: 2px solid #5a5a5a; padding-top: 1.25rem; }
.step-list li::before { content: counter(step); display: block; font-weight: 900; font-size: 3rem; line-height: 1; color: var(--orange); margin-bottom: .75rem; }
.step-list h3 { color: var(--white); }
.step-list p { margin: 0; }

/* Contact and form */
.contact { background: var(--concrete); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-phone { display: inline-flex; align-items: center; gap: .6rem; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; color: var(--ink-deep); text-decoration: none; margin-top: .5rem; }
.contact-phone .ico { width: 30px; height: 30px; color: var(--orange-text); }
.contact-phone:hover { color: var(--orange-text); }
.contact-email a { font-weight: 700; }
.tagline { margin-top: 2rem; font-weight: 900; font-size: 1.3rem; color: var(--ink-deep); }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; color: var(--ink-deep); }
.req { color: var(--orange-text); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink-deep); background: var(--white);
  border: 1.5px solid #9aa1a8; border-radius: 4px; padding: .7rem .8rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-deep); box-shadow: 0 0 0 3px rgba(255, 154, 0, .55); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .9rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-for { grid-column: 1 / -1; margin: 0; padding: .75rem 1rem; background: #fff4e3; border-left: 4px solid var(--orange); border-radius: 4px; }
.quote-for[hidden] { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-note { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.form-status { margin: 0; font-weight: 700; }
.form-status.is-error { color: #b3261e; }
.quote-form.is-sending button[type="submit"] { opacity: .7; cursor: progress; }

/* Model pages */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 1.25rem 0 0; margin: 0; font-size: .92rem; color: var(--ink-soft); }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: #9aa1a8; }
.crumbs a { color: var(--ink); }
.model-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: 2rem 0 3.5rem; }
.model-img { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.model-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.model-group { font-weight: 700; color: var(--orange-text); margin-bottom: .5rem; }
.model-copy h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.model-summary { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.model-copy .plate { max-width: 520px; }
.model-copy .plate dd { font-size: 1.35rem; }
.model-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding: 3rem 0 4rem; border-top: 1px solid var(--line); }
.model-detail h2 { font-size: 1.6rem; }
.model-text p { max-width: 62ch; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.docs a { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; font-size: 1.05rem; }
.docs a::before { content: ''; width: 18px; height: 22px; flex: none; background: linear-gradient(135deg, transparent 0 70%, var(--orange) 70%), var(--ink); border-radius: 2px; }
.docs span { font-weight: 400; color: var(--ink-soft); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 400; color: var(--ink-soft); width: 52%; }
.spec-table td { font-weight: 700; color: var(--ink-deep); font-variant-numeric: tabular-nums; }
.spec-table tr:nth-child(odd) { background: var(--concrete); }
.spec-note { font-size: .92rem; color: var(--ink-soft); margin-top: .85rem; }
.related { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.related h2 { font-size: 1.6rem; }
.related-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.related-list a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--ink-deep); font-weight: 700; }
.related-list a:hover { border-color: var(--ink); }
.related-list img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; margin-bottom: .6rem; }

/* Simple pages */
.simple-page { padding: clamp(4rem, 9vw, 7rem) 0; max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--ink-deep); color: #c9cdd2; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--orange); }
.site-footer a.btn.btn-primary { color: var(--ink-deep); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 2.5rem; }
.footer-logo { background: var(--white); padding: .6rem .8rem; border-radius: 4px; width: 200px; box-sizing: content-box; }
.footer-tag { font-weight: 900; color: var(--white); font-size: 1.2rem; margin: 1.25rem 0 .4rem; }
.footer-h { color: var(--white); font-size: 1rem; font-weight: 800; margin-bottom: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.footer-links li { margin-bottom: .45rem; break-inside: avoid; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-phone { font-size: 1.5rem; font-weight: 900; text-decoration: none; }
.footer-base { display: flex; flex-wrap: wrap; gap: .5rem 2rem; border-top: 1px solid #4a4a4a; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .92rem; }
.footer-base p { margin: 0; }
.footer-base p:last-child { margin-left: auto; }
.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .dnav { display: none; }
  .menu-btn { display: block; }
  .machines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .brand img { width: 150px; }
  .header-phone span, .header-cta { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 2px solid var(--line); border-radius: 50%; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; }
  .hero-photo::after { width: auto; height: 8px; top: auto; right: 0; }
  .hero-copy { grid-column: 1; grid-row: 2; justify-self: stretch; max-width: none; padding: 2.25rem 1.25rem 2.75rem; }
  .why-grid, .contact-grid, .model-hero, .model-detail { grid-template-columns: 1fr; }
  .why-photo { max-width: 480px; }
  .group-head { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base p:last-child { margin-left: 0; }
  body { padding-bottom: 72px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink-deep); padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); gap: .6rem; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; border-radius: var(--radius); font-weight: 800; text-decoration: none; color: var(--white); border: 2px solid #6a6a6a; }
  .mobile-bar a.mobile-bar-quote { background: var(--orange); color: var(--ink-deep); border-color: var(--orange); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .why-list { grid-template-columns: 1fr; }
  .machines { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate dd { font-size: 1.02rem; }
  .model-copy .plate dd { font-size: 1.1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .gallery { columns: 2; column-gap: .6rem; }
  .gallery li { margin-bottom: .6rem; }
  .footer-links { columns: 1; }
}
