/* -------------------------------------------
   AfroEduca Hub — style.css (Anthony Samuel Freitas)
   Paleta: Amarelo-Ouro #FFC300, Marrom #6B3E26,
           Azul Inclusivo #007BFF, Bege #FFF8E1
   Fonte: Poppins
------------------------------------------- */

:root {
  --gold: #FFC300;
  --brown: #6B3E26;
  --blue: #007BFF;
  --beige: #FFF8E1;
  --white: #ffffff;
  --muted: #6b6b6b;
  --shadow: 0 10px 30px rgba(11,11,11,0.08);
  --container: 1100px;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Poppins", sans-serif;
  background: var(--beige);
  color: var(--brown);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header{
  background: linear-gradient(90deg,var(--brown), #5a2a09);
  padding:0px 0;
  position:sticky;
  top:0;
  z-index:60;
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
  text-decoration: none;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--gold);
  font-weight:700;
  font-size:1.3rem
}
.logo-img{
  width:280px;
  height:200px;
  padding: 20px;
}
.nav-links{
  display:flex;
  gap:18px;
  list-style:none;
  margin:0;
  padding:0
}
.nav-links a{
  color:var(--gold);
  text-decoration: none;
  font-weight:600;
  letter-spacing:0.2px
}
.nav-links a:hover{
  color:var(--white);
  opacity:0.95;
}

/* HERO (Capa Inicial) */
.hero {
  padding: 60px 0;
  text-align: center;
}

.card-main {
  background: linear-gradient(180deg, #fff, #fffdf6);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  gap: 20px;
  align-items: stretch;
  justify-content: space-between;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.card-sub {
  flex: 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  text-align: justify;
}

.card-sub:nth-child(1),
.card-sub:nth-child(3) {
  background-color: rgba(255, 195, 0, 0.08);
}

.card-sub:nth-child(2) {
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Icon inside text */
.card-title{
  width:200px;
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  display:flex;
  align-items:center;
  justify-content: flex-start;
  display:inline-block;
}

.card-icon{
  width:56px;
  height:56px;
  border-radius:10px;
  background:orange;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--brown);
  font-size:1.3rem;
  box-shadow:0 8px 20px rgba(0,0,0,0.06)
}
.card-title-inside{
  align-items:center;
  justify-content:center;
  color:var(--brown);
  font-size:1.3rem;
}

/* Chips */
.chip{
  display:inline-block;
  background:linear-gradient(90deg,var(--gold), #ffd066);
  color:var(--brown);
  padding:6px 10px;
  border-radius:999px;
  font-weight:600;
  margin:4px 6px 4px 0;
  font-size:0.85rem
}


/* LOGO */
.hero-logo {
  width: 400px;
  height: 400px;
  object-fit: contain;
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 10px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brown);
  color: var(--gold);
  border: 2px solid var(--brown);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--brown);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--brown);
}
.btn-outline:hover {
  background: var(--brown);
  color: var(--gold);
  transform: translateY(-3px);
}

/* SECTION */
.section {
  padding: 60px 0;
}
.section h3 {
  color: var(--brown);
  margin-bottom: 10px;
}

/* CARD DE CONTEÚDO */
.card-text p {
  margin-bottom: 10px;
  color: #333;
}
.card-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.media-caption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CHECKLIST */
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}
.checklist li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

.logo-element {
  width: 20%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
}

/* TESTE DA IA */
#teste .input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  width: 100%;
}
#faixa {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  width: 100%;
}

#info {
  min-height: 120px;
  border-radius: 8px;
  resize: vertical;
}

#teste select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  width: 100%;
}

#info {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  width: 100%;
}

.input textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  width: 100%;
}

.input {
  padding: 10px 12px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  width: 100%;
}
#teste button {
  margin-top: 15px;
  align-self: center;
}

btn btn-primary {
  width: 100%;
}

#preview {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: var(--shadow);
}

/* Market stats */
.market-stats{
  display:flex;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap
}

.stat{
  background:linear-gradient(180deg,#fff,#fff7ec);
  padding:12px;
  border-radius:10px;
  flex:1;
  min-width:140px;
  box-shadow:0 6px 18px rgba(0,0,0,0.04)
}

.stat-number{
  font-weight:800;
  color:var(--brown);
  font-size:1.2rem
}

.stat-label{
  font-size:0.9rem;
  color:var(--muted)
}

/* FOOTER */
footer {
  background: linear-gradient(90deg,var(--brown), #5a2a09);
  text-align: center;
  padding: 25px;
  color: gold;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position:sticky;
  top:0;
  z-index:60;
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
}

.menu { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.menu-links {background-color:rgba(179, 43, 43, 0.403); position: absolute; top: 60px;; font-weight: 1000; list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.menu-links li {margin: 0; align-items: left;padding: auto;}
.menu a { color: #e5e7eb; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.menu a:hover { background: gold; color: #fff; }
.menu a.ativo { background: brown; color: #fff; }
.menu h2 { text-align: center; margin: 0; }
.redes { position: absolute; top: 15px; right: 20px; display: flex; gap: 15px; justify-content: flex-end; flex: 1; }
.redes a {color: white; font-size: 1.3em; transition: 0.3s; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.redes a:hover {background: gold; color: #fff; transform: scale(1.2); }

/* RESPONSIVIDADE */
@media (max-width: 980px) {
  .card-main {
    flex-direction: column;
  }
  .hero-logo {
    width: 130px;
    height: 130px;
  }
  .card-sub {
    text-align: center;
    align-items: center;
  }
  .card-media img {
    height: 180px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 1.8rem;
  }
  .card-sub {
    padding: 14px;
  }
  .hero-logo {
    width: 100px;
    height: 100px;
  }
}


/* MENU HAMBURGUER */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.menu-toggle.active { transform: rotate(90deg); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brown);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  }

  .nav.active { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links a {
    color: var(--gold);
    font-size: 1.1rem;
    padding: 10px 0;
    width: 100%;
    text-align: center;
  }

  .nav-links a:hover {
    background: rgba(255,195,0,0.15);
  }
}

/* BOTÃO VOLTAR AO TOPO */
#voltar-topo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--brown);
  color: var(--gold);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 200;
}

#voltar-topo.show {
  opacity: 1;
  pointer-events: auto;
}

#voltar-topo:hover {
  background: var(--gold);
  color: var(--brown);
  transform: translateY(-4px);
}

/* Ajuste este valor de acordo com a altura do seu cabeçalho */
section[id]:before {
  display: block;
  content: "";
  height: 70px; /* altura do seu cabeçalho */
  margin-top: -70px;
}