/* ==========================================================================
   IHQC temporary site: styles shared by all pages
   (home-only styles are in home.css, fonts in fonts.css)

   Breakpoints (only two, used everywhere):
     700px  phone layout at 700px and below, desktop layout from 701px
     900px  home page cards stack into one column at 900px and below
   ========================================================================== */

:root {
  /* Colors */
  --color-navy: #0b3954;
  --color-ink: #0b2a4a;
  --color-blue: #1e8ecf;
  --color-link: #1573a8;
  --color-green: #10af4d;
  --color-footer-green: #a8d04c;
  --color-banner: #a9bedb;
  --color-light-band: #eef3f8;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-body: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;

  /* Small text: banner, footer, team titles, contact labels */
  --text-small: 0.875rem; /* 14px */

  /* Body text: paragraphs, lists, team bios, notices, card text */
  --text-body: 1.125rem; /* 18px */
  --leading-body: 1.875rem; /* 30px lines for all body text */

  /* Side padding of .container on phones; sections can override it */
  --gutter: 1.875rem;
}

* {
  box-sizing: border-box;
}

/* Fluid scale: 16px up to 1440px wide, growing smoothly to 32px at 3840px wide.
   Every size below is in rem, so text, photos and spacing grow together. */
html {
  font-size: clamp(1rem, 1rem + (100vw - 90rem) / 150, 2rem);
}

body {
  font-family: var(--font-body);
  margin: 0;
  width: 100%;
}


/* ---------- Container ----------
   One shared content width: 80% of the window, up to 87.5rem.
   On phones it is full width with side padding (--gutter). */

.container {
  margin-inline: auto;
  max-width: 87.5rem;
  padding-inline: var(--gutter);
  width: 100%;
}

@media (min-width: 701px) {
  .container {
    padding-inline: 0;
    width: 80%;
  }
}


/* ---------- Notice banner ---------- */

.banner {
  align-items: center;
  background-color: var(--color-banner);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: auto;
  max-width: 75rem;
  padding: 0.9375rem;
  width: 100%;
}

.banner-text {
  color: var(--color-ink);
  font-size: var(--text-small);
  text-align: center;
}

@media (max-width: 700px) {
  .banner-text {
    line-height: 1.25rem;
  }
}


/* ---------- Site header (logo + navigation) ----------
   --light : white header on the home page
   --photo : photo header with page title on the other pages */

