@import url("https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap");

/*
 * ICHA V1 — Visual Foundation + Homepage + Navigation
 * Scope deliberately limited to:
 * 1) site-wide Public Sans typography and core button language,
 * 2) global navigation presentation/ordering supplied by site.js,
 * 3) homepage visual treatment and the new outward-facing partnership sections.
 * No other page structure or content is changed in V1.
 */

:root {
  --font-display: "Public Sans", Arial, Helvetica, sans-serif;
  --font-body: "Public Sans", Arial, Helvetica, sans-serif;
  --v1-rule: #d9d9d6;
  --v1-soft: #f5f5f2;
  --v1-black: #111111;
}

body {
  font-family: var(--font-body);
}

.display-xl,
.display-lg,
.display-md,
.blog-body h2,
.blog-body h3,
.blog-body h4,
.publication-reader-toolbar h2,
.inline-feedback h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.display-xl { font-weight: 700; }
.display-lg,
.display-md { font-weight: 700; }

/* Global button language: flatter, editorial, no template-like pills or lift shadows. */
.btn {
  border-radius: 2px;
  box-shadow: none;
  font-weight: 700;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn:hover {
  transform: none;
  box-shadow: none;
}

.btn-primary,
body.brand-red-page .btn-primary {
  box-shadow: none;
}

.btn-primary:hover,
body.brand-red-page .btn-primary:hover {
  box-shadow: none;
}

/* Global navigation */
#navbar {
  background: #fff;
  backdrop-filter: none;
  border-bottom: 1px solid var(--v1-rule);
  box-shadow: none;
}

.nav-inner {
  gap: clamp(18px, 2vw, 34px);
}

.nav-logo-dot {
  display: none;
}

.nav-logo img {
  width: 136px;
}

.nav-links {
  justify-content: flex-end;
  gap: 2px;
}

.nav-link {
  min-height: 68px;
  padding: 0 13px;
  border-radius: 0;
  color: #252525;
  font-size: .82rem;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.nav-link-parent::after {
  display: none !important;
  content: none !important;
}

.nav-link:hover,
.nav-link.active,
.nav-item:hover .nav-link-parent,
.nav-item:focus-within .nav-link-parent {
  color: var(--ifrc-red);
  background: transparent;
}

.nav-link.active {
  box-shadow: inset 0 -2px 0 var(--ifrc-red);
}

.nav-submenu {
  top: 100%;
  padding: 10px 0;
  border: 1px solid var(--v1-rule);
  border-top: 3px solid var(--ifrc-red);
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
  transform: translateY(4px);
}

.nav-submenu-link {
  padding: 10px 16px;
  border-radius: 0;
  color: #333;
  font-size: .82rem;
  font-weight: 600;
}

.nav-submenu-link:hover,
.nav-submenu-link.active {
  color: var(--v1-black);
  background: var(--v1-soft);
}

.nav-search-btn,
.nav-hamburger {
  border: 0;
  border-radius: 0;
  color: var(--v1-black);
}

.nav-search-btn:hover,
.nav-hamburger:hover {
  background: var(--v1-soft);
}

#mobile-nav {
  background: #fff;
  box-shadow: inset 0 1px 0 var(--v1-rule);
}

.mobile-nav-section {
  border-bottom: 1px solid var(--v1-rule);
}

.mobile-nav-link {
  justify-content: flex-start;
  color: var(--v1-black);
  font-size: 1.05rem;
  font-weight: 700;
}

.mobile-nav-children {
  gap: 0;
  padding: 0 0 12px;
  border-left: 0;
}

.mobile-nav-child {
  padding: 7px 0;
  color: #555;
  font-size: .9rem;
  font-weight: 500;
}

.mobile-nav-child:hover,
.mobile-nav-child.active,
.mobile-nav-link.active {
  color: var(--ifrc-red);
}

/* Homepage: editorial, photography-led, flat visual system. */
.v1-home {
  background: #fff;
}

.v1-home .v1-home-hero {
  min-height: min(720px, calc(100vh - 68px));
  display: flex;
  align-items: flex-end;
  padding: clamp(110px, 16vh, 190px) 0 clamp(72px, 10vh, 112px);
  background-image: url("images/heroes/hero-home-people.png") !important;
  background-position: center 44% !important;
  background-size: cover !important;
  color: #fff;
}

.v1-home .v1-home-hero::before {
  display: none;
}

.v1-home .v1-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, .52);
}

.v1-home .v1-home-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.v1-hero-copy {
  max-width: 900px;
}

