/*
Theme Name: ENACT
Theme URI: https://wolandweb.com/
Author: Woland Web
Author URI: https://wolandweb.com/
Description: Theme for ENACT Clinical Trials, a collaboration between The Mended Hearts, Inc. and WomenHeart. Includes Resource and Story post types. On activation the theme's images are added to the Media Library (existing filenames are left untouched).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enact
*/

/* ==========================================================================
   1. SHARED STYLES (all pages)
   ========================================================================== */

/* ---------- 1.1 Design tokens ---------- */
:root {
  --color-red: #ba0c2d;
  --color-red-dark: #a2152e;
  --color-blue: #206d93;
  --color-text: #363636;
  --color-black: #000;
  --color-white: #fff;
  --color-border: #dbdbdb;

  --font-primary: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  --font-secondary: "Inter", Arial, Helvetica, sans-serif;

  --container-width: 1404px;
  --container-gutter: 24px;
  --card-radius: 16px;
  --card-shadow: 0 3px 25px rgba(0, 0, 0, 0.16);
}

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

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

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 26px;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--container-width), 100% - 2 * var(--container-gutter));
  margin-inline: auto;
}

.container--narrow {
  --container-width: 1188px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--color-white);
  color: var(--color-red);
}

.skip-link:focus {
  left: 12px;
}

/* ---------- 1.3 Buttons & links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 179px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button--red {
  background: var(--color-red);
  color: var(--color-white);
}

.button--red:hover,
.button--red:focus-visible {
  background: var(--color-red-dark);
}

.button--blue {
  background: var(--color-blue);
  color: var(--color-white);
}

.button--blue:hover,
.button--blue:focus-visible {
  background: #185a7a;
}

.button--outline-white {
  border-color: var(--color-white);
  color: var(--color-white);
}

.button--outline-white:hover,
.button--outline-white:focus-visible {
  background: var(--color-white);
  color: var(--color-red);
}

.button--wide {
  min-width: 309px;
  min-height: 58px;
  font-weight: 700;
}

.button--large {
  min-width: 188px;
  min-height: 56px;
}

/* "Download Here" pill used on resource cards (home + resources page) */
.button--download {
  min-width: 197px;
  min-height: 50px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 700;
  text-transform: none;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  color: var(--color-blue);
  text-decoration: none;
}

.link-arrow::after {
  content: "";
  width: 16px;
  height: 18px;
  background: url("images/shared-icon-arrow-right.svg") center / contain no-repeat;
  transition: transform 0.2s;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- 1.4 Headings ---------- */
.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  text-align: center;
}

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

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

/* ---------- 1.5 Cards & grids ---------- */
.card-grid {
  display: grid;
  gap: 36px;
}

.card-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

/* Video thumbnail with centered play button */
.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  transition: transform 0.4s;
}

.video-thumb:hover img {
  transform: scale(1.03);
}

.play-button {
  position: absolute; /* overlay: centered on the thumbnail */
  inset: 0;
  margin: auto;
  width: 116px;
  height: 116px;
  max-width: 22%;
  aspect-ratio: 1;
  height: auto;
  background: url("images/shared-icon-play.svg") center / contain no-repeat;
}

/* ---------- 1.6 Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--color-white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 128px;
}

.site-logo img {
  width: 153px;
}

.main-navigation {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  margin-left: 87px;
}

.menu {
  display: flex;
  gap: 28px;
}

.menu a {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: var(--color-text);
  text-decoration: none;
}

.menu a:hover,
.menu .current-menu-item > a {
  color: var(--color-red);
}

.menu-toggle {
  display: none;
}

/* ---------- 1.7 Page title banner (secondary pages) ---------- */
.page-title-banner {
  display: flex;
  align-items: center;
  min-height: 120px;
  background:
    url("images/shared-page-title-banner-swoosh.jpg") right center / auto 100% no-repeat,
    linear-gradient(90deg, #a2152e 0%, #b11833 33%, #b11833 100%);
}

.page-title-banner__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

/* ---------- 1.8 Video feature section (home "Meet Marylou") ---------- */
.video-feature {
  --video-overhang: 279px;
  padding-top: 96px;
  background: linear-gradient(var(--color-blue) calc(100% - var(--video-overhang)), transparent 0);
  text-align: center;
  color: var(--color-white);
}

.video-feature__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
}

