/* Energypreneurs Advisory — stylesheet
   One file, shared by every page. Edit colours and spacing here once
   and every page updates. */

:root {
  --ink:        #10201c;
  --ink-soft:   #33474180;
  --body:       #2f403b;
  --muted:      #6b7d77;
  --line:       #dfe5e2;
  --paper:      #ffffff;
  --paper-alt:  #f5f7f6;
  --accent:     #0f5c4a;
  --accent-dk:  #0a4034;
  --accent-lt:  #e8f1ee;

  --measure: 68ch;
  --wide: 1160px;
  --gap: clamp(1.5rem, 4vw, 3rem);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dk); }

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

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gap); }
.narrow { max-width: 780px; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 78px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.22rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a {
  color: var(--body); text-decoration: none;
  font-size: 0.9rem; padding: 0.4rem 0; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav a.on { color: var(--ink); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 4px; padding: 0.5rem 0.7rem; cursor: pointer;
  font-size: 0.9rem; color: var(--ink);
}

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gap) 1.2rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-head { position: relative; }
}

/* ---------- hero ---------- */

.hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--body); max-width: 62ch; line-height: 1.55;
}
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 1.1rem;
}

/* ---------- generic sections ---------- */

.band { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band.alt { background: var(--paper-alt); border-top: 1px solid var(--line); }

.page-head { padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head p { font-size: 1.1rem; max-width: 62ch; }

/* ---------- grids ---------- */

.grid { display: grid; gap: 1.6rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }

.card {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 1.6rem; background: var(--paper);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin-bottom: 0.35rem; font-size: 0.95rem; }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
.stat .n {
  font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--accent); line-height: 1; display: block; margin-bottom: 0.4rem;
}
.stat .l { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

/* ---------- people ---------- */

.person { text-align: left; }
.person img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 6px; background: var(--paper-alt); margin-bottom: 0.85rem;
}
.person .nm { font-weight: 600; color: var(--ink); font-size: 1rem; }
.person .rl { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.person .bio { font-size: 0.92rem; margin: 0.6rem 0 0; }
.person a.li { font-size: 0.85rem; display: inline-block; margin-top: 0.4rem; }

/* ---------- project entries ---------- */

.proj { padding: 2rem 0; border-top: 1px solid var(--line); }
.proj:first-of-type { border-top: 0; padding-top: 0.5rem; }
.proj .meta {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.5rem; font-weight: 600;
}
.proj h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.proj .figure {
  display: inline-block; font-family: var(--serif); color: var(--accent);
  font-size: 1.05rem; margin-bottom: 0.6rem;
}

/* ---------- the briefing series ---------- */

.briefs { list-style: none; margin: 0; padding: 0; max-width: 52rem; counter-reset: brief; }
.briefs li {
  display: flex; gap: 1.1rem; align-items: baseline;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
.briefs li:first-child { border-top: 1px solid var(--line); }
.briefs .num {
  font-family: var(--serif); font-size: 1.05rem; color: var(--accent);
  flex: 0 0 auto; min-width: 2.4rem; font-variant-numeric: tabular-nums;
}
.briefs li strong { color: var(--ink); font-weight: 600; }
.briefs li.pending { color: var(--muted); }
.briefs li.pending .num { color: var(--muted); }

.badge {
  display: inline-block; margin-left: 0.6rem; vertical-align: middle;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent-lt); color: var(--accent-dk);
  padding: 0.16rem 0.5rem; border-radius: 3px; font-weight: 600;
}

/* ---------- pipeline list ---------- */

.pipe { list-style: none; margin: 0; padding: 0; }
.pipe li {
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.96rem; display: flex; gap: 0.9rem; align-items: baseline;
}
.pipe .where {
  font-weight: 600; color: var(--ink); flex: 0 0 auto;
  min-width: 130px; font-size: 0.88rem;
}

/* ---------- callout / needs-input ---------- */

.note {
  border-left: 3px solid var(--accent); background: var(--accent-lt);
  padding: 1.1rem 1.3rem; border-radius: 0 5px 5px 0; margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

.todo {
  background: #fff6d9; border: 1px dashed #d0a72c; color: #6b5410;
  padding: 0.9rem 1.1rem; border-radius: 5px; margin: 1rem 0;
  font-size: 0.9rem;
}
.todo strong { color: #5a4409; }
.todo p:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 4px; text-decoration: none;
  font-size: 0.95rem; font-weight: 500; border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-lt); color: var(--accent-dk); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* ---------- photo strip ---------- */

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; }
.strip img { border-radius: 5px; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- speaking gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.shot { margin: 0; }
.shot img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 5px; background: var(--paper-alt);
}
.shot figcaption {
  font-size: 0.85rem; color: var(--muted); line-height: 1.45; margin-top: 0.55rem;
}
.shot figcaption strong { color: var(--ink); font-weight: 600; display: block; }

.shot.empty img {
  display: grid; place-items: center;
  border: 1px dashed var(--line);
}
.placeholder {
  aspect-ratio: 4 / 3; border: 1px dashed #d0a72c; border-radius: 5px;
  background: #fffdf5; display: grid; place-items: center;
  color: #a8842a; font-size: 0.85rem; text-align: center; padding: 1rem;
}

/* ---------- topic list ---------- */

.topics { list-style: none; margin: 0; padding: 0; }
.topics li {
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 1rem; align-items: baseline;
}
.topics li:first-child { border-top: 1px solid var(--line); }
.topics .num {
  font-family: var(--serif); color: var(--accent); font-size: 0.95rem;
  flex: 0 0 auto; min-width: 2rem;
}

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.contact-block h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.contact-block p { font-size: 0.96rem; margin-bottom: 0.4rem; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line); background: var(--paper-alt);
  padding: 3rem 0 2rem; margin-top: 0; font-size: 0.92rem;
}
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; }
.site-foot h4 {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem;
}
.site-foot a { color: var(--body); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.45rem; }
.foot-base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.86rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}

/* ---------- utilities ---------- */

.tight { margin-bottom: 0.4rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.skip {
  position: absolute; left: -9999px; background: var(--accent); color: #fff;
  padding: 0.7rem 1.2rem; z-index: 100;
}
.skip:focus { left: 0; top: 0; }
