/*
 * intarim.com — static marketing site.
 * Tokens mirror frontend/src/styles/theme.css (charcoal/amber, warm cream).
 * The palette is provisional like the app's; swap token-for-token when the
 * designer delivers. No raw hex outside this :root block.
 */

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-md: 0.75rem;
  --radius-lg: 1rem;

  --brand-100: #f7e9c8;
  --brand-300: #edc468;
  --brand-400: #eab250;
  --brand-500: #e8a33d;
  --brand-600: #ce8a2b;
  --brand-900: #64421a;

  --ink-50: #f4f1ec;
  --ink-100: #ece8e0;
  --ink-200: #e5e1d8;
  --ink-300: #cfcabf;
  --ink-500: #7a766e;
  --ink-600: #6b6863;
  --ink-700: #4a4740;
  --ink-800: #343840;
  --ink-900: #1f2227;
  --ink-950: #17181a;

  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--ink-50);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--ink-900);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

.shell {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Header — dark bar like the app shell */
.site-header {
  background: var(--ink-950);
  color: var(--ink-50);
}

.site-header .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding-block: 0.5rem;
}

.wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--ink-200);
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--ink-800);
  color: var(--ink-50);
}

.site-nav a[aria-current='page'] {
  color: var(--brand-400);
}

.site-nav .nav-cta {
  margin-left: 0.5rem;
  background: var(--brand-500);
  color: var(--ink-950);
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: var(--brand-400);
  color: var(--ink-950);
}

/* Hero */
.hero {
  background: var(--ink-950);
  color: var(--ink-50);
  padding-block: 3.5rem 4rem;
}

.hero h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 40rem;
}

.hero h1 .accent {
  color: var(--brand-400);
}

.hero .lede {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--ink-300);
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-brand {
  background: var(--brand-500);
  color: var(--ink-950);
}

.btn-brand:hover {
  background: var(--brand-400);
}

.btn-outline {
  border: 1px solid var(--ink-600);
  color: var(--ink-50);
}

.btn-outline:hover {
  background: var(--ink-800);
}

.btn-outline-dark {
  border: 1px solid var(--ink-300);
  color: var(--ink-900);
}

.btn-outline-dark:hover {
  background: var(--ink-100);
}

/* Sections */
main.shell {
  padding-block: 3rem;
  display: grid;
  gap: 3.5rem;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.section-lede {
  max-width: 44rem;
  color: var(--ink-700);
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}

/* Card grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--ink-700);
}

/* Numbered steps */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  position: relative;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-900);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.steps p {
  font-size: 0.9375rem;
  color: var(--ink-700);
}

/* Branchen chips */
.chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  color: var(--ink-700);
}

/* Closing call-to-action band */
.cta-band {
  background: var(--ink-950);
  color: var(--ink-50);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--ink-300);
  max-width: 36rem;
  margin-inline: auto;
}

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cta-band .contact {
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.cta-band .contact a {
  color: var(--brand-400);
}

/* Legal pages */
.legal {
  max-width: 44rem;
}

.legal h1 {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal ul {
  margin-bottom: 0.75rem;
  color: var(--ink-700);
}

.legal ul {
  padding-left: 1.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--ink-200);
  background: var(--white);
  margin-top: 2rem;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
  font-size: 0.75rem;
  color: var(--ink-500);
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.site-footer a {
  color: var(--ink-600);
}