.video-feature__subtitle {
  margin-top: 2px;
  font-size: 25px;
  font-weight: 300;
  font-style: italic;
  line-height: 32px;
}

.video-feature__text {
  max-width: 600px;
  margin: 22px auto 0;
}

.video-feature__video {
  max-width: 996px;
  margin: 92px auto 0;
  border-radius: 24px;
}

/* ---------- 1.9 Footer ---------- */
.site-footer {
  padding-top: 90px;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-secondary);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-logo img {
  width: 367px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 240px);
  flex-shrink: 0;
  margin-right: -96px;
  padding-top: 8px;
}

.footer-column__title {
  margin-bottom: 33px;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-menu li + li {
  margin-top: 5px;
}

.footer-menu a {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
}

.footer-menu a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding: 34px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  line-height: 18px;
}

/* ==========================================================================
   2. HOME PAGE (index.html)
   ========================================================================== */

/* ---------- 2.1 Hero ---------- */
.home-hero {
  display: flex;
  min-height: 711px;
  padding: 198px 0 200px;
  background:
    url("images/shared-wave-white.svg") center calc(100% + 2px) / 100% 223px no-repeat,
    linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(1, 1, 1, 0.48) 43.8%, rgba(84, 84, 84, 0) 100%),
    url("images/index-hero-hands-together.jpg") center / cover no-repeat;
  color: var(--color-white);
}

.home-hero__content {
  max-width: 540px;
}

.home-hero__title {
  font-size: 46px;
  font-weight: 700;
  line-height: 56px;
}

.home-hero__text {
  margin-top: 26px;
  font-size: 20px;
  line-height: 30px;
}

.home-hero .button-group {
  margin-top: 36px;
}

/* ---------- 2.2 Quote ---------- */
.home-quote {
  padding-top: 52px;
  text-align: center;
}

.home-quote__quote {
  max-width: 980px;
  margin-inline: auto;
}

.home-quote__text {
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  color: var(--color-red);
}

.home-quote__cite {
  display: block;
  margin-top: 30px;
  font-size: 18px;
  font-style: normal;
  line-height: 26px;
  color: var(--color-black);
}

.logo-divider {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-top: 50px;
}

.logo-divider::before,
.logo-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.logo-divider__image {
  width: 152px;
}

/* ---------- 2.3 Intro ---------- */
.home-intro {
  padding-top: 26px;
  text-align: center;
}

.home-intro__text {
  max-width: 600px;
  margin: 14px auto 0;
}

.home-intro__text p + p {
  margin-top: 10px;
}

/* ---------- 2.4 Feature cards (blue swoosh behind) ---------- */
.home-features {
  padding-top: 90px;
  background: url("images/shared-swoosh-blue.svg") center 104px / 100% 607px no-repeat;
}

.feature-card {
  display: flex;
  min-height: 621px;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--color-white);
  box-shadow: var(--card-shadow);
}

.feature-card__image {
  width: 100%;
  aspect-ratio: 444 / 299;
  object-fit: cover;
}

.feature-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 54px 72px 58px;
}

.feature-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  color: var(--color-red);
}

.feature-card__text {
  margin: 14px 0 26px;
}

.feature-card .link-arrow {
  margin-top: auto;
}

.home-features + .video-feature {
  padding-top: 102px;
}

/* ---------- 2.5 Resources teaser ---------- */
.home-resources {
  padding: 112px 0 112px;
}

.home-resources .card-grid {
  margin-top: 62px;
}

.resource-teaser {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 43px 57px;
  border-radius: var(--card-radius);
  background: var(--color-white);
  box-shadow: var(--card-shadow);
}

.resource-teaser__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  color: var(--color-text);
}

.resource-teaser__text {
  margin: 20px 0 26px;
  color: var(--color-black);
}

