/* =============================================================================
   DNT Fundraising LP — Base Stylesheet
   Template system: replace  and  with per-campaign values.
   Font: Montserrat — loaded in HTML via Google Fonts, not here.
   Mobile-first, single-column, max-width 672px centered.
   ============================================================================= */


/* =============================================================================
   1. DESIGN TOKENS
   ============================================================================= */

:root {
  /* --- Brand: Palette 06 — Plum & Apricot --- */
  --primary:        #2563EB;    /* CTA orange — buttons, progress, highlights */
  --primary-hover:  #1D4ED8;    /* CTA hover */
  --primary-light:  #F3E8D0;    /* Apricot highlight bg */
  --accent:         #374151;    /* Plum — structural trust, avatars */
  --accent-hover:   #6B7280;    /* Plum dark */
  --accent-light:   #E5E7EB;    /* Trust wash */

  /* --- Success / Highlight --- */
  --success:        #22c55e;
  --success-hover:  #16a34a;

  /* --- Neutrals --- */
  --bg-page:        #F9FAFB;
  --bg-card:        #FFFFFF;
  --bg-input:       #f2f2f2;
  --border:         #e5e5e5;
  --border-light:   #efefef;

  /* --- Text --- */
  --text-main:      #111827;
  --text-secondary: #4B5563;
  --text-muted:     #9CA3AF;
  --text-fb-blue:   #5C3D6E;   /* Plum — commenter name colour */

  /* --- Component specifics --- */
  --comment-bg:     #F4EEF0;
  --qr-bg:          #ffffff;

  /* --- Radii --- */
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      20px;
  --radius-pill:    999px;

  /* --- Shadows --- */
  --shadow-card:    0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-footer:  0 -4px 20px rgba(0, 0, 0, 0.10);
  --shadow-modal:   0 12px 40px rgba(0, 0, 0, 0.18);

  /* --- Transitions --- */
  --transition:     0.25s ease;
}


/* =============================================================================
   2. RESET & BASE
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Leave room for the sticky footer */
  padding-bottom: 110px;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
}

/* Remove scrollbar in Chrome/Safari (matches salvewesley pattern) */
::-webkit-scrollbar {
  display: none;
}


/* =============================================================================
   3. LAYOUT — Page wrapper
   ============================================================================= */

/* Narrow single-column container used by <main> */
.page-container {
  max-width: 672px;
  margin: 0 auto;
  padding: 16px;
}


/* =============================================================================
   4. HEADER
   ============================================================================= */

.site-header {
  background-color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: 672px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

/* Text logo */
.text-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}

.text-logo__prefix {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.75;
  position: relative;
  top: -1px;
}

.text-logo__name {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.875rem;
  letter-spacing: 0.02em;
}


/* =============================================================================
   5. HERO IMAGE
   ============================================================================= */

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  object-position: center top;
}


/* =============================================================================
   6. HEADLINE SECTION
   ============================================================================= */

.headline-section {
  margin-bottom: 16px;
}

.headline-section h1 {
  font-size: 1.5rem;     /* 24px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 10px;
}

.headline-section .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}


/* =============================================================================
   7. PROGRESS CARD
   ============================================================================= */

.progress-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 16px;
}

/* Raised amount + percentage */
.progress-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}

.progress-card__raised-amount {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.progress-card__raised-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.progress-card__percent {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
  line-height: 1;
}

.progress-card__percent-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Progress bar */
.progress-bar-track {
  width: 100%;
  height: 10px;
  background-color: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-pill);
  transition: width var(--transition);
}

/* Stats row (donations count + days left) */
.progress-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.progress-card__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.progress-card__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* =============================================================================
   8. CTA BUTTON (inline / standalone)
   ============================================================================= */

.cta-button {
  display: block;
  width: 100%;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.cta-button:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.20);
}

.cta-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Icon inside CTA */
.cta-button svg,
.cta-button i {
  vertical-align: middle;
  margin-right: 6px;
}


/* =============================================================================
   9. STORY / CONTENT SECTION
   ============================================================================= */

.story-section {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 16px;
}

.story-section h2 {
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.35;
}

.story-section p {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 16px;
}

.story-section p:last-child {
  margin-bottom: 0;
}

.story-section strong {
  font-weight: 700;
}

/* Inline story images — fixed 1:1 aspect ratio */
.story-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 20px 0;
  aspect-ratio: 1 / 1;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.story-image figcaption,
.image-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-top: 6px;
}

/* Emotional blockquote callout */
blockquote.callout {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 16px;
  margin: 20px 0;
}

