/*
Theme Name: Humraz Male Health Society
Theme URI: https://hmhs.org.pk
Author: HMHS
Description: Block theme for Humraz Male Health Society. Fully editable in Appearance > Editor (Site Editor): colors and fonts under Styles, header and footer under Patterns/Template Parts, homepage under Templates > Front Page.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hmhs
*/

:root {
  --purple: #903A88;
  --blue: #0061A7;
  --magenta: #911779;
  --dark: #191310;
  --muted: #665f64;
  --light: #F7F5F8;
  --light-purple: #F7F2F7;
  --border: #E8E4E8;
  --white: #FFFFFF;
  --shadow: 0 12px 35px rgba(25, 19, 16, 0.08);
  --container: 1200px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--dark);
  color: white;
  padding: 10px 14px;
  border-radius: 5px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 90px 0;
}

.section-white {
  background: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(232, 228, 232, 0.9);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 185px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
  padding: 28px 0;
}

.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width 0.2s ease;
}

.main-nav > a:hover::after,
.main-nav > a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  background: var(--purple);
  color: white;
  padding: 11px 18px;
  border-radius: 5px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--magenta);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(144, 58, 136, 0.10), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fbfafc 100%);
  padding: 88px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -170px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(0, 97, 167, 0.10);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.3;
}

.eyebrow.light {
  color: rgba(255,255,255,0.85);
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 700px;
  font-size: clamp(42px, 5.2vw, 68px);
}

h2 {
  font-size: clamp(31px, 3.2vw, 46px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

.hero-lead {
  max-width: 670px;
  font-size: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--purple);
  color: white;
}

.btn-primary:hover {
  background: var(--magenta);
}

.btn-outline {
  color: var(--purple);
  border-color: var(--purple);
  background: transparent;
}

.btn-outline:hover {
  color: white;
  background: var(--purple);
}

.btn-white {
  background: white;
  color: var(--purple);
}

.btn-white:hover {
  background: #f5f2f6;
}

.btn-ghost-white {
  color: white;
  border-color: rgba(255,255,255,0.7);
}

.btn-ghost-white:hover {
  background: white;
  color: var(--purple);
}

.hero-values {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
}

.hero-values i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--magenta);
}

.image-placeholder {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(144,58,136,0.94), rgba(0,97,167,0.90)),
    #dcd6de;
}

.image-placeholder::after {
  content: attr(data-image-label);
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
}

.hero-visual {
  min-height: 500px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 2px solid var(--magenta);
  border-radius: 16px;
  z-index: -1;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 25px;
  color: white;
  text-align: center;
}

.placeholder-content strong {
  font-size: 18px;
}

.placeholder-content small {
  opacity: 0.78;
}

.placeholder-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  font-size: 30px;
  font-weight: 300;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  max-width: 700px;
  font-size: 17px;
}

.section-heading.centered p {
  margin-inline: auto;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

.service-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(144, 58, 136, 0.45);
  box-shadow: var(--shadow);
}

.service-card p {
  font-size: 15px;
}

.service-card a,
.program-body a,
.news-body a {
  color: var(--purple);
  font-weight: 700;
  font-size: 14px;
}

.service-card a span,
.program-body a span,
.news-body a span,
.text-link span,
.resource-arrow,
.support-links span {
  margin-left: 5px;
  transition: margin-left 0.2s ease;
}

.service-card a:hover span,
.program-body a:hover span,
.news-body a:hover span,
.text-link:hover span,
.resource-card:hover .resource-arrow,
.support-links a:hover span {
  margin-left: 9px;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: white;
  font-size: 25px;
  font-weight: 300;
}

.icon-box.purple {
  background: var(--purple);
}

.icon-box.blue {
  background: var(--blue);
}

.about-section {
  background: #fbfafc;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 80px;
}

.about-image {
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(0,97,167,0.92), rgba(144,58,136,0.92)),
    #dcd6de;
}

.about-copy p {
  max-width: 720px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--purple);
  font-weight: 700;
  font-size: 15px;
}

.values-banner {
  position: relative;
  overflow: hidden;
  background: var(--purple);
  color: white;
  text-align: center;
}

.values-banner::before,
.values-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
}

.values-banner::before {
  width: 430px;
  height: 430px;
  left: -180px;
  top: -220px;
}

.values-banner::after {
  width: 330px;
  height: 330px;
  right: -120px;
  bottom: -190px;
}

.values-content {
  position: relative;
  z-index: 1;
}

.values-banner h2 {
  font-size: clamp(36px, 5vw, 58px);
}

