:root {
  --green-deep: #1a6b38;
  --green: #1a9e3e;
  --green-bright: #22b456;
  --white: #ffffff;
  --radius-card: 20px;
  --radius-pill: 999px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --card-min-h: clamp(540px, 72vh, 640px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--white);
  background: #000000;
  overflow-x: hidden;
  max-width: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Header —— */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  color: var(--white);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  justify-self: start;
  flex-shrink: 0;
  min-width: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
  min-width: 0;
}

.brand-kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.88;
}

.brand-name {
  font-size: 0.92rem;
  line-height: 1.2;
}

.nav-main {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  min-width: 0;
}

.nav-main a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-main a:hover {
  opacity: 0.85;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.48rem 1rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

/* —— Two-column campaign —— */
.campaign-main {
  padding: 0.25rem clamp(0.85rem, 3.5vw, 2.5rem) 3rem;
  max-width: 100%;
  overflow-x: hidden;
}

.campaign-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: stretch;
}

.photo-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: var(--card-min-h);
  background: #0d0d0d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.photo-card-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--card-min-h);
  object-fit: cover;
  object-position: center 22%;
}

.photo-quote {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  background: rgba(55, 55, 55, 0.82);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  color: var(--white);
}

.quote-mark {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.15rem;
  opacity: 0.9;
}

.photo-quote p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.photo-quote cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-height: var(--card-min-h);
}

.side-intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--white);
}

.side-intro p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
}

/* —— Donation card —— */
.donation-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: #1a1a1a;
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 2vw, 1.65rem);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.donation-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.progress-label {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  color: #3a403c;
}

.progress-label strong {
  font-weight: 700;
  color: #111;
}

.progress-track {
  height: 11px;
  background: #e4e8e5;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: var(--green-bright);
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
}

.progress-fill--pulse {
  animation: progress-pulse 1.1s ease;
}

@keyframes progress-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

.goal-icons {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  font-size: 0.67rem;
  line-height: 1.25;
  text-align: center;
  color: #4a524d;
}

.goal-icon {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.amount-label {
  margin: auto 0 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #222;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  width: 100%;
}

.amount-btn {
  border: 1px solid #cfd5d1;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.25rem;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 2.8vw, 0.83rem);
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  min-width: 0;
  min-height: 44px;
}

.amount-btn.is-selected {
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: var(--white);
}

.custom-amount input {
  width: 100%;
  border: 1px solid #cfd5d1;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 16px;
  margin-bottom: 0.75rem;
  color: #111;
  min-height: 48px;
  max-width: 100%;
}

.donor-hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4a524d;
}

.donor-amount-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  background: #f0f6f2;
  border: 1px solid #d8e8de;
  border-radius: 12px;
}

.donor-amount-label {
  font-size: 0.82rem;
  color: #3d4540;
}

.donor-amount-pill strong {
  font-size: 1.15rem;
  color: var(--green-deep);
}

.donor-campaign-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-deep);
  line-height: 1.35;
}

.donor-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.donor-fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
}

.donor-field-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1rem;
  background: #f4f8f5;
  border: 1px solid #dfe8e2;
  border-radius: 16px;
}

.donor-field-label {
  display: block;
  width: 100%;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a635d;
}

.donor-input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  border: 1px solid #e4ebe6;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 16px;
  line-height: 1.25;
  color: #111;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(16, 24, 20, 0.04);
}

.donor-input::placeholder {
  color: #8a918c;
}

.donor-input:focus {
  outline: 2px solid rgba(26, 158, 62, 0.35);
  border-color: #1a9e3e;
}

.btn-pix--modal {
  margin-top: 0.35rem;
  min-height: 52px;
  font-size: 1rem;
}

.donor-modal-handle {
  display: none;
}

