/* Agnes Muthoni brand design system v1.1 (midnight navy accent, chosen 21 October 2026; was deep teal).
   Layout: editorial single column, spacious sections alternating cream, warm grey and ink. */
:root {
  --cream: #FAF7F4;
  --ink: #191919;
  --teal: #1F3A5F; /* accent: midnight navy */
  --teal-dark: #152A45;
  --sand: #D4A27F;
  --sand-light: #EDD9C5;
  --white: #FFFFFF;
  --gray-bg: #F2EDE8;
  --gray-border: #E8E0D8;
  --gray-text: #6B5F57;
  --gray-mid: #A8998F;
  --body-text: #2D2420;
  --ink-line: #3A3330;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-card: 14px;
  --radius-btn: 8px;
  --shadow: 0 4px 24px rgba(25, 25, 25, 0.07);
  --shadow-hover: 0 8px 40px rgba(25, 25, 25, 0.11);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--body-text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
em.accent { font-style: italic; color: var(--teal); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--white); padding: 8px 14px; }

/* Bands and gutters */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: 6rem; }
.band.alt { background: var(--gray-bg); }
.band.dark { background: var(--ink); color: #E9E2DB; }
.band.dark h2, .band.dark h3 { color: var(--cream); }
@media (max-width: 720px) { .band { padding-block: 4rem; } }

.label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}
.band.dark .label { color: var(--sand); }
.lede { font-size: 1.2rem; color: var(--gray-text); max-width: 40rem; }
.band.dark .lede { color: #C9BEB4; }
.stack { display: grid; gap: 1.25rem; }
.measure { max-width: 42rem; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--cream); }
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(250, 247, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { text-decoration: none; color: var(--ink); display: grid; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; }
.brand span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-text); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; color: var(--body-text); font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 0.9rem; padding: 0.55rem 1rem; border: 1.5px solid var(--teal); border-radius: var(--radius-btn); color: var(--teal); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--teal); color: var(--white); }
  .menu-panel { position: absolute; right: 0; top: calc(100% + 10px); background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-card); box-shadow: var(--shadow-hover); padding: 0.75rem; display: grid; min-width: 230px; }
  .menu-panel a { text-decoration: none; color: var(--body-text); padding: 0.7rem 0.8rem; border-radius: 6px; font-weight: 500; }
  .menu-panel a:hover { background: var(--gray-bg); }
  .menu-panel .btn { margin-top: 0.4rem; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.9rem;
  padding: 0.9rem 2rem; border-radius: var(--radius-btn);
  text-decoration: none; border: 1.5px solid var(--teal);
  background: var(--teal); color: var(--white);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); box-shadow: 0 6px 22px rgba(31, 58, 95, 0.30); }
.btn.outline { background: transparent; color: var(--teal); }
.btn.outline:hover { background: var(--teal); color: var(--white); }
.btn.lg { font-size: 1.05rem; padding: 1.05rem 2.5rem; }
.btn.small { padding: 0.6rem 1.2rem; }
.band.dark .btn.outline { color: var(--cream); border-color: var(--sand); }
.band.dark .btn.outline:hover { background: var(--sand); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* Hero */
.hero {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 88% 12%, rgba(212, 162, 127, 0.22), transparent 42%),
    radial-gradient(rgba(25, 25, 25, 0.05) 1px, transparent 1.4px);
  background-size: auto, 22px 22px;
  border-bottom: 1px solid var(--gray-border);
  padding-block: 5rem 4.5rem;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 3.5rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .lede { margin-top: 1.5rem; }
.hero .actions { margin-top: 2.2rem; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius-card); box-shadow: var(--shadow-hover); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.hero-photo figcaption { margin-top: 0.7rem; font-size: 0.82rem; color: var(--gray-text); }
.hero.simple { padding-block: 4.5rem 4rem; }
.hero.simple .measure { max-width: 46rem; }
@media (max-width: 860px) {
  .hero { padding-block: 3rem 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo { max-width: 460px; }
}

/* Credibility strip */
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-block: 1px solid var(--gray-border); }
.proof-strip > div { padding: 2rem 1.75rem; border-left: 1px solid var(--gray-border); min-width: 0; }
.proof-strip > div:first-child { border-left: 0; padding-left: 0; }
.proof-strip .big { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.7rem); color: var(--teal); line-height: 1; display: block; margin-bottom: 0.6rem; }
.proof-strip p { color: var(--body-text); font-size: 0.98rem; }
.names { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; align-items: baseline; color: var(--gray-text); font-size: 0.95rem; }
.names .label { margin: 0 0.4rem 0 0; color: var(--gray-mid); }
.names b { font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
@media (max-width: 760px) {
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > div { border-left: 0; border-top: 1px solid var(--gray-border); padding: 1.5rem 0; }
  .proof-strip > div:first-child { border-top: 0; }
}

/* Offers */
.section-head { display: grid; gap: 1rem; margin-bottom: 3rem; max-width: 44rem; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.offer {
  background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-card);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit;
  transition: box-shadow 0.2s, transform 0.2s; min-width: 0;
}
.offer:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: inherit; }
.offer .num { font-family: var(--serif); font-size: 1.1rem; color: var(--sand); }
.offer h3 { font-size: 1.7rem; }
.offer p { color: var(--gray-text); flex: 1; }
.offer .more { font-weight: 700; color: var(--teal); font-size: 0.92rem; }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } }

/* Call me when */
.when { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; align-items: start; }
.when > * { min-width: 0; }
.when ul { list-style: none; margin: 0; padding: 0; display: grid; }
.when li { font-size: 1.15rem; color: var(--ink); padding: 1.15rem 0 1.15rem 2.2rem; border-top: 1px solid var(--gray-border); position: relative; }
.when li:last-child { border-bottom: 1px solid var(--gray-border); }
.when li::before { content: ""; position: absolute; left: 0; top: 1.75rem; width: 1.1rem; height: 2px; background: var(--teal); }
.when .photo img { border-radius: var(--radius-card); margin-top: 2rem; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.when .photo figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--gray-text); }
@media (max-width: 860px) { .when { grid-template-columns: 1fr; gap: 2rem; } }

/* Baseline, target, result */
.btr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; counter-reset: step; }
.btr > div { border-top: 1px solid var(--ink-line); padding-top: 1.5rem; min-width: 0; }
.btr h3 { font-size: 1.9rem; margin-bottom: 0.6rem; }
.btr h3::before { counter-increment: step; content: counter(step) ". "; color: var(--sand); }
.btr p { color: #C9BEB4; }
@media (max-width: 760px) { .btr { grid-template-columns: 1fr; } }

/* Lists of work and credentials */
.work { list-style: none; margin: 0; padding: 0; display: grid; }
.work li { display: grid; grid-template-columns: 15rem 1fr; gap: 2rem; padding: 1.6rem 0; border-top: 1px solid var(--gray-border); }
.work li:last-child { border-bottom: 1px solid var(--gray-border); }
.work li > * { min-width: 0; }
.work .org { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); line-height: 1.2; }
.work .role { display: block; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-text); margin-top: 0.35rem; }
@media (max-width: 760px) { .work li { grid-template-columns: 1fr; gap: 0.6rem; } }

/* Generic two-column and cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }
.card { background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-card); padding: 2rem; display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.card.warm { border-color: var(--sand-light); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sand); }
.meta { font-size: 0.85rem; color: var(--gray-text); }
.topic-num { font-family: var(--serif); color: var(--sand); font-size: 1.1rem; }
.photo-frame img { border-radius: var(--radius-card); width: 100%; object-fit: cover; }
.photo-frame figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--gray-text); }

/* Steps with durations */
.steps { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-card); padding: 2rem; display: grid; gap: 0.7rem; align-content: start; min-width: 0; }
.steps .when-tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Six dimensions */
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--gray-border); border-left: 1px solid var(--gray-border); }
.dims > div { padding: 1.5rem; border-right: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border); min-width: 0; }
.dims b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); margin-bottom: 0.3rem; }
.dims p { font-size: 0.95rem; color: var(--gray-text); }
@media (max-width: 760px) { .dims { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .dims { grid-template-columns: 1fr; } }

/* Closing call to action */
.closing { text-align: left; display: grid; gap: 1.25rem; justify-items: start; }
.closing h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.signoff { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--sand); }

