/* ====
   PORTAL EQUIPAMENTOS EPI'S - CSS PRINCIPAL
   ==== */
:root {
  --color-primary: #0DB4D4;
  --color-primary-dark: #0095A8;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #FFFFFF;
  --color-bg-light: #F5F5F5;
  --color-border: #E0E0E0;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text);
  background-color: var(--color-bg);
}
body {
  display: flex;
  flex-direction: column;
}
/* ==== TOP BAR ==== */
.top-bar {
  background: linear-gradient(to bottom, #1a3a8f 0%, #0DB4D4 100%);
  padding: 0.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 0.8rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  white-space: nowrap;
  overflow: hidden;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #FFFFFF;
  flex-shrink: 0;
}
.top-bar-item a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  opacity: 0.9;
}
.top-bar-item a:hover {
  opacity: 1;
  text-decoration: underline;
}
.top-bar-icon {
  font-size: 0.9rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
}
/* ==== MAIN ==== */
main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* ==== HERO ==== */
.hero {
  background: url('../images/hero-bg.jpg') top center / cover no-repeat;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-content { display: none; }
/* ==== FOOTER ==== */
footer {
  background-color: var(--color-bg);
  border-top: 2px solid var(--color-border);
  flex-shrink: 0;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.footer-section h3 {
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-logo {
  width: 240px;
  margin-bottom: 0.4rem;
}
.footer-logo svg {
  width: 100%;
  height: auto;
  display: block;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
}
.social-icons {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}
.social-icon:hover {
  filter: brightness(1.15);
  transform: scale(1.1);
}
.footer-menu, .footer-contact { list-style: none; }
.footer-menu li, .footer-contact li { margin-bottom: 0.25rem; }
.footer-menu a, .footer-contact a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.78rem;
}
.footer-menu a:hover, .footer-contact a:hover {
  color: var(--color-primary);
  font-weight: 600;
}
.google-maps {
  width: 100%;
  height: 100px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.google-maps iframe { width: 100%; height: 100%; border: none; }
.footer-copyright {
  background-color: #2C3E50;
  color: white;
  text-align: center;
  padding: 0.35rem;
  font-size: 0.72rem;
}
/* ==== WHATSAPP FLOAT ==== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: var(--transition);
  z-index: 50;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.whatsapp-float::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 60px;
  right: 0;
  background-color: rgba(0,0,0,0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.whatsapp-float:hover::before { opacity: 1; }
/* ==== SCROLLBAR ==== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-light); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-dark); }
/* ==== UTILITÁRIOS ==== */
.text-center { text-align: center; }
.hidden { display: none; }

/* ==== MOBILE ==== */
@media (max-width: 1024px) {
  html, body {
    height: auto;
    overflow: auto;
  }

  /* Top bar: nome em cima, itens de contato embaixo */
  .top-bar {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    font-size: 0.78rem;
    white-space: normal;
    overflow: visible;
  }
  .top-bar-brand {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.45rem 1rem 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
    gap: 4px;
  }
  /* Agrupa os top-bar-item numa linha com wrap */
  .top-bar-items-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.3rem 0.9rem;
    padding: 0.35rem 0.75rem;
    width: 100%;
  }
  .top-bar-item {
    flex-shrink: 0;
  }

  /* Hero */
  .hero { min-height: 40vh; }

  /* Footer 2 colunas */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
  }
  .google-maps { height: 150px; }
}

@media (max-width: 600px) {
  /* Top bar: email abreviado */
  .top-bar-item a[href^="mailto"] {
    font-size: 0.7rem;
    word-break: break-all;
  }

  /* Footer coluna única */
  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Footer logo menor */
  .footer-logo {
    width: 180px;
  }

  /* Mapa maior no mobile */
  .google-maps { height: 180px; }
}

/* ==== ACESSIBILIDADE ==== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
/* ==== IMPRESSÃO ==== */
@media print {
  .top-bar, .whatsapp-float, footer { display: none; }
  body { background-color: white; }
}