/* Page-level styles for the SVI Technologies site. The design system lives in
   styles.css; this file only holds what the page itself adds on top. */

html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-700); }

/* The sticky nav overlaps anchor targets, so offset scroll landings by its height. */
:target,
section[id] { scroll-margin-top: 72px; }

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

/* Keyboard entry point, visible only once focused. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-accent-900);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Reversed band: keep links legible against the dark steel background. */
.rev a { color: var(--color-accent-300); }
.rev a:hover { color: var(--color-bg); }

/* Contact form: the success panel replaces the form in place, mirroring the
   two mutually exclusive states in the source design. */
[hidden] { display: none !important; }

.form-error {
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-accent-800);
  background: var(--color-accent-100);
  border-left: 3px solid var(--color-accent);
  padding: 10px 14px;
}

/* Honeypot field — off-screen rather than display:none so bots still fill it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Visually hidden but announced — used for the ✓ / ✗ glyphs in the
   comparison table, which carry meaning no screen reader can infer. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
