/**
 * Estilos base do tema Tarifáro
 * Header, navegação e estrutura geral
 * 
 * @package Tarifáro
 * @author Chagas Web
 */

/* ==============================
 * Reset e Base
 * ============================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Museo Sans Rounded', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ==============================
 * Header
 * ============================== */
.site-header {
  background: rgba(255, 255, 255, 0.95); /* Fundo semi-transparente */
  backdrop-filter: blur(10px); /* Efeito blur */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  padding: 5px 0 20px 0;
  box-shadow: none !important;
}

/* Remover compensação do header - ele vai sobrepor o conteúdo */
body {
  padding-top: 0;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* ==============================
 * Logo e Branding
 * ============================== */
.site-branding {
  flex: 0 0 auto;
}

.site-logo img,
.custom-logo {
  max-height: 60px;
  width: auto;
  display: block;
}

.site-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.site-title a {
  color: #0094D9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title a:hover {
  color: #3BAE49;
}

.site-description {
  margin: 5px 0 0;
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

/* Navegação será reconstruída do zero */

/* Mobile será reconstruído do zero */  

/* ==============================
 * Paginação
 * ============================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 50px 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: #0094D9;
  border-color: #0094D9;
  color: #fff;
}

.pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ==============================
 * Footer
 * ============================== */
.site-footer {
  background: #1e3a5f;
  color: #fff;
  padding: 60px 0 0;
  margin-top: 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: #FFCB05;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-section p {
  color: #fff;
  line-height: 1.8;
  margin: 10px 0;
  font-size: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: #fff;
}

.footer-contact-item i {
  color: #FFCB05;
  font-size: 16px;
}

.footer-copyright {
  background: rgba(0,0,0,0.2);
  padding: 20px 0;
  text-align: center;
  margin: 0;
}

.site-footer {
  margin: 0;
}

/* Remove QUALQUER espaço abaixo do footer */
body {
  margin-bottom: 0 !important;
}

#page {
  margin-bottom: 0 !important;
}

.footer-copyright p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.footer-copyright .separator {
  margin: 0 8px;
  color: rgba(255,255,255,0.4);
}

.footer-copyright a.chagas-link {
  color: #FFCB05;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-copyright a.chagas-link:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-header {
    padding: 5px 0 15px 0; /* Menos padding no mobile */
  }
  
  .header-container {
    padding: 0 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-container {
    padding: 0 20px;
  }
}

/* ==============================
 * Utilitários
 * ============================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0094D9;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}
