/* =============================================================
   SININHOS OPORTUNOS — styles.css
   Cabeçalho, menu, rodapé e secções específicas de cada página.
   ============================================================= */

/* =========================================================
   CABEÇALHO
   ========================================================= */
.site-header{
  position:sticky;top:0;z-index:100;
  height:var(--header-h);
  background:#fafafa;
  box-shadow:0 2px 4px rgb(0 0 0 / .05);
  transition:box-shadow var(--t);
}
.site-header.is-scrolled{box-shadow:0 4px 12px rgb(0 0 0 / .1)}
.nav{display:flex;align-items:center;height:100%;gap:1rem}
.nav__brand{display:flex;align-items:center;flex:none}
.nav__logo{height:56px;width:auto}

.nav__menu{margin-left:auto;display:flex;align-items:center;gap:.25rem}
.nav__link{
  position:relative;padding:.6rem .9rem;border-radius:var(--radius-sm);
  color:#333;font-weight:500;font-size:.98rem;
  transition:color var(--t-fast), background-color var(--t-fast);
}
.nav__link:hover{background:rgb(0 0 0 / .04)}
.nav__link[aria-current="page"]{color:var(--green)}
.nav__link[aria-current="page"]::after{
  content:'';position:absolute;left:.9rem;right:.9rem;bottom:-.3rem;
  height:3px;background:var(--green);border-radius:3px 3px 0 0;
}
.nav__cta{margin-left:.75rem;padding:.65rem 1.4rem;font-size:.95rem}

/* Botão hambúrguer */
.nav__toggle{
  margin-left:auto;display:none;
  width:44px;height:44px;border-radius:var(--radius-sm);
  align-items:center;justify-content:center;color:#333;
}
.nav__toggle:hover{background:rgb(0 0 0 / .04)}
.nav__toggle svg{width:26px;height:26px;fill:currentColor}

@media (max-width:900px){
  .nav__menu{display:none}
  .nav__toggle{display:flex}
  .nav__logo{height:44px}
  .site-header{height:var(--header-h-sm)}
}

/* =========================================================
   GAVETA (menu mobile)
   ========================================================= */
.drawer-backdrop{
  position:fixed;inset:0;z-index:200;background:rgb(0 0 0 / .5);
  opacity:0;visibility:hidden;transition:opacity var(--t), visibility var(--t);
}
.drawer-backdrop.is-open{opacity:1;visibility:visible}

.drawer{
  position:fixed;top:0;right:0;bottom:0;z-index:210;
  width:min(100%, 350px);background:#fff;
  padding:1.5rem;display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform var(--t);
  overflow-y:auto;overscroll-behavior:contain;
}
.drawer.is-open{transform:none}
@media (prefers-reduced-motion:reduce){
  .drawer,.drawer-backdrop{transition:none}
}
.drawer__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}
.drawer__logo{height:46px;width:auto}
.drawer__close{
  width:44px;height:44px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:var(--body);
}
.drawer__close:hover{background:var(--bg-mut)}
.drawer__close svg{width:24px;height:24px;fill:currentColor}

.drawer__nav{display:flex;flex-direction:column;flex:1;gap:.25rem}
.drawer__link{
  display:inline-block;width:fit-content;
  padding:.55rem .75rem;font-size:1.35rem;font-weight:600;color:var(--ink-2);
  transition:color var(--t-fast), transform var(--t-fast);
}
.drawer__link:hover{color:var(--green);transform:translateX(4px)}
.drawer__link[aria-current="page"]{color:var(--green);font-weight:700}

.drawer__foot{margin-top:auto;padding-top:2rem;display:flex;flex-direction:column;gap:1.5rem;align-items:center}
.drawer__foot .btn{border-radius:var(--radius);padding:1rem;font-size:1.05rem}
.drawer__socials{display:flex;gap:2rem}
.drawer__socials a{color:var(--faint);transition:color var(--t-fast)}
.drawer__socials a:hover{color:var(--green)}
.drawer__socials svg{width:28px;height:28px;fill:currentColor}

/* =========================================================
   INÍCIO
   ========================================================= */
