/* Applied Industrials — site styles.
 * Pulls in the brand tokens (single source of truth) and defines a handful of
 * reusable component classes on top of Tailwind (loaded via CDN on each page).
 * tokens.css lives in /brand; each page also @imports it directly, but keeping
 * the import here means solution pages only need one stylesheet link.
 */

:root {
  --header-h: 72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-head {
  font-family: var(--font-heading);
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

/* Anchor offset so section links don't hide under the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .875rem 1.5rem;
  border-radius: var(--radius);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--ai-orange); outline-offset: 2px; }

/* Primary = the single orange CTA per section */
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(228, 87, 30, 0.28);
}
.btn-primary:hover { background: var(--color-accent-strong); transform: translateY(-1px); }

/* Ghost / outline on light backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--color-heading);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-heading); background: #fff; }

/* Ghost on dark backgrounds */
.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.28);
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ---------- Eyebrow / badge ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--ai-orange-soft);
  padding: .375rem .75rem;
  border-radius: 999px;
}
.eyebrow-dark {
  color: #fff;
  background: rgba(228, 87, 30, 0.18);
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(11,36,64,0.14);
  border-color: #d7dde6;
}

/* ---------- Dark section gradient ---------- */
.bg-dark-brand {
  background: linear-gradient(160deg, var(--ai-navy) 0%, var(--ai-navy-deep) 60%, var(--ai-green-deep) 160%);
}

/* Subtle top hairline accent */
.rule-accent { height: 4px; width: 56px; background: var(--color-accent); border-radius: 999px; }

/* Link styling inside prose */
.link-accent { color: var(--color-accent); font-weight: 600; text-decoration: none; }
.link-accent:hover { text-decoration: underline; }

/* Faint dotted grid texture for dark heroes */
.dot-grid {
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
