/* OBST LIGHTING ELECTRICAL CO., LTD · obstlighting.com
   One stylesheet for every page. Colours come from the OBST VIS manual:
   blue #166dbf (actions, shop-sign bands), black (plates), grey #626671, gold #cd9a4d (fine lines on black only). */

:root {
  --blue: #166dbf;
  --blue-press: #0f5596;
  --plate: #010101;   /* = the black of the OBST product photos, so they sit seamlessly on it */
  --plate-ink: #f3f4f6;
  --plate-muted: #b9bdc6;
  --plate-line: #2b2e35;
  --gold: #cd9a4d;

  --bg: #f4f5f7;
  --surface: #fdfdfe;
  --ink: #121418;
  --muted: #555963;
  --line: #d9dce2;
  --link: #145fa8;
  --tint: #e6eef8;

  --radius: 4px;
  --wrap: 1200px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e11;
    --surface: #16181c;
    --ink: #eceef2;
    --muted: #a7acb6;
    --line: #2c3038;
    --link: #74b1ee;
    --tint: #18273a;
    --plate-line: #262a31;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 8px; }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Header: the blue shop-sign band ---------- */
.site-header { background: var(--blue); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; color: #fff; border-radius: 2px; }
.brand svg { width: 99px; height: 28px; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px;
  color: #fff; font-size: 0.9375rem; font-weight: 600; text-decoration: none; border-radius: 2px;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.site-header :focus-visible, .plate :focus-visible { outline-color: #fff; }
.nav-wide { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: var(--radius);
  font: 650 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-press); text-decoration: none; }
.btn-line { color: var(--plate-ink); border-color: rgba(255, 255, 255, .42); }
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }

/* ---------- Black plates (hero, footer) ---------- */
.plate { background: var(--plate); color: var(--plate-ink); }
.plate a:not(.btn) { color: var(--plate-ink); }

.hero .wrap { display: grid; gap: 28px; padding-block: 36px 0; }
.hero h1 { font-size: clamp(2.05rem, 1.3rem + 3.1vw, 3.5rem); font-weight: 780; line-height: 1.07; letter-spacing: -0.03em; max-width: 17ch; }
.hero-lede { margin-top: 18px; max-width: 40ch; font-size: 1.0625rem; color: var(--plate-muted); }
.hero-actions { display: grid; gap: 12px; margin-top: 28px; }
.hero-figure { margin: 0; display: flex; justify-content: center; }
.hero-figure img { width: auto; max-height: 340px; }

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 28px; max-width: 68ch; }
.section-head p { color: var(--muted); font-size: 1.0625rem; }

/* About */
.about-text { max-width: 34ch; font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; }
.about-text strong { font-weight: 750; }
.facts { display: grid; gap: 18px; margin: 32px 0 0; }
.facts div { border-top: 2px solid var(--ink); padding-top: 10px; }
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 650; }

