/* ===========================================================
   AMH Works | Shared Design System
   Built directly from the AMHworks brand book (brand book + launch plan).
   Palette, type scale, radius system, and voice below are pulled from
   that file, not invented. See README.md in this package for the mapping.
   =========================================================== */

:root {
  /* ---- Brand palette (from brand book, section 01) ---- */
  --ink: #2C2A26;            /* primary text, nav, dark sections */
  --terracotta: #9E6B5A;     /* dusty terracotta: accent, buttons, highlights */
  --terracotta-warm: #C4896F;/* warm terracotta: mark / symbol on dark backgrounds */
  --sand: #FAF8F4;           /* page background */
  --bone: #F0EEE9;           /* alternate section background */
  --stone: #D3D1C7;          /* borders, dividers */
  --grey: #888780;           /* body copy, secondary text */
  --muted-sand: #B4A99A;     /* labels, captions, hints */

  /* one font family, three weights (brand book, section 02) */
  --font: Georgia, 'Times New Roman', serif;

  --container: 1120px;

  /* ---- Border radius system (brand book, section 04) ---- */
  --r-input: 2px;   /* inputs, form fields */
  --r-pill: 4px;    /* tool pills, tooltips, tags */
  --r-swatch: 6px;  /* swatches, small chips */
  --r-card: 8px;    /* package cards, course cards, content cards */
  --r-button: 20px; /* all buttons */
}

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

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

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

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

/* ---- Type scale (brand book, section 03) ---- */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--grey); }
a { color: inherit; }

/* eyebrow / section label: 11px, 4px tracking, lowercase, terracotta */
.eyebrow {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--terracotta);
  margin-bottom: 0.9em;
  display: block;
}

/* abbreviated tagline: lowercase, dot-separated, light grey */
.tagline-abbrev {
  font-weight: 300;
  color: var(--grey);
  letter-spacing: 0.01em;
}

/* ---------- Buttons (radius: 20px, brand book section 04) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--r-button);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--sand);
}
.btn-primary:hover { background: var(--ink); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-ghost {
  background: transparent;
  color: var(--terracotta);
  padding: 14px 4px;
  border: none;
  font-weight: 700;
}
.btn-ghost:after { content: "→"; margin-left: 6px; transition: margin-left .15s ease; }
.btn-ghost:hover:after { margin-left: 10px; }

/* ---------- Header / Nav: ink, matches brand book cover/footer treatment ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo-text {
  font-family: var(--font);
  font-size: 1.4rem;
  line-height: 1;
}
/* wordmark: "amh" bold, "works." light. Brand book section 02 typography spec. */
.logo-amh { font-weight: 700; color: var(--sand); }
.logo-works { font-weight: 300; color: var(--terracotta); }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.primary-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--muted-sand);
  transition: color .15s ease;
}
nav.primary-nav a:hover, nav.primary-nav a.active { color: var(--sand); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-toggle {
  display: none;
  color: var(--sand);
  border-color: rgba(250,248,244,0.3);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid rgba(250,248,244,0.3);
    border-radius: var(--r-swatch);
    padding: 8px 12px;
    font-family: var(--font);
    font-weight: 700;
    cursor: pointer;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 24px 28px 32px;
  }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-bone { background: var(--bone); }
.bg-terracotta { background: var(--terracotta); color: var(--sand); }
.bg-terracotta h2, .bg-terracotta h3, .bg-terracotta .eyebrow { color: var(--sand); }
.bg-terracotta p { color: rgba(250,248,244,0.86); }

.bg-dark { background: var(--ink); color: var(--sand); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--sand); }
.bg-dark .eyebrow { color: var(--terracotta-warm); }
.bg-dark p { color: var(--muted-sand); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 88px; text-align: center; }
.hero .eyebrow { display: inline-block; }
.hero h1 { max-width: 820px; margin-left: auto; margin-right: auto; }
.hero .sub {
  max-width: 620px;
  margin: 22px auto 38px;
  font-size: 1.15rem;
  color: var(--grey);
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Grids / Cards (radius: 8px, brand book section 04) ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--sand);
  border: 1px solid var(--stone);
  border-radius: var(--r-card);
  padding: 30px 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.stat-card {
  background: var(--sand);
  border: 1px solid var(--stone);
  border-radius: var(--r-card);
  padding: 34px 28px;
  text-align: left;
}
.stat-number {
  font-family: var(--font);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label { font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.stat-card p:last-child { margin-bottom: 0; font-size: 0.95rem; }

/* problem list */
.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
@media (max-width: 620px) { .problem-list { grid-template-columns: 1fr; } }
.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--stone);
  font-weight: 700;
  color: var(--ink);
}
.problem-list li::before {
  content: "";
  min-width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  margin-top: 8px;
}

/* stage numbers (How We Work) */
.stage {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--stone);
}
.stage:last-child { border-bottom: none; }
.stage-num {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--muted-sand);
  min-width: 64px;
}
.stage h3 { margin-bottom: 6px; }
.stage p { margin-bottom: 0; }

/* framework */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .framework-grid { grid-template-columns: 1fr; } }
.framework-card {
  padding: 8px 4px;
}
.framework-word {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--sand);
  margin-bottom: 10px;
}

/* checklist for "who we work with" */
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--stone);
}
.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 700;
}

/* callout / editorial statement: light italic terracotta, brand book "hero subheadline" spec */
.editorial {
  text-align: center;
  padding: 90px 0;
}
.statement {
  font-family: var(--font);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.01em;
  max-width: 700px;
  margin: 0 auto 26px;
  color: var(--terracotta);
  line-height: 1.35;
}
.bg-terracotta .statement { color: var(--sand); }