.resource-teaser .button {
  margin-top: auto;
}

.home-resources__more {
  margin-top: 76px;
  text-align: center;
}

/* ---------- 2.6 Support / donate banner ---------- */
.support-banner {
  display: flex;
  min-height: 743px;
  padding: 290px 0 150px;
  background:
    url("images/shared-curve-white-top.svg") center top / 100% 168px no-repeat,
    linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(1, 1, 1, 0.48) 43.8%, rgba(84, 84, 84, 0) 100%),
    url("images/index-support-hands-heart-puzzle.jpg") center / cover no-repeat;
  color: var(--color-white);
}

.support-banner__content {
  max-width: 780px;
}

.support-banner__kicker {
  font-size: 35px;
  font-weight: 300;
  line-height: 44px;
}

.support-banner__title {
  margin-top: 20px;
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
}

.support-banner .button {
  margin-top: 30px;
  min-height: 57px;
}

/* ==========================================================================
   3. SECONDARY PAGES
   ========================================================================== */

/* ---------- 3.1 About page (about/index.html) ---------- */
.about-intro {
  padding: 72px 0 0;
}

.about-intro__inner {
  display: grid;
  grid-template-columns: 594px 1fr;
  gap: 144px;
  align-items: start;
}

.about-intro__image {
  width: 100%;
  border-radius: 8px;
}

.about-intro__content {
  max-width: 590px;
  padding-top: 26px;
  color: var(--color-black);
}

.about-intro__lead {
  font-size: 25px;
  font-weight: 700;
  line-height: 29px;
  color: var(--color-red);
}

.about-intro__content p {
  margin-top: 18px;
  font-size: 18px;
  line-height: 27px;
}

.text-highlight {
  color: var(--color-red);
}

.sponsor {
  padding: 82px 0 40px;
  text-align: center;
}

.sponsor__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--color-blue);
}

.sponsor__logo {
  width: 208px;
  margin: 18px auto 0;
}

.about-banner {
  display: flex;
  align-items: center;
  min-height: 650px;
  padding: 200px 0 150px;
  background:
    url("images/shared-curve-white-top.svg") center top / 100% 110px no-repeat,
    url("images/shared-wave-white.svg") center bottom / 100% 120px no-repeat,
    url("images/about-banner-caring-hands.jpg") center / cover no-repeat;
  color: var(--color-white);
}

.about-banner__content {
  max-width: 740px;
  margin-left: -84px;
}

.about-banner__text {
  font-size: 26px;
  font-weight: 700;
  line-height: 29px;
}

.about-banner .button {
  margin-top: 26px;
}

.team__header {
  padding-top: 30px;
  text-align: center;
}

.team__intro {
  margin-top: 30px;
  color: var(--color-black);
}

.team__cards {
  margin-top: 50px;
  padding: 0 0 72px;
  background:
    url("images/shared-swoosh-blue.svg") center -34px / 100% 607px no-repeat,
    linear-gradient(transparent 572px, var(--color-blue) 0);
}

.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: var(--card-shadow);
}

.team-card__image {
  width: 100%;
  aspect-ratio: 648 / 432;
  object-fit: cover;
}

.team-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 60px 44px;
}

.team-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  color: var(--color-red);
}

.team-card__text {
  margin: 16px 0 36px;
  line-height: 27px;
  color: var(--color-black);
}

.team-card .link-arrow {
  margin-top: auto;
}

/* ---------- 3.2 Patient Roadmap page (patient-roadmap/index.html) ---------- */
.roadmap-intro {
  padding: 72px 0 110px;
  text-align: center;
  color: var(--color-blue);
}

.roadmap-intro__kicker {
  font-size: 36px;
  font-weight: 300;
  line-height: 44px;
}

.roadmap-intro__title {
  max-width: 900px;
  margin: 18px auto 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 42px;
}

.step-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.step-label--red {
  color: var(--color-red);
}

/* Outline card variant */
.roadmap-steps--outline .container {
  display: grid;
  gap: 37px;
}

