/* ==========================================================================
   Moore HR Consulting — site styles
   Plain, sturdy and direct: written for owners and managers at small
   manufacturers. Teal comes from the logo; Barlow (a workmanlike sans drawn
   from highway and industrial signage) carries the type. Square corners,
   solid rules, no soft glows or scroll effects.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --teal: #1eabb3;          /* brand teal — logo, rules, markers */
  --teal-deep: #0e7880;     /* buttons & links (AA contrast on white) */
  --teal-darker: #0a5c62;   /* hover */
  --ink: #1c2326;           /* body text, dark bands */
  --ink-soft: #454f53;      /* secondary text */
  --paper: #f3f1ec;         /* alternating section background (warm, not clinical) */
  --line: #d6d2c8;          /* rules and borders */
  --white: #ffffff;

  --font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", "Arial Narrow", Arial, sans-serif;

  --header-h: 88px;
  --radius: 4px;
  --container: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal-darker); }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.75rem); }
h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--teal-deep); color: #fff; padding: 8px 16px; }
.skip-link:focus { left: 16px; color: #fff; }

/* Section label: short solid bar, then the word */
.eyebrow {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--teal); flex-shrink: 0; }
.center .eyebrow { justify-content: center; }
.center { text-align: center; }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 44rem; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600;
  padding: .85rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-primary:hover { background: var(--teal-darker); border-color: var(--teal-darker); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 66px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink);
}
.nav-toggle-bar { display: block; width: 24px; height: 3px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle-bar + .nav-toggle-bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-size: 1rem; font-weight: 500; padding: .4rem 0;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--teal-deep); border-bottom-color: var(--teal); }

.nav-social {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.nav-social svg { width: 26px; height: 26px; }
.nav-social:hover { color: var(--teal-deep); }
.nav-social-label { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .site-nav .nav-social { margin-top: 1.25rem; }
  .nav-social-label { display: inline; }
  .brand img { height: 54px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem clamp(16px, 4vw, 40px) 1.5rem;
  }
  .site-nav:not(.is-open) { display: none; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover, .nav-links a.is-active { border-bottom-color: var(--line); }
  .site-nav .btn { margin-top: 1.25rem; }
}

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: var(--header-h); }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(32px, 5vw, 52px); }

/* ---------- Hero / Home ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 2rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-photo { margin: 0; justify-self: end; width: min(100%, 340px); }
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.hero-photo figcaption { margin-top: .75rem; font-size: 1rem; color: var(--ink-soft); }
.hero-photo figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.2rem; }

/* Credentials strip */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; list-style: none;
  border-top: 4px solid var(--ink);
}
.facts li { padding: 1.5rem 1.5rem 1.75rem 0; }
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.fact-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--teal-deep); }
.fact-label { display: block; margin-top: .5rem; font-size: 1.02rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; width: auto; }
  .hero-photo figcaption { margin: 0; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 1.1rem 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
}

/* ---------- Experience ---------- */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.note {
  background: var(--paper); border-left: 4px solid var(--teal);
  padding: 1.1rem 1.4rem; color: var(--ink); margin: 1.5rem 0 0;
}

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.5rem 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  background: var(--white); border: 3px solid var(--teal-deep);
}
.timeline li.current::before { background: var(--teal-deep); }
.timeline .role { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; display: block; }
.timeline .org { color: var(--ink-soft); }
@media (max-width: 900px) { .exp-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.path-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.path-card {
  background: var(--ink); color: #dfe6e8; border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem; border-top: 5px solid var(--teal);
}
.path-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: .2rem; }
.path-card .for { font-weight: 600; color: #8fd9de; margin-bottom: .75rem; }
.path-card p:last-child { margin-bottom: 0; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal-deep);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem;
}
.service-card h3 { margin-bottom: .4rem; }
.service-card p { color: var(--ink-soft); margin: 0; }
.services-cta { margin-top: 2.5rem; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid, .path-cards { grid-template-columns: 1fr; } }

/* ---------- Approach ---------- */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: 1.35rem;
}
.checklist svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--teal-deep); }
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; } }

/* ---------- Mission ---------- */
.mission { background: var(--teal-deep); color: #e3f4f5; }
.mission .eyebrow { color: #fff; }
.mission .eyebrow::before { background: #fff; }
.mission blockquote {
  margin: 0 auto 2rem; max-width: 50rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.25; color: #fff;
}
.mission-meta { max-width: 44rem; margin: 0 auto; }
.mission-meta strong { color: #fff; }

/* ---------- Contact / Let's Talk ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 4vw, 40px); align-items: start; }
.talk-form {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal-deep);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem);
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; }
.field input, .field select {
  display: block; width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .9rem; background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius);
}
.field select {
  appearance: none; padding-right: 2.5rem; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2326' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 18px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal-deep); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.talk-form .btn { margin-top: .25rem; min-width: 10rem; }
.talk-form .btn:disabled { opacity: .6; cursor: default; }
.form-status { margin: 1rem 0 0; min-height: 1.6em; color: var(--ink-soft); }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--teal-darker); font-weight: 600; }
.form-status.is-error { color: #a3261b; font-weight: 600; }

.contact-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal-deep); border-radius: var(--radius); padding: 1.75rem; }
.contact-card h3 { margin-bottom: .1rem; }
.contact-card .title { color: var(--ink-soft); margin-bottom: 1.4rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: center; }
.contact-list a { text-decoration: none; font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-card .small { font-size: 1rem; color: var(--ink-soft); margin: 0; }

.icon-badge {
  width: 42px; height: 42px; border-radius: var(--radius); background: var(--paper); color: var(--teal-deep);
  display: grid; place-items: center; flex-shrink: 0;
}
.icon-badge svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b8c3c6; padding: 56px 0 28px; font-size: 1rem; }
.site-footer a { color: #e3eced; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .tagline { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: #fff; margin: 0 0 .4rem; }
.footer-brand p { margin: 0; }
.footer-logo { width: 170px; margin-bottom: 1.25rem; }
.footer-heading { font-family: var(--font-head); font-size: .95rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 .9rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 24px; font-size: .95rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal / simple pages ---------- */
.page-hero { background: var(--paper); padding: clamp(48px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); margin-bottom: .2em; }
.page-hero .updated { color: var(--ink-soft); margin: 0; }
.prose { max-width: 46rem; padding: clamp(40px, 6vw, 64px) 0 clamp(64px, 9vw, 100px); }
.prose h2 { font-size: 1.8rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.draft-banner {
  background: #fff8e6; border: 1px solid #f0d99a; border-left: 4px solid #d9a92b; color: #6b5210;
  padding: .9rem 1.2rem; margin-bottom: 2.5rem;
}

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.notfound .code { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 14vw, 8rem); line-height: 1; color: var(--teal-deep); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-toggle-bar { transition: none; }
}
