/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding-top: 100px;
}

/* ===== CABEÇALHO ===== */
#header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 3rem;
  background: transparent;
  transition: all 0.3s ease;
  z-index: 1000;
  height: 100px;
}

#header.scrolled {
  background: url('imagens/header2.png') no-repeat center center;
  background-size: cover;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  padding: 10px 3rem;
  height: 80px;
}

/* Menu Desktop */
.menu-desktop ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu-desktop a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.menu-desktop a:hover {
  color: #C0995D;
}

#header.scrolled .menu-desktop a {
  color: #ffffff;
  text-shadow: none;
}

/* ===== MENU MOBILE ===== */
.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;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===== MENU LATERAL ===== */
#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;
}

/* ===== HERO SECTION ===== */
.fichamentos-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('imagens/fichamentoshero.PNG') no-repeat center center/cover;
  display: flex;
  align-items: center;
  padding: 120px 2rem 2rem;
  margin-top: -100px;
  padding-top: 100px;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-logo {
  text-align: center;
}

.logo-hero {
  max-height: 800px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.arabic-subtitle {
  font-size: 2rem;
  color: #C0995D;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-description {
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #C0995D;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.stat-label {
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===== SEÇÃO FICHAMENTOS ===== */
#fichamentos {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.fichamentos-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.fichamentos-titulo {
  font-size: 3.5rem;
  color: #5a2d0c;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.fichamentos-subtitulo {
  font-size: 2rem;
  color: #C0995D;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* ===== FILTROS ===== */
.filtros-container {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.filtro-busca {
  margin-bottom: 2rem;
  text-align: center;
}

.search-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #C0995D;
  font-size: 1.2rem;
}

.search-box input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-box input:focus {
  outline: none;
  border-color: #C0995D;
  box-shadow: 0 0 0 3px rgba(192, 153, 93, 0.1);
}

.filtro-botoes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filtro-btn {
  padding: 12px 24px;
  border: 2px solid #C0995D;
  background: transparent;
  color: #5a2d0c;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
}

.filtro-btn.active,
.filtro-btn:hover {
  background: #C0995D;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 153, 93, 0.3);
}

/* ===== GRID DE FICHAMENTOS ===== */
.fichamentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.ficha-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border-top: 4px solid #C0995D;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translateY(0);
  opacity: 1;
}

.ficha-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.ficha-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.periodo-badge {
  background: linear-gradient(135deg, #C0995D, #5a2d0c);
  color: white;
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: 600;
}

.ficha-content h3 {
  color: #2c3e50;
  font-size: 1.3em;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.categoria {
  display: inline-block;
  background: #f8f9fa;
  color: #C0995D;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 500;
  margin-bottom: 15px;
}

.ficha-content p {
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.download-btn {
  width: 100%;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 500;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.download-btn:hover {
  background: linear-gradient(135deg, #C0995D, #5a2d0c);
  color: #ffffff;
}

/* ===== 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;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
  #header {
    padding: 15px 2rem;
    height: 90px;
  }
  
  #header.scrolled {
    padding: 8px 2rem;
    height: 70px;
  }
  
  .menu-desktop ul {
    gap: 1.5rem;
  }
  
  .menu-desktop a {
    font-size: 0.95rem;
  }
  
  .fichamentos-hero {
    min-height: 80vh;
    padding: 100px 2rem 2rem;
  }
  
  .hero-container {
    max-width: 1000px;
    gap: 3rem;
  }
  
  .logo-hero {
    max-height: 500px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .arabic-subtitle {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
}

/* Mobile (481px - 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
  
  #header {
    padding: 12px 1.5rem;
    height: 80px;
    justify-content: space-between;
    background: transparent !important;
    box-shadow: none;
  }
  
  #header.scrolled {
    padding: 6px 1.5rem;
    height: 60px;
    background: transparent !important;
    box-shadow: none;
  }
  
  .menu-desktop {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  #side-menu {
    width: 280px;
    padding: 1rem;
  }
  
  .side-logo img {
    max-height: 150px;
  }
  
  .side-menu a {
    padding: 12px 15px;
    font-size: 16px;
  }
  
  .fichamentos-hero {
    min-height: 100vh;
    padding: 80px 1.5rem 1.5rem;
    margin-top: -80px;
    padding-top: 80px;
    text-align: center;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 600px;
  }
  
  .logo-hero {
    max-height: 300px;
    margin: 0 auto;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
  }
  
  .arabic-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .fichamentos-titulo {
    font-size: 2.8rem;
  }
  
  .fichamentos-subtitulo {
    font-size: 1.6rem;
  }
  
  .filtro-botoes {
    gap: 0.5rem;
  }
  
  .filtro-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .fichamentos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .search-box input {
    font-size: 1rem;
    padding: 12px 15px 12px 45px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
}

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
  body {
    padding-top: 70px;
  }
  
  #header {
    padding: 10px 1rem;
    height: 70px;
  }
  
  #header.scrolled {
    padding: 5px 1rem;
    height: 50px;
  }
  
  .menu-toggle {
    width: 24px;
    height: 18px;
  }
  
  .menu-toggle span {
    height: 2.5px;
  }
  
  #side-menu {
    width: 260px;
    padding: 0.8rem;
  }
  
  .side-logo img {
    max-height: 120px;
  }
  
  .side-menu a {
    padding: 10px 12px;
    font-size: 15px;
    gap: 10px;
  }
  
  .close-menu {
    top: 10px;
    right: 10px;
    font-size: 20px;
  }
  
  .fichamentos-hero {
    min-height: 100vh;
    padding: 70px 1rem 1rem;
    margin-top: -70px;
    padding-top: 70px;
  }
  
  .logo-hero {
    max-height: 200px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .arabic-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .stat-item {
    flex: 1;
    min-width: 80px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .fichamentos-titulo {
    font-size: 2.2rem;
  }
  
  .fichamentos-subtitulo {
    font-size: 1.3rem;
  }
  
  .filtro-botoes {
    flex-direction: column;
    align-items: center;
  }
  
  .filtro-btn {
    width: 200px;
  }
}

/* Mobile Muito Pequeno (até 360px) */
@media (max-width: 360px) {
  body {
    padding-top: 60px;
  }
  
  #header {
    padding: 8px 0.8rem;
    height: 60px;
  }
  
  #header.scrolled {
    padding: 4px 0.8rem;
    height: 45px;
  }
  
  .menu-toggle {
    width: 22px;
    height: 16px;
  }
  
  #side-menu {
    width: 240px;
  }
  
  .side-logo img {
    max-height: 100px;
  }
  
  .side-menu a {
    padding: 8px 10px;
    font-size: 14px;
  }
  
  .fichamentos-hero {
    min-height: 50vh;
    padding: 60px 0.5rem 0.5rem;
    margin-top: -60px;
    padding-top: 60px;
  }
  
  .hero-container {
    padding: 0 0.5rem;
  }
  
  .logo-hero {
    max-height: 150px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .arabic-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    gap: 0.5rem;
  }
  
  .stat-item {
    min-width: 70px;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}