.step-card {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  min-height: 418px;
  padding: 36px 36px 36px 72px;
  border: 1px solid var(--color-blue);
  border-radius: 6px;
  background:
    url("images/patient-roadmap-card-wave.svg") right bottom / 60% 190px no-repeat,
    var(--color-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-card__content {
  align-self: center;
  max-width: 660px;
}

.step-card__title {
  margin-top: 4px;
  font-size: 34px;
  font-weight: 700;
  line-height: 42px;
  color: var(--color-red);
}

.step-card__text {
  margin-top: 18px;
  line-height: 27px;
  color: var(--color-black);
}

.step-card .button {
  margin-top: 22px;
}

.step-card__icon {
  flex-shrink: 0;
  align-self: flex-start;
  width: 200px;
}

.step-card--story {
  min-height: 376px;
  padding-top: 30px;
}

.step-card--story .step-card__content {
  max-width: 470px;
}

.step-card__quote {
  margin-top: 26px;
  line-height: 27px;
  color: var(--color-black);
}

.step-card__attribution,
.step-panel__attribution {
  margin-top: 38px;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.step-card__video {
  flex: 0 1 539px;
  align-self: flex-start;
  border-radius: 24px;
}

.step-card__video .play-button {
  max-width: 100px;
}

/* Red panel variant */
.roadmap-steps--panels {
  padding: 320px 0 216px;
}

.roadmap-steps--panels .container {
  display: grid;
  gap: 217px;
}

.step-panel {
  display: grid;
  grid-template-columns: 1fr 663px;
  align-items: center;
  gap: 40px;
  min-height: 584px;
  padding: 120px 122px;
  border-radius: 6px;
  background: var(--color-red);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.step-panel__media {
  display: flex;
  justify-content: flex-start;
}

.step-panel__icon {
  width: 224px;
  margin-left: 25px;
}

.step-panel__box {
  position: relative;
  padding: 50px 50px 50px;
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-red);
}

.step-panel__title {
  margin-top: 26px;
  font-size: 45px;
  font-weight: 700;
  line-height: 54px;
}

.step-panel__text {
  margin-top: 12px;
  font-size: 20px;
  line-height: 24px;
}

.step-panel--story {
  grid-template-columns: 548px 489px;
  justify-content: space-between;
  gap: 50px;
  padding: 122px;
  min-height: 607px;
  align-items: start;
}

.step-panel__video {
  width: 100%;
  border-radius: 24px;
}

.step-panel__video img {
  aspect-ratio: 548 / 364;
  object-fit: cover;
}

.step-panel__video .play-button {
  max-width: 100px;
}

.step-panel--story .step-panel__box {
  min-height: 364px;
  padding: 50px 50px 40px;
}

.step-panel__box-icon {
  float: right;
  width: 80px;
  margin: -10px 0 0 16px;
}

.step-panel__title--story {
  margin-top: 0;
  font-size: 34px;
  line-height: 52px;
}

.step-panel__quote {
  margin-top: 18px;
  line-height: 27px;
}

.step-panel__attribution {
  margin-top: 26px;
  color: var(--color-red);
}

/* ---------- 3.3 Resources page (resources/index.html) ---------- */
.resources-listing {
  padding: 72px 0 72px;
}

.resource-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  margin-bottom: 39px;
}

.resource-filter__label {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-red);
}

.resource-filter__select {
  width: 309px;
  height: 51px;
  padding: 0 48px 0 20px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: var(--color-white) url("images/resources-icon-chevron-down.svg") right 20px center / 16px no-repeat;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-black);
  appearance: none;
  cursor: pointer;
}

.resource-filter__apply {
  min-width: 98px;
  min-height: 51px;
  padding: 0 24px;
  font-weight: 700;
}

.resource-filter__clear {
  font-size: 16px;
  color: var(--color-blue);
  text-decoration: underline;
}

.resource-grid {
  gap: 32px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--color-white);
  box-shadow: var(--card-shadow);
}

.resource-card__media {
  padding: 52px 34px 0;
  background: var(--color-blue);
}

