:root {
    --cream: #fbf1ee;
    --paper: #fffafa;
    --ink: #3b2023;
    --muted: #765f61;
    --terracotta: #b8323f;
    --terracotta-dark: #8f1f2b;
    --gold: #dc8178;
    --sage: #c98783;
    --line: rgba(89, 37, 43, .15);
    --shadow: 0 24px 70px rgba(108, 32, 41, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
    width: min(1180px, calc(100% - 40px));
    height: 90px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    line-height: 1;
}
.brand-logo {
    display: block;
    width: 74px;
    height: 74px;
    object-fit: contain;
}
.brand-logo-footer {
    width: 82px;
    height: 82px;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50% 50% 46% 54%;
    color: var(--paper);
    background: var(--terracotta);
    font-size: 23px;
    transform: rotate(-6deg);
}
.brand strong {
    display: block;
    font: 700 20px/1 Georgia, "Times New Roman", serif;
}
.brand small {
    display: block;
    margin-top: 4px;
    color: var(--terracotta);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 600; }
.main-nav a:not(.nav-cta):hover { color: var(--terracotta); }
.nav-cta {
    padding: 11px 20px;
    border: 1px solid var(--terracotta);
    border-radius: 999px;
    color: var(--terracotta);
}
.menu-toggle { display: none; }

.hero {
    min-height: 680px;
    width: min(1180px, calc(100% - 40px));
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 70px;
    padding: 60px 0 90px;
}
.eyebrow {
    margin: 0 0 16px;
    color: var(--terracotta);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}
h1, h2, h3, blockquote {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.05;
}
h1 {
    max-width: 690px;
    margin-bottom: 24px;
    font-size: clamp(48px, 6vw, 78px);
    letter-spacing: -.045em;
}
h1 em { color: var(--terracotta); font-style: italic; }
.hero-text { max-width: 590px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    padding: 0 26px;
    border: 0;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--terracotta); box-shadow: 0 12px 30px rgba(166, 61, 47, .22); }
.button-primary:hover { background: var(--terracotta-dark); }
.text-link { color: var(--ink); font-weight: 700; text-underline-offset: 5px; }
.trust-row { display: flex; gap: 20px; margin-top: 36px; color: var(--muted); font-size: 12px; }