.hero--home .hero__actions{margin-top:1.5rem}

@media (max-width:600px){
  .hero--home .hero__actions{
    display:grid;grid-template-columns:max-content max-content;
    justify-content:center;gap:.8rem;
  }
  .hero--home .hero__actions .btn{padding:.6rem 1.2rem;font-size:1.02rem;white-space:nowrap}
  .hero--home .hero__actions .btn--amber{grid-column:1 / -1;justify-self:center;margin-top:.25rem}
  .hero--home .hero__actions .btn--white{order:-2}
  .hero--home .hero__actions .btn--ghost{order:-1}
}

.help-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));gap:2rem}
.help-card{text-align:center;padding:2.5rem 1.5rem}
.help-card h3{font-size:1.4rem;font-weight:600;margin-bottom:.5rem}
.help-card p{color:var(--body)}

.stats{
  background:linear-gradient(135deg, var(--green-050) 0%, #f1f8f4 100%);
  border-radius:16px;max-width:1000px;margin-inline:auto;
  padding:clamp(2rem, 5vw, 2.75rem) 1.5rem;
  box-shadow:0 4px 6px rgb(46 125 50 / .1);
}
.stats-grid{
  display:flex;justify-content:space-around;flex-wrap:wrap;
  gap:clamp(1.5rem, 5vw, 3rem);text-align:center;
}
.stat{flex:1;min-width:150px}
.stat__value{
  font-size:clamp(2.5rem, 6vw, 3.5rem);font-weight:800;color:var(--green);
  line-height:1;margin-bottom:.5rem;letter-spacing:-.03em;
}
.stat__label{font-size:1.1rem;font-weight:500;color:#333}

/* =========================================================
   LOJA
   ========================================================= */
.shop-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:start;
}
@media (max-width:860px){.shop-grid{grid-template-columns:1fr}}

.shop-intro{font-size:1.1rem;margin-bottom:2rem}
.shop-details{background:var(--green-050);padding:1.5rem;border-radius:var(--radius);margin-bottom:2rem}
.detail{display:flex;align-items:flex-start;gap:1rem}
.detail + .detail{margin-top:1rem}
.detail svg{width:24px;height:24px;flex:none;fill:var(--green);margin-top:.15rem}
.detail strong{display:block;color:var(--ink-2)}

.map{
  border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);
  background:var(--bg-mut);
}
.map iframe{width:100%;height:380px;border:0;display:block}
.map__foot{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:.75rem 1rem;background:#fff;border-top:1px solid var(--line);
  font-size:.9rem;color:var(--muted);
}
.map__foot a{color:var(--green);font-weight:600}
.map__foot a:hover{text-decoration:underline}

/* =========================================================
   DOAR BENS
   ========================================================= */
