/* ===== 1. RESET E BASE ===== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

:root { 
  --tarja-h: 180px; /* Altura base para desktop */
}

html, body {
  height: 100%;
  font-family: Calibri, sans-serif;
  background: #0f2b3a;
  color: #fff;
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

.pagina-index {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ===== 2. LOGO E LAYOUT 50/50 ===== */
.logo-topo { 
  text-align: center; 
  padding: 1.5rem 0; 
}

.logo-index { 
  width: clamp(200px, 30vw, 300px); 
}

.index-layout {
  flex: 1;
  display: flex;
  flex-direction: row;
}

.coluna {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  overflow: hidden;
}

.coluna-esquerda { background-image: url("../images/bg-company.jpg"); }
.coluna-direita  { background-image: url("../images/b2c2.png"); }

/* ===== 3. OVERLAY E TARJA (POSIÇÃO BAIXA) ===== */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end; /* Mantém a tarja na base */
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.tarja {
  width: 100%;
  min-height: var(--tarja-h);
  height: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: center;
  justify-items: center;
  gap: 8px;
  background: rgba(15, 43, 58, 0.4);
  transition: background-color 0.3s ease;
  padding: 20px clamp(16px, 3vw, 32px);
  pointer-events: auto;
}

.coluna:hover .tarja { 
  background: rgba(15, 43, 58, 0.85); 
}

/* ===== 4. TIPOGRAFIA DA TARJA ===== */
.tarja h2 {
  color: #f68d7b;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0;
}

.tarja p {
  color: #faf5f2;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.35;
  margin: 0;
  max-width: 60ch;
  overflow-wrap: anywhere;
}

/* ===== 5. COOKIE POP-UP ===== */
.cookie-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.cookie-box {
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  padding: 30px;
  text-align: center;
  color: #333;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: fadeIn 0.4s ease;
}

.cookie-box h2 { color: coral; margin-bottom: 15px; font-size: 22px; }
.cookie-box p { font-size: 15px; margin-bottom: 20px; color: #555; }
.cookie-buttons { display: flex; justify-content: center; gap: 10px; }
.cookie-buttons button { border: none; border-radius: 10px; padding: 10px 20px; cursor: pointer; font-weight: bold; }

#accept-cookies { background: coral; color: white; }
#decline-cookies { background: #f1f1f1; color: #333; }

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== 6. RESPONSIVIDADE (AJUSTES PARA BAIXAR A TARJA) ===== */

/* Tablet e Telas Médias */
@media (max-width: 1024px) {
  .index-layout { flex-direction: column; }
  .coluna { width: 100%; min-height: 320px; }
  
  :root { --tarja-h: 150px; } /* Altura reduzida para descer a tarja */
  
  .tarja {
    padding: 15px clamp(16px, 3vw, 28px);
  }
}

/* Mobile (Ajuste fino para a tarja não subir) */
@media (max-width: 768px) {
  .coluna { min-height: 250px; }
  
  /* Diminuímos o min-height drasticamente para a tarja "sentar" no fundo */
  :root { --tarja-h: 110px; } 

  .tarja { 
    padding: 10px 15px; 
    gap: 4px; 
  }

  .tarja h2 { 
    font-size: 1.4rem; 
  }

  .tarja p { 
    font-size: 0.95rem; 
    line-height: 1.2;
    max-width: 100%; 
  }

  .logo-topo { padding: 1rem 0; }
  .logo-index { width: 180px; }
}