.v1-home .v1-home-hero h1 {
  max-width: 900px;
  margin: 14px 0 24px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.v1-home .v1-home-hero .hero-sub {
  max-width: 780px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.v1-kicker {
  margin: 0;
  color: var(--ifrc-red);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.v1-kicker-light {
  color: #fff;
}

.v1-home .hero-actions {
  align-items: center;
  gap: 24px;
}

.v1-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid currentColor;
  font-size: .92rem;
  font-weight: 700;
}

.v1-text-link-light {
  color: #fff;
}

.v1-text-link:hover {
  color: var(--ifrc-red);
}

.v1-positioning {
  padding: clamp(72px, 8vw, 116px) 0;
  background: #fff;
  border-bottom: 1px solid var(--v1-rule);
}

.v1-section-intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  column-gap: clamp(40px, 7vw, 110px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 82px);
}

.v1-section-intro .v1-kicker {
  grid-column: 1;
  margin-bottom: 16px;
}

.v1-section-intro h2 {
  grid-column: 1;
  max-width: 590px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
}

.v1-section-intro > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 610px;
  padding-top: 30px;
  color: #444;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.8;
}

.v1-difference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--v1-black);
}

.v1-difference-grid article {
  min-height: 250px;
  padding: 26px clamp(20px, 2.5vw, 36px) 0 0;
}

.v1-difference-grid article + article {
  padding-left: clamp(20px, 2.5vw, 36px);
  border-left: 1px solid var(--v1-rule);
}

.v1-difference-grid span,
.v1-value-item > span {
  display: block;
  margin-bottom: 30px;
  color: var(--ifrc-red);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.v1-difference-grid h3 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.15;
}

.v1-difference-grid p {
  max-width: 360px;
  color: #555;
  font-size: .92rem;
  line-height: 1.75;
}

.v1-collaboration {
  padding: clamp(78px, 9vw, 128px) 0;
  background: var(--v1-soft);
}

.v1-collaboration-layout {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: clamp(52px, 8vw, 120px);
  align-items: start;
}

.v1-collaboration-intro {
  position: sticky;
  top: 108px;
}

.v1-collaboration-intro h2 {
  margin: 16px 0 24px;
  font-size: clamp(2.15rem, 3.8vw, 3.7rem);
  line-height: 1.02;
}

.v1-collaboration-intro > p:not(.v1-kicker) {
  margin-bottom: 30px;
  color: #4c4c4c;
  font-size: 1rem;
  line-height: 1.78;
}

.v1-value-list {
  border-top: 1px solid var(--v1-black);
}

.v1-value-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--v1-rule);
}

.v1-value-item > span {
  margin: 5px 0 0;
}

.v1-value-item h3 {
  margin-bottom: 7px;
  font-size: clamp(1.12rem, 1.4vw, 1.4rem);
  line-height: 1.25;
}

.v1-value-item p {
  max-width: 650px;
  color: #555;
  font-size: .92rem;
  line-height: 1.7;
}

/* Existing homepage modules — preserve content, remove template-card treatment. */
.v1-home .featured-entry {
  padding: clamp(68px, 7vw, 98px) 0;
  background: #fff;
  border-bottom: 1px solid var(--v1-rule);
}

.v1-home .featured-entry-grid {
  gap: 0;
  border-top: 1px solid var(--v1-black);
}

.v1-home .entry-tile {
  min-height: 260px;
  padding: 28px clamp(22px, 2.7vw, 38px) 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v1-home .entry-tile + .entry-tile {
  padding-left: clamp(22px, 2.7vw, 38px);
  border-left: 1px solid var(--v1-rule);
}

.v1-home .entry-tile:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.v1-home .entry-tile h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.v1-home .entry-tile span {
  color: var(--ifrc-red);
}

.v1-home .impact-band {
  background: var(--v1-black);
}

.v1-home .impact-band-grid {
  text-align: left;
}

.v1-home .impact-band-grid > div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .35);
}

.v1-home .impact-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.v1-home .impact-stat-label {
  max-width: 260px;
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}

.v1-home .section-parchment {
  background: #fff;
}

.v1-home .cards-grid-4 {
  gap: 0;
  border-top: 1px solid var(--v1-black);
}

.v1-home .expert-card {
  padding: 26px 24px 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v1-home .expert-card + .expert-card {
  padding-left: 24px;
  border-left: 1px solid var(--v1-rule);
}

.v1-home .expert-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.v1-home .expert-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
}

.v1-home .expert-avatar img {
  width: 30px;
  height: 30px;
}

.v1-home .partner-strip {
  background: var(--v1-soft);
  border-top: 1px solid var(--v1-rule);
}

.v1-home .partner-marquee::before,
.v1-home .partner-marquee::after {
  display: none;
}

.v1-home .partner-track {
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 34px;
  animation: none;
}

.v1-home .partner-logo-item[aria-hidden="true"] {
  display: none;
}

.v1-home .partner-logo-item {
  min-width: 140px;
  height: 70px;
  padding: 10px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v1-home .partner-logo-item:hover,
.v1-home .partner-logo-item:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.v1-home .dual-cta {
  background: var(--v1-black);
}

.v1-home .dual-cta-grid {
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .35);
}

