/* Messimot — 07_Website */

:root {
  /* Violet pastel — une seule famille */
  --color-accent: #7b6cf0;
  --color-accent-hover: #6a5ce0;
  --color-accent-deep: #5a4dc8;
  --color-pastel: #ebe8ff;
  --color-pastel-on-dark: rgba(235, 232, 255, 0.12);

  --bg: #ebe8ff;
  --bg-card: #ffffff;
  --black: #0a0a0a;
  --text: #1a1a1a;
  --text-muted: #5c5678;
  --border: rgba(90, 77, 200, 0.35);

  --radius: 28px;
  --radius-sm: 16px;
  --radius-pill: 999px;

  --ticker-bg: var(--color-accent-deep);
  --ticker-text: #ffffff;

  --font: "Open Sans", system-ui, sans-serif;
  --font-title: 800;
  --font-heading: 700;
  --header-h: 72px;
  --ticker-h: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: #fff;
  line-height: 1.6;
  font-size: 1.125rem;
  -webkit-font-smoothing: antialiased;
}

body.rtl {
  direction: rtl;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* —— Ticker —— */
.ticker-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--ticker-h);
  background: var(--ticker-bg);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ticker {
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-inline: 2rem;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ticker-text);
}

.ticker-item .sep {
  opacity: 0.45;
}

.ticker-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  transition: opacity 0.2s;
}

