/* =========================================================
   Health Justice Africa Initiative — Design System
   Custom CSS · no framework · civic / institutional
   ========================================================= */

:root {
  --green: #146b3a;
  --green-deep: #0e4f2a;
  --green-soft: #e7f1eb;
  --red: #d61f26;
  --red-deep: #b0151b;
  --gold: #d4a017;
  --ink: #142019;
  --ink-muted: #4d5c54;
  --line: rgba(20, 107, 58, 0.14);
  --paper: #f5f8f6;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(14, 79, 42, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(20, 107, 58, 0.07), transparent 55%),
    radial-gradient(90% 60% at -10% 40%, rgba(212, 160, 23, 0.05), transparent 50%),
    var(--paper);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 1.5rem)); }
}

/* —— Skip link —— */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* —— Top bar —— */
.topbar {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: #fff;
  border-bottom: 1px solid transparent;
}
.topbar a:hover { border-bottom-color: rgba(255,255,255,0.5); }

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  /* Solid bg (no backdrop-filter): filter/blur makes position:fixed
     descendants use the header as containing block and clips the mobile menu. */
  background: rgba(245, 248, 246, 0.97);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-t);
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: min(220px, 48vw);
  height: auto;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

/* Injected for mobile drawer only */
.nav-brand { display: none; }

.nav a:not(.btn) {
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: 2px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav a:not(.btn):hover,
.nav a:not(.btn):focus-visible {
  color: var(--green-deep);
  background: rgba(20, 107, 58, 0.1);
}

.nav a:not(.btn)[aria-current="page"] {
  color: var(--green-deep);
  background: rgba(20, 107, 58, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.btn-donate,
.btn-primary {
  background: var(--red);
  color: #ffffff !important;
  border-color: var(--red);
}
.btn-donate:hover,
.btn-primary:hover,
.btn-donate:focus-visible,
.btn-primary:focus-visible {
  background: #e85a5f;
  border-color: #e85a5f;
  color: #ffffff !important;
}

.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(20, 32, 25, 0.18);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

.btn-light {
  background: #fff;
  color: var(--green-deep);
  border-color: #fff;
}

.nav .btn-donate {
  margin-left: 0.4rem;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  color: #ffffff !important;
}

/* —— Hero slider —— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  overflow: hidden;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.12);
  will-change: transform;
}

/* Soften busy slides so hero text stays readable */
.hero-slide.is-soft img {
  filter: blur(2px) brightness(0.88) saturate(0.92);
}

/* Per-slide gentle Ken Burns — short dwell, then fade */
.hero-slide.is-active.pan-left img {
  animation: pan-left 5.5s linear forwards;
}
.hero-slide.is-active.pan-right img {
  animation: pan-right 5.5s linear forwards;
}
.hero-slide.is-active.pan-up img {
  animation: pan-up 5.5s linear forwards;
}
.hero-slide.is-active.pan-center img,
.hero-slide.is-active.pan-center.is-soft img,
.hero-slide.is-soft.is-active.pan-center img {
  animation: pan-center 5.5s linear forwards;
}

@keyframes pan-left {
  from { transform: scale(1.14) translateX(3.5%); }
  to { transform: scale(1.22) translateX(-3.5%); }
}

@keyframes pan-right {
  from { transform: scale(1.14) translateX(-3.5%); }
  to { transform: scale(1.22) translateX(3.5%); }
}

@keyframes pan-up {
  from { transform: scale(1.14) translateY(2.5%); }
  to { transform: scale(1.24) translateY(-2.5%); }
}

@keyframes pan-center {
  from { transform: scale(1.1); }
  to { transform: scale(1.22); }
}

.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 28, 18, 0.35) 0%, rgba(10, 28, 18, 0.55) 45%, rgba(8, 22, 14, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 22, 14, 0.55) 0%, transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 3.5rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-caption {
  min-height: 1.4em;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
  transition: opacity 0.45s var(--ease);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: max(1rem, var(--safe-r));
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-arrow {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.25s var(--ease), border-color 0.25s, color 0.25s, transform 0.25s, opacity 0.25s;
  opacity: 0.55;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
  outline: none;
  transform: scale(1.05);
}

.hero-arrow svg {
  width: 0.78rem;
  height: 0.78rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-dots {
  display: flex;
  gap: 0.35rem;
  margin: 0 0.2rem;
}

.hero-dots button {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.hero-dots button[aria-current="true"] {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.15);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(214, 31, 38, 0.4);
  animation: pulse 2.2s ease-out infinite;
}

.hero h1,
.hero .slogan {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 12ch;
  margin-bottom: 1rem;
  text-wrap: balance;
  color: #fff;
}

.hero h1 em,
.hero .slogan em {
  font-style: normal;
  color: #f0d78a;
}

.hero-lede {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 400;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-head h2,
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.section-head p,
.lede {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.section-alt {
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(20, 107, 58, 0.07), transparent 55%),
    linear-gradient(180deg, #eef4f0, var(--paper));
}

.section-dark {
  background: linear-gradient(160deg, #0e4f2a 0%, #146b3a 55%, #0a3a20 100%);
  color: #fff;
}

.section-dark .section-label { color: #f0d78a; }
.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.86); }

/* —— Split —— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.split-media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

.split-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--green);
}

.split-copy .section-label { margin-bottom: 0.65rem; }
.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.split-copy p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.split-copy p:last-of-type { margin-bottom: 1.5rem; }

/* —— Pillars (not heavy cards — editorial rows) —— */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  border-top: none;
}

.pillar {
  padding: 0;
  border-bottom: none;
  position: relative;
}

.pillar + .pillar {
  padding-left: 0;
  border-left: none;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
  color: var(--green);
}

.pillar p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* —— Values —— */
/* —— Mission / Vision —— */
.mv-section {
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(20, 107, 58, 0.05), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(214, 31, 38, 0.04), transparent 50%),
    #f8faf9;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: stretch;
}

.mv-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.6rem, 3.5vw, 2.35rem);
  min-height: 100%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 107, 58, 0.08);
  box-shadow: 0 8px 28px rgba(14, 79, 42, 0.04);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.mv-card .section-label {
  margin-bottom: 0;
}

.mv-card:hover,
.mv-card:focus-within {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(20, 107, 58, 0.18);
  box-shadow: 0 16px 40px rgba(14, 79, 42, 0.1);
}

.mv-card-vision:hover,
.mv-card-vision:focus-within {
  border-color: rgba(214, 31, 38, 0.2);
}

.mv-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  flex: 1;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}

.value h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--green-deep);
}