/* Contact details */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.contact-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--gray-border); }
.contact-list li:last-child { border-bottom: 1px solid var(--gray-border); }
.contact-list span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-text); padding-top: 0.2rem; }
.contact-list a { word-break: break-word; font-weight: 500; }
@media (max-width: 480px) { .contact-list li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Pulse check */
.quiz fieldset { border: 0; margin: 0; padding: 1.6rem 0; border-top: 1px solid var(--gray-border); display: grid; gap: 0.9rem; min-width: 0; }
.quiz legend { font-weight: 500; color: var(--ink); font-size: 1.08rem; padding: 0; float: left; width: 100%; }
.quiz legend small { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.35rem; }
.scale { clear: both; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale span { display: grid; place-items: center; text-align: center; min-height: 3.2rem; padding: 0.4rem; border: 1.5px solid var(--gray-border); border-radius: var(--radius-btn); background: var(--white); font-size: 0.8rem; line-height: 1.25; cursor: pointer; color: var(--gray-text); }
.scale span b { display: block; font-size: 1.05rem; color: var(--ink); }
.scale input:checked + span { border-color: var(--teal); background: var(--teal); color: var(--white); }
.scale input:checked + span b { color: var(--white); }
.scale input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
@media (max-width: 520px) { .scale span { font-size: 0; min-height: 2.8rem; } .scale span b { font-size: 1.05rem; } }
.scale-key { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--gray-text); }
.quiz .error { color: #C0392B; font-weight: 500; }
.results { margin-top: 1rem; }
.bars { display: grid; gap: 1rem; margin-top: 1.5rem; }
.bar { display: grid; grid-template-columns: 11rem 1fr 3rem; gap: 1rem; align-items: center; }
.bar .track { height: 12px; background: var(--gray-bg); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--teal); border-radius: 99px; }
.bar.low .fill { background: var(--sand); }
.bar .val { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
@media (max-width: 520px) { .bar { grid-template-columns: 1fr 3rem; } .bar .track { grid-column: 1 / -1; grid-row: 2; } }
.score-big { font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--teal); }

/* Footer */
.site-footer { background: var(--ink); color: #C9BEB4; padding-block: 4rem 2.5rem; font-size: 0.95rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot-grid > * { min-width: 0; }
.foot-grid h4 { margin: 0 0 0.9rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot-brand strong { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--cream); display: block; }
.foot-brand em { font-family: var(--serif); color: var(--sand); }
.foot-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem; color: var(--gray-mid); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Fixes after visual check */
.nav a.btn, .menu-panel a.btn { color: var(--white); }
.nav a.btn:hover, .menu-panel a.btn:hover { color: var(--white); background: var(--teal-dark); }
.hero .btn.lg { padding: 1rem 1.6rem; }
.site-footer { border-top: 1px solid var(--ink-line); }

/* Navy accent: primary buttons on ink bands switch to cream so they stand out */
.band.dark .btn:not(.outline) { background: var(--cream); border-color: var(--cream); color: var(--teal); }
.band.dark .btn:not(.outline):hover { background: var(--sand); border-color: var(--sand); color: var(--ink); box-shadow: none; }

/* Pulse check button with its question line */
.actions { align-items: flex-end; }
.nudge { display: grid; gap: 0.45rem; }
.nudge span { font-size: 0.85rem; color: var(--gray-text); }
.band.dark .nudge span { color: #C9BEB4; }

/* Closing call to action: light warm band so only the footer is dark */
.band.cta-band { background: var(--sand-light); padding-block: 4.5rem; border-top: 1px solid var(--gray-border); }
.cta-band .label { color: var(--teal); }
.cta-band .lede { color: var(--body-text); }
.cta-band .nudge span { color: var(--body-text); }
@media (max-width: 720px) { .band.cta-band { padding-block: 3.5rem; } }
.nudge-alt { font-size: 0.85rem; color: var(--body-text); }
.nudge-alt a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.band.dark .nudge-alt { color: #C9BEB4; }
.band.dark .nudge-alt a { color: var(--cream); }
.logos { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.6rem; }
.logos .label { margin: 0; color: var(--gray-mid); flex-basis: 100%; }
.logos img { height: 40px; width: auto; opacity: 0.85; }
.logos img.lg-sc { height: 44px; }
.logos img.lg-tribbe { height: 30px; }
.logos + .names { margin-top: 1.4rem; }
@media (max-width: 720px) { .logos { gap: 1.2rem 1.8rem; } .logos img { height: 30px; } .logos img.lg-sc { height: 34px; } .logos img.lg-tribbe { height: 23px; } }
