/* ---------- Base / Layout ---------- */
:root{
  --bg: #f8f9fa;
  --panel: #ffffff;
  --panel-2: #f1f3f4;
  --text: #2c3e50;
  --text-soft: #5a6c7d;
  --border: #e1e5e9;
  --link: #3498db;
  --link-hover: #2980b9;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  max-width: 1220px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
}

/* ---------- Tipografia ---------- */
h1, h2 {
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: 1.8rem; margin: 0; }
h2 { font-size: 1.4rem; }

p { margin-bottom: 20px; color: var(--text-soft); }

ul { padding-left: 20px; margin-bottom: 30px; }
li { margin-bottom: 12px; }

a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}
a:hover { text-decoration: underline; color: var(--link-hover); }

/* ---------- Header (desktop: logo à esquerda, título centralizado na página) ---------- */
header {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 26px;
  min-height: 80px;
}

.logo-link {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  z-index: 1;
}

header img {
  height: 80px;
  max-width: 100%;
  object-fit: contain;
}

/* título centralizado na página inteira */
header h1 {
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
}

/* ---------- Navegação ---------- */
nav {
  background-color: var(--panel);
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  text-align: center;
}
nav a { 
  margin-right: 12px; 
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
nav a:hover {
  background-color: var(--panel-2);
  text-decoration: none;
}

/* ---------- Tabela ---------- */
.tabela-valores {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  min-width: 300px;
  font-size: 15px;
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.tabela-valores th,
.tabela-valores td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
  white-space: normal;
}

.tabela-valores th:last-child,
.tabela-valores td:last-child {
  text-align: center;
}
.tabela-valores th { background-color: var(--panel-2); }

/* ---------- Seções Padronizadas ---------- */
.section-block {
  background-color: var(--panel);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.section-block h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid var(--link);
  padding-bottom: 10px;
}

/* ---------- Mapa / Seções ---------- */
.map-container { 
  margin: 20px 0; 
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.map-container iframe {
  border-radius: 8px;
}

#empresa {
  margin-top: 0;
}

/* ---------- Botão WhatsApp (canto inferior direito) ---------- */
.whatsapp-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: #25d366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 9999;
}

/* ---------- Banner Institucional ---------- */
.institutional-banner {
  background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
  color: white;
  padding: 25px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.institutional-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
  pointer-events: none;
}

.banner-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.credentials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.credential-badge {
  background-color: rgba(255,255,255,0.25);
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.credential-badge:hover {
  background-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.banner-text {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  line-height: 1.4;
  max-width: 100%;
  word-wrap: break-word;
}

/* ---------- Seções de Política ---------- */
.policy-section {
  background-color: var(--panel-2);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid var(--link);
}

.policy-section h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.policy-section p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.company-info {
  background-color: var(--panel-2);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.company-info h3,
.company-info h4 {
  color: var(--text);
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.company-info h3 {
  font-size: 1.2rem;
}

.company-info h4 {
  font-size: 1.1rem;
  margin-top: 20px;
}

/* ---------- Rodapé Institucional ---------- */
.institutional-footer {
  background-color: var(--text);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-radius: 12px;
}

.institutional-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

/* ---------- Responsivo (mobile: logo ao lado do título) ---------- */
@media (max-width: 600px) {
  header {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }
  .logo-link {
    position: static;
  }
  header img { height: 70px; }
  header h1 {
    margin: 0;
    font-size: 1.6rem;
    text-align: left;
    width: auto;
  }

  nav { text-align: center; font-size: 15px; }
  .tabela-valores { font-size: 14px; }
  
  .institutional-banner {
    padding: 20px 15px;
  }
  
  .credentials {
    flex-direction: column;
    gap: 12px;
  }
  
  .credential-badge {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
  }
  
  .banner-text {
    font-size: 15px;
    line-height: 1.3;
    padding: 0 5px;
  }
}