.value p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: clamp(2.75rem, 6vw, 4rem) 0 2rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(20, 107, 58, 0.1), transparent 50%),
    linear-gradient(180deg, #eef4f0, var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

.page-hero .breadcrumb a:hover { color: var(--green); }

.page-hero .lede { max-width: 40rem; }

/* —— Prose —— */
.prose {
  max-width: 42rem;
}

.prose p {
  color: var(--ink-muted);
  margin-bottom: 1.15rem;
  font-size: 1.05rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

.prose strong { color: var(--ink); font-weight: 600; }

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1.15rem;
  color: var(--ink-muted);
}

.prose li {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.prose li strong { color: var(--ink); }

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover { color: var(--green-deep); }

.meta-note {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.9rem;
  border-left: 3px solid var(--green);
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 1.25rem;
}

.contact-item h3 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.contact-item a,
.contact-item p {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-item a:hover { color: var(--green); }

.map-embed {
  position: relative;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 280px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  pointer-events: none;
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  background: linear-gradient(180deg, transparent 45%, rgba(14, 79, 42, 0.72) 100%);
  transition: background 0.25s var(--ease);
}

.map-overlay:hover,
.map-overlay:focus-visible {
  background: linear-gradient(180deg, transparent 30%, rgba(14, 79, 42, 0.85) 100%);
  outline: none;
}

/* —— Forms —— */
.form {
  display: grid;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(20, 32, 25, 0.18);
  background: #fbfcfb;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 107, 58, 0.12);
  background: #fff;
}

.form-note a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note a:hover { color: var(--green-deep); }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  color: var(--green-deep);
}

.form-status.is-error {
  border-left-color: var(--red);
  background: #fdebec;
  color: var(--red-deep);
}

.form-status.is-visible { display: block; }

/* —— CTA band —— */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  max-width: 18ch;
  line-height: 1.15;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Footer —— */
.site-footer {
  background: #0c1f14;
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 calc(1.5rem + var(--safe-b));
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  width: min(200px, 70vw);
  margin-bottom: 1rem;
  filter: brightness(1.05);
}

.footer-brand p,
.footer-tagline {
  font-size: 0.95rem;
  max-width: 28ch;
  line-height: 1.55;
}

/* Slogan — Fraunces (brand display, same as countdown) */
.slogan {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: inherit;
}

.slogan em {
  font-style: normal;
  color: #c8e6d0;
}

.hero .slogan,
h1.slogan {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  color: #fff;
}

.hero .slogan em {
  color: #f0d78a;
}

.footer-tagline .slogan {
  display: block;
  margin-bottom: 0.65rem;
  color: #fff;
}

.footer-tagline .footer-blurb {
  display: block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  max-width: 28ch;
  line-height: 1.55;
}

.footer-col h3 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0d78a;
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.developed-by {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s;
}

.developed-by:hover,
.developed-by:focus-visible {
  color: #fff;
  outline: none;
}

.developed-by span {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.developed-by img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.92;
  transition: opacity 0.25s;
}

.developed-by:hover img {
  opacity: 1;
}

.footer-accent {
  height: 3px;
  background: var(--green);
}

/* —— WhatsApp FAB —— */
.whatsapp-fab {
  position: fixed;
  right: max(1rem, var(--safe-r));
  bottom: max(1.15rem, var(--safe-b));
  z-index: 120;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(14, 79, 42, 0.28);
  transition: transform 0.3s var(--ease), background 0.25s;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: translateY(-3px) scale(1.04);
  background: #1ebe57;
  outline: none;
}

.whatsapp-fab svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

.whatsapp-fab span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* —— Scroll helper (top ⇄ footer) —— */
.scroll-fab {
  position: fixed;
  right: max(1rem, var(--safe-r));
  bottom: calc(max(1.15rem, var(--safe-b)) + 5.5rem);
  z-index: 119;
  width: 3.35rem;
  height: 3.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 107, 58, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  color: var(--green);
  cursor: pointer;
  opacity: 0.38;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.scroll-fab svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.35s var(--ease);
}

.scroll-fab.is-up svg { transform: rotate(180deg); }

.scroll-fab:hover,
.scroll-fab:focus-visible {
  opacity: 0.92;
  background: #fff;
  border-color: rgba(20, 107, 58, 0.45);
  transform: translateY(-2px);
}

.scroll-fab:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* =========================================================
   Team
   ========================================================= */

/* —— Featured leader —— */
.leader {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.leader-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  background: var(--green-soft);
}

.leader-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.leader-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--green);
}

