/* ==========================================================================
   Chicago Health Initiative — static rebuild of the WordPress (Astra +
   Spectra) site. Palette, typography and spacing values are taken verbatim
   from the original theme settings and Spectra block CSS.
   ========================================================================== */

:root {
  /* Astra global colour palette */
  --ast-global-color-0: #0056b3;
  --ast-global-color-1: #e3f2fd;
  --ast-global-color-2: #1e293b;
  --ast-global-color-3: #67768e;
  --ast-global-color-4: #f9f6fe;
  --ast-global-color-5: #ffffff;
  --ast-global-color-6: #f2f5f7;
  --ast-global-color-7: #ff574b;
  --ast-global-color-8: #000000;

  --btn-bg: #5baaff;
  --btn-bg-hover: #9ed8ff;
  --btn-text: #ffffff;
  --btn-text-hover: var(--ast-global-color-2);

  --content-width: 1200px;
  --header-height: 82px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
}

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

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

body {
  margin: 0;
  background-color: var(--ast-global-color-5);
  color: var(--ast-global-color-3);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ast-global-color-2);
  margin: 0 0 20px;
  line-height: 1.2;
}
h1 { font-size: 64px; }
h2 { font-size: 48px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 15px; }

p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ast-global-color-0); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--ast-global-color-1); }

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

:focus-visible { outline: 3px solid var(--ast-global-color-0); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ast-global-color-0); color: #fff;
  padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Header (Astra Header Builder: logo left · menu + social right)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ast-global-color-5);
  border-bottom: 1px solid var(--ast-global-color-6);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
}

.site-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-branding img { width: 100px; height: auto; }
.site-branding .site-title {
  font-family: var(--font-heading);
  font-size: 35px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ast-global-color-2);
  margin: 0;
}

.header-right { display: flex; align-items: center; gap: 8px; }

/* Primary navigation — pill hover styling from the site's Additional CSS */
.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 0;
}
.main-navigation a {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--ast-global-color-2);
  border-radius: 30px;
  margin: 0 5px;
  padding: 5px 15px;
  transition: background-color .25s ease, color .25s ease;
}
.main-navigation li:hover > a,
.main-navigation li.current-menu-item > a {
  border-radius: 20px;
  background-color: var(--ast-global-color-1);
  color: var(--ast-global-color-0);
}
.main-navigation li.current-menu-item > a { background-color: var(--ast-global-color-1); }

