/* =========================================================
   Systems Civility — shared site styles
   One file for every page. Change colors/fonts here once.
   ========================================================= */

:root {
  --navy: #0d2350;
  --navy-deep: #081736;
  --navy-ink: #10204a;
  --gold: #c9962e;
  --gold-text: #a87818;
  --gold-light: #f0cf6e;
  --gold-grad: linear-gradient(180deg, #f6d77c 0%, #e2b549 55%, #c9962e 100%);
  --cream: #fbf8f1;
  --cream-deep: #f5efe1;
  --card: #fffdf8;
  --line: rgba(201, 150, 46, 0.45);
  --text: #1c2540;
  --text-soft: #3d4763;
  --white: #ffffff;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Segoe UI", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --shadow: 0 6px 22px rgba(13, 35, 80, 0.08);
  --rule-gap: clamp(26px, 3.5vw, 44px); /* space between a gold divider line and text */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--navy-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #e6ebf5; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy strong { color: var(--white); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 200; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- Eyebrow label: "EVERY SYSTEM NEEDS PEOPLE ——" ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 12px;
}
.eyebrow::after { content: ""; width: 48px; height: 2px; background: var(--gold); }
.bg-navy .eyebrow, .on-dark .eyebrow { color: var(--gold-light); }
.bg-navy .eyebrow::after, .on-dark .eyebrow::after { background: var(--gold-light); }
.eyebrow--both::before { content: ""; width: 48px; height: 2px; background: currentColor; opacity: .8; }
.eyebrow--both::after { background: currentColor; opacity: .8; }

.lede { font-size: 1.12rem; color: var(--text-soft); }
.callout { font-weight: 700; color: var(--navy-ink); }
.bg-navy .callout { color: var(--white); }

/* Gold vertical divider used between paired blocks */
.vrule { border-left: 2px solid var(--gold); padding-left: var(--rule-gap); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  padding: 13px 26px; border-radius: 8px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-light); outline-offset: 2px;
}
.btn .arrow { font-size: 1.1em; line-height: 1; }
.btn--navy { background: var(--navy); color: #fff; border-color: var(--gold); box-shadow: 0 3px 0 rgba(201,150,46,.55); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--gold { background: var(--gold-grad); color: var(--navy-ink); border-radius: 999px; box-shadow: 0 4px 14px rgba(201,150,46,.35); }
.btn--gold:hover { box-shadow: 0 6px 20px rgba(201,150,46,.5); }
.btn--outline-gold { background: transparent; color: #fff; border-color: var(--gold-light); border-radius: 999px; }
.btn--outline-gold:hover { background: rgba(240,207,110,.12); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--lg { padding: 16px 38px; font-size: 1.15rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(13,35,80,.08);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 54px; height: 54px; }
.brand-word {
  font-family: var(--serif); font-weight: 700; color: var(--navy-ink);
  font-size: 1.28rem; line-height: .95; letter-spacing: .04em; text-transform: uppercase;
  padding-left: 18px; border-left: 2px solid var(--gold);
}
.brand-word sup { font-size: .45em; vertical-align: top; position: relative; top: .2em; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav button.nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: .98rem; font-weight: 600; color: var(--navy-ink);
  text-decoration: none; padding: 10px 12px; background: none; border: 0; cursor: pointer;
  position: relative;
}
.main-nav > ul > li > a[aria-current="page"]::after,
.main-nav > ul > li.is-current > button::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--gold); border-radius: 2px;
}
.main-nav a:hover, .main-nav button.nav-toggle:hover { color: var(--gold-text); }
.caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transition: transform .2s; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 14px 34px rgba(13,35,80,.16);
  list-style: none; margin: 0; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.dropdown a { display: block; padding: 10px 18px; font-weight: 600; }
.dropdown a:hover { background: var(--cream); }
.dropdown a[aria-current="page"] { color: var(--gold-text); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown.open .caret { transform: rotate(180deg); }

.header-cta { flex-shrink: 0; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 2px; background: var(--navy-ink); margin: 6px 0; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; max-height: calc(100vh - 76px); overflow-y: auto;
    background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 18px 30px rgba(13,35,80,.15);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .main-nav a, .main-nav button.nav-toggle { width: 100%; padding: 14px var(--gutter); justify-content: space-between; font-size: 1.05rem; }
  .main-nav > ul > li > a[aria-current="page"]::after, .main-nav > ul > li.is-current > button::after { left: var(--gutter); right: auto; width: 40px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; background: var(--cream); display: none; padding: 4px 0; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { padding-left: calc(var(--gutter) + 18px); }
  .mobile-cta { display: block !important; padding: 12px var(--gutter) 0; }
  .main-nav .mobile-cta .btn { width: 100%; justify-content: center; padding: 14px 24px; background: var(--gold-grad); color: var(--navy-ink); }
}
.mobile-cta { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #dfe5f1; border-top: 3px solid var(--gold); }
.site-footer .wrap { padding-top: 34px; padding-bottom: 26px; }
.footer-top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 2px solid var(--gold); }
.site-footer .brand-word { color: #fff; }
.footer-nav { flex: 1; display: flex; justify-content: center; }
.footer-nav ul { list-style: none; margin: 0; padding: 0 28px; display: flex; flex-wrap: wrap; gap: 6px 26px; border-left: 1px solid rgba(255,255,255,.3); border-right: 1px solid rgba(255,255,255,.3); }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; }
.footer-nav a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 18px; }
.socials a { color: #fff; display: inline-flex; }
.socials a:hover { color: var(--gold-light); }
.socials svg { width: 28px; height: 28px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; font-size: .9rem; color: #c9d2e6; }
@media (max-width: 900px) {
  .footer-top { flex-direction: column; text-align: center; }
  .footer-nav ul { border: 0; padding: 0; justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Shared layout pieces ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--img-left > :first-child { order: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.media-cover { width: 100%; height: 100%; object-fit: cover; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Page hero (inner pages): navy left, photo right — photo already fades into navy */
.page-hero { position: relative; background: var(--navy) center right / cover no-repeat; color: #fff; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(48px, 7vw, 90px); }
.page-hero .hero-copy { max-width: 520px; }
.page-hero h1 { color: #fff; }
.page-hero p { font-size: 1.15rem; color: #e8edf7; }
@media (max-width: 760px) {
  .page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(8,23,54,.72); }
}

/* Navy CTA band with world-map dots */
.cta-band { position: relative; background: var(--navy); color: #e6ebf5; text-align: center; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(rgba(140,170,230,.9) 1px, transparent 1.4px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 45% 70% at 15% 50%, #000 40%, transparent 72%), radial-gradient(ellipse 45% 70% at 85% 50%, #000 40%, transparent 72%);
          mask-image: radial-gradient(ellipse 45% 70% at 15% 50%, #000 40%, transparent 72%), radial-gradient(ellipse 45% 70% at 85% 50%, #000 40%, transparent 72%);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff; max-width: 820px; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 760px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }
.cta-band .btn { margin-top: 18px; }

/* Check list with gold check badges */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.checklist li::before {
  content: "✓"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-grad); color: var(--navy-ink);
  font-weight: 900; font-size: .85rem; margin-top: 1px;
}

/* Fade-in on scroll (only when JS has run, so content never hides without it) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* =========================================================
   Photo band: #000 behind a semi-transparent photo so
   white text is always readable. Set the photo per section:
   style="--photo: url(/images/x.jpg); --photo-pos: center;"
   ========================================================= */
.photo-band { position: relative; background: #000; color: #f1f3f8; overflow: hidden; }
.photo-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--photo); background-size: cover; background-repeat: no-repeat;
  background-position: var(--photo-pos, center);
  opacity: var(--photo-opacity, .45);
}
.photo-band > * { position: relative; }
.photo-band h1, .photo-band h2, .photo-band h3, .photo-band strong { color: #fff; }
.photo-band p { color: #f1f3f8; }
.photo-band .eyebrow { color: var(--gold-light); }
.photo-band .eyebrow::after, .photo-band .eyebrow::before { background: var(--gold-light); }

/* ---------- Inner page hero: navy fade on the left, photo on the right ---------- */
.page-hero { background: var(--navy) var(--photo) var(--photo-pos, right center) / cover no-repeat; }
.page-hero .wrap { min-height: clamp(300px, 30vw, 400px); display: flex; align-items: center; }
.page-hero .hero-copy { max-width: 520px; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); margin-bottom: 14px; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .eyebrow::after { background: var(--gold-light); }
.page-hero .btn { margin-top: 10px; }
.page-hero--right .wrap { justify-content: flex-end; }
.page-hero--right .hero-copy { text-align: center; }
.page-hero--right .eyebrow { justify-content: center; }
@media (max-width: 760px) {
  .page-hero { background-color: #000; }
  .page-hero::before { background: rgba(0,0,0,.55); }
  .page-hero .wrap { min-height: 0; }
  .page-hero--right .wrap { justify-content: flex-start; }
}

/* ---------- Image + text row: image always matches the text height ---------- */
.media-row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.media-row--flip { grid-template-columns: 7fr 5fr; }
.media-row--flip .media { order: 2; }
.media-row--half { grid-template-columns: 1fr 1fr; }
.media { position: relative; min-height: 220px; border-radius: var(--radius); overflow: hidden; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.media--flush { border-radius: 0; }
.media-row .text { align-self: center; padding-top: 8px; padding-bottom: 8px; }
.media-row .text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
@media (max-width: 860px) {
  .media-row, .media-row--flip, .media-row--half { grid-template-columns: 1fr; }
  .media-row--flip .media { order: 0; }
  .media { min-height: 240px; }
}

/* ---------- Section title with gold rules: —— TITLE —— ---------- */
.rule-title {
  display: flex; align-items: center; justify-content: center; gap: 18px; text-align: center;
  font-family: var(--sans); font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gold-text); font-size: clamp(1.05rem, 2vw, 1.5rem); margin: 0 0 28px;
}
.rule-title::before, .rule-title::after { content: ""; flex: 0 1 90px; height: 2px; background: var(--gold); }
.rule-title--serif { font-family: var(--serif); text-transform: none; letter-spacing: 0; color: var(--navy-ink); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.photo-band .rule-title, .bg-navy .rule-title { color: var(--gold-light); }

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.card-grid .card { padding: 22px 20px; text-align: center; }
.card-grid .card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card-grid .card p { font-size: .97rem; color: var(--text-soft); }
.card .card-img { margin: -14px -12px 16px; height: 150px; border-radius: 8px; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card .ring-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; background: #fff; }
.card .ring-icon svg { width: 34px; height: 34px; stroke: var(--gold-text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .underline { display: block; width: 44px; height: 2px; background: var(--gold); margin: 0 auto 12px; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(min(var(--cols, 4), 3), 1fr); } }
@media (max-width: 860px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- "What Will You Gain?" box ---------- */
.gain-box { display: grid; grid-template-columns: minmax(200px, 1fr) 2.2fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 3vw, 34px) clamp(22px, 4vw, 48px); }
.gain-box h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.gain-box .checklist { border-left: 0; padding-left: 0; }
@media (max-width: 760px) { .gain-box { grid-template-columns: 1fr; } .gain-box .checklist { border-left: 0; padding-left: 0; } }

/* ---------- Icon + text pair ("Who Is This For?") ---------- */
.icon-pair { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: center; }
.icon-pair .glyph { width: 76px; height: 76px; display: grid; place-items: center; }
.icon-pair .glyph svg { width: 70px; height: 70px; fill: var(--gold); }
.icon-pair .body { border-left: 2px solid var(--gold); padding-left: var(--rule-gap); }
.icon-pair h2, .icon-pair h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.gold-fill { fill: var(--gold); }

/* ---------- CTA with Dr. Tucker portrait ----------
   The whole banner image is the section background, pinned to its right edge.
   Pinning it right means that whenever the section is taller than the photo's
   shape, the photo trims from its blurred left side, so the gold stripe always
   stays left of the halfway point. The words start at the halfway point, on the
   blue, with no background of their own. Only phones and small tablets stack. */
.portrait-cta { position: relative; display: flex; align-items: center; min-height: max(33.34vw, 420px);
  background: #012850 url("/images/workshop-cta-dr-tucker.jpg") right center / cover no-repeat; color: #e6ebf5; }
.portrait-cta .pc-banner { display: none; }
.portrait-cta .copy { margin-left: 50%; max-width: 640px; padding: 44px var(--gutter) 44px 24px; background: none; }
.portrait-cta h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
.portrait-cta p { font-size: clamp(.95rem, 1.2vw, 1.05rem); }
.portrait-cta .btn { margin-top: 14px; }
@media (max-width: 1059px) {
  .portrait-cta { display: block; min-height: 0; background: #012850; }
  .portrait-cta .pc-banner { display: block; width: 100%; height: auto; }
  .portrait-cta .copy { margin-left: 0; max-width: 820px; padding: 36px var(--gutter) 48px; }
}
@media (max-width: 640px) {
  .portrait-cta .pc-banner { height: 250px; object-fit: cover; object-position: 18% center; }
}

/* ---------- Two-column split with gold divider ---------- */
.duo { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.duo > :last-child { border-left: 2px solid var(--gold); padding-left: var(--rule-gap); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo > :last-child { border-left: 0; padding-left: 0; } }

/* Inner hero: soft navy shade behind the words so white text is always readable */
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.7) 46%, rgba(0,0,0,0) 74%); }
.page-hero--right::before { background: linear-gradient(270deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.7) 46%, rgba(0,0,0,0) 74%); }
@media (max-width: 760px) { .page-hero::before, .page-hero--right::before { background: rgba(0,0,0,.6); } }

.cta-band .eyebrow { color: var(--gold-light); justify-content: center; }
.cta-band .eyebrow::before, .cta-band .eyebrow::after { background: var(--gold-light); }
.cta-band .btn { margin-top: 18px; }
.portrait-cta .eyebrow { color: var(--gold-light); }
.portrait-cta .eyebrow::after { background: var(--gold-light); }

.page-hero p { max-width: 500px; }
.page-hero--right p { margin-left: auto; margin-right: auto; }
