@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root{--bg:#faf7f3;--paper:#fff;--ink:#20201f;--muted:#73716d;--line:#ece8e2;--orange:#f2a45c;--orange-soft:#fff1e3;--green:#3b9565;--radius:22px;--shadow:0 16px 45px rgba(36,29,20,.08)}
*{box-sizing:border-box;margin:0;padding:0}body{font-family:'Plus Jakarta Sans',sans-serif;background:var(--bg);color:var(--ink);line-height:1.6}a{text-decoration:none;color:inherit}img{max-width:100%;display:block}button,input,select,textarea{font:inherit}button,a,.btn{cursor:pointer}.container{width:min(1160px,92%);margin:auto}.muted{color:var(--muted)}.eyebrow{color:#b77a3c;text-transform:uppercase;letter-spacing:2px;font-size:.75rem;font-weight:800}.section{padding:76px 0}.section-head{margin-bottom:30px}.section-head h1,.section-head h2{font-size:clamp(2rem,4vw,3.1rem);line-height:1.12;margin:10px 0}.section-head p{color:var(--muted);max-width:650px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:13px 22px;font-weight:800;transition:.2s}.btn:hover{transform:translateY(-2px)}.btn-dark{background:var(--ink);color:white}.btn-orange{background:var(--orange);color:#231b13}.btn-light{background:white;border:1px solid var(--line)}.btn-outline{border:1px solid #d9d2c8;background:transparent}.full{width:100%}
.site-header{height:82px;display:flex;align-items:center;background:rgba(250,247,243,.94);border-bottom:1px solid rgba(230,224,215,.7);position:relative;z-index:5}.nav{display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{font-size:1.55rem;font-weight:800;letter-spacing:-1px}.brand span{color:var(--orange)}.nav-links{display:flex;gap:27px;align-items:center;list-style:none}.nav-links a{font-size:.9rem;font-weight:700;color:#57534e}.nav-links a:hover,.nav-links a.active{color:#bd7939}.nav-actions{display:flex;align-items:center;gap:12px}.nav-actions .btn{padding:10px 17px;font-size:.86rem}.menu-toggle{display:none;background:white;border:1px solid var(--line);padding:8px 12px;border-radius:10px}
.hero{padding:75px 0 80px;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:35px;align-items:center}.hero h1{font-size:clamp(2.8rem,5.5vw,5rem);line-height:1.04;letter-spacing:-3px;margin:17px 0 22px}.hero h1 em{font-style:normal;color:#d58a47}.hero p{color:var(--muted);max-width:510px;font-size:1.05rem;margin-bottom:28px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-art{position:relative;min-height:420px;display:grid;place-items:center}.hero-art:before{content:"";position:absolute;width:390px;height:390px;border-radius:50%;background:#f1dfca}.hero-art img{position:relative;width:100%;max-width:560px;max-height:430px;object-fit:contain;filter:drop-shadow(0 25px 25px #6b4a2520)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:25px}.stat{background:white;border:1px solid var(--line);padding:17px;border-radius:16px}.stat strong{display:block;font-size:1.45rem}.stat span{font-size:.85rem;color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.pet-card{background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 8px 25px #30200c08;transition:.2s}.pet-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.pet-photo{height:220px;position:relative;background:#eee}.pet-photo img{width:100%;height:100%;object-fit:cover}.pill{position:absolute;left:14px;top:14px;background:white;border-radius:99px;padding:6px 11px;font-size:.72rem;font-weight:800}.pet-body{padding:18px}.pet-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.pet-title h3{font-size:1.2rem}.pet-meta{font-size:.85rem;color:var(--muted);margin:7px 0 13px}.pet-body p{font-size:.9rem;color:var(--muted);margin-bottom:15px}.pet-body .btn{width:100%;border-radius:12px}
.cta{background:#242321;color:white;border-radius:28px;padding:42px;display:flex;justify-content:space-between;align-items:center;gap:25px}.cta h2{font-size:clamp(1.8rem,4vw,2.7rem);line-height:1.15;margin:8px 0}.cta p{color:#c9c5bf;max-width:570px}.footer{background:white;border-top:1px solid var(--line);padding:36px 0;margin-top:60px}.footer-row{display:flex;justify-content:space-between;gap:20px;align-items:center}.footer p{font-size:.85rem;color:var(--muted)}
.page-top{padding:55px 0 28px}.page-top h1{font-size:clamp(2.2rem,4vw,3.5rem);line-height:1.1;margin:10px 0}.page-top p{color:var(--muted);max-width:650px}.toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:22px 0}.filters{display:flex;gap:10px;flex-wrap:wrap}.field, .filters select,.filters input{border:1px solid var(--line);background:white;border-radius:12px;padding:12px 14px;min-height:46px;outline:none}.filters input{min-width:230px}.filters select:focus,.field:focus,textarea:focus{border-color:#d89b5e;box-shadow:0 0 0 3px #f2a45c25}
.form-layout{display:grid;grid-template-columns:1fr .75fr;gap:25px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:0 8px 25px #30200c08}.panel h2{font-size:1.35rem;margin-bottom:5px}.panel-intro{color:var(--muted);font-size:.9rem;margin-bottom:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-group{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}.form-group label{font-size:.85rem;font-weight:800}.form-group small{color:var(--muted)}.field{width:100%}textarea.field{min-height:115px;resize:vertical}.form-group.full-row{grid-column:1/-1}.hint-box{background:var(--orange-soft);padding:18px;border-radius:16px;color:#73502d;font-size:.9rem}.upload-box{border:1.5px dashed #d9cbbb;border-radius:16px;padding:24px;text-align:center;background:#fffaf5}.upload-box input{max-width:100%;margin-top:10px}.auth-wrap{min-height:calc(100vh - 82px);padding:55px 0;display:grid;place-items:center}.auth-card{width:min(950px,100%);display:grid;grid-template-columns:1fr .85fr;background:white;border-radius:26px;overflow:hidden;box-shadow:var(--shadow)}.auth-main{padding:42px}.auth-main h1{font-size:2.2rem;line-height:1.15;margin:10px 0}.auth-aside{background:#f2e4d3;display:flex;flex-direction:column;justify-content:center;padding:35px;min-height:500px}.auth-aside img{max-height:270px;object-fit:contain}.auth-aside h2{font-size:1.8rem;margin:20px 0 8px}.auth-aside p{color:#70604f}.auth-switch{text-align:center;color:var(--muted);font-size:.9rem;margin-top:18px}.auth-switch a{font-weight:800;color:#b8793d}
.profile-grid{display:grid;grid-template-columns:270px 1fr;gap:22px}.profile-card{text-align:center}.avatar{width:86px;height:86px;border-radius:50%;background:#f5e3cf;display:grid;place-items:center;font-size:2rem;margin:0 auto 12px}.verified{display:inline-flex;background:#e8f6ed;color:#28784b;border-radius:99px;padding:5px 10px;font-size:.73rem;font-weight:800}.pending{background:#fff3df;color:#98652d}.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.tab{border:1px solid var(--line);background:white;padding:9px 14px;border-radius:99px;font-weight:700}.tab.active{background:var(--ink);color:white}.verify-steps{display:grid;gap:13px}.step{display:flex;gap:14px;align-items:flex-start;padding:15px;border:1px solid var(--line);border-radius:15px}.step-num{width:30px;height:30px;border-radius:50%;background:var(--orange-soft);display:grid;place-items:center;font-weight:800;flex:none}
.detail-grid{display:grid;grid-template-columns:1fr .8fr;gap:35px;align-items:start}.detail-image{height:460px;border-radius:22px;overflow:hidden;background:#eee}.detail-image img{width:100%;height:100%;object-fit:cover}.detail-info{background:white;border:1px solid var(--line);border-radius:22px;padding:28px}.detail-info h1{font-size:2.5rem}.detail-info .meta{color:var(--muted);margin:8px 0 20px}.detail-info p{color:var(--muted);margin:18px 0}.notice{padding:14px 16px;background:#f5f2ed;border-radius:14px;font-size:.88rem;color:#665e54}
.empty{padding:45px;text-align:center;background:white;border:1px dashed #d9d1c6;border-radius:20px;color:var(--muted)}
@media(max-width:900px){.nav-links{display:none;position:absolute;top:72px;left:4%;right:4%;background:white;padding:18px;border:1px solid var(--line);border-radius:16px;flex-direction:column;align-items:flex-start}.nav-links.open{display:flex}.menu-toggle{display:block}.nav-actions{display:none}.hero-grid,.form-layout,.detail-grid{grid-template-columns:1fr}.hero-art{min-height:300px}.hero-art:before{width:280px;height:280px}.cards{grid-template-columns:repeat(2,1fr)}.auth-card{grid-template-columns:1fr}.auth-aside{display:none}.profile-grid{grid-template-columns:1fr}.cta{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.section{padding:52px 0}.hero{padding:48px 0}.hero h1{letter-spacing:-1.5px}.stats{grid-template-columns:1fr}.cards{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.filters input{width:100%;min-width:0}.form-grid{grid-template-columns:1fr}.form-group.full-row{grid-column:auto}.panel,.auth-main{padding:23px}.detail-image{height:300px}.cta{padding:27px}.footer-row{flex-direction:column;align-items:flex-start}}


/* SIGMA: rodapé institucional, favoritos e filtros */
.footer{background:#fff;border-top:1px solid var(--line);padding:28px 0;margin-top:60px}
.footer-content{display:flex;justify-content:space-between;align-items:center;gap:28px}
.footer-copy{max-width:760px}.footer-copy p{font-size:.88rem;color:var(--muted);line-height:1.7;margin-top:7px}.footer-copy strong{color:var(--ink)}
.footer-institution{width:174px;flex:none;display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px;border-radius:12px}
.footer-institution img{width:160px;height:88px;object-fit:cover;border-radius:8px}
.footer-institution span{font-size:.68rem;font-weight:800;letter-spacing:1.4px;color:#57534e}
.adoption-controls{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin:20px 0 22px}
.adoption-controls .filters{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(2,minmax(150px,.8fr)) auto;gap:10px}
.adoption-controls .filters input,.adoption-controls .filters select{width:100%;min-width:0}
.favorites-filter{white-space:nowrap;min-height:46px}
.results-line{display:flex;justify-content:space-between;gap:15px;margin-top:12px;font-size:.82rem}
.favorite-button{position:absolute;z-index:2;right:13px;top:13px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#b34c57;font-size:1.55rem;line-height:1;box-shadow:0 3px 12px #0002;display:grid;place-items:center}
.favorite-button:hover{transform:scale(1.06)}.favorite-button.is-favorite{background:#fff0f1;color:#d42f48}
.pet-card[hidden]{display:none!important}.form-feedback{margin-top:12px;font-size:.88rem;color:#b42318;min-height:1.4em}
.local-storage-note{margin-top:18px;font-size:.86rem;color:var(--muted)}.local-storage-note p{margin-top:5px}
#breed-group[hidden],#other-breed-group[hidden]{display:none!important}
#cities-status{font-size:.78rem;color:var(--muted)}
@media(max-width:900px){.adoption-controls .filters{grid-template-columns:1fr 1fr}.adoption-controls .filters input{grid-column:1/-1}}
@media(max-width:600px){.footer-content{flex-direction:column;align-items:flex-start}.footer-institution{align-self:flex-end}.adoption-controls .filters{grid-template-columns:1fr}.adoption-controls .filters input{grid-column:auto}.results-line{flex-direction:column;gap:2px}}


/* Rodapé compacto, centralizado e sem destaque em negrito */
.footer{margin-top:48px;padding:22px 0 16px;background:var(--paper);text-align:center}
.footer-inner{width:min(900px,92%);margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:7px}
.footer-inner p{font-size:.76rem;color:var(--muted);font-weight:400;line-height:1.5}
.footer-inner a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.footer-inner strong{font-weight:400}
.footer-logo{width:min(230px,48vw);height:auto;max-height:58px;object-fit:contain;margin-top:5px}
.footer-privacy{opacity:.72}
.theme-toggle{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:999px;width:38px;height:38px;font-size:1.15rem;display:inline-grid;place-items:center;cursor:pointer}
.abandonment-note{margin-top:24px;padding:15px 18px;border-left:3px solid var(--orange);background:var(--paper);border-radius:0 14px 14px 0;color:var(--muted);font-size:.9rem;max-width:570px}
.abandonment-note strong{color:var(--ink);font-weight:800}
/* Animação de entrada única: acontece ao abrir a página inicial */
.hero-grid{animation:sigma-page-enter .75s ease-out both}
@keyframes sigma-page-enter{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.hero-grid{animation:none!important}}
/* Tema escuro */
html[data-theme="dark"]{color-scheme:dark;--bg:#151719;--paper:#202427;--ink:#f1f2ef;--muted:#b4bbb9;--line:#343b3e;--orange-soft:#493525;--shadow:0 16px 45px rgba(0,0,0,.28)}
html[data-theme="dark"] .site-header{background:rgba(25,29,31,.96);border-color:var(--line)}
html[data-theme="dark"] .nav-links a{color:#d4d8d5}
html[data-theme="dark"] .stat,html[data-theme="dark"] .pet-card,html[data-theme="dark"] .panel,html[data-theme="dark"] .field,html[data-theme="dark"] .filters select,html[data-theme="dark"] .filters input,html[data-theme="dark"] .menu-toggle{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .btn-light,html[data-theme="dark"] .btn-outline{background:#292f32;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .cta{background:#30383b}
html[data-theme="dark"] .pill{background:#202427;color:#f1f2ef}
html[data-theme="dark"] .abandonment-note{background:var(--paper)}


/* Ajustes de tema escuro: contraste consistente em todas as áreas */
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .site-header{background:var(--paper);border-color:var(--line)}
html[data-theme="dark"] .nav-links{background:var(--paper);border-color:var(--line)}
html[data-theme="dark"] .nav-links a,html[data-theme="dark"] .nav-actions>a:not(.btn){color:var(--ink)}
html[data-theme="dark"] .stat,html[data-theme="dark"] .pet-card,html[data-theme="dark"] .panel,html[data-theme="dark"] .adoption-controls,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .detail-info,html[data-theme="dark"] .empty,html[data-theme="dark"] .tab,html[data-theme="dark"] .step,html[data-theme="dark"] .footer{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .field,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .filters input,html[data-theme="dark"] .filters select{background:#171b1d;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .field::placeholder,html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#929b9d}
html[data-theme="dark"] .btn-light,html[data-theme="dark"] .btn-outline{background:#30383b;color:var(--ink);border-color:#465054}
html[data-theme="dark"] .btn-dark{background:#f2a45c;color:#211a14}
html[data-theme="dark"] .cta{background:#30383b;color:var(--ink)}
html[data-theme="dark"] .cta p{color:#d0d6d4}
html[data-theme="dark"] .auth-aside{background:#30383b;color:var(--ink)}
html[data-theme="dark"] .auth-aside p{color:#d0d6d4}
html[data-theme="dark"] .hint-box{background:#3b3025;color:#f0d5b5}
html[data-theme="dark"] .upload-box{background:#242a2d;border-color:#566166;color:var(--ink)}
html[data-theme="dark"] .notice{background:#30383b;color:#d8ddda}
html[data-theme="dark"] .pill{background:#30383b;color:#f1f2ef}
html[data-theme="dark"] .verified{background:#1d4933;color:#b9f0ce}
html[data-theme="dark"] .pending{background:#4b3a22;color:#f4d5a5}
html[data-theme="dark"] .avatar{background:#493525}
html[data-theme="dark"] .hero-art:before{background:#38312a}
html[data-theme="dark"] .pet-photo,html[data-theme="dark"] .detail-image{background:#252b2e}
html[data-theme="dark"] .theme-toggle{background:#30383b;color:#f5f5f2;border-color:#566166}
html[data-theme="dark"] .abandonment-note{background:var(--paper);color:var(--muted)}
html[data-theme="dark"] .abandonment-note strong{color:var(--ink)}
html[data-theme="dark"] .footer-inner p,html[data-theme="dark"] .footer-inner a{color:var(--muted)}

/* No celular, mantém o botão de tema visível ao lado do menu */
@media(max-width:900px){
  .nav{gap:10px}
  .nav-actions{display:flex!important;margin-left:auto;gap:8px}
  .nav-actions>a{display:none!important}
  .menu-toggle{display:block;flex:none}
  .theme-toggle{width:40px;height:40px;flex:none}
  html[data-theme="dark"] .menu-toggle{background:var(--paper);color:var(--ink);border-color:var(--line)}
}

/* Evita cortes em fotos: mostra a imagem inteira em telas menores */
@media(max-width:900px){
  .pet-photo{height:clamp(190px,42vw,260px)}
  .pet-photo img,.detail-image img,.auth-aside img{object-fit:contain;background:var(--paper)}
  .detail-image{height:auto;min-height:240px;max-height:460px}
  .detail-image img{width:100%;height:auto;max-height:460px}
}
@media(max-width:600px){
  .pet-photo{height:240px}
  .detail-image{height:auto;min-height:0}
  .detail-image img{max-height:360px}
  .footer-content{align-items:center}
}