/* Products: client photos, one wide feature then a grid */
.range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.range li { margin: 0; display: flex; }
.range figure { margin: 0; flex: 1; display: flex; flex-direction: column; }
.range .ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--plate); }
.range .ph img { width: 100%; height: 100%; object-fit: cover; }
.range .wide { grid-column: span 2; }
.range .wide .ph { aspect-ratio: 4 / 3; }
.range figcaption { padding-top: 10px; display: grid; gap: 1px; }
.range figcaption b { font-weight: 650; font-size: 0.9375rem; line-height: 1.3; }
.range figcaption span { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.range-note { margin-top: 24px; color: var(--muted); max-width: 64ch; }

/* Branches: shop-sign plates */
.branches { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.branch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sign { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--blue); color: #fff; }
.sign b { font-size: 1.75rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1; }
.sign svg { width: 30px; height: 30px; opacity: .95; }
.branch-hq .sign { background: var(--plate); }
.branch-hq .sign b { font-size: 2.25rem; }
.sign-role { display: block; margin-top: 6px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; color: #dbe7f5; }
.branch-hq .sign-role { color: var(--gold); }
.branch p { padding: 16px 20px 20px; color: var(--muted); }

/* Buying from OBST */
.ways { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ways li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
.ways li:last-child { border-bottom: 1px solid var(--line); }
.ways .mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: var(--tint); color: var(--link); }
.ways .mark .icon { width: 22px; height: 22px; }
.ways h3 { margin-bottom: 4px; }
.ways p { color: var(--muted); max-width: 52ch; }
.soon { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 3px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0; vertical-align: 2px; color: var(--muted); border: 1px solid var(--line); }

/* Contact */
.contacts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact {
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px;
  padding: 16px; min-height: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: border-color .18s ease;
}
a.contact:hover { border-color: var(--blue); text-decoration: none; }
a.contact:hover .contact-value { text-decoration: underline; text-underline-offset: .18em; }
.contact .mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: var(--tint); color: var(--link); }
.contact-wa .mark { background: var(--blue); color: #fff; }
.contact-label { display: block; font-size: 0.875rem; color: var(--muted); }
.contact-value { display: block; font-size: 1.0625rem; font-weight: 650; overflow-wrap: anywhere; }
.contact address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--gold); }
.site-footer .wrap { display: grid; gap: 22px; padding-block: 36px 40px; }
.site-footer .brand svg { width: 113px; height: 32px; }
.legal { color: var(--plate-muted); font-size: 0.875rem; line-height: 1.65; }
.legal strong { color: var(--plate-ink); font-weight: 650; letter-spacing: 0.01em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Document pages (privacy, support) ---------- */
.doc-head { padding-block: 40px 28px; }
.doc-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 780; letter-spacing: -0.03em; }
.doc-meta { margin-top: 10px; color: var(--plate-muted); }
.doc { display: grid; gap: 32px; padding-block: 36px 64px; }
.toc { font-size: 0.9375rem; }
.toc h2 { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; color: var(--muted); }
.toc li { padding-block: 3px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; font-weight: 750; margin: 40px 0 12px; scroll-margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--muted); }
.prose .lead { font-size: 1.125rem; }
.prose .contacts { margin-bottom: 14px; padding-left: 0; }
.callout { padding: 16px 18px; background: var(--tint); border-radius: var(--radius); }

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  .hero-actions { grid-auto-flow: column; justify-content: start; }
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts .contact-addr { grid-column: span 2; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .site-header .wrap { min-height: 68px; }
  .brand svg { width: 113px; height: 32px; }
  .nav-wide { display: list-item; }
  .site-nav ul { gap: 12px; }
  .section { padding-block: 88px; }
  .section-head { margin-bottom: 40px; }
  .range { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  /* the wide tile takes its height from the 4:5 tiles in the same row */
  .range .wide .ph { aspect-ratio: auto; position: relative; flex: 1 1 0; min-height: 0; }
  .range .wide .ph img { position: absolute; inset: 0; }
  .branches { grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; }
  .branch { display: flex; flex-direction: column; }
  .sign { min-height: 104px; padding: 22px 24px; }
  .branch-hq .sign { min-height: 104px; }
  .branch p { padding: 18px 24px 24px; }
  .ways-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .ways-wrap .section-head { margin-bottom: 0; }
  .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: start; gap: 40px; }
}

@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; padding-block: 48px; }
  .hero-figure { justify-content: flex-end; }
  .hero-figure img { max-height: 580px; }
  .hero-lede { font-size: 1.1875rem; }
  .contacts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contacts .contact-addr { grid-column: auto; }
  .contact { grid-template-columns: 1fr; align-items: start; gap: 18px; padding: 20px; min-height: 0; }
  .doc { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 56px 96px; }
  .toc { position: sticky; top: 24px; align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  body { background: #fff; color: #000; }
  .plate { background: #fff; color: #000; }
  .doc-meta { color: #333; }
}
