/* ============================================================
   ATLAS RS — componentes.css
   ============================================================ */

/* ---------- EMBED (página carregada dentro de iframe) ---------- */
html.is-embedded .site-header,
html.is-embedded .site-footer{
  display: none !important;
}

/* ---------- HEADER ---------- */
.site-header{
  background: var(--bg-dark);
  border-bottom: 1px solid var(--bg-dark-3);
}
.site-header .container{
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-mark{ width: 30px; height: 30px; flex: none; }

.main-nav{
  display: flex;
  gap: 4px;
  flex: 1;
}
.main-nav a{
  color: var(--on-dark-muted);
  font-size: .88rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"]{
  color: var(--on-dark);
  background: var(--bg-dark-2);
}

.header-search{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-dark-2);
  border: 1px solid var(--bg-dark-3);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 200px;
}
.header-search input{
  background: transparent;
  border: 0;
  color: var(--on-dark);
  font-size: .85rem;
  width: 100%;
  outline: none;
}
.header-search input::placeholder{ color: var(--on-dark-muted); }
.header-search svg{ flex: none; color: var(--on-dark-muted); }

.nav-toggle{
  display: none;
  background: none;
  border: 0;
  color: var(--on-dark);
}

/* ---------- HERO ---------- */
.hero{
  position: relative;
  background: var(--bg-dark);
  color: var(--on-dark);
  overflow: hidden;
  padding: 88px 0 64px;
}
.hero-topo{
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .9;
}
.hero .container{
  position: relative;
  z-index: 1;
}
.hero-eyebrow{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-eyebrow .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-light);
}
.hero h1{
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 16ch;
}
.hero h1 em{
  font-style: normal;
  color: var(--accent-light);
}
.hero-sub{
  margin-top: 18px;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.hero-search{
  margin-top: 34px;
  display: flex;
  gap: 10px;
  max-width: 560px;
}
.hero-search input{
  flex: 1;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-dark-3);
  background: var(--bg-dark-2);
  color: var(--on-dark);
  font-size: .95rem;
}
.hero-search input::placeholder{ color: var(--on-dark-muted); }
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  border: 0;
  background: var(--brand-green);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover{ background: var(--brand-green-hi); }
.btn:active{ transform: translateY(1px); }
.btn-ghost{
  background: transparent;
  border: 1px solid var(--bg-dark-3);
  color: var(--on-dark);
}
.btn-ghost:hover{ background: var(--bg-dark-2); }

.hero-manual-btn{ margin: 14px 0 0; display: inline-flex; }

/* ---------- MODULE CARDS ---------- */
.modulos{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.modulo-card{
  background: var(--bg-dark-2);
  border: 1px solid var(--bg-dark-3);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  transition: border-color .15s, transform .15s, background .15s;
}
.modulo-card:hover{
  border-color: var(--accent-light);
  background: var(--bg-dark-3);
  transform: translateY(-2px);
}
.modulo-card .ico{
  width: 30px; height: 30px;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.modulo-card h3{
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  color: var(--on-dark);
}
.modulo-card p{
  font-size: .78rem;
  color: var(--on-dark-muted);
  margin-top: 4px;
}

.hero-strip{
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 22px;
  border-top: 1px solid var(--bg-dark-3);
  font-size: .78rem;
  color: var(--on-dark-muted);
}
.hero-strip span{ display: inline-flex; align-items: center; gap: 6px; }
.hero-strip svg{ width: 14px; height: 14px; color: var(--accent-light); }

/* ---------- SEÇÃO GENÉRICA ---------- */
.section{ padding: 76px 0; }
.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h2{
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-top: 6px;
}
.section-head p{
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: .95rem;
}

/* ---------- SELO DE TRANSPARÊNCIA DE DADOS (elemento-assinatura) ---------- */
.transparencia{
  background: var(--bg-dark);
  color: var(--on-dark);
}
.transparencia .section-head p{ color: var(--on-dark-muted); }
.transparencia .section-head h2{ color: var(--on-dark); }

.selo-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bg-dark-3);
  border: 1px solid var(--bg-dark-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.selo{
  background: var(--bg-dark-2);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.selo-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.selo-tag .sw{ width: 8px; height: 8px; border-radius: 50%; }
.selo--oficial .selo-tag{ background: rgba(134,180,107,.14); color: var(--accent-light); }
.selo--oficial .sw{ background: var(--accent-light); }
.selo--calculado .selo-tag{ background: rgba(201,154,75,.08); color: var(--accent-pampa); }
.selo--calculado .sw{ background: var(--accent-pampa); }
.selo--generalizado .selo-tag{ background: rgba(185,118,47,.16); color: #e0a35f; }
.selo--generalizado .sw{ background: var(--accent-warn); }

.selo h3{
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-dark);
}
.selo p{
  font-size: .84rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.selo .exemplos{
  margin-top: auto;
  padding-top: 10px;
  font-size: .74rem;
  color: var(--on-dark-muted);
  border-top: 1px dashed var(--bg-dark-3);
}
.selo .exemplos b{ color: var(--on-dark); font-weight: 600; }

/* ---------- TEXTO DE ABAS (fauna/flora/municípios) ---------- */
.ficha-panel p,
.flora-panel p,
.ficha-panel .fauna-aviso,
.ficha-panel .caixa-aviso-mamiferos,
.flora-panel .caixa-aviso-mamiferos{
  text-align: justify;
  text-align-last: left;
  max-width: 75ch;
}
.ficha-panel p.ficha-section-title,
.ficha-panel p.flora-section-title,
.flora-panel p.ficha-section-title,
.flora-panel p.flora-section-title{
  text-align: left;
  max-width: none;
}

/* ---------- FOOTER ---------- */
.site-footer{
  background: var(--bg-dark);
  color: var(--on-dark-muted);
  padding: 56px 0 26px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4{
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--on-dark);
  margin-bottom: 14px;
}
.footer-grid ul li{ margin-bottom: 8px; }
.footer-grid a{ font-size: .84rem; transition: color .15s; }
.footer-grid a:hover{ color: var(--accent-light); }
.footer-brand p{
  font-size: .85rem;
  line-height: 1.6;
  max-width: 32ch;
  margin-top: 12px;
}
.footer-bottom{
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-dark-3);
  display: flex;
  justify-content: space-between;
  font-size: .76rem;
}
.footer-manual-link{ transition: color .15s; }
.footer-manual-link:hover{ color: var(--accent-light); }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 980px){
  .modulos{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .main-nav{ display: none; }
  .main-nav.is-open{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--bg-dark-3);
    padding: 8px 20px 16px;
    gap: 2px;
    z-index: 20;
  }
  .nav-toggle{ display: inline-flex; }
  .site-header .container{ position: relative; }
}
@media (max-width: 640px){
  .modulos{ grid-template-columns: 1fr; }
  .selo-grid{ grid-template-columns: 1fr; }
  .hero-search{ flex-direction: column; }
  .header-search{ display: none; }
  .footer-grid{ grid-template-columns: 1fr; }
}
