/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* ===== HEADER (REUTILIZÁVEL) ===== */
.header-sobre {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 3rem;
  background: url('imagens/header2.png') no-repeat center center;
  background-size: cover;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  height: 120px;
  transition: all 0.3s ease;
  z-index: 1000;
}

.header-sobre .logo-container .logo {
  max-height: 180px;
  width: auto;
  transition: all 0.3s ease;
}

/* MARGEM SÓ NO DESKTOP */
@media (min-width: 769px) {
  .header-sobre .logo-container {
    margin-left: 160px;
  }
  
  .header-sobre .menu-desktop {
    margin-right: 160px;
  }
}

/* MENU DESKTOP */
.header-sobre .menu-desktop ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.header-sobre .menu-desktop a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.3s ease;
  padding: 8px 0;
  position: relative;
}

.header-sobre .menu-desktop a:hover {
  color: #C0995D;
}

.header-sobre .menu-desktop a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #C0995D;
  transition: width 0.3s ease;
}

.header-sobre .menu-desktop a:hover::after {
  width: 100%;
}

/* MENU MOBILE TOGGLE */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1300;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== MENU LATERAL MOBILE (REUTILIZÁVEL) ===== */
#side-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 102%;
  background: url('imagens/backgroundmenu.png');
  box-shadow: -2px 0 12px rgba(0,0,0,0.25);
  transition: right 0.3s ease-in-out;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  border-radius: 20px;
}

#side-menu.active {
  right: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  display: none;
}

.overlay.active {
  display: block;
}

.close-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
  z-index: 1300;
}

.side-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.side-logo img {
  max-height: 200px;
  margin-bottom: 0.5rem;
}

.side-menu a {
  padding: 15px 20px;
  text-decoration: none;
  font-size: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.3s, color 0.3s;
}

.side-menu a:hover {
  background: rgba(90, 45, 12, 0.1);
  color: #C0995D;
}

/* ===== SEÇÃO SOBRE ===== */
.sobre-section {
  margin-top: 70px;
  padding: 140px 2rem 60px;
  background: #ffffff;
  min-height: 100vh;
}

.sobre-container {
  max-width: 1200px;
  margin: 0 auto 4rem;
  text-align: center;
}

.sobre-titulo {
  font-size: 3.5rem;
  color: #6a7263;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 1200;
}

.sobre-subtitulo {
  font-size: 2.5rem;
  color: #C0995D;
  font-weight: 500;
  direction: rtl;
}

.missao-container {
  max-width: 920px;
  margin: 0 auto 4rem;
  background: #f1ece7;
  padding: 3rem;
  border-radius: 15px;
  border: 5px solid #C0995D;
}

.missao-titulo {
  font-size: 2.2rem;
  color: #C0995D;
  margin-bottom: 2rem;
  text-align: left;
  font-weight: 600;
}

.projeto-descricao {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.projeto-descricao strong {
  color: #6a7263;
  font-weight: 900;
}

/* ===== CARDS COM ÍCONES ACIMA DO TEXTO ===== */
.topicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.topico-item {
  margin-left: 5px;
  width: 280px;
  height: 200px;
  padding: 1.5rem;
  background: #f9f5f1;
  border-radius: 12px;
  border: 2px solid #C0995D;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.topico-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(165, 84, 12, 0.1);
}

.topico-icone {
  width: 50px;
  height: 50px;
  border: 2px solid #6a7263;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  background: #6a7263;
  margin-bottom: 1rem;
}

.topico-titulo {
  font-size: 1.2rem;
  color: #C0995D;
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.topico-descricao {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

/* ===== RODAPÉ ===== */
#footer {
  background: #222222;
  padding: 50px 20px 20px;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 30px;
}

.footer-col h3 {
  font-size: 1.4em;
  margin: 0 0 15px 0;
  color: #F5E1C0;
  font-weight: 600;
}

.arabic-text {
  font-size: 1.1em;
  color: #F5E1C0;
  text-align: right;
  direction: rtl;
}

.footer-desc {
  line-height: 1.5;
  color: #F2D4B6;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #F2D4B6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #EEAA6B;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 37px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fffbf8;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.4em;
}

.social-icons a:hover {
  background: #F2D4B6;
}

.footer-bottom {
  border-top: 1px solid #83887A;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #F2D4B6;
  line-height: 1.4;
  margin: 0 0 5px 0;
}

.heart {
  color: #EEAA6B;
  font-size: 1.2em;
}

.copyright {
  font-size: 0.9em;
  color: #F2D4B6 !important;
}

/* ===== TABLET (769px - 1024px) ===== */
@media (max-width: 1024px) {
  .topicos-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 800px;
    gap: 1.2rem;
  }
  
  .topico-item {
    width: 100%; /* Remove largura fixa */
    margin-left: 0; /* Remove margem fixa */
    padding: 1.2rem;
    height: auto; /* Remove altura fixa */
    min-height: 180px;
  }
}

/* ===== MOBILE (481px - 768px) ===== */
/* Responsividade */
@media (max-width: 768px) {
  .header-sobre {
    padding: 10px 1rem;
    height: 120px;
  }
  
  .header-sobre .logo-container .logo {
    max-height: 140px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header-sobre .menu-desktop {
    display: none;
  }
  
  main {
    margin-top: 120px !important;
  }
  
  .header-sobre .menu-desktop {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
    position: relative;
    margin-left: auto;
  }
  
  .header-sobre .logo-container {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }
  
  .sobre-section {
    padding: 100px 1rem 40px;
  }

  .sobre-titulo {
    font-size: 2.5rem;
  }

  .sobre-subtitulo {
    font-size: 2rem;
  }

  .missao-container {
    padding: 2rem 1.5rem;
    margin-bottom: 3rem;
  }

  .missao-titulo {
    font-size: 1.8rem;
  }

  .projeto-descricao {
    font-size: 1.1rem;
  }

  .topicos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .topico-item {
    padding: 2rem 1.5rem;
  }

  .topico-icone {
    font-size: 2.5rem;
  }
}

/* ===== MOBILE PEQUENO (480px para baixo) ===== */
@media (max-width: 480px) {
  .header-sobre {
    padding: 10px 1rem;
    height: 100px;
  }
  
  .header-sobre .logo-container .logo {
    max-height: 140px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header-sobre .menu-desktop {
    display: none;
  }
  
  main {
    margin-top: 120px !important;
  }
  
  .menu-toggle {
    width: 24px;
    height: 18px;
  }

  .sobre-titulo {
    font-size: 2rem;
  }

  .sobre-subtitulo {
    font-size: 1.6rem;
  }

  .topico-titulo {
    font-size: 1.3rem;
  }

  .topico-descricao {
    font-size: 1rem;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .topicos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .topico-item {
    padding: 2rem 1.5rem;
  }

  .topico-icone {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .topico-titulo {
    font-size: 1.3rem;
  }

  .topico-descricao {
    font-size: 1rem;
  }
}

/* === RESPONSIVIDADE RODAPÉ === */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-col {
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 15px;
  }
  
  .footer-content {
    gap: 1rem;
  }
  
  .footer-col h3 {
    font-size: 1.2rem;
  }
}