.leader-copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.leader-copy p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.leader-copy p:last-child { margin-bottom: 0; }

.team-role {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.15rem !important;
}

/* —— Team grid —— */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 265px));
  justify-content: center;
  gap: clamp(1.15rem, 2.5vw, 1.75rem);
}

.team-card[hidden] { display: none; }

.team-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 107, 58, 0.09);
  box-shadow: 0 8px 28px rgba(14, 79, 42, 0.04);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.team-card:hover,
.team-card:focus-within {
  transform: translateY(-4px);
  background: #fff;
  border-color: rgba(20, 107, 58, 0.18);
  box-shadow: 0 16px 40px rgba(14, 79, 42, 0.1);
}

.team-photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--green-soft);
}

.team-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.team-card:hover .team-photo img { transform: scale(1.035); }

/* Branded monogram stands in until a photograph is supplied */
.team-photo-empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(155deg, var(--green) 0%, var(--green-deep) 100%);
}

.team-monogram {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.team-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.15rem 1.25rem;
}

.team-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
  text-wrap: balance;
}

.team-body .team-role {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  margin-bottom: 0.7rem !important;
}

.team-teaser {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
  flex: 1;
}

.team-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(20, 107, 58, 0.35);
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.team-more::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.team-more:hover { color: var(--green); border-bottom-color: var(--green); }
.team-more:hover::after { transform: translateX(3px); }
.team-more:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.team-note {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

/* —— Profile modal —— */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 4vw, 2rem);
}

.team-modal[hidden] { display: none; }