.resource-card__image {
  width: 100%;
  aspect-ratio: 354 / 294;
  object-fit: cover;
}

.resource-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 42px 40px;
}

.resource-card__category {
  font-size: 15px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--color-black);
}

.resource-card__title {
  margin-top: 10px;
  font-size: 25px;
  font-weight: 700;
  line-height: 29px;
  color: var(--color-red);
}

.resource-card__text {
  margin: 14px 0 26px;
  font-size: 19px;
  line-height: 27px;
  color: var(--color-black);
}

.resource-card .button {
  margin-top: auto;
}

/* ---------- 3.4 Participant Stories page (stories/index.html) ---------- */
.stories-section {
  padding-top: 72px;
}

.stories-section--last {
  padding-bottom: 72px;
}

.story-grid {
  gap: 73px;
  margin-top: 70px;
  row-gap: 72px;
}

.story-card__link {
  display: block;
  text-decoration: none;
}

.story-card__image {
  width: 100%;
  aspect-ratio: 629 / 354;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.story-card__title {
  margin-top: 22px;
  font-size: 30px;
  font-weight: 300;
  line-height: 36px;
  color: var(--color-blue);
}

.story-card__link:hover .story-card__title {
  color: var(--color-red);
}

/* ---------- 3.5 WordPress content (single story, default pages) ---------- */
.entry__inner {
  padding-block: 72px;
}

.entry__image {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.entry__title {
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 300;
  line-height: 36px;
  color: var(--color-blue);
}

.entry__title a {
  text-decoration: none;
}

.entry + .entry {
  margin-top: 48px;
}

.entry-content > * + * {
  margin-top: 24px;
}

.entry-content h2,
.entry-content h3 {
  color: var(--color-blue);
  line-height: 1.25;
}

.entry-content a {
  color: var(--color-red);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.entry-content ul {
  list-style: disc;
}

.entry-content iframe,
.entry-content video {
  width: 100%;
  max-width: 100%;
  border: 0;
}

.entry-content figure {
  margin-inline: 0;
}

.entry__back {
  margin-top: 48px;
}

.no-results {
  padding-block: 24px;
  font-size: 19px;
}

/* ---------- 4.1 Small desktop ---------- */
/* ==========================================================================
   4. RESPONSIVE LAYOUTS
   ========================================================================== */

@media (max-width: 1440px) {
  .footer-columns {
    margin-right: 0;
    grid-template-columns: repeat(3, minmax(160px, 220px));
  }

  .about-banner__content {
    margin-left: 0;
  }

  .about-intro__inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .step-panel {
    padding-inline: 80px;
  }

  .step-panel--story {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 1200px) {
  .step-panel {
    grid-template-columns: 1fr 1.6fr;
    padding: 80px 60px;
  }

  .step-panel--story {
    grid-template-columns: 1fr 1fr;
  }

  .step-panel__icon {
    margin-right: 0;
  }

  .feature-card__body {
    padding-inline: 40px;
  }
}

/* ---------- 4.2 Tablet ---------- */
@media (max-width: 1024px) {
  body {
    font-size: 17px;
    line-height: 25px;
  }

  .site-header__inner {
    min-height: 96px;
  }

  .site-logo img {
    width: 120px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .menu-toggle__bar,
  .menu-toggle__bar::before,
  .menu-toggle__bar::after {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-red);
    transition: transform 0.2s, opacity 0.2s;
  }

  .menu-toggle__bar {
    position: relative;
  }

  .menu-toggle__bar::before,
  .menu-toggle__bar::after {
    content: "";
    position: absolute; /* hamburger icon lines */
    left: 0;
  }

  .menu-toggle__bar::before {
    top: -9px;
  }

  .menu-toggle__bar::after {
    top: 9px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__bar {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__bar::before {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__bar::after {
    transform: translateY(-9px) rotate(-45deg);
  }

  .main-navigation {
    position: absolute; /* dropdown panel below the header bar */
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 8px var(--container-gutter) 28px;
    background: var(--color-white);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
  }

  .main-navigation.is-open {
    display: flex;
  }

  .menu {
    flex-direction: column;
    gap: 0;
  }

  .menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 18px;
  }

  .header-donate {
    align-self: flex-start;
    margin-top: 22px;
  }

  .section-title,
  .home-quote__text,
  .video-feature__title,
  .support-banner__title {
    font-size: 34px;
    line-height: 42px;
  }

  .home-hero {
    min-height: 600px;
    padding: 120px 0 200px;
  }

  .home-hero__title {
    font-size: 40px;
    line-height: 48px;
  }

  .card-grid {
    gap: 24px;
  }

  .card-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-features .card-grid--three .feature-card:last-child,
  .home-resources .card-grid--three .resource-teaser:last-child {
    grid-column: 1 / -1;
  }

  .feature-card,
  .resource-teaser {
    min-height: 0;
  }

  .home-features .feature-card:last-child {
    flex-direction: row;
  }

  .home-features .feature-card:last-child .feature-card__image {
    width: 50%;
    aspect-ratio: auto;
  }

  .video-feature {
    --video-overhang: 180px;
  }

  .video-feature__video {
    margin-top: 56px;
  }

  .support-banner {
    min-height: 0;
    padding: 200px 0 120px;
  }

  .support-banner__kicker {
    font-size: 30px;
  }

  .site-footer__top {
    flex-direction: column;
  }

  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .about-intro__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-intro__image {
    max-width: 640px;
  }

  .about-intro__content {
    padding-top: 0;
  }

  .about-banner {
    min-height: 0;
    padding: 160px 0 140px;
  }

  .about-banner__text {
    font-size: 24px;
  }

  .team-card__body {
    padding: 30px 32px 36px;
  }

  .roadmap-intro__kicker,
  .roadmap-intro__title {
    font-size: 30px;
    line-height: 38px;
  }

  .step-card {
    padding: 36px 40px;
  }

  .step-card__icon {
    width: 150px;
  }

  .step-card--story {
    flex-direction: column;
  }

  .step-card--story .step-card__content {
    max-width: none;
  }

  .step-card__video {
    flex: none;
    width: 100%;
  }

  .roadmap-steps--panels {
    padding: 140px 0 120px;
  }

  .roadmap-steps--panels .container {
    gap: 80px;
  }

  .step-panel,
  .step-panel--story {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 60px 48px;
  }

  .step-panel__icon {
    width: 160px;
  }

  .step-panel__title {
    font-size: 38px;
    line-height: 46px;
  }

  .resource-filter__select {
    width: 260px;
  }

  .story-grid {
    gap: 40px 32px;
  }

  .story-card__title {
    font-size: 26px;
    line-height: 32px;
  }
}

/* ---------- 4.3 Mobile ---------- */
@media (max-width: 767px) {
  :root {
    --container-gutter: 16px;
  }

  body {
    font-size: 16px;
    line-height: 24px;
  }

  .site-header__inner {
    min-height: 80px;
  }

  .site-logo img {
    width: 100px;
  }

  .section-title,
  .home-quote__text,
  .video-feature__title,
  .support-banner__title,
  .page-title-banner__title {
    font-size: 28px;
    line-height: 36px;
  }

  .page-title-banner {
    min-height: 90px;
  }

  .home-hero {
    min-height: 0;
    padding: 72px 0 140px;
    background-size: 100% 90px, auto, cover;
  }

  .home-hero__title {
    font-size: 32px;
    line-height: 40px;
  }

  .home-hero__text {
    font-size: 18px;
    line-height: 27px;
  }

  .home-quote {
    padding-top: 24px;
  }

  .logo-divider {
    gap: 20px;
    margin-top: 36px;
  }

  .logo-divider__image {
    width: 110px;
  }

  .card-grid--three,
  .card-grid--two {
    grid-template-columns: 1fr;
  }

  .home-features {
    padding-top: 56px;
    background-size: 100% 400px;
    background-position: center bottom;
  }

  .home-features .feature-card:last-child {
    flex-direction: column;
  }

  .home-features .feature-card:last-child .feature-card__image {
    width: 100%;
    aspect-ratio: 444 / 299;
  }

  .feature-card__body,
  .resource-teaser {
    padding: 32px 28px 36px;
  }

  .home-features + .video-feature {
    padding-top: 64px;
  }

  .video-feature {
    --video-overhang: 90px;
  }

  .video-feature__subtitle {
    font-size: 21px;
  }

  .video-feature__video {
    margin-top: 40px;
    border-radius: 16px;
  }

  .home-resources {
    padding: 56px 0 80px;
  }

  .home-resources .card-grid {
    margin-top: 36px;
  }

  .home-resources__more {
    margin-top: 44px;
  }

  .button--wide {
    min-width: 0;
    width: 100%;
  }

  .support-banner {
    padding: 110px 0 80px;
    background-size: 100% 70px, auto, cover;
    background-image:
      url("images/shared-curve-white-top.svg"),
      linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url("images/index-support-hands-heart-puzzle.jpg");
  }

  .support-banner__kicker {
    font-size: 24px;
    line-height: 32px;
  }

  .site-footer {
    padding-top: 56px;
  }

  .footer-logo img {
    width: 260px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-column__title {
    margin-bottom: 14px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
  }

  .about-intro {
    padding-top: 40px;
  }

  .about-intro__lead {
    font-size: 22px;
    line-height: 28px;
  }

  .sponsor {
    padding-top: 56px;
  }

  .about-banner {
    padding: 90px 0 90px;
    background-size: 100% 50px, 100% 50px, cover;
  }

  .about-banner__text {
    font-size: 20px;
    line-height: 27px;
  }

  .team__intro br {
    display: none;
  }

  .team__cards {
    background-size: 100% 300px, auto;
    background-position: center 120px, 0 0;
    background-image:
      url("images/shared-swoosh-blue.svg"),
      linear-gradient(transparent 410px, var(--color-blue) 0);
  }

  .team-card__body {
    padding: 28px 24px 32px;
  }

  .roadmap-intro {
    padding: 48px 0 56px;
  }

  .roadmap-intro__kicker {
    font-size: 24px;
    line-height: 32px;
  }

  .roadmap-intro__title {
    font-size: 24px;
    line-height: 31px;
  }

  .step-card {
    flex-direction: column-reverse;
    padding: 28px 24px 36px;
    min-height: 0;
  }

  .step-card--story {
    flex-direction: column;
  }

  .step-card__icon {
    width: 110px;
  }

  .step-card__title {
    font-size: 28px;
    line-height: 34px;
  }

  .roadmap-steps--panels {
    padding: 80px 0;
  }

  .roadmap-steps--panels .container {
    gap: 48px;
  }

  .step-panel,
  .step-panel--story {
    padding: 36px 20px;
    gap: 28px;
  }

  .step-panel__icon {
    width: 120px;
  }

  .step-panel__box,
  .step-panel--story .step-panel__box {
    min-height: 0;
    padding: 28px 24px;
  }

  .step-panel__title {
    margin-top: 12px;
    font-size: 30px;
    line-height: 36px;
  }

  .step-panel__title--story {
    margin-top: 0;
    font-size: 28px;
    line-height: 38px;
  }

  .step-panel__box-icon {
    width: 56px;
  }

  .resources-listing {
    padding-top: 40px;
  }

  .resource-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .resource-filter__select {
    width: 100%;
  }

  .resource-filter__clear {
    align-self: center;
  }

  .resource-card__media {
    padding: 32px 24px 0;
  }

  .resource-card__body {
    padding: 28px 24px 32px;
  }

  .resource-card__title {
    font-size: 22px;
    line-height: 27px;
  }

  .resource-card__text {
    font-size: 17px;
    line-height: 25px;
  }

  .stories-section {
    padding-top: 48px;
  }

  .story-grid {
    margin-top: 36px;
    gap: 36px;
  }

  .entry__inner {
    padding-block: 48px;
  }

  .story-card__title {
    margin-top: 14px;
    font-size: 22px;
    line-height: 28px;
  }
}