.site-modal-dialog--donor h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .site-modal--sheet {
    align-items: flex-end;
    padding: 0;
  }

  .site-modal-dialog--donor {
    max-width: 100%;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 0.65rem 1.15rem max(1.35rem, env(safe-area-inset-bottom));
    max-height: min(92vh, 640px);
    overflow-y: auto;
  }

  .donor-modal-handle {
    display: block;
    width: 40px;
    height: 4px;
    margin: 0.35rem auto 0.85rem;
    border-radius: 999px;
    background: #d0d5d2;
  }

  .site-modal-dialog--donor .site-modal-close {
    top: 0.65rem;
    right: 0.65rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.btn-pix {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 14px;
  padding: 0.92rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background: var(--green-deep);
  cursor: pointer;
}

.pix-word {
  font-weight: 800;
  font-size: 1rem;
  text-transform: lowercase;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.08rem 0.4rem;
  border-radius: 5px;
}

.secure-note {
  margin: 0.7rem 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.67rem;
  line-height: 1.35;
  color: #7a827c;
}

.content-sections {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 4rem;
  color: rgba(255, 255, 255, 0.88);
}

.section-inner h2 {
  font-family: var(--font-serif);
}

.section-inner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.section-historia .historia-lead {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.95);
}

.section-inner blockquote,
.section-inner .depoimento {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--green-bright);
  font-style: italic;
}

.section-inner .depoimento:last-child {
  margin-bottom: 0;
}

.section-inner blockquote cite,
.section-inner .depoimento cite {
  display: block;
  margin-top: 0.45rem;
  font-style: normal;
  font-size: 0.88rem;
  opacity: 0.85;
}

.historia-quote {
  margin-top: 1.25rem !important;
  padding: 1rem 1rem 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 12px 12px 0;
}

.site-modal[hidden] {
  display: none;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.site-modal-dialog {
  position: relative;
  background: var(--white);
  color: #111;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.25rem;
  max-width: 440px;
  width: 100%;
  max-height: min(90vh, 680px);
  display: flex;
  flex-direction: column;
}

.site-modal-dialog--scroll .site-modal-body {
  overflow-y: auto;
  max-height: min(58vh, 420px);
  padding-right: 0.25rem;
}

.site-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: #333;
}

.site-modal-dialog h2 {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-sans);
}

.site-modal-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

.site-modal-body p {
  margin: 0 0 0.85rem;
}

.modal-lead {
  font-weight: 500;
  color: #1a1a1a;
}

.modal-quote {
  margin-top: 0.5rem !important;
  padding: 0.85rem 1rem;
  background: #f4f6f5;
  border-radius: 10px;
  font-style: italic;
  font-size: 0.88rem !important;
}

.modal-steps {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}

.modal-steps li {
  margin-bottom: 0.5rem;
}

.modal-note {
  font-size: 0.82rem !important;
  color: #5c6560;
}

.btn-modal-primary {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 12px;
  background: var(--green-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.btn-modal-primary:hover {
  filter: brightness(1.06);
}

.pix-amount {
  font-weight: 700;
  color: var(--green-deep);
}

.pix-qr-image {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 0.85rem;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e8ece9;
}

.pix-code {
  width: 100%;
  font-size: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0.75rem;
}

.pix-status {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #2d6b3f;
  font-weight: 500;
}

.btn-copy,
.btn-confirm-demo {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-copy {
  background: var(--green-deep);
  color: var(--white);
}

@media (max-width: 900px) {
  .site-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    overflow: hidden;
  }

  .brand {
    flex: 0 1 min(38vw, 9.5rem);
    align-items: flex-start;
  }

  .brand-text {
    font-size: 0.58rem;
  }

  .brand-kicker {
    font-size: 0.95em;
  }

  .brand-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 1.05em;
  }

  .brand-cross svg {
    width: 18px;
    height: 18px;
  }

  .nav-main {
    flex: 1 1 auto;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.78rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 0;
  }

  .nav-main::-webkit-scrollbar {
    display: none;
  }

  .header-cta {
    padding: 0.45rem 0.75rem;
    font-size: 0.74rem;
  }

  .header-cta svg {
    width: 12px;
    height: 12px;
  }

  .campaign-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .photo-card,
  .photo-card-img {
    min-height: 280px;
  }

  .side-column {
    min-height: auto;
    gap: 0.85rem;
  }

  .donation-card {
    padding: 1.1rem;
  }

  .progress-label {
    font-size: 0.78rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .goal-icons {
    font-size: 0.62rem;
  }

  .amount-label {
    margin-top: 0;
  }

  .amount-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .btn-pix {
    min-height: 52px;
    font-size: 1rem;
  }
}