.v1-home .cta-panel {
  padding: 42px 44px 24px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.v1-home .cta-panel + .cta-panel {
  padding-left: 44px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.v1-home .cta-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.025em;
}

@media (max-width: 1024px) {
  .nav-link {
    padding: 0 9px;
    font-size: .78rem;
  }

  .v1-section-intro,
  .v1-collaboration-layout {
    grid-template-columns: 1fr;
  }

  .v1-section-intro > p:last-child {
    grid-column: 1;
    grid-row: auto;
    padding-top: 22px;
  }

  .v1-collaboration-intro {
    position: static;
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .nav-logo img {
    width: 118px;
  }

  .nav-link {
    min-height: 0;
  }

  .v1-home .v1-home-hero {
    min-height: 620px;
    align-items: flex-end;
    padding: 100px 0 64px;
    background-position: 58% center !important;
  }

  .v1-home .v1-home-hero::after {
    background: rgba(0, 0, 0, .58);
  }

  .v1-home .v1-home-hero h1 {
    font-size: clamp(2.55rem, 12vw, 4.1rem);
    line-height: 1;
  }

  .v1-home .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .v1-home .hero-actions .btn {
    width: 100%;
  }

  .v1-text-link {
    width: max-content;
  }

  .v1-positioning,
  .v1-collaboration,
  .v1-home .featured-entry {
    padding: 68px 0;
  }

  .v1-section-intro {
    margin-bottom: 46px;
  }

  .v1-section-intro h2,
  .v1-collaboration-intro h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .v1-difference-grid {
    grid-template-columns: 1fr;
  }

  .v1-difference-grid article,
  .v1-difference-grid article + article {
    min-height: 0;
    padding: 24px 0 34px;
    border-left: 0;
    border-bottom: 1px solid var(--v1-rule);
  }

  .v1-difference-grid span {
    margin-bottom: 18px;
  }

  .v1-value-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .v1-home .featured-entry-grid,
  .v1-home .cards-grid-4 {
    grid-template-columns: 1fr;
  }

  .v1-home .entry-tile,
  .v1-home .entry-tile + .entry-tile,
  .v1-home .expert-card,
  .v1-home .expert-card + .expert-card {
    min-height: 0;
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--v1-rule);
  }

  .v1-home .impact-band-grid {
    grid-template-columns: 1fr 1fr;
  }

  .v1-home .dual-cta-grid {
    grid-template-columns: 1fr;
  }

  .v1-home .cta-panel,
  .v1-home .cta-panel + .cta-panel {
    padding: 36px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }
}

@media (max-width: 420px) {
  .v1-home .v1-home-hero {
    min-height: 560px;
    padding: 90px 0 52px;
  }

  .v1-home .v1-home-hero h1 {
    font-size: clamp(2.35rem, 12.5vw, 3rem);
  }

  .v1-home .impact-band-grid {
    grid-template-columns: 1fr;
  }

  .v1-value-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }
}

/* V2 sitewide editorial consistency. No content changes are made by these rules. */
.page .section,
.page .section-parchment {
  padding-top: clamp(70px, 7vw, 104px);
  padding-bottom: clamp(70px, 7vw, 104px);
}

.page .section-parchment {
  background: var(--v1-soft);
}

.page .section-header {
  max-width: 900px;
  margin-bottom: clamp(34px, 4vw, 56px);
}

.page .section-header h2 {
  letter-spacing: -.035em;
}

.page .eyebrow,
.page .badge,
.page .project-card-kicker,
.page .leadership-portfolio,
.page .reader-meta span {
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.page .badge,
.page .project-card-kicker,
.page .leadership-portfolio {
  padding-left: 0;
  padding-right: 0;
}

body.brand-red-page .programme-card::before,
body.brand-red-page .pathway-card::before,
.hero::before,
.detail-hero::before {
  display: none !important;
}

.page .programme-card,
.page .pathway-card,
.page .service-grid > article,
.page .detail-panel,
.page .flagship-panel,
.page .mini-cta,
.page .detail-nav-card,
.page .project-card,
.page .pub-card,
.page .pub-list-item,
.page .reader-panel,
.page .leadership-card,
.page .expert-card {
  border-radius: 0;
  box-shadow: none;
}

.page .programme-card:hover,
.page .pathway-card:hover,
.page .project-card:hover,
.page .pub-card:hover,
.page .pub-list-item:hover,
.page .leadership-card:hover,
.page .expert-card:hover {
  transform: none;
  box-shadow: none;
}

.page input,
.page textarea,
.page select {
  border-radius: 2px;
  box-shadow: none;
}

/* V4.2 navigation consistency and conversion CTA */
.nav-search-btn {
  display: none !important;
}

.nav-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  margin-left: 8px;
  border: 1px solid #ee2435 !important;
  border-radius: 0;
  background: #ee2435 !important;
  color: #fff !important;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.nav-contact-cta:hover,
.nav-contact-cta:focus-visible,
.nav-contact-cta.active {
  background: #d92730 !important;
  border-color: #d92730 !important;
  color: #fff !important;
}

.mobile-nav-contact-cta {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--ifrc-red);
  color: #fff !important;
  border: 1px solid var(--ifrc-red);
}

.mobile-nav-contact-cta:hover,
.mobile-nav-contact-cta.active {
  background: var(--ifrc-dark-red);
  border-color: var(--ifrc-dark-red);
  color: #fff !important;
}

@media (max-width: 768px) {
  .nav-contact-cta {
    display: none;
  }
}
