/* =========================================================
   Me Audote — paleta baseada na logo
   ========================================================= */
:root {
  --cream:        #E9D9AC; /* fundo do círculo da logo */
  --cream-light:  #F6EFD9;
  --paper:        #FBF7EC;
  --caramel:      #D69A68; /* letreiro "ME AUDOTE" e patinhas */
  --caramel-dark: #B97A48;
  --brown:        #523E26; /* contorno e textos */
  --brown-soft:   #7D5742;
  --charcoal:     #2E2A26; /* filhote preto */
  --white:        #FFFFFF;

  --radius: 20px;
  --shadow: 0 10px 30px rgba(82, 62, 38, .12);
  --font-title: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--brown);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; color: var(--brown); }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em;
  border: 2px solid var(--caramel);
  border-radius: 999px;
  background: var(--caramel);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 0 var(--caramel-dark);
}
.btn:hover { background: var(--caramel-dark); border-color: var(--caramel-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--caramel-dark); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--brown); border-color: var(--brown); box-shadow: none; }
.btn--ghost:hover { background: var(--brown); border-color: var(--brown); color: var(--white); }
.btn--small { padding: .5em 1.1em; font-size: .95rem; box-shadow: 0 3px 0 var(--caramel-dark); }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(82, 62, 38, .08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; }
.brand__name { font-family: var(--font-title); font-weight: 700; font-size: 1.4rem; color: var(--caramel-dark); }
.brand small { display: block; color: var(--brown-soft); line-height: 1.2; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 0;
  background: var(--caramel); border-radius: 3px; transition: width .2s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav a.nav__admin {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(82, 62, 38, .2); color: var(--brown-soft); transition: border-color .2s, background .2s;
}
.nav__admin:hover { border-color: var(--brown); background: var(--cream-light); }
.nav__admin svg { width: 18px; height: 18px; fill: currentColor; }
.nav__admin span { display: none; }
.nav a.nav__admin::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--brown); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); padding: 64px 0 110px; overflow: hidden; }
.hero::before, .hero::after {
  content: "🐾"; position: absolute; font-size: 5rem; opacity: .12; transform: rotate(-20deg);
}
.hero::before { top: 30px; left: 4%; }
.hero::after { bottom: 110px; right: 45%; transform: rotate(25deg); font-size: 3.5rem; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
.tag {
  display: inline-block; padding: .35em 1em; margin-bottom: 1rem;
  background: var(--cream-light); border: 2px dashed var(--caramel);
  border-radius: 999px; font-weight: 800; font-size: .9rem; color: var(--brown-soft);
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; }
.highlight { color: var(--caramel-dark); }
.hero__text p { font-size: 1.15rem; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.5rem; }
.hero__image { position: relative; display: grid; place-items: center; }
.hero__image img {
  position: relative; width: min(420px, 100%); border-radius: 50%;
  box-shadow: 0 20px 50px rgba(82, 62, 38, .25);
  animation: float 6s ease-in-out infinite;
}
.hero__blob {
  position: absolute; inset: 6%; background: var(--caramel); opacity: .35;
  border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%;
  animation: blob 10s ease-in-out infinite;
}
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 80px; fill: var(--paper); }

@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes blob { 50% { border-radius: 58% 42% 45% 55% / 40% 55% 45% 60%; transform: rotate(8deg) scale(1.04); } }

/* ---------- Seções ---------- */
.section { padding: 88px 0; }
.section--light { background: var(--paper); }
.section--caramel { background: var(--cream); }
.section__header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section__header h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.section__eyebrow {
  display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--caramel-dark); margin-bottom: .5rem;
}
#ajudar { background: var(--cream-light); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border: 2px solid transparent;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--caramel); }
.card__icon {
  width: 64px; height: 64px; display: grid; place-items: center; font-size: 2rem;
  background: var(--cream); border-radius: 50%; margin-bottom: 1rem;
}
.card h3 { font-size: 1.4rem; }
.card p { color: var(--brown-soft); margin-bottom: .75rem; }
.card__link { font-weight: 800; color: var(--caramel-dark); text-decoration: none; }
.card__link:hover { text-decoration: underline; }

/* ---------- Números ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px;
  background: var(--brown); color: var(--cream-light); border-radius: var(--radius); padding: 36px 24px;
}
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-title); font-size: 2.6rem; color: var(--caramel); line-height: 1.1; }
.stat strong::before { content: "+"; }
.stat span { font-weight: 600; }

/* ---------- Doação: meta + PIX ---------- */
#doar { margin-top: 56px; display: grid; gap: 24px; }

