/* Atieno Bird Leadership Lab, shared stylesheet
   Design system: Marcellus SC (H1), Marcellus (H2/H3), Crimson Text (body).
   All text left-aligned within centered containers.
   Sections alternate cream/navy backgrounds for rhythm. */

:root {
  --cream: #F6F1E8;
  --navy: #08152D;
  --ink: #2A2520;
  --grad-1: #0F2347;
  --grad-2: #2A2A6C;
  --grad-3: #5A2F80;
  --grad-4: #7A3A95;
  --grad-5: #8C3E85;
  --rule-gradient: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4), var(--grad-5));
  --aqua: #7BC8D0;
  --pink: #D098B8;
  --purple: #5A2F80;
  --sky: #A7D0EE;
  /* Spacing scale (8px base) */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;
}

/* Navy section accent links */
.navy-section a { color: var(--sky); }
.navy-section a:hover { color: var(--aqua); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }

body {
  font-family: "Crimson Text", Georgia, serif;
  font-size: 21px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--grad-4); }

/* PAGE GRID + RIBBON */
.page {
  display: grid;
  grid-template-columns: 80px 1fr;
  min-height: 100vh;
  background: var(--cream);
}
.ribbon {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
.ribbon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.content { background: var(--cream); min-width: 0; }
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
  .ribbon { display: none; }
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(8, 21, 45, 0.1);
  padding: var(--s-3) var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}
.nav-logo { height: 88px; width: auto; flex-shrink: 0; }
.nav-menu {
  display: flex;
  gap: var(--s-4);
  list-style: none;
  flex-wrap: wrap;
}
.nav-menu a {
  font-family: "Marcellus SC", serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--navy);
  text-decoration: none;
}
.nav-menu a:hover { color: var(--purple); }
.nav-menu a.active { color: var(--purple); border-bottom: 1px solid var(--purple); padding-bottom: 3px; }
@media (max-width: 900px) { .nav { padding: var(--s-2) var(--s-3); flex-wrap: wrap; gap: var(--s-2); } }
@media (max-width: 700px) {
  .nav-logo { height: 56px; }
  .nav-menu { gap: var(--s-2); }
  .nav-menu a { font-size: 12px; letter-spacing: 0.1em; }
}

/* SECTIONS: all text-align left, symmetric padding */
section {
  padding: var(--s-7) var(--s-6);
  position: relative;
  text-align: left;
}
@media (max-width: 900px) { section { padding: var(--s-6) var(--s-3); } }

.cream-section { background: var(--cream); color: var(--ink); }
.navy-section  { background: var(--navy);  color: var(--cream); }

/* CONTAINERS: centered with max-width, content inside is left-aligned */
.container      { max-width: 880px; margin: 0 auto; }
.container-wide { max-width: 1200px; margin: 0 auto; }


/* TYPOGRAPHY */
h1 {
  font-family: "Marcellus SC", serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 var(--s-3);
}
.navy-section h1 { color: var(--cream); }

h2 {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 3.8vw, 2.8rem);
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 var(--s-3);
}
.navy-section h2 { color: var(--cream); }

h3 {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 var(--s-2);
}
.navy-section h3 { color: var(--cream); }

p {
  margin: 0 0 1.15em;
  max-width: none;
  font-size: 21px;
  line-height: 1.7;
}

.lede {
  font-size: clamp(1.25rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  max-width: none;
  margin: 0 0 var(--s-4);
}

.eyebrow {
  font-family: "Marcellus SC", serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--purple);
  margin: 0 0 var(--s-3);
  display: block;
}
.navy-section .eyebrow { color: var(--aqua); }

/* CTAs */
.cta-group {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-4);
}
.btn {
  font-family: "Marcellus SC", serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  padding: 18px 36px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.btn-primary {
  background: var(--rule-gradient);
  color: var(--cream);
  box-shadow: 0 2px 12px rgba(90, 47, 128, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 47, 128, 0.35);
  color: var(--cream);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.navy-section .btn-secondary { color: var(--cream); border-color: var(--cream); }
.btn-secondary:hover { background: var(--navy); color: var(--cream); }
.navy-section .btn-secondary:hover { background: var(--cream); color: var(--navy); }

/* ENDMARK */
.endmark {
  height: 4px;
  width: 100%;
  background: var(--rule-gradient);
}

/* HERO */
.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-7);
  align-items: center;
  padding-top: var(--s-6);
  padding-bottom: var(--s-7);
}
.hero-text { min-width: 0; max-width: 600px; }
.hero-image { max-width: 480px; width: 100%; justify-self: start; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: var(--s-5); min-height: auto; padding-top: var(--s-5); padding-bottom: var(--s-6); }
  .hero-image { max-width: 440px; justify-self: stretch; }
}

