/* GMC Innovations v3 — "engineering drawing" identity
   Ground: galvanised zinc · Ink: graphite · Brand: GMC teal · Signal: safety yellow (type plate, focus, CTA) */
:root {
  --ground: #E9ECEC; --paper: #FFFFFF; --ink: #18232A; --steel: #4F5E66; --rule: #C3CCCF;
  --teal: #1BA7B3; --teal-ink: #0A6C76; --signal: #F2B705; --on-signal: #18232A;
  --grid-minor: rgba(27, 167, 179, .10); --grid-major: rgba(27, 167, 179, .24);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, Consolas, monospace;
  --radius: 4px;
  color-scheme: light;
}
:root.dark {
  --ground: #11181C; --paper: #172126; --ink: #E2E8EA; --steel: #9AA8AE; --rule: #2A373D;
  --teal-ink: #55CAD4; --grid-minor: rgba(27, 167, 179, .09); --grid-major: rgba(27, 167, 179, .2);
  color-scheme: dark;
}
[dir="rtl"] { --sans: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }
[lang="en"] { --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { line-height: 1.85; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
[dir="rtl"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--steel); max-width: 60ch; }
.hint { font-size: .875rem; color: var(--steel); }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 28px; } }
.narrow { max-width: 820px; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--signal); color: var(--on-signal); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { top: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a { color: var(--steel); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 11px; border-radius: var(--radius); }
.nav a:hover { color: var(--ink); background: var(--ground); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav .lang { margin-inline-start: 8px; border: 1px solid var(--rule); color: var(--ink); }
.tools { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--ground); }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ic-fill { fill: currentColor; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .tools { margin-inline-start: auto; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .lang { margin: 8px 0 0; text-align: center; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 14px 0; font-size: .875rem; color: var(--steel); }
.crumbs a { color: var(--steel); }
.crumbs > * + *::before { content: '/'; margin-inline-end: 6px; color: var(--rule); }

/* hero */
.hero { padding-block: 48px 0; }
.hero-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 5fr 7fr; gap: 48px; } .hero { padding-top: 72px; } }
.maker { font-weight: 600; color: var(--teal-ink); margin-bottom: 14px; }
.hero h1 { max-width: 15ch; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 2px solid var(--teal-ink); background: var(--teal-ink); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
:root.dark .btn { color: #0D1418; }
:root.dark .btn.ghost { color: var(--ink); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* facts strip */
.facts { list-style: none; margin: 40px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { padding: 18px 16px 22px; border-inline-start: 1px solid var(--rule); display: grid; gap: 2px; }
.facts li:nth-child(odd) { border-inline-start-color: transparent; }
@media (min-width: 760px) { .facts li:nth-child(odd) { border-inline-start-color: var(--rule); } .facts li:first-child { border-inline-start-color: transparent; } }
.facts li:first-child:first-child { border-inline-start-color: transparent; }
.fact-v { font: 500 1.25rem/1.3 var(--mono); color: var(--teal-ink); }
.fact-d { font-size: .9rem; color: var(--steel); }

/* page head */
.head { padding-block: 40px 44px; border-bottom: 1px solid var(--rule); }
.head h1 { max-width: 22ch; }

/* bands */
.band { padding-block: 56px; }
@media (min-width: 760px) { .band { padding-block: 80px; } }
.band + .band { border-top: 1px solid var(--rule); }
.tint { background: var(--paper); }
.two { display: grid; gap: 12px 48px; }
@media (min-width: 860px) { .two { grid-template-columns: 4fr 7fr; } .two > h2 { position: sticky; top: 88px; align-self: start; } }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.more { font-weight: 600; }

.split3 { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 32px; }
@media (min-width: 860px) { .split3 { grid-template-columns: repeat(3, 1fr); } }
.split3 li { border-top: 3px solid var(--teal); padding-top: 18px; }

.jobs { margin: 28px 0 0; display: grid; gap: 28px; }
@media (min-width: 760px) { .jobs { grid-template-columns: repeat(3, 1fr); } .jobs.four { grid-template-columns: repeat(4, 1fr); } }
.jobs dt { font-weight: 700; font-size: 1.15rem; padding-top: 14px; border-top: 1px solid var(--ink); margin-bottom: 6px; }
.jobs dd { margin: 0; color: var(--steel); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font: 500 1rem/1.65 var(--mono); color: var(--teal-ink); }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq summary::after { content: '+'; font: 500 1.4rem/1 var(--mono); color: var(--teal-ink); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--steel); }

.specs { width: 100%; border-collapse: collapse; margin-bottom: 12px; background: var(--paper); }
.specs th, .specs td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.specs th { color: var(--steel); font-weight: 500; width: 40%; }
.specs thead th { color: var(--ink); font: 500 1rem var(--mono); }
.compare td { font-weight: 500; }
.warn { border-inline-start: 4px solid var(--signal); padding: 10px 14px; background: var(--paper); }

.sizes-fig { margin: 0; }
.sizes-fig .drawing { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.sizes-fig figcaption { margin-top: 10px; font-size: .9rem; color: var(--steel); }

/* posts */
.posts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; }
.post { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.post:first-child { border-top: 1px solid var(--rule); }
.post time, .meta { font-size: .875rem; color: var(--steel); }
.post h3 { margin: 0; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { text-decoration: underline; }
.post p { margin: 0; color: var(--steel); }
.post-cat { font-size: .8rem; color: var(--teal-ink); font-weight: 600; }
.note { background: var(--paper); border: 1px solid var(--rule); padding: 10px 14px; font-size: .9rem; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* CTA */
.cta { background: #18232A; color: #E9ECEC; padding-block: 56px; }
.cta-in { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .cta-in { grid-template-columns: 1fr auto; } }
.cta h2 { color: #fff; }
.cta p { color: #B8C4C8; margin: 0; }
.cta .btn { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }

/* form */
.contact { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact { grid-template-columns: 7fr 4fr; } }
.contact aside { border-top: 3px solid var(--teal); padding-top: 18px; align-self: start; }
.form { display: grid; gap: 18px; margin-top: 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
@media (min-width: 640px) { .form { padding: 32px; } }
.row { display: grid; gap: 18px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.req { color: #B42318; }
:root.dark .req { color: #FF8A80; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--ground); border: 1px solid var(--rule); border-radius: var(--radius); padding: 11px 12px; min-height: 46px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.form [aria-invalid="true"] { border-color: #B42318; }
.check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal-ink); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { margin: 0; font-weight: 500; }
.status.ok { color: #157F3D; flex-basis: 100%; padding: 14px 16px; border: 1px solid #A6E3BC; border-inline-start: 4px solid #157F3D; border-radius: 10px; background: #ECFAF1; font-weight: 600; }
.status.ok::before { content: "\2713\00a0\00a0"; font-weight: 700; }
.status.err { color: #B42318; }
:root.dark .status.ok { color: #6EE7A0; background: rgba(110, 231, 160, .08); border-color: rgba(110, 231, 160, .35); border-inline-start-color: #6EE7A0; }
:root.dark .status.err { color: #FF8A80; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.status-note { display: inline-block; margin-top: 18px; padding: 8px 14px; border: 1px solid var(--rule); border-inline-start: 4px solid var(--signal, var(--teal)); border-radius: var(--radius); background: var(--ground); color: var(--ink); font-weight: 500; }

/* approval document + installation */
.docs-grid { display: grid; gap: 28px; margin-top: 28px; align-items: start; }
@media (min-width: 960px) { .docs-grid { grid-template-columns: 300px 1fr; } }
.doc-card { display: grid; gap: 14px; max-width: 340px; padding: 14px; background: var(--ground); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.doc-card:hover, .doc-card:focus-visible { border-color: var(--teal); transform: translateY(-2px); }
.doc-card img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.doc-meta { display: grid; gap: 4px; font-size: .92rem; color: var(--steel); }
.doc-meta strong { color: var(--ink); font-size: 1.05rem; }
.doc-meta .more { margin-top: 6px; }
.install { margin: 0; }
.install h3 { margin: 0 0 12px; }
.install img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.install figcaption { margin-top: 14px; }
.approval dd .appr-doc { display: inline-block; margin-top: 2px; font: 600 .9rem/1.4 var(--sans); letter-spacing: 0; color: var(--teal-ink, var(--teal)); }

/* footer */
.foot { background: var(--paper); border-top: 1px solid var(--rule); padding-top: 48px; }
.foot-in { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 2fr 1fr 1fr; } }
.foot-brand p { color: var(--steel); margin-top: 12px; max-width: 40ch; }
.foot-addr { margin-top: 14px; font-style: normal; color: var(--steel); line-height: 1.6; }
.foot-addr strong { color: var(--ink); font-weight: 600; }
.foot-h { font-weight: 700; margin: 0 0 10px; }
.foot a:not(.brand) { display: block; color: var(--steel); text-decoration: none; padding: 4px 0; }
.foot a:not(.brand):hover { color: var(--ink); text-decoration: underline; }
.copy { margin-top: 36px; padding-block: 20px; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--steel); max-width: none; }

/* drawing */
.grid-minor { stroke: var(--grid-minor); stroke-width: 1; }
.grid-major { stroke: var(--grid-major); stroke-width: 1; }
.centre { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 14 4 3 4; fill: none; }
.metal { fill: var(--paper); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.metal-dark { fill: var(--rule); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.accent-edge { stroke: var(--teal-ink); stroke-width: 2.5; }
.hatch { stroke: var(--rule); stroke-width: 1.5; }
.bolt { fill: var(--ground); stroke: var(--ink); stroke-width: 1.5; }
.ball { fill: var(--ground); stroke: var(--teal); stroke-width: 2.5; }
.ball.alt { stroke: var(--ink); }
.indicator { fill: var(--teal); }
.ext { stroke: var(--steel); stroke-width: 1; fill: none; }
.dim { stroke: var(--ink); stroke-width: 1.25; fill: none; }
.dim-fill { fill: var(--ink); }
.dim-text { font: 500 16px var(--mono); fill: var(--ink); }
.dim-text.small { font-size: 12px; }
.plate-bg { fill: var(--signal); stroke: #18232A; stroke-width: 2; }
.rivet { fill: #18232A; opacity: .55; }
.plate-big { font: 500 28px var(--mono); fill: #18232A; letter-spacing: .02em; }
.plate-txt { font: 400 13px var(--mono); fill: #18232A; }

/* product photo on an engineering grid + type-approval strip */
.shot { margin: 0; background-color: var(--paper); background-image: linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px), linear-gradient(var(--grid-minor) 1px, transparent 1px), linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px); background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.shot picture { display: block; padding: clamp(16px, 4vw, 40px) clamp(12px, 3vw, 32px) 8px; }
.shot img { width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(24, 35, 42, .28)); }
.shot figcaption { border-top: 1px solid var(--rule); background: var(--paper); }
/* photo slider: slides share one grid cell; the tallest sets the height, the photo slide fills it */
.slides { position: relative; display: grid; }
.slides > .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.slides > .slide.is-on { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; }
.shot .slide-photo { padding: 0; height: 100%; }
.shot .slide-photo img { height: 100%; object-fit: cover; filter: none; }
.slide-dots { position: absolute; inset-block-end: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; }
.slide-dots[hidden] { display: none; }
.slide-dots .dot { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; }
.slide-dots .dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(24, 35, 42, .45); transition: transform .2s, background .2s; }
.slide-dots .dot[aria-pressed="true"]::before { background: var(--teal); transform: scale(1.25); }
.slide-dots .dot:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .slides > .slide { transition: none; } }
.approval { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.approval dl { margin: 0; display: grid; gap: 2px; }
.approval dt { font-size: .8rem; color: var(--steel); }
.approval dd { margin: 0; font: 500 1.1rem/1.3 var(--mono); color: var(--ink); letter-spacing: .02em; }
.approval dd.appr-std { font: 400 .9rem/1.4 var(--sans); color: var(--steel); letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.emark { width: 56px; height: 56px; flex: none; }
.emark-ring { fill: none; stroke: var(--ink); stroke-width: 3; }
.emark-t { font: 600 26px var(--sans); fill: var(--ink); }
.emark-n { font-size: 15px; }
.prod-art .shot picture:not(.slide-photo) { padding-inline: clamp(12px, 6vw, 96px); align-self: center; }
/* product page: the frame takes the photos' own shape, so photo slides fill it edge to edge without cropping */
.prod-art .slides { aspect-ratio: 1600 / 786; }

/* the one orchestrated moment: the coupling settles into place on first load */
@media (prefers-reduced-motion: no-preference) {
  .hero .shot img { animation: settle .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .approval { animation: show .4s .7s ease-out both; }
  @keyframes settle { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
  [dir="rtl"] .hero .shot img { animation-name: settle-rtl; }
  @keyframes settle-rtl { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
  @keyframes show { from { opacity: 0; } to { opacity: 1; } }
}
/* real-world photo and CAD model */
.scene-band { padding-block: 0 56px; }
.head + .scene-band, .band + .scene-band { padding-top: 40px; }
.scene { margin: 0; }
.scene img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--rule); }
.scene video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b0b0c; border-radius: var(--radius); border: 1px solid var(--rule); }
.scene-video { margin-bottom: 40px; }
.scene figcaption, .cad figcaption { margin-top: 10px; font-size: .9rem; color: var(--steel); }
.cad { margin: 0; max-width: 520px; }
.design-head { display: grid; gap: 28px; align-items: center; margin-bottom: 8px; }
@media (min-width: 900px) { .design-head { grid-template-columns: 1fr 1fr; } }
.cad img { width: 100%; height: auto; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; image-rendering: auto; }

.feat-note { margin-top: 28px; max-width: 80ch; }

@media print { .top, .foot, .cta, .form { display: none; } body { background: #fff; } }

/* language dropdown (no JS needed; app.js only closes it on outside click / Esc) */
.langs { position: relative; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; font: 500 .9rem/1 var(--mono); color: var(--ink); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { background: var(--ground); }
.langs ul { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60; min-width: 172px; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 12px 28px -12px rgba(24, 35, 42, .35); }
.langs a { display: block; padding: 9px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.langs a:hover { background: var(--ground); }
.langs a[aria-current] { font-weight: 600; box-shadow: inset 3px 0 0 var(--teal); }
[dir="rtl"] .langs a[aria-current] { box-shadow: inset -3px 0 0 var(--teal); }