.site-header {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.site-header--light {
  --nav-color: var(--color-link);
  background-color: var(--color-white);
}

.site-header--photo {
  --nav-color: var(--color-white);
  background-color: var(--color-navy);
  background-image: url("../assets/summitwebsiteedit-filtered2.jpg");
  background-position: center 30%;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 4px solid var(--color-green);
}

.header-bar {
  --gutter: 1.25rem;
  align-items: center;
  display: flex;
  flex-wrap: wrap; /* safety net: the menu drops below the logo if a row ever cannot fit */
  justify-content: space-between;
  padding-block: 1.5625rem;
  row-gap: 0.625rem;
}

/* Never narrower than the logo + menu need, even at 701px */
@media (min-width: 701px) {
  .header-bar {
    width: max(80%, min(100%, 39rem));
  }
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.site-logo {
  height: 3.75rem;
  width: auto;
}

/* Narrow desktop windows: the logo eases down (3.75rem to 3.25rem) so the logo and
   the four menu links always fit on one row. 30.7rem = menu width (475px) + 16px slack;
   the logo is 2.517 times as wide as it is tall; 39rem is the header bar's minimum width.
   Full size from about 802px wide. */
@media (min-width: 701px) {
  .site-logo {
    height: clamp(3.25rem, calc((max(80vw, 39rem) - 30.7rem) / 2.517), 3.75rem);
  }
}

.main-nav {
  column-gap: 0.9375rem;
  display: flex;
  font-weight: 700;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-link {
  color: var(--nav-color);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.5rem 0.625rem;
  text-decoration: none;
  white-space: nowrap;
}

/* Hover and the current page share one underline (no layout shift) */
.nav-link:hover,
.nav-link[aria-current="page"] {
  border-bottom: 2px solid currentColor;
  margin-bottom: -2px;
}

@media (max-width: 700px) {
  .header-bar {
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
  }

  /* 2 x 2 grid of menu links, each at least 44px tall */
  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    margin-left: 0;
    width: min(100%, 20rem);
  }

  .nav-link {
    align-items: center;
    display: flex;
    font-size: 1.125rem;
    justify-content: center;
    min-height: 2.75rem;
  }
}


/* ---------- Page title area (photo header) ---------- */

.header-title {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  width: 100%;
}

.page-title {
  color: var(--color-white);
  font-size: 2.875rem;
  font-style: italic;
  font-weight: 400;
  line-height: 3.4375rem;
  margin: 0;
  text-align: center;
}

@media (max-width: 700px) {
  .page-title {
    font-size: 2.25rem;
    line-height: 2.6875rem;
  }
}


/* ---------- Section headings ---------- */

.section-title {
  color: var(--color-blue);
  font-size: 2.375rem;
  font-style: italic;
  font-weight: 400;
  line-height: 2.875rem;
  margin: 0;
  text-align: center;
}

.section-title--light {
  color: var(--color-white);
}

.title-rule {
  background-color: var(--color-blue);
  height: 0.25rem;
  margin: 1.5rem;
  width: 3.75rem;
}

.title-rule--light {
  background-color: var(--color-white);
}

@media (max-width: 700px) {
  .section-title {
    font-size: 2.0625rem;
    line-height: 2.5rem;
  }
}


/* ---------- Content sections ---------- */

.content-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding-block: 2.5rem 1.875rem;
}

.body-text {
  color: var(--color-ink);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin: 0;
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

.body-text a,
.offering-text a {
  color: var(--color-link);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
}

/* Navy band with centered white text */
.band {
  align-items: center;
  background-color: var(--color-navy);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.band-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding-block: 3.125rem;
}

.band-text {
  color: var(--color-white);
  font-size: 1.25rem;
  line-height: 2.125rem;
  margin: 0;
  text-align: center;
}

.band-text + .band-text {
  margin-top: 1rem;
}


/* ---------- Who We Are ---------- */

.team {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin-top: 1rem;
  width: 100%;
}

.member {
  align-items: flex-start;
  display: flex;
  gap: 2rem;
}

.member-photo {
  display: block;
  flex: 0 0 16.25rem;
  height: auto;
  width: 16.25rem;
}

.member-text {
  flex: 1;
  min-width: 0;
}

.member-name {
  color: var(--color-blue);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.625rem;
  margin: 0;
}

.member-title {
  color: var(--color-navy);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0.35rem 0 1rem;
  text-transform: uppercase;
}

.member-bio {
  color: var(--color-ink);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin: 0;
  text-align: left;
}

.member-bio + .member-bio {
  margin-top: 1rem;
}

.funders-section {
  --gutter: 1.25rem;
  padding-bottom: 2.5rem;
}

.funders-section .body-text {
  margin-bottom: 2rem;
}

.funders-logos {
  display: block;
  height: auto;
  max-width: 75rem;
  width: 100%;
}

.sponsor-section {
  --gutter: 1.25rem;
  padding-bottom: 5rem;
}

.sponsor-logo {
  display: block;
  height: auto;
  margin: 0 0 1.25rem;
  max-width: 80%;
  width: 16rem;
}

@media (max-width: 700px) {
  .member {
    flex-direction: column;
    gap: 1rem;
  }

  .member-photo {
    flex-basis: auto;
    max-width: 11rem;
    width: 100%;
  }
}


/* ---------- What We Do ---------- */

.offerings {
  display: flex;
  flex-direction: column;
  padding-bottom: 5rem;
  width: 100%;
}

.offering {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding-block: 2.5rem 1.875rem;
}

.offering-body {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
  width: 100%;
}

/* Photos are shown uncropped at their natural proportions */
.offering-photo {
  display: block;
  height: auto;
  width: 100%;
}

.offering-list,
.offering-text {
  color: var(--color-ink);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.offering-text {
  margin: 0;
}

.offering-text + .offering-list {
  margin-top: 1rem;
}

/* Section without a photo: one centered text column */
.offering-body--text {
  max-width: 60rem;
}

.offering-list {
  margin: 0;
  padding-left: 1.25rem;
}

.offering-list li {
  margin-bottom: 0.6rem;
}

.offering-list li::marker {
  color: var(--color-green);
}

.offering-list ul {
  list-style: circle;
  margin: 0.6rem 0 0.2rem;
  padding-left: 1.25rem;
}

.offering-list ul li {
  margin-bottom: 0.35rem;
}

@media (min-width: 701px) {
  .offering-body:not(.offering-body--text) {
    gap: 3.25rem;
    grid-template-columns: calc(50% - 2.25rem) 1fr;
  }
}


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

.contact-section {
  padding-bottom: 3.125rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 2rem;
  max-width: 47.5rem;
  width: 100%;
}

.contact-item {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}

.contact-icon {
  align-items: center;
  background-color: var(--color-blue);
  border-radius: 50%;
  display: flex;
  height: 4rem;
  justify-content: center;
  width: 4rem;
}

.contact-icon svg {
  height: 1.75rem;
  width: 1.75rem;
}

.contact-label {
  color: var(--color-navy);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-link {
  color: var(--color-blue);
  font-size: 1.375rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  border-bottom: 2px solid var(--color-blue);
}

.notice-band {
  align-items: center;
  background-color: var(--color-light-band);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.notice-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  max-width: 47.5rem;
  padding: 3.125rem 1.875rem 3.75rem;
  width: 100%;
}

.notice-text {
  color: var(--color-ink);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin: 0;
  text-align: center;
}

.notice-text a {
  color: var(--color-link);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* 44px-tall tap targets */
  .contact-link {
    align-items: center;
    display: inline-flex;
    min-height: 2.75rem;
  }

  .notice-text a {
    padding-block: 0.8rem;
  }
}


/* ---------- Footer ---------- */

.site-footer {
  border-top: 3px solid var(--color-footer-green);
  display: flex;
  font-size: var(--text-small);
  justify-content: space-between;
  padding: 0.9375rem 0.9375rem 0.625rem;
  width: 100%;
}

.footer-info {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0.625rem;
}

.footer-link,
.footer-link:visited,
.footer-link:hover {
  color: var(--color-black);
  margin: 0.625rem;
  text-decoration: none;
}

@media (max-width: 700px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-link {
    align-items: center;
    display: inline-flex;
    min-height: 2.75rem;
  }
}
