/* =========================================================================
   AIR.TEK: design tokens and base components
   Values come from the live site (airtek.ai, src/styles/airtek.css) and the
   AIR.TEK brand guidelines. Read AIRTEK-BRAND.md before you change anything here.
   Load the fonts first (see AIRTEK-BRAND.md section 4), then this file.
   ========================================================================= */

:root {
  /* Surfaces */
  --at-bg: #fdfbf6;          /* cream: page background */
  --at-card: #fffefb;        /* raised surface: cards, inputs, documents */
  --at-soft: #f5f0e6;        /* sand: panels, alternate sections, table header */
  --at-line: #e6ddcc;        /* hairline: borders, separators */

  /* Ink */
  --at-ink: #1f1d1a;         /* text, titles, strong rules, dark bands */
  --at-ink-2: #5f584f;       /* warm grey: secondary text (6.8:1 on cream) */
  --at-ink-3: #8a8279;       /* captions and legal lines only (3.7:1: not for body text) */

  /* Accent */
  --at-orange: #e8822a;      /* AIR.TEK orange: logo dot, primary button, focus, rules */
  --at-orange-hover: #d9741f;
  --at-orange-dark: #c55f12; /* orange TEXT on cream: labels, numbers (bold, 12px and up) */
  --at-orange-light: #ff914d;/* orange TEXT on ink */
  --at-flame: linear-gradient(90deg, #ff3232, #ff914d);      /* thin bands, label dash, monogram */
  --at-flame-text: linear-gradient(90deg, #e0341f, #e8762a); /* gradient end of a title */

  /* On ink (dark bands) */
  --at-on-ink: #fdfbf6;
  --at-on-ink-2: rgba(253, 251, 246, .72);
  --at-on-ink-line: rgba(253, 251, 246, .16);

  /* UI states (application screens only, never decoration) */
  --at-ok: #1f7a47;   --at-ok-bg: #e7f4ec;
  --at-warn: #a8520f; --at-warn-bg: #fdf0e3;
  --at-err: #b42318;  --at-err-bg: #fdecea;

  /* Type */
  --at-font-title: 'Inter Tight', Inter, Arial, Helvetica, sans-serif;
  --at-font-text: Inter, Arial, Helvetica, sans-serif;

  /* Shape: square. Buttons get 2px at most, nothing else is rounded. */
  --at-radius: 0;
  --at-radius-btn: 2px;
  --at-ease: .14s ease;
}

/* ---------- base ---------- */
html { background: var(--at-bg); }
body {
  margin: 0; background: var(--at-bg); color: var(--at-ink);
  font: 400 16px/1.55 var(--at-font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
::selection { background: rgba(232, 130, 42, .22); }
:focus-visible { outline: 2px solid var(--at-orange); outline-offset: 3px; }

/* ---------- type ---------- */
.at-h1, .at-h2, .at-h3 { font-family: var(--at-font-title); font-weight: 700; color: var(--at-ink); margin: 0; text-wrap: balance; }
.at-h1 { font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.048em; }
.at-h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1; letter-spacing: -.04em; }
.at-h3 { font-size: clamp(20px, 2vw, 23px); line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.at-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--at-ink-2); max-width: 36ch; }
.at-text { font-size: 16px; line-height: 1.55; color: var(--at-ink-2); max-width: 62ch; }
.at-small { font-size: 13px; color: var(--at-ink-3); }
.at-num { font-family: var(--at-font-title); font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
/* the last words of ONE title per screen */
.at-flame-text { background: var(--at-flame-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* label: gradient dash + semibold grey word, opens each section */
.at-label { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 12.5px/1.2 var(--at-font-text); letter-spacing: .02em; color: var(--at-ink-2); }
.at-label::before { content: ""; flex: none; width: 22px; height: 3px; background: var(--at-flame); }
/* small uppercase key (table heads, step numbers, "ATELIER 1") */
.at-key { font: 700 11.5px/1.2 var(--at-font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--at-orange-dark); }

/* links inside text: ink, orange underline */
.at-link { color: var(--at-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--at-orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.at-link:hover { text-decoration-color: currentColor; }

/* ---------- buttons (the only rounded thing: 2px) ---------- */
.at-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border: 1px solid transparent; border-radius: var(--at-radius-btn);
  font: 600 14.5px/1 var(--at-font-text); text-decoration: none; cursor: pointer;
  background: var(--at-orange); color: var(--at-ink);            /* primary: ink on orange (6.1:1). Never white on orange. */
  transition: background-color var(--at-ease), color var(--at-ease), border-color var(--at-ease);
}
.at-btn:hover { background: var(--at-orange-hover); }
.at-btn--ink { background: var(--at-ink); color: var(--at-on-ink); }
.at-btn--ink:hover { background: #000; }
.at-btn--ghost { background: transparent; color: var(--at-ink); border-color: var(--at-ink); }
.at-btn--ghost:hover { background: var(--at-ink); color: var(--at-on-ink); }
.at-btn:disabled, .at-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- structure ---------- */
/* a list of facts / columns: strong ink rule on top, hairlines between */
.at-rule-top { border-top: 1px solid var(--at-ink); }
.at-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--at-ink); }
.at-cols > * { padding: 22px 24px 24px 0; }
.at-cols > * + * { padding-left: 24px; border-left: 1px solid var(--at-line); }
@media (max-width: 640px) { .at-cols > *, .at-cols > * + * { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--at-line); } }

/* card: square, hairline, no shadow */
.at-card { background: var(--at-card); border: 1px solid var(--at-line); padding: 24px; }
.at-panel { background: var(--at-soft); padding: 24px 28px; }

/* dark band: closes a page (call to action, contact), with the warm glow */
.at-band { position: relative; overflow: hidden; background: var(--at-ink); color: var(--at-on-ink); padding: 56px clamp(20px, 5vw, 72px); }
.at-band::before { content: ""; position: absolute; right: -10%; top: -40%; width: 70%; height: 180%; background: radial-gradient(closest-side, rgba(255, 110, 60, .26), transparent); pointer-events: none; }
.at-band > * { position: relative; }
.at-band .at-h2, .at-band .at-h3 { color: var(--at-on-ink); }
.at-band .at-label, .at-band .at-text { color: var(--at-on-ink-2); }
.at-band .at-key { color: var(--at-orange-light); }

/* thin gradient strip at the top or bottom of a large surface */
.at-strip { height: 5px; background: var(--at-flame); }

/* ---------- tables: rules, no boxes ---------- */
.at-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.at-table th { text-align: left; font: 600 12.5px/1.2 var(--at-font-text); color: var(--at-ink-2); padding: 0 16px 12px 0; border-bottom: 1px solid var(--at-ink); }
.at-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--at-line); vertical-align: top; }
.at-table td.num, .at-table th.num { text-align: right; }

/* ---------- status badges: square ---------- */
.at-badge { display: inline-block; padding: 4px 8px; font: 700 11px/1.2 var(--at-font-text); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--at-soft); color: var(--at-ink-2); }
.at-badge--ok { background: var(--at-ok-bg); color: var(--at-ok); }
.at-badge--warn { background: var(--at-warn-bg); color: var(--at-warn); }
.at-badge--err { background: var(--at-err-bg); color: var(--at-err); }
.at-badge--ink { background: var(--at-ink); color: var(--at-on-ink); }

/* ---------- forms ---------- */
.at-field { display: grid; gap: 6px; }
.at-field > span { font: 600 13px/1.2 var(--at-font-text); color: var(--at-ink); }
.at-field small { font-size: 12.5px; color: var(--at-ink-2); }
.at-input { width: 100%; padding: 12px 14px; background: var(--at-card); color: var(--at-ink); border: 1px solid var(--at-line); border-bottom-color: var(--at-ink-2);
  font: 400 15px/1.3 var(--at-font-text); transition: border-color var(--at-ease); }
.at-input::placeholder { color: var(--at-ink-3); }
.at-input:hover { border-color: var(--at-ink-2); }
.at-input:focus { outline: none; border-color: var(--at-ink); box-shadow: inset 0 -2px 0 var(--at-orange); }
.at-input[aria-invalid="true"] { border-color: var(--at-err); }
.at-field .at-error { color: var(--at-err); font-weight: 600; }
input[type=checkbox], input[type=radio], input[type=range], progress { accent-color: var(--at-orange); }

/* ---------- navigation ---------- */
.at-nav { display: flex; align-items: center; gap: 28px; height: 72px; padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--at-line); background: var(--at-bg); }
.at-nav a:not(.at-btn) { color: var(--at-ink-2); font-weight: 500; font-size: 14.5px; text-decoration: none; }
.at-nav a:not(.at-btn):hover, .at-nav a[aria-current="page"] { color: var(--at-ink); }
.at-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--at-orange); padding-bottom: 4px; }
.at-nav .at-logo { height: 26px; width: auto; display: block; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
