/* ==========================================================
   8TH NEXUS — shared styles
   Change the variables below to restyle every page at once.
   ========================================================== */

:root {
  --ink: #0F1B2D;          /* main text + dark sections */
  --ink-deep: #0A1220;     /* footer */
  --paper: #F6F4EE;        /* page background */
  --white: #FFFFFF;
  --muted: #3A4658;        /* body copy on light */
  --muted-soft: #4A5568;   /* small print on light */
  --muted-on-dark: #B8C2D0;
  --line: #D9D5C9;
  --accent: #C2410C;       /* buttons + highlights (white text passes contrast) */
  --accent-text: #8A2C06;  /* accent used as small text on light */
  --accent-soft: #FBE9DF;
  --accent-on-dark: #F4B393;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;

  --maxw: 1160px;
  --gutter: 24px;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: 21px; }
p  { margin: 0; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--tight { padding: 64px 0; }
.intro { max-width: 720px; }
.intro p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.intro h2 { margin-top: 12px; }
.mt-lg { margin-top: 44px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-text);
}
.section--dark .eyebrow { color: var(--accent-on-dark); }

/* Flexible card grid: wraps on small screens, no media queries needed */
.grid { display: flex; flex-wrap: wrap; gap: 20px; }
.grid > * { flex: 1 1 300px; min-width: 0; }
.grid--wide > * { flex-basis: 420px; }
.grid--narrow > * { flex-basis: 200px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 10px;
  font-weight: 600; font-size: 17px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-body);
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; border-radius: 8px; }
.btn--block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.logo-mark { display: block; width: 34px; height: 34px; flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav .btn { color: var(--white); }

/* ---------- Hero ---------- */
.hero .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-side { flex: 1 1 380px; min-width: 0; }
.hero-copy h1 { margin-top: 20px; }
.hero-copy .lead { margin-top: 24px; font-size: 20px; color: var(--muted); max-width: 560px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--muted-soft); }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section--white .card { background: var(--paper); }
.card--white { background: var(--white); }
.card h3 + p { margin-top: 10px; color: var(--muted); }
.card--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card--dark p { color: var(--muted-on-dark); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }

/* ---------- Stage cards (the five-stage system) ---------- */
.stage-label { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--accent-text); }
.stage h3 { margin-top: 6px; font-size: 22px; }
.stage p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.stage .services { margin-top: 14px; font-size: 14px; font-weight: 600; line-height: 1.7; }

/* ---------- Steps ---------- */
.step { border-top: 3px solid var(--ink); padding-top: 20px; }
.step--accent { border-top-color: var(--accent); }
.step-num { font-family: var(--font-head); font-weight: 700; font-size: 40px; }
.step--accent .step-num { color: var(--accent); }
.step h3 { margin-top: 8px; font-size: 22px; }
.step p { margin-top: 10px; color: var(--muted); }

/* ---------- Before / after ---------- */
.ba-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-soft); }
.ba-list { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.ba-list li { padding-left: 22px; position: relative; }
.ba-list li::before { content: "–"; content: "–" / ""; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; }
.card--dark .ba-label { color: var(--accent-on-dark); }
.card--dark .ba-list li::before { content: "+"; content: "+" / ""; color: var(--accent-on-dark); }

/* ---------- Packages ---------- */
.pkg { display: flex; flex-direction: column; border-radius: 16px; padding: 32px; border: 1px solid var(--line); background: var(--paper); }
.pkg--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pkg h3 { font-size: 26px; }
.pkg .tagline { margin-top: 8px; color: var(--muted); }
.pkg--featured .tagline { color: var(--muted-on-dark); }
.pkg .price { margin-top: 20px; font-family: var(--font-head); font-size: 30px; font-weight: 700; }
.pkg .price-note { font-size: 14px; color: var(--muted-soft); }
.pkg--featured .price-note { color: var(--muted-on-dark); }
.pkg ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex: 1; }
.pkg .btn { margin-top: 28px; min-height: 48px; }
.pkg-flag { align-self: flex-start; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--accent-on-dark); color: #4A1A04; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Placeholders (delete before launch) ---------- */
.placeholder { border: 1px dashed #9AA3B0; border-radius: 10px; padding: 14px; font-size: 14px; color: var(--muted-soft); }

/* ---------- Form ---------- */
.form-card { background: var(--paper); color: var(--ink); border-radius: 16px; padding: 32px; }
.form-card form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 14px; border: 1.5px solid #9AA3B0; border-radius: 8px;
  font-size: 16px; font-family: var(--font-body); background: var(--white);
}
.cta-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.cta-split > :first-child { flex: 1 1 440px; min-width: 0; }
.cta-split > :last-child { flex: 1 1 380px; min-width: 0; }
.cta-split h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; }
.cta-split > :first-child p { margin-top: 20px; font-size: 18px; color: var(--muted-on-dark); max-width: 520px; }

/* ---------- Form extras ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot: hidden from people */
.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.form-error { margin: 0; padding: 12px 14px; border-radius: 8px; background: #FCE8E6; border: 1px solid #B3261E; color: #7A1511; font-size: 14px; font-weight: 500; }
.form-card a, .site-footer a { color: inherit; }

/* ---------- Lead journey (hero panel) ---------- */
.journey { counter-reset: j; margin: 18px 0 0; padding: 0; list-style: none; }
.journey li { counter-increment: j; position: relative; padding: 0 0 20px 44px; }
.journey li:last-child { padding-bottom: 0; }
.journey li::before { content: counter(j); content: counter(j) / ""; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.journey li::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: var(--line); }
.journey li:last-child::before { background: var(--accent); color: var(--white); }
.journey li:last-child::after { display: none; }
.journey strong { display: block; font-weight: 600; }
.journey span { font-size: 14px; color: var(--muted-soft); }

/* ---------- Long-form legal pages ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.6vw, 48px); }
.legal h2 { font-size: 26px; margin-top: 44px; }
.legal h3 { font-size: 19px; margin-top: 26px; }
.legal p, .legal li { color: var(--muted); font-size: 17px; line-height: 1.65; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--accent-text); }
.legal .updated { font-size: 15px; color: var(--muted-soft); margin-top: 12px; }
.legal .summary { margin-top: 28px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.legal .summary h2 { margin-top: 0; font-size: 21px; }
.legal .caps { text-transform: uppercase; font-size: 15px; line-height: 1.6; }

/* ---------- Accessibility helpers ---------- */
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--paper); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.section--dark :focus-visible, .site-footer :focus-visible, .pkg--featured :focus-visible { outline-color: var(--accent-on-dark); }
.form-card :focus-visible { outline-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--muted-on-dark); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 36px; padding-bottom: 36px; font-size: 14px; }
.site-footer .logo { color: var(--paper); font-size: 17px; }