.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 19, 0.62);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.25s var(--ease);
}

.team-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(85vh, 44rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-top: 3px solid var(--green);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 30px 80px rgba(10, 30, 19, 0.3);
  animation: modalIn 0.35s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.team-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: none;
  background: rgba(20, 107, 58, 0.07);
  color: var(--ink);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.team-modal-close:hover { background: var(--green); color: #fff; }
.team-modal-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.team-modal-close svg { width: 1.05rem; height: 1.05rem; }

.team-modal-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2.25rem;
  margin-bottom: 1.25rem;
}

.team-modal-photo {
  flex: 0 0 auto;
  width: 4.5rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--green-soft);
}

.team-modal-photo img,
.team-modal-photo .team-photo-empty {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-modal-photo .team-monogram { font-size: 1.5rem; }

.team-modal-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.team-modal-head .team-role { margin-bottom: 0 !important; }

.team-modal-bio p {
  color: var(--ink-muted);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}
.team-modal-bio p:last-child { margin-bottom: 0; }

/* =========================================================
   Event gallery
   ========================================================= */

.gallery-group + .gallery-group {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: clamp(2.25rem, 5vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.gallery-head { margin-bottom: 1.35rem; }

.gallery-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  text-wrap: balance;
}

.gallery-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.35rem);
}

.gallery-grid:has(> :nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: var(--green-soft);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}

.gallery-item img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 22rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 28, 17, 0.78) 100%);
  opacity: 0.9;
  transition: opacity 0.35s var(--ease);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}

.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.045); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.gallery-cta {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
}

.gallery-cta p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 34rem;
}

.btn-linkedin { gap: 0.55rem; }
.btn-linkedin svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: #0a66c2;
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 12, 0.9);
  animation: fadeIn 0.25s var(--ease);
}

.lightbox-panel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(1100px, 100%);
  padding: clamp(2.75rem, 6vw, 3.5rem) clamp(0.75rem, 3vw, 1.5rem);
}

.lightbox-figure {
  flex: 1;
  min-width: 0;
  animation: modalIn 0.3s var(--ease);
}

.lightbox-figure img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  margin-inline: auto;
}

.lightbox-figure figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 48rem;
  margin-inline: auto;
}

