/* ==========================================================================
   TEGRAN Kennedy — folha de estilo única, compartilhada por / e /en/
   Editar aqui altera as duas versões de idioma ao mesmo tempo.
   ========================================================================== */

:root {
  --azul-profundo: #0b1f3a;
  --azul-acao: #4a81b5;
  --azul-acao-hover: #386794;
  --texto: #1a1a1a;
  --texto-suave: #4a5568;
  --texto-legenda: #667180;
  --borda: #e1e5e8;
  --fundo: #ffffff;
  --fundo-suave: #f6f8fa;

  --raio: 12px;
  --raio-pequeno: 8px;
  --sombra: 0 10px 30px rgba(11, 31, 58, 0.10);
  --sombra-leve: 0 4px 12px rgba(11, 31, 58, 0.08);
  --transicao: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--fundo);
  color: var(--texto);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* height:auto é obrigatório: sem ele, o atributo height="..." do HTML vira
   uma dica de apresentação e estica a imagem (bug visto nas miniaturas). */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--azul-acao);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Link de pular navegação — visível apenas ao receber foco pelo teclado */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--azul-profundo);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 var(--raio-pequeno) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Barra superior — seletor de idioma
   ========================================================================== */

.topbar {
  border-bottom: 1px solid var(--borda);
  background: var(--fundo-suave);
}

.topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switch__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--texto-suave);
  transition: background-color var(--transicao), color var(--transicao);
}

.lang-switch__item:hover { background-color: rgba(74, 129, 181, 0.12); color: var(--azul-profundo); }

.lang-switch__item[aria-current="true"] {
  background-color: var(--azul-profundo);
  color: #fff;
}

.lang-switch__flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Cabeçalho — logo + tagline em texto + CTA
   ========================================================================== */

.cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-top: 32px;
  padding-bottom: 48px;
}

.marca { text-decoration: none; display: inline-block; }

.marca__logo { width: 260px; height: auto; }

/* A tagline saiu de dentro do PNG e virou texto: agora traduz e é indexável */
.marca__tagline {
  margin-top: 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--azul-profundo);
}

.botao-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--azul-acao);
  color: #fff;
  text-decoration: none;
  padding: 16px 30px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(74, 129, 181, 0.3);
  transition: background-color var(--transicao), transform 0.2s ease;
}

.botao-cta:hover { background-color: var(--azul-acao-hover); transform: translateY(-2px); }

.botao-cta__seta { font-weight: 700; }

/* ==========================================================================
   Hero — texto à esquerda, carrossel + miniaturas à direita
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  padding-bottom: 64px;
}

@media (min-width: 992px) {
  .hero {
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: start;
  }
}

.hero__titulo {
  color: var(--azul-profundo);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 26px;
  text-wrap: balance;
}

.hero__texto p {
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--texto-suave);
}

.hero__texto p + p { margin-top: 18px; }

.hero__texto strong { color: var(--azul-profundo); font-weight: 700; }

/* ==========================================================================
   Carrossel do projeto
   ========================================================================== */

.carrossel { position: relative; }

.carrossel__palco {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--raio);
  overflow: hidden;
  background-color: var(--azul-profundo);
  box-shadow: var(--sombra);
}

.carrossel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.carrossel__slide.esta-ativo { opacity: 1; visibility: visible; }

.carrossel__slide img { width: 100%; height: 100%; object-fit: cover; }

/* O masterplan é um desenho técnico: cortar as bordas perderia informação,
   então ele aparece inteiro, com faixas laterais no fundo azul. */
.carrossel__slide--inteiro img { object-fit: contain; }

.carrossel__legenda {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 20px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(11, 31, 58, 0.85), rgba(11, 31, 58, 0));
}

.carrossel__seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.88);
  color: var(--azul-profundo);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transicao), background-color var(--transicao);
  box-shadow: var(--sombra-leve);
}

.carrossel:hover .carrossel__seta,
.carrossel__seta:focus-visible { opacity: 1; }

