/* ArcMirror consulting site — shared tokens + components.
   Visual language mirrors the Archetype Mirror Team Hub. */

:root {
  /* Ink / dark surfaces */
  --ink: #0d0b16;
  --ink-2: #14101f;
  --nav-border: #262038;
  --on-dark: #f5f2ea;
  --on-dark-muted: #b5aecb;
  --on-dark-faint: #8d86a6;

  /* Cream page + cards */
  --page: #f4f1ea;
  --card: #ffffff;
  --card-border: #e4ddcd;
  --card-shadow: 0 10px 30px rgba(13, 11, 22, .09);
  --card-shadow-soft: 0 8px 22px rgba(13, 11, 22, .08);

  /* Text */
  --text: #1a1723;
  --text-strong: #17141f;
  --text-muted: #6b6355;
  --text-faint: #8a8271;

  /* Gold accent */
  --gold: #c9a25a;
  --gold-hover: #d9b26a;
  --gold-deep: #8a6a1f;
  --gold-soft-bg: #f6ead2;
  --gold-soft-border: #e6cf9d;

  /* Sparing accents */
  --blue: #2f6bbf;
  --violet: #7c3aed;
  --crimson: #c02657;
  --green: #2f6b3a;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #e9d9b6; }

img { max-width: 100%; display: block; }

a { color: inherit; }

/* Subtle grain overlay for atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
}

.page { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--nav-border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-name {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  color: var(--on-dark); letter-spacing: -.01em;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--sans); font-size: 13.5px; color: #cfc9e2; text-decoration: none;
  padding: 8px 13px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: #fff; background: #1d1730; }
.nav-links a.active { color: var(--gold); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 14.5px; font-weight: 700;
  text-decoration: none; border-radius: 10px; padding: 13px 22px; cursor: pointer;
  border: none; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn-gold { color: #17110a; background: var(--gold); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost-dark {
  color: #e8e3f4; background: transparent; border: 1px solid #3c3455; font-weight: 600;
}
.btn-ghost-dark:hover { border-color: var(--gold); color: #fff; }
.btn-ghost-light {
  color: var(--text-strong); background: transparent; border: 1px solid var(--card-border); font-weight: 600;
}
.btn-ghost-light:hover { border-color: var(--gold); }

/* ---------- Eyebrows / type ---------- */
.eyebrow {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: .18em; color: var(--gold); text-transform: uppercase;
}
.eyebrow-deep { color: var(--gold-deep); font-size: 11px; letter-spacing: .14em; }

h1, h2, h3 { font-family: var(--serif); color: var(--text-strong); letter-spacing: -.015em; }

.lede { font-size: 18px; line-height: 1.65; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section-cream { background: var(--page); }
.section-ink { background: var(--ink); color: var(--on-dark); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--on-dark); }

/* Atmospheric ink section */
.section-ink.glow {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(760px 380px at 92% 8%, rgba(47, 107, 191, .14), transparent 62%),
    var(--ink);
}

.eyebrow-wrap { margin-bottom: 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 16px;
  padding: 24px; box-shadow: var(--card-shadow);
}
.card-flat { box-shadow: none; }
.card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; color: var(--text-strong); }
.card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
/* Card headings stay dark even inside ink sections */
.section-ink .card h3 { color: var(--text-strong); }
.card-top-blue { border-top: 3px solid var(--blue); }
.card-top-violet { border-top: 3px solid var(--violet); }
.card-top-crimson { border-top: 3px solid var(--crimson); }
.card-top-gold { border-top: 3px solid var(--gold); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-block; font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  color: var(--gold-deep); background: var(--gold-soft-bg);
  border: 1px solid var(--gold-soft-border); border-radius: 999px; padding: 5px 12px;
}
.dot { width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; display: inline-block; }

/* ---------- Numbered step ---------- */
.step-num {
  font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--gold-deep); line-height: 1;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); margin-top: auto; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 34px 32px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer a { color: var(--gold); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .f-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--on-dark); }
.footer .f-muted { font-family: var(--sans); font-size: 12.5px; color: var(--on-dark-faint); margin-top: 4px; line-height: 1.6; }
.footer .f-links { font-family: var(--sans); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; color: var(--text-muted); margin-bottom: 7px; text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--text);
  background: #faf8f2; border: 1px solid #d8d0bd; border-radius: 10px; padding: 12px 14px;
  outline-color: var(--gold);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-family: var(--sans); font-size: 13px; color: var(--text-faint); }
.form-status {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.55; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px; display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #e5f2e5; border: 1px solid #c4e0c6; color: #2f6b3a; }
.form-status.err { background: #fdecef; border: 1px solid #ecc6d2; color: #c02657; }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: var(--stack, 16px); }
.measure { max-width: 720px; }
.measure-sm { max-width: 600px; }
.center { text-align: center; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 44px; }
.muted { color: var(--text-muted); }
.serif { font-family: var(--serif); }
.sans { font-family: var(--sans); }

/* Animated entrance */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fade { animation: fadeUp .5s ease both; }
.fade-1 { animation-delay: .06s; }
.fade-2 { animation-delay: .12s; }
.fade-3 { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .container, .nav-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--nav-border); padding: 8px 12px 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 12px; font-size: 15px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: transparent; border: 1px solid #3c3455;
    border-radius: 9px; color: #e8e3f4; cursor: pointer;
  }
  .section { padding: 52px 0; }
  h1 { font-size: 34px !important; }
  .hero-h1 { font-size: 36px !important; }
}