.hero-art {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 46% 54% 44% 56% / 47% 42% 58% 53%;
    background: #edd0cc;
    box-shadow: var(--shadow);
}
.hero-art::before, .hero-art::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.hero-art::before { width: 280px; height: 280px; right: -70px; top: -80px; background: #e9978e; opacity: .8; }
.hero-art::after { width: 330px; height: 180px; left: -80px; bottom: -80px; background: #c66d72; }
.sun { position: absolute; top: 70px; left: 90px; width: 80px; height: 80px; border-radius: 50%; background: var(--gold); opacity: .85; }
.heart-main {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 43%;
    transform: translate(-50%, -50%) rotate(-7deg);
    color: var(--terracotta);
    font-size: 145px;
    filter: drop-shadow(0 16px 10px rgba(94, 50, 39, .12));
}
.orbit { position: absolute; z-index: 2; border: 1px dashed rgba(38, 53, 46, .35); border-radius: 50%; }
.orbit span { position: absolute; padding: 5px 11px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 700; }
.orbit-one { width: 350px; height: 230px; left: 50%; top: 43%; transform: translate(-50%, -50%) rotate(16deg); }
.orbit-one span { right: -16px; top: 40%; }
.orbit-two { width: 270px; height: 360px; left: 50%; top: 43%; transform: translate(-50%, -50%) rotate(-20deg); }
.orbit-two span { left: -17px; bottom: 28%; }
.people { position: absolute; z-index: 4; left: 50%; bottom: 92px; transform: translateX(-50%); display: flex; gap: 13px; align-items: end; }
.people i { width: 23px; height: 55px; border-radius: 14px 14px 8px 8px; background: var(--ink); }
.people i::before { content: ""; display: block; width: 20px; height: 20px; margin: -15px auto 0; border: 3px solid #edd0cc; border-radius: 50%; background: var(--gold); }
.people i:nth-child(2), .people i:nth-child(4) { height: 43px; background: var(--terracotta); }
.people i:nth-child(3) { height: 66px; }
.hero-art > p { position: absolute; z-index: 5; left: 0; right: 0; bottom: 25px; margin: 0; text-align: center; color: var(--ink); font-size: 13px; }

.section { padding: 110px max(24px, calc((100% - 1180px) / 2)); }
.story-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; background: var(--paper); }
h2 { margin-bottom: 22px; font-size: clamp(38px, 4vw, 58px); letter-spacing: -.035em; }
.story-copy { max-width: 540px; color: var(--muted); font-size: 18px; }

.impact-section { background: #521f27; color: var(--paper); }
.section-heading { max-width: 700px; margin-bottom: 50px; }
.section-heading > p:last-child { color: #e0bdc0; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.impact-grid article {
    position: relative;
    min-height: 310px;
    padding: 34px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.035);
}
.impact-grid article:hover { border-color: rgba(214,154,69,.7); }
.card-number { position: absolute; right: 25px; top: 22px; color: #7f8a82; font-size: 12px; }
.card-icon { width: 65px; height: 65px; display: grid; place-items: center; margin-bottom: 50px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 27px; }
.impact-grid h3 { margin-bottom: 12px; font-size: 28px; }
.impact-grid p { color: #e0bdc0; }

.transparency-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
.quote-card { padding: 55px; background: var(--terracotta); color: white; border-radius: 6px; box-shadow: var(--shadow); }
.quote-mark { font: 100px/1 Georgia, "Times New Roman", serif; color: #e4b36c; }
blockquote { margin-bottom: 28px; font-size: clamp(34px, 4vw, 53px); letter-spacing: -.03em; }
.quote-card p { color: #f4dcd6; }
.quote-card a { display: inline-block; margin-top: 24px; font-weight: 700; text-underline-offset: 6px; }
.principles { padding: 45px 10px; }
.principles ul { margin: 35px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principles li { display: flex; gap: 22px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.principles li > span { color: var(--terracotta); font-size: 12px; }
.principles strong, .principles small { display: block; }
.principles strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.principles small { margin-top: 4px; color: var(--muted); font-size: 14px; }

.donation-section {
    padding: 110px max(24px, calc((100% - 1180px) / 2));
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: center;
    background: #f0d8d4;
}
.donation-intro > p:not(.eyebrow) { max-width: 510px; color: var(--muted); font-size: 18px; }
.donation-note { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.donation-note > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--terracotta); color: white; }
.donation-note p { margin: 0; font-size: 13px !important; }
.donation-card { padding: 42px; border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
.donation-card fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.donation-card legend, .donation-card label > span:first-child { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.payment-method {
    position: relative;
    min-height: 94px;
    padding: 13px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: white;
    cursor: pointer;
}
.payment-method input { position: absolute; opacity: 0; pointer-events: none; }
.payment-method.active { border-color: var(--terracotta); background: rgba(184,50,63,.06); box-shadow: inset 0 0 0 1px var(--terracotta); }
.payment-method-icon { color: var(--terracotta); font-size: 25px; line-height: 1; }
.payment-method strong { margin-top: 7px; font-size: 13px; }
.payment-method small { color: var(--muted); font-size: 10px; }
.amount-button { padding: 12px 6px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); cursor: pointer; }
.amount-button.active { border-color: var(--terracotta); background: var(--terracotta); color: white; }
.donation-card > label:not(.consent), .custom-amount { display: block; margin-top: 17px; position: relative; }
.donation-card input[type="text"], .donation-card input[type="email"], .donation-card input[type="password"], .donation-card select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: white;
    color: var(--ink);
    outline: none;
}
.sandbox-notice {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 24px 0 6px;
    padding: 13px 15px;
    border-left: 3px solid var(--terracotta);
    background: rgba(184, 50, 63, .07);
    color: var(--muted);
    font-size: 12px;
}
.sandbox-notice strong { color: var(--terracotta); }
.card-payment-fields[hidden] { display: none; }
.card-fields {
    display: grid;
    grid-template-columns: 1fr .7fr 1fr;
    gap: 10px;
}
.card-fields label { display: block; margin-top: 17px; }
.card-fields label > span { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.donation-card input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(166,61,47,.1); }
.custom-amount input { padding-left: 48px !important; }
.money-prefix { position: absolute; left: 13px; bottom: 13px; color: var(--muted); font-weight: 700; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0; color: var(--muted); font-size: 12px; }
.consent input { margin-top: 4px; accent-color: var(--terracotta); }
.consent a { color: var(--terracotta); font-weight: 700; text-underline-offset: 3px; }
.button-donate { width: 100%; justify-content: space-between; background: var(--ink); color: white; }
.button-donate:hover { background: #18251f; }
.button-donate:disabled { opacity: .65; cursor: wait; }
.form-status { min-height: 0; margin: 14px 0 0; color: var(--terracotta); font-size: 13px; text-align: center; }
.form-status.success { color: #52704f; }
.secure-caption { margin: 12px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

footer {
    min-height: 170px;
    padding: 45px max(24px, calc((100% - 1180px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: var(--paper);
    color: var(--muted);
    font-size: 12px;
}
.footer-links { display: flex; gap: 14px; align-items: center; }
.footer-links a { color: var(--terracotta); }

.legal-page {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 100px;
}
.legal-page h1 { font-size: clamp(42px, 7vw, 70px); }
.legal-page h2 { margin-top: 46px; font-size: 30px; }
.legal-page h3 { margin-top: 30px; font: 700 21px/1.2 Georgia, "Times New Roman", serif; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page li + li { margin-top: 8px; }
.legal-alert { padding: 18px; border-left: 4px solid var(--terracotta); background: rgba(184,50,63,.07); }
.legal-meta { margin-bottom: 42px; color: var(--muted); font-size: 13px; }

.result-page {
    min-height: calc(100vh - 170px);
    padding: 80px 24px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 10%, rgba(220,129,120,.2), transparent 30%),
        var(--cream);
}
.result-card {
    width: min(620px, 100%);
    padding: 52px;
    border-radius: 10px;
    background: var(--paper);
    box-shadow: var(--shadow);
    text-align: center;
}
.result-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(184,50,63,.1);
    color: var(--terracotta);
    font-size: 34px;
}
.result-card h1 { margin-bottom: 16px; font-size: clamp(38px, 6vw, 58px); }
.result-card > p { color: var(--muted); }
.payment-summary {
    margin: 30px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    text-align: left;
}
.payment-summary div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.payment-summary span { color: var(--muted); font-size: 13px; }
.payment-summary strong { font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.pix-code {
    width: min(290px, 100%);
    margin: 25px auto;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}
.pix-code img { display: block; width: 100%; height: auto; }
.pix-copy {
    width: 100%;
    min-height: 90px;
    margin: 12px 0;
    padding: 12px;
    resize: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--muted);
    font: 11px/1.4 monospace;
}
.copy-feedback { min-height: 20px; color: var(--terracotta); font-size: 12px; }

@media (max-width: 900px) {
    .menu-toggle { display: block; border: 0; background: transparent; color: var(--ink); font-weight: 700; }
    .main-nav { display: none; position: absolute; z-index: 20; top: 78px; left: 20px; right: 20px; padding: 25px; flex-direction: column; align-items: stretch; border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 45px; }
    .hero-art { min-height: 460px; }
    .story-section, .transparency-section, .donation-section { grid-template-columns: 1fr; gap: 50px; }
    .impact-grid { grid-template-columns: 1fr; }
    .impact-grid article { min-height: 250px; }
    footer { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 560px) {
    .site-header, .hero { width: min(100% - 28px, 1180px); }
    .site-header { height: 76px; }
    .brand-logo { width: 62px; height: 62px; }
    h1 { font-size: 45px; }
    .hero { padding: 35px 0 70px; }
    .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
    .trust-row { flex-direction: column; gap: 5px; }
    .hero-art { min-height: 410px; }
    .orbit-one { width: 290px; }
    .section, .donation-section { padding-top: 75px; padding-bottom: 75px; }
    .quote-card, .donation-card { padding: 28px; }
    .amount-grid { grid-template-columns: 1fr 1fr; }
    .payment-methods { grid-template-columns: 1fr; }
    .payment-method { min-height: 70px; flex-direction: row; gap: 9px; }
    .payment-method strong { margin-top: 0; }
    .card-fields { grid-template-columns: 1fr 1fr; }
    .card-fields label:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