.lightbox-close,
.lightbox-nav {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lightbox-close {
  position: absolute;
  top: clamp(0.5rem, 2vw, 1rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  z-index: 2;
}

.lightbox-close svg,
.lightbox-nav svg { width: 1.2rem; height: 1.2rem; }

/* —— Footer social —— */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  outline: none;
}

/* —— Animations —— */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 31, 38, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(214, 31, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 31, 38, 0); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— Responsive: tablet —— */
@media (max-width: 900px) {
  :root {
    --header-h: 4.15rem;
  }

  .container {
    width: min(var(--max), calc(100% - 1.75rem));
  }

  .section {
    padding: clamp(2.75rem, 7vw, 4rem) 0;
  }

  .section-head h2,
  .page-hero h1 {
    font-size: clamp(1.65rem, 5.5vw, 2.35rem);
  }

  .section-head p,
  .lede {
    font-size: 1rem;
  }

  .split,
  .contact-grid,
  .footer-grid,
  .mv-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .leader {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .leader-media { max-width: 250px; }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid,
  .gallery-grid:has(> :nth-child(3)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .pillar {
    padding: 1.15rem 1.1rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(20, 107, 58, 0.1);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }

  .pillar h3 {
    font-size: 1.25rem;
  }

  .values {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .value {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .value:last-child { border-bottom: 0; }

  .nav-toggle {
    display: inline-flex;
    z-index: 240;
  }

  .site-header {
    z-index: 230;
  }

  /* Full-viewport drawer — frosted, not solid opaque */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: calc(var(--header-h) + 2.85rem + var(--safe-t)) 1.35rem calc(2rem + var(--safe-b));
    background:
      linear-gradient(180deg, rgba(245, 248, 246, 0.82) 0%, rgba(245, 248, 246, 0.72) 100%);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    z-index: 210;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .site-header {
    background: rgba(245, 248, 246, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(20, 107, 58, 0.12);
  }

  body.nav-open .whatsapp-fab,
  body.nav-open .scroll-fab {
    visibility: hidden;
    pointer-events: none;
  }

  /* Brand line inside drawer — sits below sticky header + topbar */
  .nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0.35rem 0 1rem;
    padding: 0.15rem 0.15rem 1rem;
    border-bottom: 1px solid rgba(20, 107, 58, 0.14);
  }

  .nav-brand + a {
    margin-top: 0.15rem;
  }

  .nav-brand p {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--green-deep);
    letter-spacing: -0.01em;
  }

  .nav-brand p em {
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
  }

  .nav a:not(.btn) {
    padding: 0.95rem 0.45rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(20, 107, 58, 0.1);
    border-radius: 4px;
  }

  .nav a:not(.btn)[aria-current="page"] {
    background: rgba(20, 107, 58, 0.1);
    color: var(--green-deep);
  }

  .nav .btn-donate {
    margin: 1.25rem 0 0;
    width: 100%;
    min-height: 3.15rem;
    color: #ffffff !important;
    box-shadow: 0 10px 28px rgba(214, 31, 38, 0.22);
  }

  .hero-controls {
    right: 50%;
    transform: translateX(50%);
    bottom: max(0.85rem, var(--safe-b));
    gap: 0.45rem;
  }

  .hero-arrow {
    width: 1.85rem;
    height: 1.85rem;
    opacity: 0.42;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.65);
  }

  .hero-arrow svg {
    width: 0.7rem;
    height: 0.7rem;
  }

  .hero-dots button {
    width: 0.35rem;
    height: 0.35rem;
    background: rgba(255, 255, 255, 0.22);
  }

  .hero-dots button[aria-current="true"] {
    background: rgba(255, 255, 255, 0.65);
  }

  .form-row { grid-template-columns: 1fr; }

  .hero {
    min-height: min(82svh, 640px);
  }

  .hero-inner {
    padding: 3.5rem 0 4.25rem;
  }

  .hero h1,
  .hero .slogan {
    font-size: clamp(1.9rem, 8.5vw, 2.75rem);
    max-width: 12ch;
  }

  .hero-caption {
    font-size: 0.92rem;
  }

  .hero-lede {
    font-size: 1rem;
    max-width: 32rem;
  }

  .whatsapp-fab {
    width: 3.55rem;
    height: 3.55rem;
    right: max(0.85rem, var(--safe-r));
    bottom: max(0.95rem, var(--safe-b));
  }

  .footer-grid { gap: 1.75rem; }

  .developed-by img { height: 20px; }
}

/* —— Responsive: phones (portrait) —— */
@media (max-width: 560px) {
  .topbar {
    font-size: 0.78rem;
    padding: 0.4rem 0;
  }

  .topbar .container {
    justify-content: center;
    text-align: center;
    gap: 0.35rem 0.85rem;
  }

  .logo img {
    width: min(168px, 52vw);
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .team-body { padding: 0.85rem 0.85rem 1rem; }
  .team-body h3 { font-size: 0.97rem; }
  .team-teaser { display: none; }
  .team-monogram { font-size: 2rem; }

  .team-modal-head {
    gap: 0.85rem;
    margin-bottom: 1rem;
  }
  .team-modal-photo { width: 3.75rem; }

  .gallery-grid { grid-template-columns: 1fr; }

  .lightbox-close,
  .lightbox-nav {
    width: 2.4rem;
    height: 2.4rem;
  }
  .lightbox-figure img { max-height: 62vh; }

  .header-inner {
    min-height: 3.85rem;
  }

  .page-hero {
    padding: 2rem 0 1.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
  }

  .hero {
    min-height: min(78svh, 580px);
  }

  .hero-inner {
    padding: 2.75rem 0 4.5rem;
  }

  .hero h1,
  .hero .slogan {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
    max-width: 11ch;
    margin-bottom: 0.75rem;
  }

  .hero-caption {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.7rem;
  }

  .hero-lede {
    font-size: 0.95rem;
    margin-bottom: 1.35rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .btn {
    width: 100%;
    min-height: 3rem;
    font-size: 0.95rem;
  }

  .split-media img {
    min-height: 240px;
    border-radius: 2px;
  }

  .mv-text {
    font-size: clamp(1.05rem, 4.6vw, 1.25rem);
  }

  .pillar {
    padding: 1.05rem 1rem;
  }

  .cta-band h2 {
    font-size: clamp(1.4rem, 6.5vw, 1.85rem);
    max-width: none;
  }

  .section-dark .cta-band {
    text-align: center;
  }

  .section-dark .cta-actions {
    width: 100%;
  }

  .map-embed iframe {
    height: 260px;
  }

  .map-overlay {
    font-size: 0.85rem;
    padding: 0.85rem;
  }

  .footer-brand p,
  .footer-tagline {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .slogan {
    font-size: clamp(1.1rem, 5vw, 1.3rem);
  }

  .section-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  .breadcrumb {
    font-size: 0.82rem;
  }

  .values .value h3,
  .value h3 {
    font-size: 1.05rem;
  }

  .mv-grid {
    gap: 1rem;
  }

  .mv-card {
    padding: 1.15rem 1.05rem;
  }
}

/* —— Landscape phones / short viewports —— */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { display: none; }

  .hero {
    min-height: 100svh;
  }

  .hero-inner {
    padding: 1.25rem 0 3.25rem;
  }

  .hero h1,
  .hero .slogan {
    font-size: clamp(1.45rem, 5.5vw, 2rem);
    max-width: 16ch;
    margin-bottom: 0.45rem;
  }

  .hero-caption {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    min-height: 0;
  }

  .hero-lede {
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
    max-width: 38rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 10rem;
    min-height: 2.55rem;
    padding: 0.55rem 1rem;
  }

  .hero-controls {
    bottom: 0.65rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .whatsapp-fab {
    width: 2.85rem;
    height: 2.85rem;
  }
}

/* —— Large phones landscape —— */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 480px) {
  .nav {
    padding-top: calc(4.25rem + var(--safe-t));
  }

  .nav a:not(.btn) {
    padding: 0.7rem 0.35rem;
    font-size: 1rem;
  }
}

/* —— Trust strip —— */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.trust-strip span {
  position: relative;
  padding-left: 0.95rem;
}

.trust-strip span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.75;
}

.section-dark .trust-strip {
  border-top-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.section-dark .trust-strip span::before {
  background: var(--gold);
}

/* Touch-friendly form fields */
input,
select,
textarea {
  min-height: 2.85rem;
  font-size: 1rem;
}

textarea { min-height: 8.5rem; }

label {
  font-size: 0.92rem;
  font-weight: 600;
}

/* —— Landscape: page content density —— */
@media (max-height: 500px) and (orientation: landscape) {
  .page-hero {
    padding: 1.35rem 0 1rem;
  }

  .page-hero h1 {
    font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  }

  .page-hero .lede {
    font-size: 0.92rem;
    margin-top: 0.35rem;
  }

  .split-media img {
    min-height: 200px;
    max-height: 55vh;
    object-fit: cover;
  }

  .cta-band h2 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-actions .btn {
    width: auto;
    min-width: 10rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1rem 1.5rem;
  }

  .map-embed iframe {
    height: 220px;
  }
}

/* —— Very small phones —— */
@media (max-width: 380px) {
  body { font-size: 1rem; }

  .hero h1,
  .hero .slogan {
    font-size: clamp(1.55rem, 8.5vw, 1.9rem);
  }

  .btn {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
  }

  .whatsapp-fab span { display: none; }
  .whatsapp-fab { border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-slide img,
  .hero-slide.is-active img {
    transform: scale(1.08);
    animation: none !important;
  }
  .mv-card:hover,
  .mv-card:focus-within {
    transform: none;
  }
  body { background-attachment: scroll; }
}

@media (hover: none) {
  .mv-card:hover {
    transform: none;
    box-shadow: 0 8px 28px rgba(14, 79, 42, 0.04);
  }

  .pillar:active {
    transform: translateY(-2px);
  }
}

/* Prefer lighter background paint on low-power / constrained phones */
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
    background-image:
      linear-gradient(180deg, rgba(231, 241, 235, 0.55) 0%, transparent 28%),
      var(--paper);
  }

  .prose p,
  .split-copy p,
  .pillar p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .form {
    padding: 1.15rem 1rem;
  }

  .trust-strip {
    gap: 0.45rem 1rem;
    font-size: 0.82rem;
  }
}