/* Social icons (Astra header/footer builder + Additional CSS pill → circle) */
.social-icons { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.ast-builder-social-element {
  background-color: #dde3ea;
  border-radius: 10px;
  padding: 10px;
  margin: 15px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}
.ast-builder-social-element svg { fill: #333; width: 18px; height: 18px; transition: fill .3s ease; }
.ast-builder-social-element:hover { background-color: var(--ast-global-color-0); border-radius: 50%; }
.ast-builder-social-element:hover svg { fill: #ffffff; }

/* Mobile menu trigger */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ast-global-color-6);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  color: var(--ast-global-color-2);
}
.menu-toggle svg { width: 22px; height: 22px; display: block; fill: currentColor; }

.site-header__mobile { display: none; }

@media (max-width: 921px) {
  .menu-toggle { display: inline-flex; }
  .header-right > .main-navigation,
  .header-right > .social-icons { display: none; }

  .site-header__mobile {
    border-top: 1px solid var(--ast-global-color-6);
    padding: 8px 20px 20px;
  }
  .site-header__mobile.is-open { display: block; }
  .site-header__mobile .main-navigation ul { flex-direction: column; align-items: stretch; }
  .site-header__mobile .main-navigation a { margin: 0; padding: 12px 15px; font-size: 18px; }
  .site-header__mobile .social-icons { justify-content: flex-start; }
  .site-header__mobile .ast-builder-social-element { margin: 10px 12px 0 0; }
}

/* --------------------------------------------------------------------------
   Sections (Spectra containers)
   -------------------------------------------------------------------------- */

.section { width: 100%; }
.section__inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.section--white { background-color: var(--ast-global-color-5); }
.section--tint  { background-color: var(--ast-global-color-1); }

.section__inner--gap { gap: 48px; }
@media (max-width: 921px) { .section__inner--gap { gap: 50px; } }
@media (max-width: 767px) { .section__inner--gap { gap: 40px; } }

.section--pad.section--pad-notop { padding-top: 0; }

/* Spectra default section rhythm: 112/40 desktop · 80/32 tablet · 64/24 mobile */
.section--pad { padding: 112px 40px; }
@media (max-width: 921px) { .section--pad { padding: 80px 32px; } }
@media (max-width: 767px) { .section--pad { padding: 64px 24px; } }

/* Halved rhythm where two bands sit directly against each other */
.section--pad-tight-top { padding-top: 56px; }
.section--pad-tight-bottom { padding-bottom: 56px; }
@media (max-width: 921px) {
  .section--pad-tight-top { padding-top: 40px; }
  .section--pad-tight-bottom { padding-bottom: 40px; }
}
@media (max-width: 767px) {
  .section--pad-tight-top { padding-top: 32px; }
  .section--pad-tight-bottom { padding-bottom: 32px; }
}

/* Trim the run-out between the last band on a page and the footer */
#content > .section:last-child { padding-bottom: 64px; }
@media (max-width: 767px) { #content > .section:last-child { padding-bottom: 48px; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
  background-image: url('../img/hero-chicago-skyline.jpg');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  background-attachment: scroll;
  text-align: center;
  overflow: hidden;
}
/* Extra bottom padding lifts the centred title above the middle of the photo */
.hero { padding-bottom: 210px; }
.hero::after {
  /* Slight scrim so the white display type keeps its contrast on the photo */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.12) 45%, rgba(0,0,0,.42) 100%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 75px;
  line-height: 1.25;
  color: var(--ast-global-color-5);
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.hero__title .highlight {
  display: inline-block;
  background: #00000000;
  color: #fff;
  padding: 5px 20px;
  border-radius: 15px;
}

@media (max-width: 921px) {
  .hero { min-height: 560px; padding-bottom: 185px; }
  .hero__title { font-size: 54px; }
}
@media (max-width: 767px) {
  .hero { min-height: 460px; padding-bottom: 160px; background-image: url('../img/hero-chicago-skyline-1024.jpg'); }
  .hero__title { font-size: 36px; }
  .hero__title .highlight { padding: 5px 10px; }
}

/* --------------------------------------------------------------------------
   Info boxes (Spectra info-box)
   -------------------------------------------------------------------------- */

.infobox__prefix {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ast-global-color-2);
  margin: 0 0 24px;
}
.infobox__prefix--accent { color: var(--ast-global-color-0); }
.infobox--center { text-align: center; }
.infobox__title { margin: 0 0 24px; }
.infobox__desc { color: var(--ast-global-color-3); margin: 0; }

@media (max-width: 767px) {
  .infobox__prefix { font-size: 15px; margin-bottom: 12px; }
}

/* Vision / Mission rows: 30% | 70% with a hairline rule above each */
.split-rows { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.split-row {
  display: flex;
  gap: 72px;
  align-items: flex-start;
  border-top: 1px solid var(--ast-global-color-6);
  padding-top: 44px;
}
.split-row__label { flex: 0 0 30%; max-width: 30%; }
.split-row__label h3 { margin: 0; }
.split-row__body { flex: 1 1 70%; max-width: 70%; }
.split-row__body p { margin: 0; }

@media (max-width: 921px) {
  .split-row { gap: 40px; padding-top: 24px; }
}
@media (max-width: 767px) {
  .split-row { flex-direction: column; gap: 16px; padding-top: 24px; }
  .split-row__label, .split-row__body { max-width: 100%; flex-basis: auto; }
}

/* --------------------------------------------------------------------------
   Call to action (Spectra CTA)
   -------------------------------------------------------------------------- */

.cta { background-color: var(--ast-global-color-5); }
.cta__inner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  text-align: left;
}
.cta__text { flex: 1 1 auto; min-width: 0; }
.cta__action { flex: 0 0 auto; }
.cta__title { font-size: 36px; margin: 0 0 20px; }
.cta__desc { color: var(--ast-global-color-3); margin: 0; max-width: 860px; }

