/* Solutions4U website styles
   Fonts are self-hosted (no requests to Google). */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --ink: #2d363c;
  --ink-deep: #252d32;
  --muted: #4a555d;
  --line: #e3e6e4;
  --soft: #f4f5f3;
  --amber: #fbb724;
  --amber-ink: #8a5a00;
  --text: #2d363c;
  --bg: #fff;
  --surface: #fff;
  --border: #d5dad7;
  --field-border: #bfc6c2;
  --hover: #edefec;
  --active-bg: #2d363c;
  --on-amber: #2d363c;
  --ok-bg: #e7f3ea; --ok-fg: #1d5a2e;
  --err-bg: #fbe9e7; --err-fg: #8a2a1f;
}
:root[data-theme="light"] { color-scheme: light; }
:root .logo-dark { display: none; }
.theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #eef1f2;
    --bg: #12171a;
    --surface: #1b2226;
    --soft: #1b2226;
    --line: #2d363c;
    --border: #3a454c;
    --field-border: #4a555d;
    --hover: #2d363c;
    --muted: #b4bec4;
    --ink-deep: #1d2428;
    --active-bg: #3a454c;
    --amber-ink: #fbb724;
    --ok-bg: #173522; --ok-fg: #8fd6a4;
    --err-bg: #3d1d19; --err-fg: #f2a79d;
  }
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #eef1f2;
  --bg: #12171a;
  --surface: #1b2226;
  --soft: #1b2226;
  --line: #2d363c;
  --border: #3a454c;
  --field-border: #4a555d;
  --hover: #2d363c;
  --muted: #b4bec4;
  --ink-deep: #1d2428;
  --active-bg: #3a454c;
  --amber-ink: #fbb724;
  --ok-bg: #173522; --ok-fg: #8fd6a4;
  --err-bg: #3d1d19; --err-fg: #f2a79d;
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }

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

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

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.section-dark :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { left: 8px; }

.wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
.section-dark .eyebrow { color: var(--amber); }

.h2 {
  margin-top: 12px;
  max-width: 720px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-md { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { filter: brightness(0.94); }
.btn-ghost { border: 2px solid var(--text); background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--hover); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: block; }
.brand img { display: block; height: 48px; width: auto; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.site-nav a { padding: 12px 0; font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--amber-ink); }

.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.lang {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.lang a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 44px;
  font-size: 14px;
  font-weight: 700;
}
.lang a:hover { background: var(--soft); }
.lang a[aria-current="true"] { background: var(--active-bg); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* Hero */
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hl {
  padding: 0 12px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--on-amber);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead { margin-top: 24px; max-width: 560px; font-size: 19px; line-height: 1.65; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stack {
  flex: 1 1 400px;
  min-width: 0;
  padding: 32px;
  border-radius: 20px;
  background: var(--ink);
}
.stack-title {
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aeb8be;
}
.stack-item { display: flex; align-items: center; gap: 16px; }
.stack-item + .stack-item { margin-top: 44px; position: relative; }
.stack-item + .stack-item::before {
  content: "";
  position: absolute;
  left: 21px;
  top: -33px;
  width: 2px;
  height: 22px;
  background: #5b6770;
}
.stack-name { font-size: 17px; font-weight: 700; color: #fff; }
.stack-cap { font-size: 14px; color: #aeb8be; }

.icon-box {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--amber);
  color: var(--on-amber);
}
.stack .icon-box { width: 44px; height: 44px; border-radius: 10px; }

/* Sections */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .h2 { color: #fff; }
.section-lead { margin-top: 20px; max-width: 640px; font-size: 18px; line-height: 1.65; color: #c9d0d4; }

.cards { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 48px; }
.card {
  flex: 1 1 340px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.card h3 { margin: 20px 0 8px; font-size: 20px; font-weight: 700; }
.card p { font-size: 16px; line-height: 1.65; color: var(--muted); }

.card-dark { flex-basis: 400px; padding: 32px; border-color: #46515a; border-radius: 16px; background: var(--ink-deep); }
.card-dark h3 { margin: 20px 0 10px; font-size: 24px; color: #fff; }
.card-dark p { font-size: 17px; color: #c9d0d4; }

.steps { display: flex; flex-wrap: wrap; gap: 40px 32px; margin-top: 48px; }
.step { flex: 1 1 220px; min-width: 0; }
.step-n { font-size: 40px; line-height: 1; font-weight: 800; }
.step-bar { width: 48px; height: 4px; margin: 16px 0; border-radius: 2px; background: var(--amber); }
.step h3 { margin-bottom: 8px; font-size: 20px; font-weight: 700; }
.step p { font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Contact */
.contact-inner { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 380px; min-width: 0; }
.contact-info .lead { max-width: 480px; font-size: 18px; }
.details { margin-top: 32px; }
.details dt {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.details dt:first-child { margin-top: 0; }
.details dd { margin-top: 2px; font-size: 18px; font-weight: 600; font-style: normal; }
.details a:hover { color: var(--amber-ink); }

.contact-form {
  flex: 1 1 420px;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 700; }
.field input,
.field textarea {
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}
.field input { height: 48px; }
.field textarea { min-height: 140px; padding: 12px 14px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.form-note a { text-decoration: underline; }
.email-note { margin-top: 12px; max-width: 420px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--amber); cursor: pointer; }
.consent label { font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent a { color: var(--text); text-decoration: underline; }
.contact-form .btn { width: 100%; }

.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.form-msg:target,
.form-msg.is-visible { display: block; }
.form-msg.ok { background: var(--ok-bg); color: var(--ok-fg); }
.form-msg.err { background: var(--err-bg); color: var(--err-fg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer-inner img { display: block; height: 36px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; font-weight: 600; }
.footer-links a { padding: 10px 0; }
.footer-links a:hover { color: var(--amber-ink); }
.copyright { font-size: 14px; color: var(--muted); }

/* Legal and 404 pages */
.legal { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.legal .updated { margin-top: 12px; color: var(--muted); }
.legal h2 { margin-top: 40px; font-size: 22px; font-weight: 700; }
.legal p, .legal li { margin-top: 12px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.legal ul { margin-top: 8px; padding-left: 22px; list-style: disc; }
.legal a { text-decoration: underline; }
.todo { background: #fff3c4; color: var(--ink); padding: 0 4px; border-radius: 4px; }

.notfound { padding-top: 112px; padding-bottom: 128px; text-align: center; }
.notfound h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.notfound p { margin: 16px auto 32px; max-width: 480px; font-size: 18px; color: var(--muted); }

/* Small screens */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-inner { gap: 12px 16px; }
  .site-nav { display: none; order: 4; flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
  .site-nav.is-open { display: flex; }
  .header-actions { order: 3; width: 100%; }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Automotive section */
.auto-inner{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-start}
.auto-copy{flex:1 1 440px;min-width:0}
.auto-data{flex:1 1 400px;min-width:0}
.auto-label{color:var(--muted)}
.chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.chips li{padding:10px 16px;border:2px solid var(--text);border-radius:10px;font-weight:700;font-size:16px;background:var(--surface)}
.tm-note{margin:24px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}
.auto-copy .section-lead{color:var(--muted)}
.auto-label{color:var(--muted);margin:0 0 14px}

/* Dark mode toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--hover); }
.theme-toggle[hidden] { display: none; }
