/* USPF Changemaker Challenge 2026 — shared styles
   Brand colours sampled from the Changemaker logo. */
:root {
  --blue: #003478;          /* Changemaker blue: headings, solid panels */
  --blue-deep: #00265A;     /* footer, photo overlays */
  --blue-line: #1D4A8E;     /* dividers on dark backgrounds */
  --blue-soft-text: #D6E2F5;/* body text on dark backgrounds */
  --blue-light-text: #A9C6FF;
  --red: #D7102F;           /* used sparingly: header Apply Now, small accents */
  --ink: #1A1F2E;
  --body: #3D4555;
  --label: #5B6475;         /* small section labels */
  --soft: #F4F6FA;          /* light section background */
  --card: #F6F8FB;          /* sector cards */
  --border: #E6E8EE;
  --overlay: 0, 38, 96;     /* rgb for photo overlays */
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --gutter: clamp(18px, 4vw, 32px);
  --section-y: clamp(56px, 9vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: #FFFFFF; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--blue-light-text); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 900px; }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.bg-soft { background: var(--soft); }
.bg-white { background: #FFFFFF; }

.label { font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); margin: 0 0 12px; }
.h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 6vw, 58px); line-height: 1.08; margin: 0 0 18px; }
.h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; color: var(--blue); margin: 0 0 12px; }
.h3 { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--blue); margin: 0 0 4px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--body); margin: 0; }
.intro { max-width: 720px; margin-bottom: 36px; }
.text { font-size: 17px; line-height: 1.55; color: var(--body); margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 17px; padding: 15px 30px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-1px); opacity: .95; }
.btn--red { background: var(--red); color: #FFFFFF; }
.btn--blue { background: var(--blue); color: #FFFFFF; }
.btn--white { background: #FFFFFF; color: var(--blue); }
.btn--outline-white { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.btn--outline-blue { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--sm { font-size: 16px; padding: 12px 22px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid var(--border); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__seal { width: 48px; height: 48px; object-fit: contain; }
.brand__divider { width: 1px; height: 36px; background: #D5DAE4; }
.brand__logo { height: 46px; width: auto; }
.site-header__right { display: flex; align-items: center; gap: 22px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 16px; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.menu-btn { display: none; width: 44px; height: 44px; background: #FFFFFF; border: 1px solid #D5DAE4; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; padding: 8px var(--gutter) 18px; border-top: 1px solid var(--border); font-size: 18px; font-weight: 500; }
.mobile-nav a { padding: 12px 0; }
.mobile-nav.is-open { display: flex; }

/* Hero (rolling photos) */
.hero { position: relative; min-height: clamp(560px, 80vh, 660px); overflow: hidden; background: var(--blue-deep); display: flex; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--overlay), .94) 0%, rgba(var(--overlay), .8) 50%, rgba(var(--overlay), .35) 100%); }
.hero__content { position: relative; width: 100%; padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; justify-content: center; }
.hero__inner { max-width: 660px; color: #FFFFFF; }
.hero__pill { display: inline-block; background: #FFFFFF; color: var(--blue); font-size: 15px; font-weight: 600; padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero__sub { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__dots { position: absolute; left: var(--gutter); bottom: 28px; display: flex; gap: 10px; }
.hero__dot { width: 10px; height: 10px; border: 0; padding: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s ease; }
.hero__dot.is-active { width: 36px; background: #FFFFFF; }

/* Partner strip */
.partners { border-bottom: 1px solid var(--border); }
.partners__row { display: flex; align-items: center; justify-content: center; padding-top: 24px; padding-bottom: 24px; }
.partners__logos { display: flex; align-items: center; justify-content: center; gap: 28px 44px; flex-wrap: nowrap; }

/* Numbers */
.stats { display: flex; flex-wrap: wrap; gap: 28px 0; padding-top: 40px; padding-bottom: 40px; }
.stat { flex: 1 1 150px; padding: 0 18px; border-left: 4px solid var(--red); }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(32px, 4vw, 44px); color: var(--blue); line-height: 1; }
.stat__label { margin-top: 8px; font-size: 16px; line-height: 1.4; color: var(--body); }

/* Two-column */
.split { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split__img { height: clamp(260px, 40vw, 440px); border-radius: 22px; overflow: hidden; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split p + p { margin-top: 14px; }

/* Challenge Sector cards */
.sectors__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.sectors__head .intro { margin-bottom: 0; flex: 1 1 480px; }
.arrows { display: flex; gap: 12px; }
.arrow { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--blue); background: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.arrow--solid { background: var(--blue); }
.track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 4px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.sector-card { flex: 0 0 min(340px, 84%); scroll-snap-align: start; background: var(--card); border-radius: 22px; padding: 28px 20px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sector-card__num { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--label); margin-bottom: 8px; }
.sector-card__title { min-height: 60px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 2.6vw, 28px); line-height: 1.15; color: var(--blue); margin: 0 0 12px; }
.sector-card__desc { min-height: 104px; font-size: 17px; line-height: 1.5; color: var(--body); margin: 0 0 20px; }
.sector-card__media { position: relative; width: 100%; height: clamp(280px, 30vw, 360px); border-radius: 16px; overflow: hidden; background: #E7DCCB; }
.sector-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sector-card__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(180deg, rgba(var(--overlay), 0) 0%, rgba(var(--overlay), .6) 100%); }
.sector-card__cta { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1; background: #FFFFFF; color: var(--ink); font-weight: 600; font-size: 16px; padding: 13px 24px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.18); white-space: nowrap; }

/* Card grids (eligibility, steps, angles) */
.grid { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { flex: 1 1 300px; min-width: 0; background: #FFFFFF; border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; gap: 14px; }
.tile--soft { background: var(--soft); border: 0; padding: 24px; gap: 16px; }
.badge { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--blue); color: #FFFFFF; font-family: var(--font-head); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }

/* Journey */
.journey { display: flex; flex-wrap: wrap; gap: 24px; }
.stage { flex: 1 1 190px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 4px solid #D5DAE4; }
.stage:first-child { border-top-color: var(--red); }
.stage__num { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: var(--label); line-height: 1; }
.stage__title { font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--blue); }
.stage__when { font-size: 15px; font-weight: 600; color: var(--label); }

/* Prizes */
.prizes { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.prize { flex: 1 1 260px; border-radius: 20px; padding: 32px 26px; background: var(--soft); border: 1px solid #DCE3EE; }
.prize--first { background: var(--blue); border-color: var(--blue); }
.prize__label { font-size: 15px; font-weight: 700; letter-spacing: .1em; color: var(--label); }
.prize--first .prize__label { color: var(--blue-light-text); }
.prize__amount { margin: 10px 0 12px; font-family: var(--font-head); font-weight: 700; font-size: clamp(38px, 4.5vw, 48px); color: var(--blue); line-height: 1; }
.prize--first .prize__amount { color: #FFFFFF; }
.prize--first .text { color: var(--blue-soft-text); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: #FFFFFF; border: 0; padding: 20px 22px; cursor: pointer; font-weight: 600; font-size: 18px; line-height: 1.4; color: var(--blue); }
.faq__sign { font-size: 26px; line-height: 1; color: var(--label); flex: 0 0 auto; }
.faq__a { display: none; padding: 0 22px 22px; font-size: 17px; line-height: 1.6; color: var(--body); }
.faq__item.is-open .faq__a { display: block; }

/* Photo call to action */
.cta-photo { position: relative; overflow: hidden; background: var(--blue-deep); }
.cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.cta-photo__overlay { position: absolute; inset: 0; background: rgba(var(--overlay), .86); }
.cta-photo__content { position: relative; padding-top: clamp(64px, 10vw, 104px); padding-bottom: clamp(64px, 10vw, 104px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; color: #FFFFFF; }
.cta-photo__content .h2 { color: #FFFFFF; max-width: 760px; }
.cta-photo__content p { margin: 0; max-width: 640px; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; }

/* Footer */
.site-footer { background: var(--blue-deep); color: var(--blue-soft-text); }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 36px 56px; justify-content: space-between; padding-top: clamp(40px, 6vw, 56px); padding-bottom: 32px; border-bottom: 1px solid var(--blue-line); }
.site-footer__brand { flex: 1 1 360px; min-width: 0; max-width: 480px; }
.logo-tiles { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.logo-tile { height: 64px; background: #FFFFFF; border-radius: 12px; padding: 8px 12px; display: flex; align-items: center; }
.site-footer__col { flex: 0 1 240px; min-width: 0; }
.site-footer__heading { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #FFFFFF; margin: 0 0 16px; }
.site-footer__links { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.site-footer__links a:hover { color: #FFFFFF; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; }
.icon-link--accent { color: var(--blue-light-text); font-weight: 600; }
.site-footer__bottom { padding-top: 22px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 15px; line-height: 1.6; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__legal a { color: #FFFFFF; }

/* Problem statement page */
.crumbs-bar { background: var(--soft); border-bottom: 1px solid var(--border); padding-top: 14px; padding-bottom: 14px; }
.crumbs { font-size: 15px; color: var(--label); margin-bottom: 12px; }
.crumbs a { color: var(--blue); font-weight: 600; }
.tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; font-size: 16px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1.5px solid #C9D3E3; background: #FFFFFF; color: var(--blue); white-space: nowrap; }
.tab[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.ps-hero { padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(36px, 6vw, 64px); }
.ps-hero .h1 { color: var(--blue); font-size: clamp(34px, 5.4vw, 54px); }
.ps-context { font-size: clamp(17px, 1.7vw, 19px); line-height: 1.7; color: var(--body); margin: 0; }
.question { background: var(--blue); border-radius: 22px; padding: clamp(26px, 5vw, 48px); border-left: 6px solid var(--red); }
.question .label { color: var(--blue-light-text); }
.question__text { margin: 0 0 18px; font-family: var(--font-head); font-weight: 600; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.4; color: #FFFFFF; }
.question__note { margin: 0; font-size: 17px; line-height: 1.55; color: var(--blue-soft-text); }
.angle { flex: 1 1 340px; min-width: 0; background: #FFFFFF; border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.angle__head { display: flex; align-items: flex-start; gap: 14px; }
.angle__head .h3 { padding-top: 6px; margin: 0; }
.ps-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.ps-nav a { flex: 1 1 300px; min-width: 0; background: var(--soft); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.ps-nav small { font-size: 15px; font-weight: 600; color: var(--label); }
.ps-nav strong { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--blue); }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .brand__seal, .brand__divider { display: none; }
}
@media (max-width: 640px) {
  .partners__row {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .partners__logos {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }
  .partners__logos img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
  }

  /* Footer logo tiles on mobile: all 4 tiles fit evenly on one single row */
  .logo-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
  }
  .logo-tile {
    height: 52px;
    padding: 6px 8px;
    border-radius: 10px;
    justify-content: center;
    min-width: 0;
  }
  .logo-tile img {
    max-height: 38px;
    max-width: 100%;
    object-fit: contain;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .btn, .hero__dot { transition: none; }
}