@media (max-width: 921px) { .cta__inner { gap: 36px; } }
@media (max-width: 767px) {
  .cta__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #003b7a;
  background-color: var(--btn-bg);
  border: 0;
  border-radius: 30px;
  padding: 20px 40px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover, .btn:focus {
  background-color: var(--btn-bg-hover);
  color: var(--btn-text-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 86, 179, .18);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn--solid { color: var(--btn-text); }
.btn--solid:hover, .btn--solid:focus { color: var(--btn-text-hover); }

@media (max-width: 921px) { .btn { padding: 18px 32px; } .cta__title { font-size: 32px; } }
@media (max-width: 767px) { .btn { padding: 15px 28px; font-size: 18px; } .cta__title { font-size: 28px; } }


/* --------------------------------------------------------------------------
   Team page
   -------------------------------------------------------------------------- */

.team-lead { display: flex; gap: 48px; align-items: center; width: 100%; }
.team-lead__media { flex: 0 0 220px; max-width: 220px; display: flex; flex-direction: column; gap: 16px; }
.team-lead__media img { border-radius: 9999px; width: 100%; }
.team-lead__body { flex: 1 1 auto; }
.team-lead__name { font-family: var(--font-heading); font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--ast-global-color-2); margin: 8px 0 4px; }
.team-lead__prefix { margin-bottom: 16px; }
.team-lead__bio { color: var(--ast-global-color-3); margin: 0; }

.social-pills { display: flex; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-pills a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 9999px;
  background: var(--ast-global-color-2);
  transition: background-color .25s ease, transform .25s ease;
}
.social-pills a:hover { background: var(--ast-global-color-0); transform: translateY(-2px); }
.social-pills svg { width: 18px; height: 18px; fill: #fff; }

@media (max-width: 921px) {
  .team-lead { gap: 32px; }
  .team-lead__media { flex-basis: 180px; max-width: 180px; }
}
@media (max-width: 767px) {
  .team-lead { flex-direction: column; gap: 32px; align-items: center; text-align: center; }
  .team-lead__media { flex-basis: auto; max-width: 200px; }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 24px;
  width: 100%;
}
@media (max-width: 921px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }

.team-card {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--ast-global-color-6);
  border-radius: 16px;
  background: var(--ast-global-color-5);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 41, 59, .10);
  border-color: var(--ast-global-color-1);
}
.team-card__title { font-size: 24px; margin: 0 0 4px; }
.team-card__prefix {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ast-global-color-0);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-cols { display: flex; flex-direction: row; gap: 48px; align-items: flex-start; width: 100%; }
.contact-cols__info { flex: 1 1 50%; }
.contact-cols__form { flex: 1 1 50%; max-width: 50%; }

@media (max-width: 767px) {
  .contact-cols { flex-direction: column; gap: 65px; align-items: stretch; }
  .contact-cols__form { max-width: 100%; }
}

.section--contact { padding: 100px 32px; }
@media (max-width: 921px) { .section--contact { padding: 75px 25px; } }
@media (max-width: 767px) { .section--contact { padding: 80px 20px; } }

.contact-heading { margin: 0 0 30px; }
@media (max-width: 921px) { .contact-heading { margin-bottom: 10px; } }

.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 28px; }
.contact-item__icon { flex: 0 0 auto; margin-top: 4px; }
.contact-item__icon svg { width: 26px; height: 26px; fill: var(--ast-global-color-0); display: block; }
.contact-item__label {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--ast-global-color-2);
  margin: 0;
  line-height: 1.4;
}
.contact-item__value { margin: 0; color: var(--ast-global-color-3); }
@media (max-width: 921px) { .contact-item__label { font-size: 18px; } }