.goal { background: var(--white); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow); }
.goal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.goal h3 { font-size: 1.6rem; margin-bottom: .25em; }
.goal__head p { color: var(--brown-soft); margin: 0; }
.goal__percent { font-family: var(--font-title); font-size: 2.6rem; color: var(--caramel-dark); line-height: 1; }
.goal__bar { height: 26px; margin: 22px 0 12px; background: var(--cream-light); border-radius: 999px; overflow: hidden; border: 2px solid var(--cream); }
.goal__fill {
  height: 100%; width: 0; border-radius: 999px;
  background: repeating-linear-gradient(-45deg, var(--caramel) 0 14px, var(--caramel-dark) 14px 28px);
  display: flex; justify-content: flex-end; align-items: center; padding-right: 6px; font-size: .9rem;
  transition: width 1.6s cubic-bezier(.22, 1, .36, 1);
}
.goal__values { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--brown-soft); }
.goal__values strong { color: var(--brown); }

.pix {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 40px;
  background: var(--caramel); color: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pix__text { flex: 1; min-width: 0; }
.pix h3 { color: var(--white); font-size: 1.8rem; }
.pix__key {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: var(--white); color: var(--brown); padding: 12px 12px 12px 20px; border-radius: 16px; margin: 1rem 0 .75rem;
}
.pix__label { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brown-soft); }
.pix__key code { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; font-weight: 700; flex: 1; word-break: break-all; }
.pix__key .btn { background: var(--brown); border-color: var(--brown); box-shadow: 0 3px 0 var(--charcoal); }
.pix__copypaste {
  background: rgba(255, 255, 255, .18); color: var(--white); border: 2px dashed rgba(255, 255, 255, .7);
  border-radius: 999px; padding: .55em 1.2em; font: 700 .95rem var(--font-body); cursor: pointer; transition: background .2s;
}
.pix__copypaste:hover { background: rgba(255, 255, 255, .3); }
.btn.copied, .pix__copypaste.copied { background: #4E8A4A !important; border-color: #4E8A4A !important; }
.pix__owner { display: block; margin-top: .9rem; opacity: .9; }
.pix__qr { margin: 0; background: var(--white); border-radius: 18px; padding: 14px 14px 10px; text-align: center; flex-shrink: 0; }
.pix__qr svg { width: 190px; height: 190px; display: block; }
.pix__qr figcaption { color: var(--brown-soft); font-size: .85rem; font-weight: 700; margin-top: 4px; }

/* ---------- Necessidades ---------- */
.needs { margin-top: 24px; background: var(--white); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow); }
.needs__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 20px; }
.needs__head h3 { font-size: 1.6rem; margin: 0; }
.needs__head p { margin: 0; color: var(--brown-soft); }
.needs__head a { color: var(--caramel-dark); font-weight: 800; }
.needs__groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.needs__group { border-radius: 16px; padding: 20px; background: var(--cream-light); border-top: 5px solid var(--cream); }
.needs__group h4 { margin: 0 0 12px; font-family: var(--font-title); font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.needs__group--urgente { background: #FBEDE4; border-top-color: #C8553D; }
.needs__group--urgente h4 { color: #A8402A; }
.needs__group--urgente h4::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #C8553D; animation: pulse 1.6s infinite; }
.needs__group--alta { border-top-color: var(--caramel); }
.needs__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.needs__group li { padding-left: 26px; position: relative; line-height: 1.35; }
.needs__group li::before { content: "🐾"; position: absolute; left: 0; top: 1px; font-size: .85rem; }
.needs__group li small { display: block; color: var(--brown-soft); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(200, 85, 61, .2); } }

/* ---------- Passo a passo da adoção ---------- */
.section--soft { background: var(--cream-light); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 56px; left: 12%; right: 12%; height: 0;
  border-top: 3px dashed var(--caramel); opacity: .6;
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step__icon {
  position: relative; width: 112px; height: 112px; margin: 0 auto 18px; display: grid; place-items: center;
  font-size: 2.8rem; background: var(--cream); border-radius: 50%; border: 6px solid var(--paper);
}
.step__num {
  position: absolute; top: 0; left: calc(50% + 28px); z-index: 1;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--caramel-dark); color: var(--white); font: 700 1.1rem var(--font-title);
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--brown-soft); }

.app-cta {
  margin-top: 64px; display: flex; align-items: center; gap: 48px;
  background: var(--brown); color: var(--cream-light); border-radius: calc(var(--radius) * 1.5); padding: 48px 56px;
  overflow: hidden;
}
.app-cta h3 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.app-cta .tag { background: transparent; color: var(--cream); border-color: var(--caramel); }
.app-cta__phone {
  position: relative; flex-shrink: 0; width: 170px; height: 300px;
  border: 8px solid var(--charcoal); border-radius: 30px; background: var(--cream);
}
.app-cta__card {
  position: absolute; inset: 22px 14px 50px; display: grid; place-items: center; font-size: 4rem;
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow);
  animation: swipe 4s ease-in-out infinite;
}
.app-cta__card span { position: absolute; top: 10px; right: 12px; font-size: 1.6rem; animation: like 4s ease-in-out infinite; }
.app-cta__card--back { transform: rotate(-6deg) scale(.94); animation: none; opacity: .8; }
@keyframes swipe { 0%, 30% { transform: none; } 55%, 65% { transform: translateX(26px) rotate(10deg); } 100% { transform: none; } }
@keyframes like { 0%, 35% { opacity: 0; transform: scale(.4); } 55%, 70% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; } }

