/* ==========================================================================
   Edvolutions Consulting — Design System
   Void #0A0A0A · Paper #F6F1E4 · Ink #1C1A16 · Gold #B9902E · Gold-bright #E7C766 · Slate #5B584F
   Display: Source Serif 4 · Body: IBM Plex Sans · Utility: IBM Plex Mono
   ========================================================================== */

:root {
  --void: #0a0a0a;
  --void-soft: #17150f;
  --paper: #f6f1e4;
  --paper-dim: #efe8d6;
  --ink: #1c1a16;
  --gold: #b9902e;
  --gold-bright: #e7c766;
  --slate: #5b584f;
  --line: #ddd3b4;
  --line-dark: #3a362c;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; color: var(--ink); }

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover { color: var(--ink); }

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

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

section { position: relative; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
}
.on-dark .eyebrow { color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--void);
}
.btn-gold:hover { background: var(--gold-bright); color: var(--void); }

.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }

.btn-outline-light {
  border-color: rgba(246, 241, 228, 0.5);
  color: var(--paper);
  background: transparent;
}
.btn-outline-light:hover { background: var(--paper); color: var(--void); border-color: var(--paper); }

/* ---------- Nav ---------- */
.site-nav {
  background: var(--void);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line-dark);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-nav .logo img { height: 46px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.82;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold-bright); }
.nav-cta { display: flex; align-items: center; gap: 24px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--void);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 32px; border-top: 1px solid var(--line-dark); width: 100%; }
  .nav-cta .btn-gold { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--void);
  color: var(--paper);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid img { height: 44px; margin-bottom: 18px; }
.footer-grid p { color: rgba(246, 241, 228, 0.65); font-size: 0.95rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(246, 241, 228, 0.8); font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(246, 241, 228, 0.45);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Hero (dark) ---------- */
.hero {
  background: var(--void);
  color: var(--paper);
  padding: 130px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { color: var(--paper); }
.hero .lede {
  font-size: 1.2rem;
  color: rgba(246, 241, 228, 0.78);
  max-width: 620px;
  margin-bottom: 2.2em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-seal {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: auto;
  opacity: 0.5;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-seal { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 72px 0; }
.section-paper { background: var(--paper); }
.section-dim { background: var(--paper-dim); }
.section-dark { background: var(--void); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: rgba(246, 241, 228, 0.78); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { font-size: 1.08rem; color: var(--slate); }
.section-dark .section-head p { color: rgba(246, 241, 228, 0.78); }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.stat .label {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--slate);
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}

/* ---------- Category cards (home) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.category-card {
  background: var(--paper);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}
.category-card:hover { background: #fffdf6; }
.category-card .cat-index {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.category-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.category-card p { font-size: 0.92rem; color: var(--slate); flex-grow: 1; }
.category-card a { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* ---------- Partner cards ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.partner-card {
  background: #fffdf6;
  border: 1px solid var(--line);
  padding: 40px 32px;
  text-align: center;
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.partner-card:hover { border-color: var(--gold); }
.partner-card .partner-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.partner-card h3 { font-size: 1.2rem; margin: 0; }
.partner-card .partner-logo {
  height: 60px;
  width: auto;
  max-width: 100%;
}
.partner-card .partner-logo-sm {
  height: 34px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 860px) {
  .partner-grid { grid-template-columns: 1fr; }
}

.partner-placeholder {
  border: 1px dashed var(--line);
  padding: 48px;
  text-align: center;
  color: var(--slate);
  font-size: 0.95rem;
}

/* ---------- Simple directory list (broader coaching experience) ---------- */
.simple-list {
  columns: 3;
  column-gap: 40px;
  font-size: 0.92rem;
  color: var(--ink);
}
.simple-list p {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.list-subhead {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}
@media (max-width: 860px) {
  .simple-list { columns: 2; }
}
@media (max-width: 600px) {
  .simple-list { columns: 1; }
}

/* ---------- Dossier cards (services) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--slate);
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 860px) {
  .dossier-grid { grid-template-columns: 1fr; }
}

.dossier-card {
  background: #fffdf6;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  position: relative;
  transition: border-color 0.2s ease;
}
.dossier-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, transparent 50%, var(--line) 50%);
}
.dossier-card.open { border-color: var(--gold); }

.dossier-summary {
  padding: 28px 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dossier-cat {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.dossier-summary h3 { margin-bottom: 2px; font-size: 1.25rem; }
.dossier-desc { color: var(--slate); font-size: 0.95rem; margin: 0; }
.dossier-toggle {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.dossier-toggle .plus { transition: transform 0.2s ease; }
.dossier-card.open .dossier-toggle .plus { transform: rotate(45deg); }

.dossier-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-top: 1px solid var(--line);
}
.dossier-card.open .dossier-detail { max-height: 600px; }
.dossier-detail-inner { padding: 24px 30px 30px; display: grid; gap: 16px; }
.field-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.field-value { font-size: 0.92rem; color: var(--ink); margin: 0; }
.emph { font-style: italic; color: var(--gold); font-weight: 600; }

/* ---------- Bio / About ---------- */
.bio-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
.bio-portrait {
  background: var(--void);
  aspect-ratio: 3/4;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.bio-portrait svg { width: 62%; height: auto; }
.credential-list { list-style: none; margin: 24px 0 0; padding: 0; }
.credential-list li {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--slate);
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.credential-list li:first-child { border-top: none; }
.credential-list strong { color: var(--ink); font-family: var(--sans); font-weight: 600; display: block; margin-bottom: 2px; }

.media-frame {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 2px;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.media-caption {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 14px;
  letter-spacing: 0.01em;
}

@media (max-width: 860px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-portrait { max-width: 260px; }
}

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
}
.pub-list li:last-child { border-bottom: 1px solid var(--line); }
.pub-list .pub-year { font-family: var(--mono); font-size: 0.8rem; color: var(--gold); }
.pub-list .pub-title { font-size: 0.96rem; }
.pub-list .pub-venue { color: var(--slate); font-size: 0.88rem; }
@media (max-width: 600px) {
  .pub-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Timeline (approach steps) ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.approach-item h4 { color: var(--gold-bright); font-family: var(--mono); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 14px; }
.approach-item p { font-size: 0.95rem; }
@media (max-width: 860px) {
  .approach-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-card {
  background: #fffdf6;
  border: 1px solid var(--line);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.contact-card h3 { margin-bottom: 6px; }
.contact-email {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--gold);
}
.step-list { display: grid; gap: 24px; margin: 40px 0; }
.step-item { display: flex; gap: 22px; }
.step-num {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.95rem;
  flex-shrink: 0;
  width: 28px;
}
.step-item h4 { margin-bottom: 6px; font-size: 1rem; }
.step-item p { font-size: 0.92rem; color: var(--slate); margin: 0; }

@media (max-width: 700px) {
  .contact-card { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--void);
  color: var(--paper);
  padding: 90px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--paper); max-width: 700px; margin: 0 auto 0.5em; }
.cta-banner .lede { color: rgba(246,241,228,0.75); max-width: 560px; margin: 0 auto 2em; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}