/* Contact form — styled to match the original WPForms "Default" theme */
.chi-form { display: flex; flex-direction: column; gap: 20px; }
.chi-form__row { display: flex; gap: 16px; }
.chi-form__row > * { flex: 1 1 0; min-width: 0; }
/* WPForms stacks the Name sub-fields on small screens */
@media (max-width: 600px) { .chi-form__row { flex-direction: column; gap: 12px; } }
.chi-form__field { display: flex; flex-direction: column; gap: 6px; }
.chi-form label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, .85);
}
.chi-form .req { color: #d63637; }
.chi-form .sublabel { font-size: 13px; font-weight: 500; color: rgba(0, 0, 0, .55); }
.chi-form input,
.chi-form textarea {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 0, 0, .7);
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 3px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.chi-form input:focus,
.chi-form textarea:focus {
  outline: none;
  border-color: var(--ast-global-color-0);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, .12);
}
.chi-form textarea { min-height: 140px; resize: vertical; }
.chi-form__submit {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  background-color: #066aab;
  border: none;
  border-radius: 3px;
  padding: 13px 28px;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.chi-form__submit:hover { background-color: #0056b3; transform: translateY(-1px); }
.chi-form__note { font-size: 14px; font-weight: 500; color: var(--ast-global-color-3); margin: 0; }

/* --------------------------------------------------------------------------
   Donate page
   -------------------------------------------------------------------------- */

.donate-cols { display: flex; flex-direction: row; gap: 40px; align-items: center; width: 100%; }
.donate-cols__title { flex: 0 0 20%; max-width: 20%; }
.donate-cols__body { flex: 1 1 auto; min-width: 0; }
.donate-cols h1 { margin: 0; color: var(--ast-global-color-2); }
@media (max-width: 921px) { .donate-cols { gap: 40px; } }
@media (max-width: 767px) {
  .donate-cols { flex-direction: column; gap: 20px; align-items: flex-start; }
  .donate-cols__title { flex-basis: auto; max-width: 100%; }
  .donate-cols h1 { font-size: 40px; }
}

.donate-placeholder {
  padding: 40px;
  border: 2px dashed #0073aa;
  text-align: center;
  background: #f9f9f9;
  border-radius: 12px;
}
.donate-placeholder h3 { margin-top: 0; }
.donate-placeholder p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Footer (Astra Footer Builder: widget-1 | widget-2 | social, then copyright)
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ast-global-color-6); color: var(--ast-global-color-3); }

.site-footer__primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  padding: 28px 40px;
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
}
.site-footer__blurb { flex: 1 1 380px; min-width: 0; }
.site-footer__primary img { width: 64px; height: auto; }
.site-footer__primary p { font-size: 15px; line-height: 1.5; margin: 0; }
.site-footer .social-icons { justify-content: flex-start; }
.site-footer .ast-builder-social-element { margin: 0 12px 0 0; }

.site-footer__below {
  border-top: 1px solid rgba(30, 41, 59, .10);
  text-align: center;
  padding: 14px 40px;
  font-size: 14px;
}
.site-footer__below p { margin: 0; }

@media (max-width: 921px) {
  .site-footer__primary { gap: 20px 32px; padding: 26px 32px; }
}
@media (max-width: 767px) {
  .site-footer__primary { flex-direction: column; text-align: center; gap: 18px; padding: 28px 24px; }
  .site-footer__blurb { flex-basis: auto; }
  .site-footer .social-icons { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Scroll reveal — mirrors the Spectra "fade" animation used on the team
   blocks, applied to the sections that scroll into view.
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .6, .3, 1), transform .7s cubic-bezier(.2, .6, .3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .team-card:hover, .btn:hover, .social-pills a:hover { transform: none; }
}