/* ---------- Agenda ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.event {
  display: flex; gap: 20px; background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .2s, transform .2s;
}
.event:hover { border-color: var(--caramel); transform: translateY(-4px); }
.event__date {
  flex-shrink: 0; width: 76px; height: 84px; border-radius: 16px; overflow: hidden; text-align: center;
  background: var(--cream-light); border: 2px solid var(--cream); display: flex; flex-direction: column;
}
.event__date strong { font: 700 2.1rem/1 var(--font-title); padding-top: 12px; flex: 1; color: var(--brown); }
.event__date span { background: var(--caramel); color: var(--white); font-weight: 800; text-transform: uppercase; font-size: .85rem; padding: 3px 0; }
.event__weekday { color: var(--caramel-dark); font-weight: 800; }
.event h3 { font-size: 1.3rem; margin: .15em 0 .3em; }
.event p { color: var(--brown-soft); margin-bottom: .6em; }
.event__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.event__links a { font-weight: 800; font-size: .92rem; color: var(--brown); text-decoration: none; }
.event__links a:hover { color: var(--caramel-dark); text-decoration: underline; }
.events__empty { grid-column: 1 / -1; text-align: center; color: var(--brown-soft); }
.events__empty a { color: var(--caramel-dark); font-weight: 800; }

/* ---------- Botões flutuantes ---------- */
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.to-top {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brown); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--caramel-dark); }
.to-top svg { width: 24px; height: 24px; fill: var(--white); }
.wa-float {
  display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px;
  background: #25D366; color: var(--white); border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4); transition: transform .2s;
  animation: wa-pop .5s 1s both;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }
.wa-float__label { font-weight: 800; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 140px; }
@keyframes wa-pop { from { opacity: 0; transform: scale(.4); } }

/* ---------- Redes sociais ---------- */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.social {
  display: flex; align-items: center; gap: 14px; padding: 22px;
  background: var(--white); border-radius: var(--radius); text-decoration: none;
  box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease, color .2s ease;
}
.social svg { width: 44px; height: 44px; flex-shrink: 0; fill: var(--caramel-dark); transition: fill .2s ease; }
.social strong { display: block; font-family: var(--font-title); font-size: 1.2rem; }
.social span { font-size: .9rem; color: var(--brown-soft); word-break: break-all; }
.social:hover { transform: translateY(-6px); background: var(--brown); color: var(--white); }
.social:hover strong { color: var(--white); }
.social:hover span { color: var(--cream); }
.social:hover svg { fill: var(--caramel); }

/* ---------- CTA ---------- */
.cta {
  display: flex; align-items: center; gap: 40px;
  background: var(--cream); border-radius: calc(var(--radius) * 1.5); padding: 48px;
}
.cta__logo { width: 140px; height: 140px; border-radius: 50%; flex-shrink: 0; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }

/* ---------- Rodapé ---------- */
.footer { background: var(--brown); color: var(--cream-light); padding: 48px 0 24px; }
.footer .brand__name { color: var(--caramel); }
.footer .brand small { color: var(--cream); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { text-decoration: none; font-weight: 700; }
.footer__links a:hover { color: var(--caramel); }
.footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(233, 217, 172, .2); text-align: center; opacity: .8; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .needs__groups { grid-template-columns: 1fr; }
  .nav { gap: 1.1rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 8px 16px 20px;
    box-shadow: 0 12px 20px rgba(82, 62, 38, .12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(82, 62, 38, .08); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .nav a.nav__admin {
    width: auto; height: auto; border: 0; border-radius: 0; display: flex; justify-content: flex-start; gap: 8px;
    padding: 14px 4px 0; font-weight: 700; font-size: .95rem;
  }
  .nav a.nav__admin span { display: inline; }

  .hero { padding: 40px 0 96px; text-align: center; }
  .hero::after { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__image { order: -1; }
  .hero__image img { width: min(280px, 80%); }
  .hero__text p { margin-inline: auto; }
  .hero__actions { justify-content: center; }

  .section { padding: 64px 0; }
  .cards--3 { grid-template-columns: 1fr; }
  .pix { flex-direction: column; align-items: stretch; padding: 28px 20px; }
  .pix__qr { align-self: center; }
  .pix__key { flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 16px; }
  .pix__key code { font-size: .95rem; }
  .pix__key .btn { margin-top: 6px; }
  .pix__copypaste { width: 100%; }
  .goal, .needs { padding: 24px 20px; }
  .goal__percent { font-size: 2rem; }
  .steps { grid-template-columns: 1fr; }
  .app-cta { flex-direction: column; text-align: center; padding: 36px 20px; gap: 32px; }
  .events { grid-template-columns: 1fr; }
  .event { padding: 18px; gap: 16px; }
  .floating { right: 14px; bottom: 14px; }
  .wa-float { height: 56px; padding: 0 13px; }
  .cta { flex-direction: column; text-align: center; padding: 32px 20px; }
  .cta .hero__actions { justify-content: center; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}

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