/* ═══════════════════════════════════════════════
   SCHUMACHER CONSULTANCY — SHARED STYLESHEET
   Forest Green · Cream · White
═══════════════════════════════════════════════ */

:root {
  --ink:         #0e1a14;
  --ink-light:   #243320;
  --cream:       #f7f5f1;
  --warm-white:  #fdfcfa;
  --green:       #2d5a3d;
  --green-mid:   #3a7050;
  --green-light: #4e8f67;
  --green-pale:  #e4ede7;
  --green-xpale: #f0f5f1;
  --slate:       #4a5c50;
  --border:      rgba(45,90,61,0.22);
  /* ── MTWM FRAMEWORK BRAND COLORS (added 2026-07-30) ──
     Source: Schumacher Consultancy brand guidelines.
     RESERVED for the three MTWM category headers and framework overviews only.
     Do not use for individual dimensions or for general page furniture. */
  --mtwm-teal:        #008080;  /* Area 1 — Mandate & Mission Clarity */
  --mtwm-slate-blue:  #557A95;  /* Area 2 — Institutional Capacity & Resources */
  --mtwm-terracotta:  #9F5540;  /* Area 3 — Leadership, Governance & Culture */
  /* Dimension tiles are tinted by position within their area, not by area. */
  --mtwm-tint-1:      #BFDFDF;  /* Position 1 */
  --mtwm-tint-2:      #D4DDE4;  /* Position 2 */
  --mtwm-tint-3:      #E7D4CF;  /* Position 3 */
  --border-soft: rgba(14,26,20,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--warm-white);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem;
  background: rgba(253,252,250,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
nav.scrolled { padding: .9rem 4rem; }
.nav-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem; font-weight: 400; letter-spacing: .04em;
  color: var(--ink); text-decoration: none;
}
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: .77rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate); text-decoration: none;
  transition: color .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--green);
}
/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 1rem); left: 0;
  background: var(--warm-white); border: 1px solid var(--border);
  min-width: 180px; z-index: 300;
  box-shadow: 0 8px 32px rgba(14,26,20,0.1);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: .65rem 1.25rem;
  font-size: .72rem; letter-spacing: .1em; color: var(--slate);
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none; transition: all .15s;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--green-xpale); color: var(--green); padding-left: 1.5rem; }
.nav-cta {
  font-size: .74rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--warm-white);
  background: var(--green); padding: .65rem 1.5rem;
  text-decoration: none; border: 1px solid var(--green); transition: all .25s;
}
.nav-cta:hover { background: var(--green-mid); }

/* ── PAGE HEADER ── */
.page-header {
  padding: 10rem 4rem 5rem;
  background: linear-gradient(145deg, var(--green-xpale) 0%, var(--green-pale) 100%);
  position: relative; overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232d5a3d' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-header-eyebrow {
  font-size: .68rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--green);
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.page-header-eyebrow::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--green); }
.page-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1.08; color: var(--ink);
  max-width: 700px;
}
.page-header h1 em { font-style: italic; color: var(--green); }
.page-header-sub {
  margin-top: 1.25rem; font-size: 1rem; font-weight: 300; color: var(--slate);
  max-width: 540px; line-height: 1.8;
}
.page-header-meta {
  margin-top: 1.5rem; display: flex; gap: 2rem; flex-wrap: wrap;
}
.meta-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 400; color: var(--slate);
}
.meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ── SECTIONS ── */
section { padding: 6rem 4rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: .68rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--green);
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.section-label::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--green); }
.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300; line-height: 1.15; color: var(--ink);
}
.section-title em { font-style: italic; color: var(--green); }
.section-subtitle {
  margin-top: 1rem; font-size: .9rem; font-weight: 300;
  color: var(--slate); max-width: 560px; line-height: 1.8;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; font-size: .74rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--warm-white);
  background: var(--green); padding: 1rem 2rem;
  text-decoration: none; border: 1px solid var(--green); transition: all .25s;
}
.btn-primary:hover { background: var(--green-mid); }
.btn-ghost {
  display: inline-block; font-size: .74rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--green);
  text-decoration: none; padding-bottom: 2px; transition: color .2s;
}
.btn-ghost:hover { color: var(--green); }
.btn-light {
  display: inline-block; font-size: .74rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
  background: var(--cream); padding: 1.05rem 2.25rem;
  text-decoration: none; border: 1px solid var(--cream); transition: all .25s;
}
.btn-light:hover { background: var(--warm-white); }
.btn-green {
  display: inline-block; font-size: .74rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--warm-white);
  background: var(--green); padding: 1.1rem 2.25rem;
  text-decoration: none; border: 1px solid var(--green); transition: all .25s;
}
.btn-green:hover { background: var(--green-mid); }