.values-banner p {
  max-width: 700px;
  margin-inline: auto;
  color: rgba(255,255,255,0.86);
}

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

.program-card,
.news-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.program-card:hover,
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 97, 167, 0.3);
}

.program-image {
  min-height: 205px;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(144,58,136,0.88), rgba(0,97,167,0.88));
  display: grid;
  place-items: center;
}

.program-image span {
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.program-body {
  padding: 26px;
}

.program-body p {
  font-size: 15px;
}

.impact-section {
  background: var(--light-purple);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(144,58,136,0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.impact-item {
  padding: 34px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.impact-item:last-child {
  border-right: 0;
}

.impact-item strong {
  display: block;
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 10px;
}

.impact-item span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.impact-note {
  margin: 16px auto 0;
  max-width: 750px;
  text-align: center;
  font-size: 13px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.location-card {
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, #faf8fb);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.location-card:hover {
  transform: translateY(-4px);
  border-color: rgba(144,58,136,0.45);
}

.location-card span {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.location-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

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

.support-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.support-section p {
  max-width: 650px;
  color: rgba(255,255,255,0.84);
  font-size: 17px;
}

.support-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.support-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 5px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.support-links a:last-child {
  grid-column: 1 / -1;
}

.support-links a:hover {
  background: white;
  color: var(--blue);
}

.news-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

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

.news-image {
  min-height: 210px;
  border-radius: 0;
}

.news-body {
  padding: 25px;
}

.news-meta {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.news-body h3 {
  font-size: 21px;
}

.news-body p {
  font-size: 14px;
}

.resources-section {
  background: var(--light);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.resource-card {
  position: relative;
  min-height: 235px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  border-color: rgba(144,58,136,0.42);
  box-shadow: var(--shadow);
}

.resource-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--light-purple);
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
}

.resource-card p {
  font-size: 14px;
}

.resource-arrow {
  position: absolute;
  right: 28px;
  bottom: 25px;
  color: var(--purple);
  font-size: 20px;
}

.partners-section {
  background: white;
}

.partner-placeholders {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.partner-placeholders span {
  min-height: 100px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  color: #8a8388;
  font-size: 13px;
  font-weight: 700;
}

.contact-cta {
  background:
    linear-gradient(115deg, var(--purple), #7f3279 50%, var(--blue));
  color: white;
  text-align: center;
}

.contact-cta-inner {
  max-width: 800px;
}

.contact-cta h2 {
  font-size: clamp(38px, 5vw, 56px);
}

.contact-cta p {
  max-width: 680px;
  margin-inline: auto;
  color: rgba(255,255,255,0.86);
  font-size: 17px;
}

.centered-buttons {
  justify-content: center;
}

.site-footer {
  padding: 70px 0 0;
  background: var(--dark);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: 55px;
  padding-bottom: 55px;
}

.footer-brand img {
  width: 190px;
  margin-bottom: 14px;
}

.footer-brand p {
  color: rgba(255,255,255,0.72);
}

.footer-brand > p:first-of-type {
  color: white;
  font-weight: 700;
}

.footer-description {
  max-width: 370px;
  font-size: 14px;
}

.site-footer h3 {
  margin-bottom: 18px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

.site-footer .footer-grid > div:not(.footer-brand) a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

.site-footer a:hover {
  color: white !important;
}

.contact-placeholder {
  color: rgba(255,255,255,0.68) !important;
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  color: white !important;
  font-size: 12px !important;
  font-weight: 700;
}

.socials a:hover {
  background: var(--purple);
  border-color: var(--purple);
}

.footer-bottom {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

.footer-bottom div {
  display: flex;
  gap: 20px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 16px;
  }

  .hero-grid,
  .split-grid {
    gap: 45px;
  }

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

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

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

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

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

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 70px 0;
  }

  .nav-wrap {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 24px 24px;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(25,19,16,0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a:not(.nav-cta) {
    padding: 13px 0;
  }

  .main-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    padding: 65px 0 75px;
  }

  .hero-grid,
  .split-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 45px;
  }

  .hero-visual,
  .about-image {
    min-height: 400px;
  }

  .support-grid {
    gap: 35px;
  }

  .support-links {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(var(--container), calc(100% - 34px));
  }

  .section {
    padding: 58px 0;
  }

  .brand img {
    width: 155px;
  }

  .hero-grid {
    gap: 35px;
  }

  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-lead,
  .section-heading p,
  .support-section p {
    font-size: 16px;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .btn {
    width: 100%;
  }

  .hero-values {
    gap: 7px;
    font-size: 12px;
  }

  .hero-visual,
  .about-image {
    min-height: 330px;
  }

  .card-grid.four,
  .program-grid,
  .news-grid,
  .resource-grid,
  .location-grid,
  .partner-placeholders,
  .support-links {
    grid-template-columns: 1fr;
  }

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

  .impact-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .impact-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .impact-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .news-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-links a:last-child {
    grid-column: auto;
  }

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

  .footer-bottom {
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom div {
    flex-wrap: wrap;
  }

  .partner-placeholders span {
    min-height: 80px;
  }
}

/* =====================================================================
   WordPress block adaptations (kept separate from the approved design CSS above)
   ===================================================================== */
body{--purple:var(--wp--preset--color--purple,#903A88);--blue:var(--wp--preset--color--blue,#0061A7);--magenta:var(--wp--preset--color--magenta,#911779);--dark:var(--wp--preset--color--dark,#191310);--muted:var(--wp--preset--color--muted,#665f64);--light:var(--wp--preset--color--light,#F7F5F8);--light-purple:var(--wp--preset--color--light-purple,#F7F2F7);--border:var(--wp--preset--color--border,#E8E4E8);--white:var(--wp--preset--color--white,#fff)}
h1,h2,h3,.impact-number,.loc-name{font-family:var(--wp--preset--font-family--heading,Georgia,"Times New Roman",serif)}
.site-footer h3{font-family:var(--wp--preset--font-family--body,Arial,Helvetica,sans-serif)}
.wp-site-blocks>*{margin-block-start:0;margin-block-end:0}
.wp-site-blocks p.eyebrow{font-size:13px;max-width:none}
.page-content{padding:90px 0}

/* sticky header (wrapper is the template part) */
header.wp-block-template-part{position:sticky;top:0;z-index:100}
.admin-bar header.wp-block-template-part{top:32px}
.site-header{position:relative}
.wp-block-site-logo.brand img{width:185px!important;height:auto}
.footer-brand .wp-block-site-logo img{width:190px!important;height:auto}

/* navigation (paragraph links inside .main-nav) */
.main-nav>p{margin:0;color:var(--dark)}
.main-nav>p:not(.nav-cta) a{position:relative;display:block;padding:28px 0}
.main-nav>p:not(.nav-cta) a::after{content:"";position:absolute;left:0;bottom:20px;width:0;height:2px;background:var(--purple);transition:width .2s ease}
.main-nav>p:not(.nav-cta) a:hover::after,.main-nav>p:not(.nav-cta) a:focus-visible::after{width:100%}
.main-nav>p.nav-cta,.main-nav>p.nav-cta:hover{padding:0;background:none;border-radius:0;transform:none}
.main-nav>p.nav-cta a{display:block;background:var(--purple);color:#fff;padding:11px 18px;border-radius:5px;transition:background .2s ease,transform .2s ease}
.main-nav>p.nav-cta a:hover{background:var(--magenta);transform:translateY(-1px)}

/* buttons */
.wp-block-buttons.button-row{gap:13px}
.wp-block-button .wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border:1px solid transparent;border-radius:5px;font-weight:700;font-size:14px;line-height:1.65;letter-spacing:.1px;text-decoration:none;background:transparent;transition:transform .2s ease,background .2s ease,color .2s ease,border-color .2s ease}
.wp-block-button .wp-block-button__link:hover{transform:translateY(-2px)}
.hm-primary .wp-block-button__link{background:var(--purple);color:#fff}
.hm-primary .wp-block-button__link:hover{background:var(--magenta);color:#fff}
.hm-outline .wp-block-button__link{color:var(--purple);border-color:var(--purple);background:transparent}
.hm-outline .wp-block-button__link:hover{color:#fff;background:var(--purple)}
.hm-white .wp-block-button__link{background:#fff;color:var(--purple)}
.hm-white .wp-block-button__link:hover{background:#f5f2f6;color:var(--purple)}
.hm-ghost .wp-block-button__link{color:#fff;border-color:rgba(255,255,255,.7);background:transparent}
.hm-ghost .wp-block-button__link:hover{background:#fff;color:var(--purple)}

/* hero */
.hero-values{gap:10px}
.hero-values p{margin:0;color:var(--dark)}
.hero-values p+p::before{content:"";display:inline-block;width:4px;height:4px;margin-right:10px;border-radius:50%;background:var(--magenta);vertical-align:middle}

/* image placeholders are Cover blocks: choose an image in the block toolbar to replace the gradient */
.image-placeholder{padding:0;background:none;display:flex;align-items:center;justify-content:center}
.image-placeholder::after,.hero-visual::before{content:none}
.image-placeholder .wp-block-cover__background{z-index:0}
.image-placeholder .wp-block-cover__inner-container{position:static}
.image-placeholder .wp-block-cover__inner-container>*{position:relative;z-index:1}
.image-placeholder .wp-block-cover__inner-container>.ph-label{position:absolute;z-index:2;right:18px;bottom:16px;margin:0;color:rgba(255,255,255,.75);font-size:11px;line-height:1.65;pointer-events:none}
.placeholder-content p{margin:0;color:#fff}
.placeholder-content .ph-title{font-size:18px;font-weight:700}
.placeholder-content .ph-sub{font-size:13.33px;opacity:.78}
.placeholder-content .placeholder-icon{margin-bottom:6px}
.program-image{display:flex}
.program-image .program-title{margin:0;color:#fff;font-size:20px;font-weight:700;text-align:center}
.news-image{align-items:flex-start;justify-content:flex-start}
.news-image .wp-block-cover__inner-container>p:not(.ph-label){margin:0;color:var(--dark);text-align:left;font-size:16px}

/* cards */
.icon-box p{margin:0;color:inherit;font-size:inherit;line-height:inherit}
.card-link,.program-body p.card-link,.news-body p.card-link,.service-card p.card-link{margin:0}
.service-card a::after,.program-body a::after,.news-body a::after,.text-link a::after{content:"→";margin-left:5px;transition:margin-left .2s ease}
.service-card a:hover::after,.program-body a:hover::after,.news-body a:hover::after,.text-link a:hover::after{margin-left:9px}
.wp-site-blocks p.text-link{margin:8px 0 0;font-size:15px;max-width:none}
.text-link a{display:inline-flex;align-items:center;color:var(--purple);font-weight:700;font-size:15px}
.news-body p.news-meta{display:inline-block;margin:0 0 10px;color:var(--blue);font-size:11px;font-weight:800;letter-spacing:1.2px}

/* impact + locations */
.impact-item .impact-number{display:block;margin:0 0 10px;color:var(--purple);font-size:48px;line-height:1}
.impact-item .impact-label{margin:0;color:var(--muted);font-size:14px;font-weight:700}
.location-card .loc-num{position:absolute;top:18px;right:18px;margin:0;color:var(--blue);font-size:12px;font-weight:800}
.location-card .loc-name{margin:0;font-size:22px;font-weight:700;line-height:1.65}

/* support links (paragraph > link) */
.support-links p{margin:0;max-width:none;font-size:inherit}
.support-links p:last-child{grid-column:1/-1}
.support-links a::after{content:"→";margin-left:5px;transition:margin-left .2s ease}
.support-links a:hover::after{margin-left:9px}

/* resources: whole card clickable via the title link */
.resource-card h3 a::after{content:"";position:absolute;inset:0}
.resource-card p.resource-icon{display:grid;margin:0 0 22px;font-size:12px}
.resource-card p.resource-arrow{position:absolute;right:28px;bottom:25px;margin:0;color:var(--purple);font-size:20px}

/* partners */
.partner-placeholders p{min-height:100px;display:grid;place-items:center;margin:0;border:1px solid var(--border);border-radius:8px;background:#fafafa;color:#8a8388;font-size:13px;font-weight:700}

/* footer */
.site-footer p.footer-link{margin:0}
.socials p{margin:0}
.footer-bottom p{margin:0;color:inherit}
.footer-bottom .footer-links a{color:rgba(255,255,255,.55)}

/* tablet-extra */
@media (max-width:860px){
  .main-nav>p:not(.nav-cta) a{padding:13px 0}
  .main-nav>p:not(.nav-cta) a::after{display:none}
  .main-nav>p.nav-cta{margin-top:8px;text-align:center}
  .hero-visual,.about-image{min-height:400px!important}
  .page-content{padding:70px 0}
}
@media (max-width:620px){
  .wp-block-site-logo.brand img{width:155px!important}
  .button-row .wp-block-button,.button-row .wp-block-button__link{width:100%}
  .hero-values{gap:7px}
  .hero-values p+p::before{margin-right:7px}
  .hero-visual,.about-image{min-height:330px!important}
  .support-links p:last-child{grid-column:auto}
  .partner-placeholders p{min-height:80px}
  .page-content{padding:58px 0}
}
