/* ===== Reset básico ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

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%;
}

/* ===== Página ===== */
.pagina-index {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ===== Logo ===== */
.logo-topo { text-align: center; padding: 1.5rem 0; }
.logo-index { width: clamp(200px, 30vw, 300px); }

/* ===== Layout 50/50 ===== */
.index-layout {
  flex: 1;
  display: flex;
  flex-direction: row;
}

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

/* Imagens de fundo */
.coluna-esquerda { background-image: url("../images/bg-company.jpg"); }
.coluna-direita  { background-image: url("../images/bg-people.jpg"); }

/* ===== Overlay + Tarja (full-bleed, altura fixa, central) ===== */
:root { --tarja-h: 180px; }                /* altura padrão da tarja */

.overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0;                 /* sem respiro: tarja ocupa lateral a lateral */
  pointer-events: none;       /* deixa a âncora clicável */
  text-align: center;
  word-break: break-word;
}
/* ===== Overlay + Tarja ===== */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/* ===== Overlay + Tarja ===== */
:root { --tarja-h: 180px; } /* desktop base */


.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tarja {
  width: 100%;
  min-height: var(--tarja-h);   /* 👈 garante uma base, mas deixa crescer */
  height: auto;                 /* 👈 permite expandir quando o texto for maior */
  display: grid;                /* grid p/ alinhar título e texto consistentemente */
  grid-template-rows: auto 1fr; /* h2 em cima, p abaixo */
  align-content: center;        /* conteúdo central na vertical */
  justify-items: center;        /* centralizar na horizontal */
  gap: 8px;

  border-radius: 0;
  background: rgba(15, 43, 58, 0.4);
  transition: background-color .3s ease;
  padding: 0 clamp(16px, 3vw, 32px);
  text-align: center;
  pointer-events: auto;
}
.coluna:hover .tarja { background: rgba(15, 43, 58, 0.8); }

/* Título sempre na mesma altura em ambas as colunas */
.tarja h2 {
  color: #f68d7b;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0;
}


/* Texto fica abaixo; pode crescer sem empurrar o h2 */
.tarja p {
  color: #faf5f2;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  margin: 0;

  /* 👇 impede quebra feia e sobreposição no Android */
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  max-width: 60ch; /* mantém coluna de texto confortável */
}

/* ===== COOKIE POP-UP ===== */
.cookie-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

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

.cookie-box h2 {
  color: coral;
  margin-bottom: 15px;
  font-size: 22px;
}

.cookie-box p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cookie-buttons button {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s ease;
}

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

#accept-cookies:hover {
  background: #e05b42;
}

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

#decline-cookies:hover {
  background: #ddd;
}

/* Animação suave */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== Tablet e abaixo (empilha as colunas) ===== */
@media (max-width: 1024px) {
  /* empilha as duas metades */
  .index-layout {
    flex-direction: column;
    flex: 1;
  }

  /* cada bloco ocupa 100% da largura e tem altura confortável */
  .coluna {
    width: 100%;
    min-height: 280px;           /* ajuste se quiser mais/menos alto */
    flex: 1 1 0;
  }

  /* mantém o título alinhado no topo da tarja */
  :root { --tarja-h: 180px; }    /* mesma lógica da versão desktop; ajuste se quiser */
  .tarja {
    height: var(--tarja-h);
    padding: 18px clamp(16px, 3vw, 28px);
  }

  .tarja h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    margin-bottom: 8px;
  }

  .tarja p {
    font-size: clamp(1rem, 2.1vw, 1.3rem);
    line-height: 1.35;
    max-width: 90%;
  }
}

/* ===== Mobile (refina) ===== */
@media (max-width: 768px) {
  :root { --tarja-h: 160px; }    /* se quiser a tarja um pouco mais baixa no celular */

  .coluna {
    min-height: 240px;
  }

  .tarja { padding: 16px clamp(16px, 4vw, 24px); }
}

/* Tablet e abaixo */
@media (max-width: 1024px) {
  :root { --tarja-h: 200px; }  /* dá mais fôlego no tablet Android */
  .coluna { min-height: 320px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --tarja-h: 180px; }  /* pode subir p/ 200px se o texto for maior */
  .coluna { min-height: 260px; }
  .tarja { padding: 0 clamp(16px, 4vw, 28px); }
  .tarja p { max-width: 66ch; } /* um pouco mais largo no mobile */
}
