/* ============================================================
   EP ADVISORY — SHARED STYLESHEET
   Palette: sage green / cream / charcoal
   Type: Fraunces (display), Inter (body), IBM Plex Mono (data/labels)
   ============================================================ */

:root {
  /* Color tokens */
  --charcoal: #252420;
  --charcoal-soft: #3a382f;
  --sage: #6b7f5e;
  --sage-dark: #4a5a40;
  --sage-light: #a9b89c;
  --cream: #f6f2e9;
  --cream-warm: #efe9da;
  --white: #fbfaf6;
  --line: rgba(37, 36, 32, 0.12);
  --line-soft: rgba(37, 36, 32, 0.08);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Scale */
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1180px;
  --shadow-sm: 0 1px 2px rgba(37, 36, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(37, 36, 32, 0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--charcoal-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sage-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--sage);
  display: inline-block;
}

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

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* Visually-hidden but accessible */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--charcoal); color: var(--cream);
  padding: 12px 20px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--sage-dark); color: var(--white); box-shadow: 0 2px 10px rgba(74, 90, 64, 0.28); }
.btn-primary:hover { background: var(--sage); box-shadow: 0 4px 14px rgba(74, 90, 64, 0.36); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--charcoal); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--sage-dark); padding: 13px 4px; }
.btn-ghost:hover { color: var(--charcoal); }
.btn-ghost::after { content: "→"; margin-left: 2px; transition: transform 0.18s var(--ease); }
.btn-ghost:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--charcoal);
}
.brand-mark {
  width: 32px; height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.96rem; font-weight: 500; color: var(--charcoal-soft);
  transition: color 0.18s var(--ease);
  position: relative;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--charcoal); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--sage);
}
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .main-nav ul { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line);
    background: transparent;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .header-cta.desktop-only { display: none; }
  .mobile-drawer {
    position: fixed; inset: 0; background: var(--white); z-index: 200;
    display: flex; flex-direction: column; padding: 20px 24px 40px;
    transform: translateX(100%); transition: transform 0.28s var(--ease);
  }
  .mobile-drawer.open { transform: translateX(0); }
  .mobile-drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
  .mobile-drawer nav ul { display: flex; flex-direction: column; gap: 4px; }
  .mobile-drawer nav a { display: block; padding: 16px 4px; font-size: 1.25rem; font-family: var(--font-display); border-bottom: 1px solid var(--line-soft); }
  .mobile-drawer .btn-primary { margin-top: 28px; width: 100%; justify-content: center; }
  .mobile-close { width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line); background: transparent; display: flex; align-items: center; justify-content: center; }
}
@media (min-width: 881px) { .mobile-drawer, .mobile-close { display: none; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--sage-dark);
  padding-top: 28px;
}
.breadcrumb a { color: var(--sage-dark); }
.breadcrumb a:hover { color: var(--charcoal); }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--charcoal);
  color: var(--cream);
}
.trust-bar .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 28px;
  padding-top: 14px; padding-bottom: 14px;
  text-align: center;
}
.trust-bar p {
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin: 0;
}
.trust-bar strong { color: var(--sage-light); font-weight: 600; }
.trust-dot { color: var(--sage-light); opacity: 0.6; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--sage-dark); }
.hero-lede { font-size: 1.15rem; max-width: 46ch; margin-bottom: 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero-tags span {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--charcoal-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- Journey (Start / Grow / Scale) ---------- */
.journey-band { background: var(--cream); }
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 780px) { .journey-grid { grid-template-columns: 1fr; } }
.journey-card {
  background: var(--white); padding: 36px 32px; position: relative;
}
.journey-card .stage-label {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage-dark); display: block; margin-bottom: 14px;
}
.journey-card h3 { margin-bottom: 10px; }
.journey-card p { font-size: 0.95rem; margin-bottom: 16px; }
.journey-card .stage-tags { font-family: var(--font-mono); font-size: 0.78rem; color: var(--charcoal-soft); opacity: 0.8; line-height: 1.6; }
.journey-card .stage-arrow { position: absolute; right: -1px; top: 50%; transform: translate(50%, -50%); width: 26px; height: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; z-index: 2; color: var(--sage-dark); }
@media (max-width: 780px) { .journey-card .stage-arrow { display: none; } }

/* ---------- Books Should Tell You Something ---------- */
.clarity-section { }
.clarity-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px;
}
@media (max-width: 900px) { .clarity-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .clarity-flow { grid-template-columns: 1fr; } }
.clarity-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; position: relative;
}
.clarity-step .step-index { font-family: var(--font-mono); font-size: 0.78rem; color: var(--sage-dark); margin-bottom: 14px; display: block; }
.clarity-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.clarity-step p { font-size: 0.92rem; }
.clarity-connector {
  display: none;
}
@media (min-width: 901px) {
  .clarity-flow { position: relative; }
  .clarity-step:not(:last-child)::after {
    content: "→"; position: absolute; right: -22px; top: 32px; color: var(--sage); font-size: 1rem;
  }
}
.clarity-outcome {
  margin-top: 40px; background: var(--charcoal); color: var(--cream); border-radius: var(--radius);
  padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.clarity-outcome p { color: var(--cream); font-size: 1.05rem; max-width: 52ch; margin: 0; }
.clarity-outcome strong { color: var(--sage-light); }

/* ---------- Services grid (home teaser) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  background: var(--white);
}
.service-card:hover { border-color: var(--sage); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card .num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--sage-dark); }
.service-card h3 { margin: 14px 0 8px; font-size: 1.12rem; }
.service-card p { font-size: 0.93rem; margin-bottom: 16px; }

/* ---------- Human positioning section ---------- */
.human-section { background: var(--cream); }
.human-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 880px) { .human-grid { grid-template-columns: 1fr; gap: 32px; } }
.human-list { display: grid; gap: 22px; }
.human-list li { display: flex; gap: 14px; align-items: flex-start; }
.human-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); margin-top: 9px; flex-shrink: 0; }
.human-list p { margin: 0; font-size: 0.98rem; }