/* GRIDS */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-4);
}
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-4);
}
@media (max-width: 900px) { .cols-3, .cols-2 { grid-template-columns: 1fr; gap: var(--s-4); } }

.col h3 { margin-bottom: var(--s-2); }
.col p { font-size: 1rem; margin-bottom: 0; max-width: none; }

/* SIDEBAR LAYOUT */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s-7);
  align-items: start;
}
.with-sidebar--left { grid-template-columns: 360px 1fr; }
.with-sidebar .sidebar img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 12px 36px rgba(8,21,45,0.2);
}
.with-sidebar .sidebar .caption {
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(42,37,32,0.7);
  margin-top: var(--s-2);
}
@media (max-width: 900px) { .with-sidebar { grid-template-columns: 1fr; gap: var(--s-5); } }


/* PHOTO FRAME (offset gradient block behind photo, Forum-style) */
.photo-frame {
  position: relative;
  display: block;
  align-self: stretch;
}
.photo-frame::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  z-index: 0;
  border-radius: 2px;
}
.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 14px 38px rgba(8, 21, 45, 0.22);
  display: block;
}
.photo-frame--tr::before {
  top: -18px;
  right: -18px;
  background: linear-gradient(135deg, var(--grad-3), var(--grad-5));
}
.photo-frame--bl::before {
  bottom: -18px;
  left: -18px;
  background: linear-gradient(135deg, var(--grad-2), var(--grad-3));
}
/* Aspect ratios for framed photos */
.photo-frame--portrait img { aspect-ratio: 4/5; object-position: center 25%; }
.photo-frame--square   img { aspect-ratio: 1/1; }

/* PORTRAIT + TEXT */
.with-portrait {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--s-6);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.with-portrait img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 14px 40px rgba(8,21,45,0.25);
}
.with-portrait .portrait-text h2 { margin: 0 0 var(--s-3); }
.with-portrait .portrait-text p { max-width: 52ch; }
@media (max-width: 800px) {
  .with-portrait { grid-template-columns: 1fr; gap: var(--s-4); max-width: 500px; }
  .with-portrait img { max-width: 280px; }
}

/* VOICES */
.voices { margin-top: var(--s-3); }
.voice {
  margin-bottom: var(--s-5);
  padding-left: var(--s-3);
  border-left: 2px solid var(--purple);
  max-width: none;
}
.navy-section .voice { border-left-color: var(--aqua); }
.voice .quote {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: var(--s-2);
  max-width: none;
}
.voice .attr {
  font-family: "Marcellus SC", serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--purple);
  margin: 0;
}
.navy-section .voice .attr { color: var(--aqua); }
.voice-featured { padding-left: var(--s-4); margin-bottom: var(--s-6); }
.voice-featured .quote { font-size: 1.85rem; line-height: 1.4; }

/* VOICES BLOCK GRID variant (used on Forum) */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.voices-grid > :last-child { grid-column: 1 / -1; }
.voices-grid .voice {
  margin-bottom: 0;
  padding: var(--s-4);
  border-left: none;
  background: rgba(246, 241, 232, 0.06);
  border-radius: 2px;
  max-width: none;
}
.cream-section .voices-grid .voice { background: rgba(8, 21, 45, 0.05); }
.voices-grid .voice .quote {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: var(--s-2);
  font-style: italic;
}
.voices-grid .voice .attr { font-size: 12px; }
@media (max-width: 700px) {
  .voices-grid { grid-template-columns: 1fr; }
}

/* IMAGE STRIPS */
.image-strip { width: 100%; height: 380px; overflow: hidden; margin: 0; }
.image-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .image-strip { height: 260px; } }
.image-strip-caption {
  background: var(--cream);
  font-style: italic;
  font-size: 1rem;
  padding: var(--s-2) var(--s-3);
  color: rgba(42,37,32,0.7);
  text-align: center;
}

/* CLOSING IMAGES (full-bleed two-up) */
.closing-images { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.closing-images img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
@media (max-width: 700px) { .closing-images { grid-template-columns: 1fr; } }

/* CREDENTIAL LISTS */
.cred-list { list-style: none; padding: 0; margin: var(--s-4) 0; max-width: none; }
.cred-list li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid rgba(8,21,45,0.12);
  font-size: 1.05rem;
  line-height: 1.55;
}
.navy-section .cred-list li { border-bottom-color: rgba(246,241,232,0.14); }
.cred-list li:last-child { border-bottom: none; }

/* MODALITIES GRID (numbered, like Forum credentials) */
.modalities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.modality { }
.modality .num {
  font-family: "Marcellus SC", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--aqua);
  margin-bottom: var(--s-1);
  display: block;
}
.modality h3 { margin-bottom: var(--s-2); }
.modality p { font-size: 1rem; margin: 0; max-width: none; }
@media (max-width: 800px) { .modalities { grid-template-columns: 1fr; gap: var(--s-4); } }

