/* ArcFlow theme – base: reset, typography, links, forms, utilities. Values from tokens.css. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-3));
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, video, svg, iframe { max-width: 100%; height: auto; }
img { border: 0; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 1.6em 0 0.5em;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--h1); margin-top: 0; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5, h6 { font-size: 1rem; }

p, ul, ol, dl, blockquote, table, figure { margin: 0 0 1em; }
p { text-wrap: pretty; hyphens: auto; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-5) 0; }
small { font-size: var(--text-sm); }
b, strong { font-weight: 650; }

blockquote {
  margin-left: 0;
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--brand);
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

table { border-collapse: collapse; width: 100%; }
th, td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

/* Links */
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

/* Brand wordmarks */
.arcflow, .zisoft, .transpo {
  font-family: var(--font-brand);
  font-weight: normal;
  font-style: normal;
  font-size: 0.9em;
  letter-spacing: 0.02em;
  color: var(--brand);
  /* a company name: never hyphenated or broken across lines */
  hyphens: none;
  white-space: nowrap;
}
.zisoft, .zisoft[style] { color: var(--accent) !important; }

/* Forms */
input, select, textarea, button { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="number"], select, textarea, .form-text {
  width: 100%;
  max-width: 40rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); outline-offset: 0; }
label { display: block; font-weight: 600; margin-bottom: var(--space-1); }

.button, button[type="submit"], input[type="submit"], .form-submit, a.more, .more-link a {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-strong);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.button:hover, button[type="submit"]:hover, input[type="submit"]:hover, .form-submit:hover, a.more:hover, .more-link a:hover {
  background: var(--button-hover);
  color: var(--on-brand-hover);
}

/* Utilities */
.visually-hidden, .element-invisible, .element-hidden, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.clearfix::after { content: ""; display: table; clear: both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