/* ---------- Who we serve grid ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .industry-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .industry-grid { grid-template-columns: 1fr; } }
.industry-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: var(--white); }
.industry-card .eyebrow { margin-bottom: 10px; }
.industry-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.industry-card > p { font-size: 0.93rem; margin-bottom: 18px; }
.industry-points { display: grid; gap: 12px; }
.industry-points dt { font-weight: 600; font-size: 0.88rem; color: var(--charcoal); }
.industry-points dd { font-size: 0.86rem; margin: 2px 0 0; color: var(--charcoal-soft); }

/* ---------- Process (How We Work) ---------- */
.process-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.process-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line);
}
.process-row .step-num { font-family: var(--font-mono); font-size: 1rem; color: var(--sage-dark); padding-top: 4px; }
.process-row h3 { margin-bottom: 8px; }
.process-row p { max-width: 60ch; }

/* ---------- Values / pillars (Design psychology cards) ---------- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 780px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar-card { text-align: center; padding: 8px; }
.pillar-card .pillar-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--cream); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px; color: var(--sage-dark); font-family: var(--font-mono); font-size: 1.05rem;
}
.pillar-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.pillar-card p { font-size: 0.92rem; }

/* ---------- Service detail page ---------- */
.service-detail {
  border-top: 1px solid var(--line); padding: 64px 0;
}
.service-detail:first-of-type { border-top: none; }
.service-detail-head { display: grid; grid-template-columns: 120px 1fr; gap: 28px; margin-bottom: 36px; }
@media (max-width: 700px) { .service-detail-head { grid-template-columns: 1fr; gap: 10px; } }
.service-detail-head .label { font-family: var(--font-mono); font-size: 0.85rem; color: var(--sage-dark); }
.service-detail-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 32px; }
@media (max-width: 780px) { .service-detail-columns { grid-template-columns: 1fr; } }
.service-detail-columns h4 { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage-dark); margin-bottom: 10px; }
.service-detail-columns p { font-size: 0.98rem; }
.service-lists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (max-width: 780px) { .service-lists { grid-template-columns: 1fr; } }
.service-lists h4 { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage-dark); margin-bottom: 14px; }
.service-lists ul { display: grid; gap: 10px; }
.service-lists li { font-size: 0.94rem; padding-left: 20px; position: relative; color: var(--charcoal-soft); }
.service-lists li::before { content: "—"; position: absolute; left: 0; color: var(--sage); }
.service-fraud { background: var(--cream); border-radius: var(--radius); padding: 40px; }
.service-note { font-size: 0.86rem; color: var(--charcoal-soft); margin-top: 14px; font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal); color: var(--cream); border-radius: var(--radius);
  padding: 56px 48px; text-align: center; margin: 0 auto;
}
.cta-band h2 { color: var(--cream); margin-bottom: 14px; }
.cta-band p { color: var(--sage-light); max-width: 52ch; margin: 0 auto 28px; }
.cta-band .btn-primary { background: var(--sage); color: var(--charcoal); }
.cta-band .btn-primary:hover { background: var(--sage-light); }
.cta-band .btn-secondary { border-color: rgba(246,242,233,0.3); color: var(--cream); }
.cta-band .btn-secondary:hover { border-color: var(--cream); }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- About page ---------- */
.about-lede { font-size: 1.2rem; max-width: 62ch; }
.credential-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.credential-tags span {
  font-family: var(--font-mono); font-size: 0.8rem; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; color: var(--charcoal-soft);
}
.disclosure-box { background: var(--cream); border-radius: var(--radius); padding: 32px 36px; }
.disclosure-box p { font-size: 0.98rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { margin-bottom: 14px; }
.contact-facts { margin-top: 30px; display: grid; gap: 20px; }
.contact-fact dt { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage-dark); margin-bottom: 4px; }
.contact-fact dd { margin: 0; font-size: 1rem; }
.contact-fact a { color: var(--charcoal); border-bottom: 1px solid var(--sage); }
.contact-fact a:hover { color: var(--sage-dark); }

.form-card { background: var(--cream); border-radius: var(--radius); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.86rem; font-weight: 600; color: var(--charcoal); }
.form-field .optional { font-weight: 400; color: var(--charcoal-soft); font-style: italic; }
.form-field input, .form-field select, .form-field textarea {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 0.96rem; width: 100%;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--sage); }
.form-note { font-size: 0.82rem; color: var(--charcoal-soft); margin-top: 14px; }
.form-success {
  display: none; background: var(--white); border: 1px solid var(--sage); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--cream-warm); padding: 64px 0 30px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(246,242,233,0.14);
}
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--cream); }
.footer-brand p { color: rgba(246,242,233,0.65); margin-top: 14px; font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--sage-light); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: rgba(246,242,233,0.8); font-size: 0.93rem; }
.footer-col a:hover { color: var(--cream); }
.footer-col .btn-primary { background: var(--sage); color: var(--charcoal); margin-top: 6px; }
.footer-col .btn-primary:hover { background: var(--sage-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 26px; font-size: 0.82rem; color: rgba(246,242,233,0.55);
}
.footer-bottom a { color: rgba(246,242,233,0.55); }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