/* TEXT LIST: body-size list used for Cassandra "Where We Work" and "What You Can Expect" */
.text-list { list-style: none; padding: 0; margin: var(--s-4) 0 0; max-width: none; }
.text-list li {
  padding: var(--s-3) 0;
  border-bottom: 1px solid rgba(8, 21, 45, 0.12);
  font-size: 21px;
  line-height: 1.6;
}
.navy-section .text-list li { border-bottom-color: rgba(246, 241, 232, 0.16); }
.text-list li:last-child { border-bottom: none; }
.text-list .lead { font-weight: 600; color: var(--purple); }
.navy-section .text-list .lead { color: var(--aqua); }

/* VALUES SECTION (Atieno bio) */
.values-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.values-block .value { }
.values-block .value h3 { margin-bottom: var(--s-2); }
.values-block .value p { font-size: 1rem; margin: 0; max-width: none; }
@media (max-width: 800px) { .values-block { grid-template-columns: 1fr; gap: var(--s-4); } }

/* PULL QUOTE */
.pull-quote {
  font-family: "Marcellus", serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.4;
  color: var(--purple);
  max-width: 32ch;
  margin: var(--s-5) 0;
  font-style: italic;
  padding: var(--s-3) 0;
  background-image: var(--rule-gradient), var(--rule-gradient);
  background-position: top left, bottom left;
  background-size: 100% 2px, 100% 2px;
  background-repeat: no-repeat;
}
.navy-section .pull-quote { color: var(--aqua); }

/* SIX THEMES NAME STYLE */
.theme-name {
  font-family: "Marcellus", serif;
  font-weight: 400;
  color: var(--purple);
  font-size: 1.05rem;
  font-style: normal;
}

/* WHERE I LIVE PHOTOS */
.where-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.where-photos img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 2px;
}
@media (max-width: 800px) {
  .where-photos { grid-template-columns: 1fr; gap: var(--s-2); }
  .where-photos img { height: 220px; }
}

/* FAQ (native details/summary) */
.faq-list {
  max-width: none;
  margin-top: var(--s-4);
  border-top: 1px solid rgba(8, 21, 45, 0.14);
}
.faq-list details {
  border-bottom: 1px solid rgba(8, 21, 45, 0.14);
  padding: var(--s-3) 0;
}
.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  cursor: pointer;
  font-family: "Marcellus", serif;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.3;
  color: var(--navy);
  transition: color 0.2s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--purple); }
.faq-toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1px solid rgba(8, 21, 45, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s ease;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--navy);
  transition: transform 0.25s ease;
}
.faq-toggle::before { width: 12px; height: 1px; }
.faq-toggle::after  { width: 1px;  height: 12px; }
.faq-list details[open] .faq-toggle {
  background: var(--rule-gradient);
  border-color: transparent;
}
.faq-list details[open] .faq-toggle::before,
.faq-list details[open] .faq-toggle::after { background: var(--cream); }
.faq-list details[open] .faq-toggle::after { transform: scaleY(0); }
.faq-answer {
  margin-top: var(--s-2);
  font-size: 1.05rem;
  color: rgba(42, 37, 32, 0.85);
  max-width: 78ch;
}

/* FOOTER */
footer {
  background: var(--navy);
  color: var(--cream);
  padding: var(--s-6) var(--s-6) var(--s-5);
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
}
footer .footer-logo {
  height: 76px;
  width: auto;
  margin: 0 auto var(--s-3);
  display: block;
  opacity: 0.95;
}
footer a { color: var(--sky); }
footer .footer-text { margin-bottom: var(--s-1); }
footer .footer-links {
  margin-top: var(--s-3);
  font-family: "Marcellus SC", serif;
  letter-spacing: 0.14em;
  font-size: 12px;
}
footer .footer-links a { margin: 0 var(--s-2); text-decoration: none; color: var(--cream); }
footer .footer-links a:hover { color: var(--sky); }
.footer-social {
  margin-top: var(--s-3);
  display: flex;
  justify-content: center;
  gap: var(--s-2);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--cream);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.footer-social a:hover { opacity: 1; color: var(--cream); }
.footer-social svg { width: 22px; height: 22px; display: block; }
@media (max-width: 900px) { footer { padding: var(--s-5) var(--s-3); } }

/* UTILITY */
.text-center { text-align: center; }
.mt-large { margin-top: var(--s-6); }
.smaller { font-size: 1rem; color: rgba(42,37,32,0.78); }
.navy-section .smaller { color: rgba(246,241,232,0.78); }