blockquote.callout p {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

blockquote.callout cite {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
  display: block;
}

/* Highlight text within story */
.highlight-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}


/* =============================================================================
   10. DONATION GRID — 2 columns × 3 rows (6 tiers)
   ============================================================================= */

.donation-section {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 16px;
}

.donation-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 16px;
}

/* 2-column grid that produces 3 rows for 6 buttons */
.donation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Individual donation button */
.donation-button {
  display: block;
  width: 100%;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 1.0625rem; /* 17px */
  font-weight: 700;
  line-height: 1.3;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition),
              transform var(--transition);
  text-align: center;
}

.donation-button:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.donation-button:active {
  transform: translateY(1px);
}

/* --- Highlighted/anchored tier (e.g. R$50 "mais escolhido") --- */
/* Wrap with .donation-button-wrapper to position the badge */
.donation-button-wrapper {
  position: relative;
}

/* The badge above the highlighted button */
.donation-button-wrapper .most-chosen-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--success);
  color: #ffffff;
  font-size: 0.625rem; /* 10px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

/* The highlighted button itself gets a stronger border */
.donation-button.highlighted {
  border-color: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.donation-button.highlighted:hover {
  background-color: var(--primary-hover);
  border-color: var(--success);
}


/* =============================================================================
   11. COMMENTS SECTION
   ============================================================================= */

.comments-section {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 16px;
}

.comments-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.comments-section__count {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Divider above comment list */
.comments-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

/* Individual comment card */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  user-select: none;
}

.comment__body {
  flex: 1;
  min-width: 0;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment__name {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: var(--text-fb-blue);
}

.comment__time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment__text {
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.55;
  margin-bottom: 8px;
}

.comment__footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment__hearts {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment__hearts .heart-icon {
  color: #ef4444; /* red-500 */
  font-size: 0.8125rem;
}

/* Optional: show likes count in a small pill */
.comment__likes {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer note inside comments (e.g. "Comentários via Facebook") */
.comments-plugin-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}


/* =============================================================================
   12. STICKY FOOTER
   ============================================================================= */

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-footer);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding: 10px 16px 12px;
}

.sticky-footer__inner {
  max-width: 672px;
  margin: 0 auto;
}

/* Mini progress bar in sticky footer */
.sticky-footer__progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.sticky-footer__raised {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.sticky-footer__percent {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sticky-footer__bar-track {
  width: 100%;
  height: 6px;
  background-color: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 10px;
}

.sticky-footer__bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-pill);
  transition: width var(--transition);
}

/* CTA inside sticky footer */
.sticky-footer .cta-button {
  margin: 0;
  padding: 13px 24px;
}


/* =============================================================================
   13. PIX MODAL
   Full-screen overlay with blur backdrop. Toggle .pix-modal--open to show.
   ============================================================================= */

/* Overlay */
.pix-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 16px;
  /* Hidden state */
  visibility: hidden;
  pointer-events: none;
}

.pix-modal--open {
  visibility: visible;
  pointer-events: auto;
}

/* Backdrop */
.pix-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background var(--transition), backdrop-filter var(--transition);
}

.pix-modal--open .pix-modal__backdrop {
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Panel */
.pix-modal__panel {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  z-index: 501;
  box-shadow: var(--shadow-modal);
  text-align: center;
  /* Hidden state */
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.pix-modal--open .pix-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close button */
.pix-modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: background var(--transition);
  cursor: pointer;
  border: none;
}

.pix-modal__close:hover {
  background: var(--border);
}

/* Status headline — uses blink when waiting */
.pix-modal__status {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

/* Subtitle under status */
.pix-modal__subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* Donation amount inside modal */
.pix-modal__amount {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
}

/* QR code container */
.pix-modal__qrcode {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--bg-input);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 16px;
}

.pix-modal__qrcode svg,
.pix-modal__qrcode img {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  background: var(--qr-bg);
  padding: 4px;
  border-radius: var(--radius-sm);
}

/* Copia e Cola row */
.pix-modal__copy-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  margin-bottom: 6px;
}

.pix-modal__copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pix-modal__pix-input {
  flex: 1;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  min-width: 0; /* allow shrink */
}

.pix-modal__pix-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* Copy button */
.pix-modal__btn-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: opacity var(--transition), transform var(--transition);
}

.pix-modal__btn-copy:hover {
  opacity: 0.9;
}

.pix-modal__btn-copy:active {
  transform: translateY(1px);
}

