/* ============================================================
   FCX HR Services — shared stylesheet
   Employee experience, built like customer experience.
   See about.html for the Project FCX origin story.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;1,400&family=Space+Mono:wght@400;700&display=swap');

:root {
  --paper: #f0f1ee;
  --paper-deep: #e3e5e0;
  --ink: #181b1d;
  --brand: #c23670;
  --brand-deep: #9c2a58;
  --promoter: #2e7d5b;
  --passive: #b9832a;
  --detractor: #c0392b;
  --line: #d5d7d2;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --max: 1160px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 1.9vw, 1.25rem); }

p { margin: 0 0 1.1em; color: var(--ink); opacity: 0.82; max-width: 62ch; }
a { color: var(--brand-deep); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

main { scroll-margin-top: 80px; }

.label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--brand-deep);
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 100; text-decoration: none;
  font-family: var(--font-mono); font-size: 0.8rem;
}
.skip-link:focus { left: 16px; top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, label:focus-visible, .nav-toggle-label:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 2px;
}

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 15px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { flex-shrink: 0; color: var(--brand); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.brand-sub { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); opacity: 0.55; margin-top: 3px; }

nav.primary-nav { display: flex; align-items: center; gap: 24px; }
nav.primary-nav a {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ink); padding-bottom: 3px; border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover, nav.primary-nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand-deep); }
.nav-cta { background: var(--ink); color: var(--paper) !important; padding: 8px 16px; border-radius: 3px; border-bottom: none !important; }
.nav-cta:hover { background: var(--brand-deep); color: var(--paper) !important; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle-label span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block; font-family: var(--font-mono); font-size: 0.82rem;
  text-decoration: none; padding: 12px 24px; border-radius: 3px; border: 2px solid var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); cursor: pointer; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.text-link { font-family: var(--font-mono); font-size: 0.82rem; }

/* ---------- Opening (no hero banner — a plain headline + a small reading, side by side) ---------- */
.opening { padding-block: clamp(48px, 8vw, 84px) clamp(36px, 6vw, 60px); border-bottom: 2px solid var(--ink); }
.opening-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.opening h1 { max-width: 18ch; }

.reading-card { background: var(--ink); color: var(--paper); padding: 22px 24px; border-radius: 4px; }
.reading-card .label { color: var(--paper); opacity: 0.6; }
.reading-card .big-score { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; margin: 8px 0; color: var(--brand); }
.reading-card p { color: var(--paper); opacity: 0.72; font-size: 0.88rem; margin: 0; }

/* ---------- Journey map (the signature element) ---------- */
.journey-map { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); margin-top: 10px; }
.journey-stage { padding: 22px 16px; border-right: 1px solid var(--line); position: relative; }
.journey-stage:last-child { border-right: none; }
.journey-stage .stage-index { font-family: var(--font-mono); font-size: 0.68rem; opacity: 0.55; }
.journey-stage h3 { margin: 6px 0 10px; }
.journey-score { display: inline-block; font-family: var(--font-mono); font-weight: 700; padding: 3px 9px; border-radius: 3px; font-size: 0.92rem; margin-bottom: 10px; }
.journey-score.promoter { background: var(--promoter); color: #fff; }
.journey-score.passive { background: var(--passive); color: var(--ink); }
.journey-score.detractor { background: var(--detractor); color: #fff; }
.journey-stage p { font-size: 0.92rem; opacity: 0.78; }
.journey-stage:not(:last-child)::after {
  content: "\2192"; position: absolute; right: -10px; top: 26px;
  font-family: var(--font-mono); color: var(--ink); opacity: 0.4; font-size: 1rem; background: var(--paper); z-index: 2; padding: 1px 0;
}
.listening-thread {
  border-top: 2px dashed var(--brand); margin-top: -1px; padding-top: 12px; text-align: center;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--brand-deep); text-transform: uppercase; letter-spacing: 0.05em;
}

/* ---------- Sections ---------- */
section { padding-block: clamp(46px, 7vw, 84px); }
.alt-bg { background: var(--paper-deep); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head .label { display: block; margin-bottom: 12px; }

/* Receipt (Services) */
.receipt { max-width: 620px; border-top: 3px dashed var(--ink); border-bottom: 3px dashed var(--ink); margin: 22px 0; }
.receipt-line { padding-block: 18px; border-bottom: 1px dotted var(--line); }
.receipt-line:last-child { border-bottom: none; }
.receipt-line .receipt-head { display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-mono); align-items: baseline; }
.receipt-line .item-name { font-weight: 700; font-size: 1rem; }
.receipt-line .item-duration { color: var(--brand-deep); white-space: nowrap; font-size: 0.82rem; }
.receipt-line p { margin-top: 8px; margin-bottom: 0; font-size: 0.95rem; }

/* Principles (About) — deliberately plainer than the ID badges, since these aren't people */
.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle { background: var(--paper); padding: 26px 24px; }
.principle .principle-index { font-family: var(--font-mono); font-size: 0.7rem; color: var(--brand-deep); opacity: 0.8; }
.principle h3 { margin: 8px 0 8px; }

/* ID badges (Team) */
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.id-badge { background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: 20px 20px 18px; position: relative; }
.id-badge::before {
  content: ""; position: absolute; top: -9px; left: 24px; width: 34px; height: 9px;
  background: var(--ink); border-radius: 3px 3px 0 0;
}
.badge-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.badge-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; flex-shrink: 0;
}
.id-badge .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.id-badge .role { font-family: var(--font-mono); font-size: 0.68rem; color: var(--brand-deep); text-transform: uppercase; letter-spacing: 0.03em; display: block; }
.badge-num { font-family: var(--font-mono); font-size: 0.68rem; opacity: 0.5; margin-top: 10px; display: block; }

/* Field notes (short entries) */
.field-note { border-bottom: 1px solid var(--line); padding-block: 22px; }
.field-note .label { margin-bottom: 8px; display: block; }
.field-note p { font-size: 1.02rem; }

/* Contact / forms */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--brand-deep); display: block; margin-bottom: 5px; }
input, textarea, select {
  width: 100%; border: 2px solid var(--ink); background: var(--paper); padding: 10px 12px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); border-radius: 3px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand-deep); outline-offset: 1px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: var(--paper); padding-block: 40px; }
footer.site-footer a { color: var(--paper); opacity: 0.75; text-decoration: none; }
footer.site-footer a:hover { opacity: 1; color: var(--brand); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.78rem; }
.footer-meta { font-family: var(--font-mono); font-size: 0.76rem; opacity: 0.65; text-align: right; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(240,241,238,0.2); font-family: var(--font-mono); font-size: 0.68rem; opacity: 0.55; }

/* ---------- 404 ---------- */
.error-page { padding-block: 100px 120px; }

/* ---------- Reduced motion / accessibility floor ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle-label { display: flex; }
  nav.primary-nav {
    position: fixed; top: 58px; left: 0; right: 0; z-index: 45;
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 20px var(--pad) 26px; gap: 16px;
    transform: translateY(-120%); transition: transform .25s ease;
    border-bottom: 2px solid var(--ink);
  }
  .nav-toggle:checked ~ nav.primary-nav { transform: translateY(0); }
  .opening-grid { grid-template-columns: 1fr; }
  .journey-map { grid-template-columns: 1fr; }
  .journey-stage { border-right: none; border-bottom: 1px solid var(--line); }
  .journey-stage:last-child { border-bottom: none; }
  .journey-stage:not(:last-child)::after { content: "\2193"; right: 50%; top: auto; bottom: -10px; transform: translateX(50%); }
  .badge-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
  .footer-meta { text-align: left; }
}