.carrossel__seta:hover { background-color: #fff; }

.carrossel__seta--anterior { left: 12px; }
.carrossel__seta--proxima { right: 12px; }

.carrossel__seta svg { width: 17px; height: 17px; fill: currentColor; }

.carrossel__marcadores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.carrossel__marcador {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #cfd6dd;
  cursor: pointer;
  transition: background-color var(--transicao), transform var(--transicao);
}

.carrossel__marcador:hover { background-color: var(--azul-acao); }

.carrossel__marcador[aria-selected="true"] {
  background-color: var(--azul-profundo);
  transform: scale(1.35);
}

/* ==========================================================================
   Miniaturas da obra
   ========================================================================== */

.galeria { margin-top: 30px; }

.galeria__titulo,
.socios__titulo {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-legenda);
  margin-bottom: 14px;
}

.galeria__grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 15px;
}

.galeria__item { margin: 0; }

/* Cada miniatura é um botão: abre a imagem ampliada no lightbox */
.galeria__botao {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--raio-pequeno);
}

.galeria__moldura {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--raio-pequeno);
  box-shadow: var(--sombra-leve);
}

.galeria__botao img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeria__botao:hover img { transform: scale(1.06); }

.galeria__item figcaption {
  margin-top: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--texto-legenda);
}

/* ==========================================================================
   Lightbox — imagem ampliada
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(6, 17, 32, 0.96);
}

.lightbox.esta-aberto { display: flex; }

.lightbox__conteudo {
  position: relative;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.lightbox__imagem {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--raio);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox__legenda {
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.lightbox__contador {
  margin-top: 6px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
}

.lightbox__botao {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--transicao);
}

.lightbox__botao:hover { background-color: rgba(255, 255, 255, 0.3); }

.lightbox__botao svg { width: 18px; height: 18px; fill: currentColor; }

.lightbox__fechar {
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
}

.lightbox__anterior,
.lightbox__proxima {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
}

.lightbox__anterior { left: -62px; }
.lightbox__proxima { right: -62px; }

@media (max-width: 900px) {
  .lightbox { padding: 16px; }
  .lightbox__anterior { left: 4px; }
  .lightbox__proxima { right: 4px; }
  .lightbox__fechar { top: -46px; }
  .lightbox__imagem { max-height: 66vh; }
}

/* Trava a rolagem do fundo enquanto o lightbox está aberto */
body.lightbox-ativo { overflow: hidden; }

/* ==========================================================================
   Faixa dos acionistas — logos agora são links para os sites
   ========================================================================== */

.socios {
  border-top: 1px solid var(--borda);
  padding-top: 34px;
  padding-bottom: 12px;
  text-align: center;
}

.socios__lista {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 42px;
}

.socios__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--raio-pequeno);
  transition: transform var(--transicao), background-color var(--transicao);
}

.socios__link:hover { transform: translateY(-3px); background-color: var(--fundo-suave); }

/* Os dois logos têm proporções muito diferentes — a Jolivan é uma marca
   horizontal (~6:1) e a Macro é quase quadrada (~1,5:1). Uma restrição única
   deixaria uma delas visivelmente maior, então cada uma tem a sua. */
.socios__link img { width: auto; height: auto; object-fit: contain; }

.socios__logo--jolivan { max-width: 180px; max-height: 40px; }
.socios__logo--macro { max-width: 110px; max-height: 62px; }

/* ==========================================================================
   Rodapé
   ========================================================================== */

.rodape {
  margin-top: 56px;
  padding: 34px 0 26px;
  border-top: 1px solid var(--borda);
  text-align: center;
  color: var(--texto-legenda);
  font-size: 0.85rem;
}

.rodape__local { margin-bottom: 16px; }

.rodape__redes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.rodape__redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--azul-profundo);
  color: #fff;
  transition: background-color var(--transicao), transform 0.2s ease;
}

.rodape__redes a:hover { background-color: var(--azul-acao); transform: translateY(-2px); }

.rodape__redes svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   Telas pequenas
   ========================================================================== */

@media (max-width: 768px) {
  .cabecalho {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding-bottom: 36px;
  }

  .marca__logo { width: 215px; }

  .botao-cta { width: 100%; justify-content: center; }

  .carrossel__seta { opacity: 1; width: 36px; height: 36px; }

  .galeria__grade { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }

  .galeria__item figcaption { font-size: 0.62rem; }


  .socios__lista { gap: 20px; }

  .socios__logo--jolivan { max-width: 140px; max-height: 32px; }
  .socios__logo--macro { max-width: 86px; max-height: 48px; }
}

/* Respeita quem pediu menos animação no sistema operacional */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