/* ── MARQUEE ── */
.marquee-bar {
  background: var(--ink); padding: 1.6rem 4rem;
  display: flex; align-items: center; gap: 1.5rem; overflow: hidden;
}
.marquee-label {
  font-size: .63rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--green-light);
  white-space: nowrap; flex-shrink: 0;
}
.marquee-track { flex: 1; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.marquee-inner { display: flex; gap: 3rem; animation: mq 24s linear infinite; width: max-content; }
.marquee-inner span { font-size: .71rem; font-weight: 300; letter-spacing: .08em; color: rgba(247,245,241,.45); white-space: nowrap; font-style: italic; }
@keyframes mq { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── DELIVERABLES GRID ── */
.deliverables-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; margin-top: 3rem;
  background: var(--border-soft);
}
.deliverable-card {
  background: var(--warm-white); padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: background .2s;
}
.deliverable-card:hover { background: var(--green-xpale); }
.deliverable-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.deliverable-card:hover::before { transform: scaleX(1); }
.dc-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.dc-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem; font-weight: 400; color: var(--ink); margin-bottom: .65rem;
}
.dc-text { font-size: .82rem; font-weight: 300; color: var(--slate); line-height: 1.75; }

/* ── FIT SECTION ── */
.fit-section { background: var(--ink); }
.fit-section .section-title { color: var(--cream); }
.fit-section .section-label { color: rgba(247,245,241,.5); }
.fit-section .section-label::before { background: rgba(247,245,241,.3); }
.fit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 3rem; background: rgba(255,255,255,.07); }
.fit-item {
  background: var(--ink); padding: 2rem 2.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: background .2s;
}
.fit-item:hover { background: var(--ink-light); }
.fit-check { color: var(--green-light); font-size: 1rem; flex-shrink: 0; margin-top: .15rem; }
.fit-text { font-size: .88rem; font-weight: 300; color: rgba(247,245,241,.7); line-height: 1.7; }