/* Timer / expiry notice */
.pix-modal__timer-notice {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pix-modal__timer-notice strong {
  color: var(--text-main);
}

/* Status badge (Aguardando / Pago) */
.pix-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.pix-modal__badge--success {
  background: #dcfce7;
  color: #166534;
}

/* Success banner after payment confirmed */
.pix-modal__success-banner {
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  margin-top: 12px;
}

/* Step-by-step instructions */
.pix-instructions {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: left;
  margin-top: 12px;
}

.pix-instructions ol {
  padding-left: 18px;
  margin: 6px 0 0;
}

.pix-instructions li {
  margin-bottom: 5px;
  line-height: 1.5;
}

/* Blink animation for "Aguardando pagamento" status text */
.blink {
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%   { opacity: 1; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; }
}


/* =============================================================================
   14. DONATION MODAL  (amount picker variant)
   Shows before PIX modal in the "modal" LP variant.
   Toggle .donation-modal--open to show.
   ============================================================================= */

.donation-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;   /* sheet slides from bottom on mobile */
  justify-content: center;
  z-index: 400;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 600px) {
  .donation-modal {
    align-items: center;
    padding: 16px;
  }
}

.donation-modal--open {
  visibility: visible;
  pointer-events: auto;
}

/* Backdrop */
.donation-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition);
}

.donation-modal--open .donation-modal__backdrop {
  background: rgba(0, 0, 0, 0.60);
}

/* Panel — slides up from bottom */
.donation-modal__panel {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 520px;
  z-index: 401;
  box-shadow: var(--shadow-modal);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 280ms ease;
}

@media (min-width: 600px) {
  .donation-modal__panel {
    border-radius: var(--radius-xl);
    transform: translateY(16px) scale(0.97);
  }
}

.donation-modal--open .donation-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Drag handle (decorative) */
.donation-modal__handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-pill);
  margin: 0 auto 16px;
}

@media (min-width: 600px) {
  .donation-modal__handle { display: none; }
}

/* Close button */
.donation-modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: background var(--transition);
  cursor: pointer;
  border: none;
}

.donation-modal__close:hover {
  background: var(--border);
}

.donation-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 16px;
}

/* Amount picker grid inside donation modal — reuses .donation-grid */
.donation-modal .donation-grid {
  margin-bottom: 20px;
}

/* Confirm button */
.donation-modal__confirm {
  width: 100%;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 15px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition);
}

.donation-modal__confirm:hover {
  background-color: var(--primary-hover);
}

.donation-modal__confirm:disabled {
  background-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}


/* =============================================================================
   15. PAGE FOOTER (bottom of content, above sticky)
   ============================================================================= */

.page-footer {
  text-align: center;
  padding: 40px 16px 20px;
  max-width: 672px;
  margin: 0 auto;
}

.page-footer__logo {
  max-width: 200px;
  margin: 0 auto 16px;
}

.page-footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.page-footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.page-footer a:hover {
  text-decoration-color: var(--text-muted);
}

.page-footer .copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* =============================================================================
   16. UTILITY CLASSES
   ============================================================================= */

/* Section spacing helper */
.mb-section { margin-bottom: 16px; }

/* Card wrapper — use when section doesn't need extra padding */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

/* Visually hidden (accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Hidden but keep layout space */
.invisible { visibility: hidden; }

/* Fully hidden */
.hidden { display: none !important; }


/* =============================================================================
   17. RESPONSIVE — Adjustments for larger screens
   The LP is mobile-first single-column. On larger screens we just center it
   and allow slightly larger type. No two-column layout for content.
   ============================================================================= */

@media (min-width: 480px) {
  .headline-section h1 {
    font-size: 1.625rem;
  }

  .progress-card__raised-amount {
    font-size: 2rem;
  }
}

@media (min-width: 672px) {
  /* Give the page a little more breathing room */
  .page-container {
    padding: 24px 0;
  }

  .hero-image img {
    max-height: 360px;
  }

  .headline-section h1 {
    font-size: 1.75rem;
  }

  .story-section {
    padding: 28px 32px;
  }

  .donation-section {
    padding: 28px 32px;
  }

  .comments-section {
    padding: 28px 32px;
  }

  /* Donation buttons slightly taller on wider screens */
  .donation-button {
    padding: 18px 8px;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .blink {
    animation: none;
  }
}


/* =============================================================================
   18. JS BRIDGE — app.js toggles .show class for modal visibility
   ============================================================================= */

#donation-modal.show .modal-backdrop {
  background: rgba(0, 0, 0, 0.60);
}

#donation-modal.show .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#pix-modal.show .modal-backdrop {
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#pix-modal.show .modal-panel {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}