/* ---------- The Mark ---------- */
.mark-figure { display: flex; justify-content: center; margin-bottom: 12px; }
.mark-figure svg { width: 150px; height: auto; }
.mark-tagline {
  text-align: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--sand);
  max-width: 640px;
  margin: 0 auto 48px;
  letter-spacing: -0.02em;
}
.mark-meaning-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  border-top: 1px solid rgba(250,248,244,0.14);
}
.mark-meaning-list li {
  font-size: 0.95rem;
  color: var(--muted-sand);
  line-height: 1.7;
  padding: 18px 0 18px 22px;
  position: relative;
  border-bottom: 1px solid rgba(250,248,244,0.14);
}
.mark-meaning-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta-warm);
}
.mark-meaning-list li strong { color: var(--sand); }

/* Case study blocks (results page) */
.case-study {
  background: var(--sand);
  border: 1px solid var(--stone);
  border-radius: var(--r-card);
  padding: 40px;
  margin-bottom: 28px;
}
.case-study-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--stone);
}
.case-study-head .stat-number { margin-bottom: 0; font-size: 2.1rem; }
.case-study-head .stat-label { margin-bottom: 0; font-size: 1.05rem; }
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 820px) { .case-study-grid { grid-template-columns: 1fr; } }
.case-study-grid h4 {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.case-study-grid p { font-size: 0.96rem; margin-bottom: 0; }
.needs-input {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--stone);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.disclosure {
  font-size: 0.88rem;
  color: var(--grey);
  border-top: 1px solid var(--stone);
  padding-top: 22px;
  margin-top: 8px;
}

/* ---------- Form (input radius: 2px, brand book section 04) ---------- */
form.contact-form {
  display: grid;
  gap: 20px;
  max-width: 640px;
}
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
input, textarea, select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: var(--r-input);
  border: 1.5px solid var(--stone);
  background: var(--sand);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--terracotta);
}
textarea { min-height: 140px; resize: vertical; }
.form-note {
  font-size: 0.86rem;
  color: var(--grey);
}

/* ---------- Footer: ink, matches brand book footer-brand exactly ---------- */
footer.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding: 56px 0 34px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(250,248,244,0.16);
  margin-bottom: 24px;
}
.footer-tagline { margin-top: 8px; font-size: 0.92rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--muted-sand); font-size: 0.94rem; }
.footer-nav a:hover { color: var(--sand); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted-sand);
}
.footer-bottom a { color: var(--muted-sand); }

/* ---------- Page header (interior pages) ---------- */
.page-hero { padding: 76px 0 20px; text-align: left; }
.page-hero .sub { max-width: 640px; font-size: 1.1rem; margin: 18px 0 0; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* tag / pill / caption: 10px uppercase 3px tracking, radius 4px */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--bone);
  border: 1px solid var(--stone);
  color: var(--ink);
}

.divider { height: 1px; background: var(--stone); border: none; margin: 0; }

/* ---------- Packages (Low / Medium / High) ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) { .package-grid { grid-template-columns: 1fr; } }
.package-card {
  background: var(--sand);
  border: 1px solid var(--stone);
  border-radius: var(--r-card);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
}
.package-card.featured {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 1px var(--terracotta);
  position: relative;
}
.package-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.package-name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 6px 0 14px;
}
.package-desc { font-size: 0.96rem; margin-bottom: 20px; }
.package-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}
.package-list li {
  font-size: 0.92rem;
  color: var(--ink);
  padding: 9px 0;
  border-top: 1px solid var(--stone);
}
.package-list li:first-child { border-top: none; }
.package-note {
  font-size: 0.78rem;
  color: var(--grey);
  margin: 0;
}

/* ---------- Operating Model (People / Process / Systems / Data / Plan) ---------- */
.model-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .model-wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .model-wrap { grid-template-columns: 1fr; } }
.model-pillar {
  background: var(--sand);
  border: 1px solid var(--stone);
  border-radius: var(--r-card);
  padding: 22px 18px;
}
.model-pillar .eyebrow { margin-bottom: 0.5em; }
.model-pillar h3 { font-size: 1.05rem; margin-bottom: 8px; }
.model-pillar p { font-size: 0.9rem; margin-bottom: 0; }
.model-hub {
  background: var(--ink);
  color: var(--sand);
  border-radius: var(--r-card);
  padding: 22px 24px;
  text-align: center;
  margin-bottom: 18px;
}
.model-hub .eyebrow { color: var(--terracotta-warm); text-align: center; display: block; }
.model-hub p { color: var(--muted-sand); margin: 6px auto 0; max-width: 560px; font-size: 0.95rem; }
.model-hub strong { color: var(--sand); }

/* Keep "People · Process · Systems · Data · Plan" on one line at desktop widths */
.model-heading { white-space: nowrap; font-size: clamp(1.5rem, 2.9vw, 2.6rem); }
@media (max-width: 760px) { .model-heading { white-space: normal; } }

/* Homepage hero: small AMH mark above the eyebrow line */
.hero-mark { display: flex; justify-content: center; margin-bottom: 22px; }
.hero-mark svg { width: 34px; height: auto; }

/* ---------- Capabilities: "What We Know" pillar blocks ---------- */
.pillar-block { padding: 30px 0; border-bottom: 1px solid var(--stone); }
.pillar-block:last-child { border-bottom: none; }
.pillar-block h3 { margin-bottom: 6px; }
.pillar-block > p { max-width: 640px; margin-bottom: 16px; }

/* ---------- Results: "What it shows" takeaway line ---------- */
.case-study-takeaway {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--stone);
  font-style: italic;
  color: var(--ink);
  font-size: 0.95rem;
}
.case-study-takeaway strong { font-style: normal; color: var(--terracotta); }