.gallery-grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:1.5rem}
@media (max-width:900px){.gallery-grid{grid-template-columns:repeat(2, 1fr)}}
@media (max-width:560px){.gallery-grid{grid-template-columns:1fr}}
.gallery-card{text-align:center;padding:2rem 1rem;border-radius:16px}
.gallery-card h3{font-size:1.2rem;font-weight:600;color:var(--ink);margin-bottom:.4rem}
.gallery-card p{color:var(--muted);font-size:.95rem}
.icon-circle--clothing{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff}
.icon-circle--toys{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}
.icon-circle--furniture{background:linear-gradient(135deg,#10b981,#059669);color:#fff}
.icon-circle--books{background:linear-gradient(135deg,#ec4899,#db2777);color:#fff}

.rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
@media (max-width:800px){.rules-grid{grid-template-columns:1fr}}
.rule-box{padding:2.5rem;border-radius:var(--radius-lg)}
.rule-box--yes{background:#ecfdf5;border:1px solid #d1fae5}
.rule-box--no{background:#fef2f2;border:1px solid #fee2e2}
.rule-box__head{display:flex;align-items:center;gap:.85rem;margin-bottom:1.25rem}
.rule-box__head h3{font-size:1.4rem;margin:0;color:inherit}
.rule-box__head svg{width:30px;height:30px;flex:none;fill:currentColor}
.rule-box--yes .rule-box__head{color:#059669}
.rule-box--no .rule-box__head{color:#dc2626}
.rule-box ul{padding-left:1.25rem;margin:0;list-style:disc}
.rule-box li{margin-bottom:.7rem;color:var(--body);line-height:1.55}
.rule-box li:last-child{margin-bottom:0}

.steps{
  display:flex;justify-content:space-between;position:relative;
  max-width:900px;margin:0 auto 3rem;
}
.steps::before{
  content:'';position:absolute;top:40px;left:60px;right:60px;height:2px;
  background:var(--line);z-index:0;
}
.step{
  flex:1;position:relative;z-index:1;
  display:flex;flex-direction:column;align-items:center;padding-inline:.75rem;text-align:center;
}
.step__circle{
  width:80px;height:80px;border-radius:50%;background:#fff;border:2px solid var(--line);
  display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem;
  box-shadow:var(--shadow-sm);transition:all var(--t);
}
.step__circle svg{width:32px;height:32px;fill:var(--faint);transition:fill var(--t)}
.step:hover .step__circle{border-color:var(--green);background:var(--green);transform:scale(1.08)}
.step:hover .step__circle svg{fill:#fff}
.step__num{
  font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;
  color:var(--muted);background:#fff;padding:.4rem .9rem;
}
.step__desc{
  font-size:1.05rem;color:var(--ink-2);font-weight:500;max-width:250px;
  line-height:1.5;background:#fff;padding:.4rem .9rem;
}
@media (max-width:800px){
  .steps{flex-direction:column;gap:2.5rem}
  .steps::before{top:40px;bottom:40px;left:50%;right:auto;width:2px;height:auto;transform:translateX(-50%)}
}

.final-cta{
  background:var(--bg-soft);padding:2.5rem 1.5rem;border-radius:var(--radius-lg);
  text-align:center;border:1px solid var(--line);
}
.final-cta p{color:var(--body);margin-bottom:1.5rem;font-size:1.1rem}

/* =========================================================
   DONATIVOS
   ========================================================= */
.methods-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));gap:2rem;margin-bottom:3rem}
.method-card{text-align:center;padding:3rem 2rem;border-radius:var(--radius-xl)}
@media (max-width:600px){.method-card{padding:2rem 1.25rem}}
.method-card h2{font-size:1.5rem;margin-bottom:.5rem}
.method-card__desc{color:var(--muted);margin-bottom:2rem;font-size:1.05rem}
.icon-circle--square{
  width:80px;height:80px;border-radius:20px;color:#fff;
  background:linear-gradient(135deg, var(--green-300), var(--green));
  box-shadow:0 10px 15px -3px rgb(46 125 50 / .3);
}
.icon-circle--square svg{width:40px;height:40px}

.copy-box{
  width:100%;background:var(--bg-mut);border:1px solid var(--line);border-radius:var(--radius);
  padding:1rem;display:flex;align-items:center;justify-content:center;gap:.6rem;
  cursor:pointer;transition:background-color var(--t-fast), border-color var(--t-fast), transform .1s ease;
  overflow:hidden;
}
.copy-box:hover{background:var(--line);border-color:var(--line-2)}
.copy-box:active{transform:scale(.985)}
.copy-box__value{font-size:1.25rem;font-weight:600;color:var(--ink);white-space:nowrap}
.copy-box__value--iban{font-family:var(--font-mono);font-size:clamp(.72rem, 3.6vw, 1.05rem);letter-spacing:-.4px}
.copy-box svg{width:20px;height:20px;flex:none;fill:var(--muted)}

.note{
  display:flex;align-items:center;justify-content:center;gap:.6rem;
  max-width:640px;margin-inline:auto;text-align:center;color:var(--faint);font-size:.95rem;
}
.note svg{width:20px;height:20px;flex:none;fill:currentColor}

/* Aviso temporário (toast) da cópia */
.toast{
  position:fixed;left:50%;bottom:1.5rem;transform:translate(-50%, 1rem);
  z-index:400;background:var(--ink);color:#fff;
  padding:.85rem 1.4rem;border-radius:var(--radius);box-shadow:var(--shadow-lg);
  font-size:.95rem;font-weight:500;
  opacity:0;visibility:hidden;transition:opacity var(--t), transform var(--t), visibility var(--t);
}
.toast.is-visible{opacity:1;visibility:visible;transform:translate(-50%, 0)}

/* =========================================================
   SOBRE
   ========================================================= */
.about-main{position:relative;z-index:2;margin-top:-3rem}
.mission-card{
  background:#fff;padding:clamp(2rem, 5vw, 3rem);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);text-align:center;max-width:900px;margin-inline:auto;
}
.mission-card h2{
  font-size:1.1rem;text-transform:uppercase;letter-spacing:.1em;
  color:var(--green);font-weight:700;margin-bottom:1.25rem;
}
.mission-card p{
  font-size:clamp(1.1rem, 2.4vw, 1.25rem);font-weight:300;color:var(--ink-2);
  line-height:1.6;font-style:italic;
}

.impact-grid{
  display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:1.5rem;
  max-width:1000px;margin-inline:auto;
}
.impact-item{
  text-align:center;padding:2rem 1rem;background:var(--bg-soft);
  border-radius:16px;border:1px solid var(--line);transition:all var(--t);
}
.impact-item:hover{transform:translateY(-5px);background:#fff;box-shadow:var(--shadow);border-color:var(--line-2)}
.impact-item .stat__value{font-size:2.5rem}
.impact-item .stat__label{font-size:1rem;color:var(--body)}

.history{max-width:800px;margin-inline:auto}
.history h2{text-align:center;margin-bottom:2rem}
.history p{font-size:1.12rem;line-height:1.8;color:var(--body);margin-bottom:1.5rem}
.history p:last-child{margin-bottom:0}

/* =========================================================
   CONTACTOS
   ========================================================= */
.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:3rem;align-items:start}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr;gap:2rem}}

.contact-info h2{font-size:1.75rem;margin-bottom:1rem}
.contact-info__intro{color:var(--body);margin-bottom:2.5rem;line-height:1.6}
.contact-method{display:flex;align-items:flex-start;gap:1.25rem;margin-bottom:2rem}
.contact-method .icon-circle{width:48px;height:48px;margin:0}
.contact-method .icon-circle svg{width:24px;height:24px}
.contact-method__label{
  font-weight:600;font-size:.85rem;color:var(--faint);
  text-transform:uppercase;letter-spacing:.05em;display:block;margin-bottom:.15rem;
}
.contact-method__value{font-size:1.1rem;color:var(--ink-2);font-weight:500;transition:color var(--t-fast)}
a.contact-method__value:hover{color:var(--green)}

.socials-block{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--line)}
.socials-block p{font-weight:600;color:#374151;margin-bottom:1rem}
.socials{display:flex;gap:1rem}
.social-btn{
  width:44px;height:44px;border-radius:50%;background:var(--bg-mut);color:var(--body);
  display:flex;align-items:center;justify-content:center;transition:all var(--t-fast);
}
.social-btn svg{width:22px;height:22px;fill:currentColor}
.social-btn:hover{transform:translateY(-2px);color:#fff}
.social-btn--fb:hover{background:#1877f2}
.social-btn--ig:hover{background:linear-gradient(45deg,#f09433,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888)}

/* Formulário */
.form-card{
  background:#fff;border-radius:16px;box-shadow:var(--shadow-lg);
  padding:clamp(1.5rem, 4vw, 2.25rem);
}
.form-card h2{font-size:1.5rem;margin-bottom:1.5rem}
.field{margin-bottom:1.25rem}
.field label{display:block;font-weight:600;font-size:.9rem;color:var(--ink-2);margin-bottom:.4rem}
.field input,.field textarea{
  width:100%;padding:.8rem 1rem;border:1px solid var(--line-2);border-radius:var(--radius-sm);
  color:var(--ink);background:#fff;transition:border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea{resize:vertical;min-height:140px}
.field input:focus,.field textarea:focus{
  outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgb(46 125 50 / .15);
}
.field input:user-invalid,.field textarea:user-invalid{border-color:#dc2626}
.field__error{display:none;color:#dc2626;font-size:.85rem;margin-top:.35rem}
.field input:user-invalid ~ .field__error,
.field textarea:user-invalid ~ .field__error{display:block}
.form-actions{margin-top:1.5rem;display:flex;justify-content:flex-end}
@media (max-width:600px){
  .form-actions{justify-content:stretch}
  .form-actions .btn{width:100%}
}
.form-success{text-align:center;padding:3rem 1rem}
.form-success svg{width:64px;height:64px;fill:#10b981;margin:0 auto 1rem}
.form-success h3{font-size:1.5rem;margin-bottom:.5rem}
.form-success p{color:var(--muted);margin-bottom:2rem}

/* =========================================================
   RODAPÉ
   ========================================================= */
.site-footer{background:var(--dark);color:var(--faint);padding-top:3rem;border-top:1px solid var(--dark-line)}
.footer-grid{display:grid;grid-template-columns:1fr;gap:3rem;padding-bottom:2.5rem}
@media (min-width:768px){.footer-grid{grid-template-columns:repeat(2, 1fr)}}
@media (min-width:1024px){.footer-grid{grid-template-columns:2fr 1fr 1fr;gap:4rem}}

.footer-brand{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}
.footer-brand__logo{height:64px;width:auto}
.footer-brand p{line-height:1.6;font-size:.9rem}
.site-footer h4{
  color:#e5e7eb;font-size:.8rem;font-weight:600;text-transform:uppercase;
  letter-spacing:.1em;margin-bottom:1.25rem;
}
.footer-nav{display:flex;flex-direction:column;gap:.8rem;align-items:flex-start}
.footer-nav a{font-size:.95rem;transition:color var(--t-fast), transform var(--t-fast)}
.footer-nav a:hover{color:#fff;transform:translateX(5px)}

.footer-contact{display:flex;align-items:center;gap:.8rem;margin-bottom:1rem;font-size:.95rem}
.footer-contact svg{width:19px;height:19px;flex:none;fill:#6b7280}
.footer-contact a:hover{color:#fff}
.footer-socials{margin-top:2rem}
.footer-socials h4{margin-bottom:.8rem;font-size:.75rem;color:var(--muted)}
.footer-socials div{display:flex;gap:.75rem}
.footer-socials a{color:#d1d5db;transition:color var(--t-fast), transform var(--t-fast)}
.footer-socials a:hover{transform:translateY(-3px)}
.footer-socials a:first-child:hover{color:#1877f2}
.footer-socials a:last-child:hover{color:#e4405f}
.footer-socials svg{width:24px;height:24px;fill:currentColor}

.footer-bottom{background:var(--dark-deep);padding:1rem 0;font-size:.85rem;color:#4b5563}
.footer-bottom .container{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  gap:.4rem 1.25rem;text-align:center;
}
.footer-bottom a:hover{color:#9ca3af;text-decoration:underline}

/* =========================================================
   PÁGINAS LEGAIS / 404
   ========================================================= */
.prose{max-width:800px;margin-inline:auto}
.prose h2{font-size:1.5rem;margin:2.5rem 0 .75rem}
.prose h2:first-child{margin-top:0}
.prose p,.prose li{color:var(--body);line-height:1.75}
.prose p{margin-bottom:1rem}
.prose ul{padding-left:1.25rem;margin-bottom:1rem;list-style:disc}
.prose li{margin-bottom:.5rem}
.prose a{color:var(--green);font-weight:500}
.prose a:hover{text-decoration:underline}
.prose__updated{font-size:.9rem;color:var(--muted);margin-bottom:2rem}

.error-page{text-align:center;padding-block:clamp(4rem, 12vw, 7rem)}
.error-page__code{font-size:clamp(4rem, 15vw, 7rem);font-weight:800;color:var(--green);line-height:1}
.error-page h1{margin:.5rem 0 1rem}
.error-page p{font-size:1.1rem;margin-bottom:2rem}