.ticker-item a:hover {
  opacity: 0.75;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: var(--ticker-h);
  left: 0;
  right: 0;
  z-index: 150;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-logo img {
  height: 36px;
  width: auto;
  filter: invert(1);
}

.site-nav {
  display: none;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.site-nav a:hover {
  background: var(--color-pastel);
  border-color: var(--color-accent);
  color: var(--color-accent-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-toolbar {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.header-volunteer {
  display: none;
}

.lang-toggle {
  display: flex;
  background: #141414;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, color 0.2s;
}

.lang-btn.active {
  background: var(--color-accent);
  color: #fff;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: calc(var(--ticker-h) + var(--header-h));
  left: 0;
  right: 0;
  z-index: 140;
  background: var(--black);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.85rem 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: #fff;
}

.mobile-nav a:hover {
  background: var(--color-pastel);
  color: var(--color-accent-deep);
}

.mobile-nav-ctas {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

main {
  padding-top: calc(var(--ticker-h) + var(--header-h));
}

/* —— Buttons & CTA groups —— */
.cta-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  justify-content: center;
}

.cta-group--compact {
  gap: 0.35rem;
}

.cta-group--stack {
  flex-direction: column;
  width: 100%;
}

.cta-group--stack .btn {
  width: 100%;
}

.cta-group--hero {
  width: 100%;
  max-width: 22rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: var(--font-heading);
  line-height: 1.2;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
}

.btn--md {
  padding: 0.75rem 1.15rem;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 1rem 1.35rem;
  font-size: 1rem;
  font-weight: var(--font-title);
}

.btn-merit {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-merit:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-paybox {
  background: var(--color-accent-deep);
  color: #fff;
  border-color: var(--color-accent-deep);
}

.btn-paybox:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: var(--color-pastel);
  color: var(--color-accent-deep);
  border-color: var(--color-accent);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}

.donate-panel .btn-ghost {
  color: var(--color-accent-deep);
  border-color: var(--color-accent);
  width: 100%;
}

.donate-panel .btn-ghost:hover {
  background: #fff;
}

/* —— Hero —— */
.hero {
  background: var(--black);
  color: #fff;
  border-radius: 0;
  margin-bottom: 0;
  min-height: min(85vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  max-width: min(640px, 92vw);
  width: 100%;
}

.hero-logo {
  width: min(280px, 70vw);
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  color: #fff;
  margin-bottom: 2rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 28ch;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: var(--font-heading);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
}

.pillars .section-label,
.campaigns .section-label,
.gallery .section-label,
.about .section-label,
.faq .section-label,
.volunteer .section-label,
.donate-panel .section-label {
  color: var(--color-accent);
  background: var(--color-pastel);
  border-color: var(--border);
}

.section-header h2 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: var(--font-title);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}

.section-sub {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
  font-size: 1.125rem;
  max-width: 38rem;
  line-height: 1.5;
}

/* —— Sections sur fond noir (pastels sur les cartes) —— */
.pillars,
.campaigns,
.gallery,
.about,
.faq,
.donate-block,
.newsletter,
.volunteer {
  background: var(--black);
}

/* —— Pillars —— */
.pillars-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.pillar-card {
  padding: 2rem;
  border-radius: var(--radius);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.pillar-routine,
.pillar-education,
.pillar-project {
  background: var(--color-pastel);
  border-color: var(--color-accent);
}

.pillar-routine .pillar-badge,
.pillar-education .pillar-badge,
.pillar-project .pillar-badge {
  color: var(--color-accent-deep);
}

.pillar-badge {
  font-size: 0.75rem;
  font-weight: var(--font-heading);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: var(--font-title);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--black);
}

.pillar-card p {
  color: var(--text-muted);
  flex: 1;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.pillar-link {
  margin-top: 1.5rem;
  font-weight: var(--font-heading);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pillar-routine .pillar-link,
.pillar-education .pillar-link,
.pillar-project .pillar-link {
  color: var(--color-accent-deep);
}

/* —— Campaigns —— */
.campaigns-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.campaign-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 2px solid var(--border);
  position: relative;
  display: block;
  transition: border-color 0.2s;
}

.campaign-card--urgence,
.campaign-card--hessed,
.campaign-card--annual {
  border-top: 5px solid var(--color-accent);
}

.campaign-card--urgence:hover,
.campaign-card--hessed:hover,
.campaign-card--annual:hover {
  border-color: var(--color-accent);
}

.campaign-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.campaign-card--urgence .campaign-tag,
.campaign-card--hessed .campaign-tag,
.campaign-card--annual .campaign-tag {
  background: var(--color-pastel);
  color: var(--color-accent-deep);
}

.campaign-card h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: var(--font-title);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.campaign-card p {
  color: var(--text-muted);
  font-size: 1rem;
  padding-right: 2.5rem;
  line-height: 1.5;
}

.campaign-arrow {
  position: absolute;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.campaign-card--urgence .campaign-arrow,
.campaign-card--hessed .campaign-arrow,
.campaign-card--annual .campaign-arrow {
  background: var(--color-accent-deep);
  color: #fff;
}

body.rtl .campaign-arrow {
  right: auto;
  left: 1.75rem;
}

body.rtl .campaign-card p {
  padding-right: 0;
  padding-left: 2.5rem;
}

/* —— Donate block —— */
.donate-block {
  padding-top: 0;
}

.donate-panel {
  display: grid;
  gap: 2rem;
  background: var(--color-pastel);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.donate-panel-main .section-label {
  margin-bottom: 0.75rem;
}

.donate-panel-main h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: var(--font-title);
  color: var(--color-accent-deep);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.donate-panel-main p {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 36rem;
}

.donate-panel-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.donate-panel-hint {
  font-size: 0.8rem;
  font-weight: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin: 0;
}

.donate-panel-volunteer {
  margin-top: 0.25rem;
}

/* —— Gallery —— */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 2px solid transparent;
}

.gallery-item:hover {
  border-color: var(--color-accent);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-instagram .gallery-instagram-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-accent-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item-instagram:hover .gallery-instagram-overlay {
  opacity: 1;
}

.gallery-item-skeleton {
  background: var(--color-pastel);
  pointer-events: none;
}

.gallery-item-follow {
  background: var(--color-accent-deep);
  color: #fff;
  border-color: var(--color-accent-deep);
}

.gallery-follow-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.25s;
}

.gallery-item-follow:hover .gallery-follow-inner {
  background: var(--color-accent);
}

.gallery-item-follow--solo {
  grid-column: 1 / -1;
  max-width: 280px;
  margin-inline: auto;
}

.gallery-error {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  padding: 1rem;
}

.gallery-error-link {
  grid-column: 1 / -1;
  justify-self: center;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— About —— */
.about-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-head .section-label {
  margin-bottom: 0.85rem;
}

.about-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-title);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}

.about-text {
  max-width: 52rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.about-lead {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-mission {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.15rem;
  font-weight: var(--font-heading);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  quotes: none;
}

.about-split {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.about-photo {
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--color-accent);
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 22rem;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-axes {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-pastel);
}

.about-axis {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem 1.25rem;
  padding: 1.35rem 1.5rem;
  align-items: start;
  border-bottom: 1px solid var(--border);
}

.about-axis:last-child {
  border-bottom: none;
}

.about-axis-num {
  font-size: 1.5rem;
  font-weight: var(--font-title);
  line-height: 1;
  color: var(--color-accent-deep);
  padding-top: 0.15rem;
}

.about-axis-body h3 {
  font-size: 1.05rem;
  font-weight: var(--font-title);
  color: var(--color-accent-deep);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.about-axis-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

body.rtl .about-head,
body.rtl .about-text {
  text-align: center;
}

@media (min-width: 768px) {
  .about-split {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }

  .about-photo {
    margin: 0;
    max-width: none;
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
  }

  .about-text {
    text-align: left;
    margin-inline: 0;
    max-width: none;
    margin-bottom: 2.25rem;
  }

  .about-head {
    text-align: left;
  }

  body.rtl .about-head,
  body.rtl .about-text {
    text-align: right;
  }
}

/* —— FAQ —— */
.faq .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq .section-header {
  text-align: center;
  margin-inline: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.faq-item:nth-child(1),
.faq-item:nth-child(2),
.faq-item:nth-child(3),
.faq-item:nth-child(4),
.faq-item:nth-child(5) {
  border-left: 5px solid var(--color-accent);
}

.faq-item[open] {
  background: #fff;
}

body.rtl .faq-item {
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-right-width: 3px;
  border-right-style: solid;
}

body.rtl .faq-item:nth-child(1),
body.rtl .faq-item:nth-child(2),
body.rtl .faq-item:nth-child(3),
body.rtl .faq-item:nth-child(4),
body.rtl .faq-item:nth-child(5) {
  border-right-color: var(--color-accent);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: var(--font-heading);
  font-size: 1.125rem;
  color: var(--black);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.4;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* —— Volunteer —— */
.volunteer {
  padding: 0;
}

.volunteer-band {
  width: 100%;
  background: var(--color-pastel);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.volunteer-inner {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.volunteer-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.volunteer-header .section-label {
  color: var(--color-accent-deep);
  background: #fff;
  border-color: var(--border);
}

.volunteer-header h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: var(--font-title);
  color: var(--color-accent-deep);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0.75rem 0;
}

.volunteer-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0;
}

.volunteer-form {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  width: 100%;
}

.volunteer-input {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-accent);
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  width: 100%;
}

.volunteer-input::placeholder {
  color: var(--text-muted);
}

.volunteer-input:focus {
  outline: none;
  border-color: var(--color-accent-deep);
}

.volunteer-textarea {
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 120px;
}

.volunteer-inner .form-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.volunteer-inner .form-message.success {
  color: var(--color-accent-deep);
}

.volunteer-inner .form-message.error {
  color: #c0392b;
}

/* —— Newsletter —— */
.newsletter-card {
  background: var(--color-pastel);
  color: var(--text);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  border: 2px solid var(--color-accent);
}

.newsletter-card h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: var(--font-title);
  margin-bottom: 0.5rem;
  line-height: 1.1;
  color: var(--color-accent-deep);
}

.newsletter-card > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-accent);
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent-deep);
}

.btn-submit {
  background: var(--color-accent);
  color: #fff;
  width: 100%;
  font-weight: var(--font-title);
  font-size: 1.0625rem;
}

.btn-submit:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.btn-submit.loading {
  opacity: 0.6;
  cursor: wait;
}

.btn-submit.success {
  background: #00cc66;
  color: #000;
}

.btn-submit.error {
  background: #ff4444;
  color: #fff;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-message.success { color: #00ff88; }
.form-message.error { color: #ff6b6b; }

/* —— Footer —— */
.site-footer {
  padding: 3rem 0 2rem;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: invert(1);
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-links a:hover {
  background: var(--color-pastel);
  border-color: var(--color-accent);
  color: var(--color-accent-deep);
}

/* —— Responsive —— */
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .campaigns-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
  }

  .header-toolbar {
    display: flex;
  }

  .volunteer-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .volunteer-textarea,
  .volunteer-form .btn-submit {
    grid-column: 1 / -1;
  }

  .donate-panel {
    grid-template-columns: 1.15fr minmax(260px, 0.85fr);
    align-items: start;
    gap: 2.5rem;
  }

  .donate-panel-side {
    justify-self: end;
    width: 100%;
    max-width: 320px;
  }

  .cta-group--hero {
    flex-direction: row;
    max-width: none;
    width: auto;
  }

  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: row;
  }

  .newsletter-input {
    flex: 1;
  }

  .btn-submit {
    width: auto;
    min-width: 140px;
  }
}

@media (min-width: 1024px) {
  .header-volunteer {
    display: inline-flex;
  }

  .site-header {
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .gallery-item {
    border-radius: var(--radius);
  }
}
