/* Indata Technologies — site styles
   Built to WCAG 2.2 AA. Contrast ratios verified; see README.
   No external dependencies, no web fonts, no trackers. */

:root {
  --ink: #14263B;
  --ink-2: #1C2733;
  --paper: #F5F7FA;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --line: #DDE2E8;
  --text: #1C2733;
  --muted: #5A6B7F;          /* 5.23:1 on --bg  */
  --copper: #B4642A;         /* brand: rules, borders, large accents (3:1 UI) */
  --copper-text: #9E5623;    /* 5.28:1 on --bg — use for any text-sized copper */
  --focus: #B4642A;          /* 4.19:1 on light, 4.19:1 on dark */
  --maxw: 1120px;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10151C;
    --surface: #171E27;
    --line: #2A333F;
    --text: #E6EBF1;         /* 15.29:1 */
    --muted: #93A1B2;        /* 6.96:1  */
    --ink: #0B1017;
    --copper-text: #D2854A;  /* 6.28:1 on dark */
  }
}
:root[data-theme="dark"] {
  --bg: #10151C; --surface: #171E27; --line: #2A333F;
  --text: #E6EBF1; --muted: #93A1B2; --ink: #0B1017; --copper-text: #D2854A;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

/* Respect a user's motion preference (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* --- focus: never removed, always visible, >=3:1 (WCAG 2.4.11/2.4.13) ----- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute; left: 8px; top: -60px;
  z-index: 100;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 0 0 8px 8px;
  text-decoration: none; font-weight: 600;
  transition: top .15s ease;
}
.skip:focus { top: 0; }

/* --- layout --------------------------------------------------------------- */
.inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Narrow sections keep the same left gutter as full-width ones — constrain the
   children, not the container, so every section shares one left edge. */
.inner.narrow > * { max-width: 760px; }
.inner.narrow > p { max-width: 68ch; }

section { padding: 64px 0; }
.band.alt { background: var(--surface); }
.page-head { padding-bottom: 24px; }

/* --- header --------------------------------------------------------------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.bar {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 32px;
}
.brand { display: inline-flex; text-decoration: none; }
.logo-svg { width: 210px; height: auto; display: block; }

/* The header logo is navy-on-light; invert it in dark mode so it stays legible. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header .logo-svg { filter: invert(1) hue-rotate(180deg); }
}
:root[data-theme="dark"] .site-header .logo-svg { filter: invert(1) hue-rotate(180deg); }

.site-header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 8px;
}
.site-header nav a {
  display: block;
  padding: 10px 12px;              /* >=24x24 target (WCAG 2.5.8); ~44px tall */
  min-height: 44px; line-height: 24px;
  color: var(--text); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  border-radius: 8px;
}
.site-header nav a:hover { background: var(--surface); text-decoration: underline; }
.site-header nav a[aria-current="page"] {
  color: var(--copper-text);
  box-shadow: inset 0 -3px 0 var(--copper);   /* not color alone */
  font-weight: 600;
}

/* --- type ----------------------------------------------------------------- */
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.8em; }
h2:first-child, h3:first-child { margin-top: 0; }
p { margin: 0 0 1.1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

a { color: var(--copper-text); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* Body links keep an underline so they are distinguishable without color
   (WCAG 1.4.1). Nav, buttons and cards are excluded — they have other cues. */
main p a, main li a, .site-footer a { text-decoration: underline; }

.hero { padding-top: 72px; }
.hero h1 { max-width: 18ch; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--ink); color: #FFFFFF;      /* 14.3:1 */
  padding: 14px 26px; min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #0C1A2B; border-color: #0C1A2B; text-decoration: underline; }
.btn.light { background: #FFFFFF; color: var(--ink-2); border-color: #FFFFFF; }
.btn.light:hover { background: var(--paper); border-color: var(--paper); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn { background: var(--paper); color: #10151C; border-color: var(--paper); }
  :root:not([data-theme="light"]) .btn:hover { background: #FFFFFF; border-color: #FFFFFF; }
}

/* --- proof bar ------------------------------------------------------------ */
.proof { padding: 0 0 56px; }
.proof-list {
  list-style: none; margin: 0; padding: 28px 0 0;
  border-top: 3px solid var(--copper);
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.proof-list strong { display: block; font-size: 1.15rem; color: var(--text); }
.proof-list span { display: block; color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* --- cards ---------------------------------------------------------------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { margin: 0 0 .6em; font-size: 1.15rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--copper); }
.card p { margin: 0; font-size: .98rem; color: var(--muted); }

.aside-note {
  margin-top: 28px; padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--copper);
  border-radius: 8px;
}
.aside-note h3 { margin: 0 0 .5em; font-size: 1.05rem; }
.aside-note p { margin: 0; color: var(--muted); }

.feature-list { padding-left: 1.2em; }
.feature-list li { margin-bottom: .7em; max-width: 68ch; }

/* --- CTA band ------------------------------------------------------------- */
.cta { background: var(--ink); color: var(--paper); }
.cta h2 { color: #FFFFFF; }
.cta p { color: #D6DEE8; }                      /* 11.6:1 on --ink */

/* --- form ----------------------------------------------------------------- */
.inquiry { max-width: 620px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.req {
  font-weight: 500; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--copper-text);
}
.req-note { color: var(--muted); font-size: .95rem; }
.hint { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }

input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 12px 14px; min-height: 44px;
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--muted);               /* 5.2:1 — visible boundary */
  border-radius: 8px;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink);
}
[aria-invalid="true"] { border-color: #A32B1F; border-width: 2px; }

/* Honeypot — hidden from sight and from assistive tech, but not display:none,
   so bots that skip hidden fields still fill it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 16px 18px; border-radius: 8px; margin-bottom: 24px; }
.form-status.ok { background: #E7F3EC; border: 1px solid #2E7D4F; color: #14532B; }
.form-status.err { background: #FBEAE8; border: 1px solid #A32B1F; color: #7A1F16; }
.form-status ul { margin: .5em 0 0; padding-left: 1.2em; }

/* --- footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: var(--paper); padding: 56px 0 24px;
  /* In dark mode the CTA band shares --ink, so keep an explicit divider. */
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.site-footer .inner {
  display: grid; gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer h2 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: #A9B6C4; margin: 0 0 .9em;             /* 8.0:1 on --ink */
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 2px; }
.site-footer a {
  color: #E4EAF1; display: inline-block;
  padding: 9px 2px; min-height: 40px; line-height: 22px;
}
.site-footer a:hover { color: #FFFFFF; text-decoration-thickness: 2px; }
.foot-brand .logo-svg { width: 200px; }
.foot-note { color: #A9B6C4; font-size: .9rem; margin: 14px 0 0; }
.copyright {
  max-width: var(--maxw); margin: 40px auto 0; padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #A9B6C4; font-size: .875rem;
}

/* --- print ---------------------------------------------------------------- */
@media print {
  .site-header, .skip, .cta .btn { display: none; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* --- forced colors (Windows high contrast) ------------------------------- */
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .card, .aside-note, input, select, textarea { border: 1px solid CanvasText; }
  .site-header nav a[aria-current="page"] { box-shadow: none; text-decoration: underline 3px; }
}