/* ── CONTACT MINI ── */
.contact-mini { background: var(--cream); }
.contact-mini-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start;
}
.contact-mini h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem; font-weight: 300; line-height: 1.3; color: var(--ink); margin-bottom: .75rem;
}
.contact-mini p { font-size: .84rem; font-weight: 300; color: var(--slate); line-height: 1.8; margin-bottom: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.fg { display: flex; flex-direction: column; gap: .4rem; }
.fg label { font-size: .63rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--border-soft);
  background: var(--warm-white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-size: .86rem; font-weight: 300;
  color: var(--ink); resize: none; outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.fg input:focus, .fg textarea:focus { border-color: var(--green); }
.fg textarea { min-height: 120px; }
.form-submit {
  align-self: flex-start; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: .74rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: #fff;
  background: var(--green); padding: 1rem 2rem;
  border: 1px solid var(--green); cursor: pointer; transition: all .25s;
}
.form-submit:hover { background: var(--green-mid); }

/* ── CTA STRIP ── */
.cta-strip { background: var(--green); padding: 5rem 4rem; }
.cta-strip-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.cta-strip h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 300; line-height: 1.2; color: #f7f5f1;
}
.cta-strip h2 em { font-style: italic; color: rgba(247,245,241,.7); }
.cta-strip p { margin-top: .6rem; font-size: .84rem; font-weight: 300; color: rgba(247,245,241,.6); max-width: 400px; line-height: 1.75; }

/* ── FOOTER ── */
footer {
  background: var(--ink); padding: 3rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem; border-top: 1px solid rgba(45,90,61,.25);
}
.footer-logo { font-family: Georgia, 'Times New Roman', serif; font-size: 1.1rem; font-weight: 300; color: #f7f5f1; letter-spacing: .04em; }
.footer-logo span { color: var(--green-light); }
.footer-sub { font-family: Georgia, 'Times New Roman', serif; font-size: .7rem; font-style: italic; font-weight: 300; color: rgba(247,245,241,.28); margin-top: .2rem; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { font-size: .68rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,245,241,.35); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--green-light); }
.footer-copy { font-size: .66rem; color: rgba(247,245,241,.18); font-weight: 300; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 1.2rem 2rem; } nav.scrolled { padding: .9rem 2rem; }
  section, .page-header, .cta-strip { padding-left: 2rem; padding-right: 2rem; }
  .marquee-bar, footer { padding-left: 2rem; padding-right: 2rem; }
  .deliverables-grid { grid-template-columns: 1fr 1fr; }
  .contact-mini-inner { grid-template-columns: 1fr; gap: 3rem; }
  .fit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Optimized local portrait treatments */
.responsive-portrait { display:block; width:100%; height:auto; object-fit:cover; object-position:top center; }
.about-portrait { aspect-ratio: 4 / 5; min-height: 520px; }
.contact-portrait { aspect-ratio: 16 / 10; max-height: 340px; margin: 0 0 2rem; border: 1px solid var(--border); object-position: center 18%; }
.image-frame { overflow:hidden; background:var(--green-xpale); }

/* Safer form defaults and bot trap */
.form-honeypot { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
input, textarea, select, button { font: inherit; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline:3px solid rgba(45,90,61,.32); outline-offset:3px; }

/* Avoid needless animation and preserve legibility for users who request less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto !important; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .reveal { opacity:1 !important; transform:none !important; }
}
@media (max-width: 760px) {
  .about-portrait { min-height: 420px; }
  .contact-portrait { max-height: 300px; }
}

.about-photo-wrap picture, .hero-photo-wrap picture, .contact-photo-frame picture { display:block; width:100%; }
.about-portrait { width:100%; height:clamp(520px, 52vw, 680px); min-height:0; aspect-ratio:auto; object-fit:cover; object-position:center top; }
.contact-portrait { width:100%; height:330px; aspect-ratio:auto; object-fit:cover; object-position:center 20%; }
.hero-portrait { width:100%; height:auto; }
@media (max-width: 760px) {
  .about-portrait { height:500px; }
  .contact-portrait { height:280px; }
}

/* Footer logo image (replaces text logo on all pages) */
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

/* ── ANCHOR TARGETS ──
   Added 2026-07-30. The nav is fixed, so anchor jumps from the retired
   tier-page redirects (/services.html#assessment etc.) would land under it. */
:target { scroll-margin-top: 120px; }

/* ── DARK SECTION UTILITY ──
   Added 2026-08-02. Put class="section-dark" on any <section> that should carry
   the forest green band. Do not set the background inline.

   This exists because .section-title em is styled var(--green) globally (line 149).
   On a var(--green) background that renders green on green and the italic half of
   every heading disappears. This utility recolors every text element inside a dark
   band, including that em, so the bug cannot recur.

   Known instance of the same bug still open: #framework in home.css. See DEV_HANDOFF. */
.section-dark { background: var(--green); }
.section-dark .section-title { color: #f7f5f1; }
.section-dark .section-title em { color: var(--green-pale); }
.section-dark .section-label { color: rgba(247,245,241,.62); }
.section-dark .section-label::before { background: rgba(247,245,241,.42); }
.section-dark .section-subtitle { color: rgba(247,245,241,.75); }

/* Contact form delivery states */
.contact-form { display:flex; flex-direction:column; gap:1.2rem; }
.form-status { padding:1rem 1.1rem; margin-bottom:1.2rem; border:1px solid var(--border); font-size:.84rem; line-height:1.65; }
.form-status-success { background:#eef7f0; border-color:#a9cbb2; color:#234a31; }
.form-status-error { background:#fff2ef; border-color:#d9a497; color:#7a3025; }
.form-privacy-note { margin:0; font-size:.7rem; font-weight:300; color:var(--slate); line-height:1.6; }
.form-submit:disabled { opacity:.65; cursor:wait; }
@media (max-width:640px) {
  .contact-form > div[style*="grid-template-columns"] { grid-template-columns:1fr !important; }
}
