@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap");

/* =========================================================
   CONFIGURAÇÕES GERAIS
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #000000;
  color: #ffffff;
}

img {
  display: block;
  max-width: 100%;
}

.glow-icon {
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.32));
}

/* =========================================================
   CABEÇALHO
========================================================= */

/* Mantém o cabeçalho proporcional */
header > div {
  height: 104px !important;
  gap: 34px !important;
}

/* Mantém o logotipo visível e proporcional */
header img[alt="Prime Tap Logo"] {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

/* Espaçamento do menu */
header nav {
  gap: 24px !important;
}

/* Área dos botões à direita */
header .flex.items-center.gap-4.flex-shrink-0 {
  gap: 14px !important;
}

/* =========================================================
   SELETOR DE IDIOMAS
========================================================= */

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-button {
  min-width: 106px;
  height: 42px;
  padding: 0 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background-color: #1d1d20;
  color: #ffffff;

  border: 1px solid #35353a;
  border-radius: 999px;

  font-family: inherit;
  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.4px;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.language-button:hover {
  background-color: #29292d;
  border-color: #f97316;
  transform: translateY(-1px);
}

.language-button:focus {
  outline: none;
  border-color: #f97316;
}

.language-flag {
  width: 19px;
  height: 19px;

  border-radius: 50%;
  object-fit: cover;

  border: 1px solid rgba(255, 255, 255, 0.25);

  flex-shrink: 0;
}

.language-arrow {
  margin-left: 1px;
  font-size: 8px;
  color: #a1a1aa;
  transition: transform 0.25s ease;
}

.language-button.open .language-arrow {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;

  top: calc(100% + 8px);
  right: 0;

  min-width: 120px;

  background-color: #18181b;

  border: 1px solid #35353a;
  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);

  z-index: 1000;
}

.language-menu.hidden {
  display: none;
}

.language-option {
  width: 100%;
  padding: 10px 13px;

  display: flex;
  align-items: center;
  gap: 8px;

  background-color: transparent;
  color: #ffffff;

  border: none;

  font-family: inherit;
  font-size: 11px;
  font-weight: 700;

  text-align: left;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.language-option:hover {
  background-color: #f97316;
  color: #000000;
}

.language-option + .language-option {
  border-top: 1px solid #2d2d31;
}

/* =========================================================
   ÁREA PRINCIPAL / HERO
========================================================= */

/*
   A classe min-h-[90vh] deixava a primeira seção muito alta.
   Esta regra reduz a altura sem desconfigurar a imagem.
*/
body > section:first-of-type {
  min-height: 700px !important;

  padding-top: 64px !important;
  padding-bottom: 54px !important;
}

/*
   Mantém a imagem preenchendo toda a área,
   sem mudar sua proporção.
*/
body > section:first-of-type > div.absolute.inset-0.z-0 > img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

/* Reduz o espaço abaixo do texto principal */
body > section:first-of-type > div.max-w-7xl.mx-auto.px-6.w-full.grid {
  margin-bottom: 54px !important;
}

/* Mantém o título grande, mas um pouco mais proporcional */
body > section:first-of-type h1 {
  font-size: clamp(4.8rem, 7.5vw, 7.4rem) !important;

  line-height: 0.88 !important;
}

/* Reduz os espaços verticais automáticos da classe space-y-8 */
body > section:first-of-type .space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 24px !important;
}

/* =========================================================
   QUEM SOMOS E NOSSA MISSÃO
========================================================= */

#quem-somos {
  gap: 22px !important;
}

/* Reduz apenas o espaço interno, sem apertar o conteúdo */
#quem-somos > div {
  padding: 26px !important;
}

/* Mantém os ícones proporcionais */
#quem-somos > div > div:first-child {
  width: 56px !important;
  height: 56px !important;
}

/* Ajusta o tamanho dos títulos */
#quem-somos h3 {
  font-size: 20px !important;
}

/* Melhora a leitura dos textos */
#quem-somos p {
  line-height: 1.6;
}

/* =========================================================
   SEÇÃO DE SERVIÇOS
========================================================= */

/*
   Reduz o espaço excessivo acima e abaixo da seção.
*/
#servicos {
  padding-top: 62px !important;
  padding-bottom: 64px !important;
}

/*
   Reduz o espaço entre o título da seção e os cards.
*/
#servicos h2 {
  margin-bottom: 38px !important;
}

/*
   Faz todas as colunas da linha possuírem a mesma altura.
*/
#servicos .grid {
  align-items: stretch;
  gap: 18px !important;
}

/*
   Cada filho direto do grid é um card.
   Não usamos altura exagerada.
*/
#servicos .grid > div {
  width: 100%;
  height: 100%;

  min-height: 360px;

  padding: 18px !important;

  display: flex;
  flex-direction: column;

  border-radius: 14px;
}

/*
   Conteúdo interno do card.
*/
#servicos .grid > div > div {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  gap: 0 !important;
}

/*
   Área que contém ícone, imagem e título.
*/
#servicos .grid > div > div > div {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================================================
   ÍCONES DOS CARDS
========================================================= */

#servicos .grid > div i {
  width: 100%;
  height: 32px;

  margin-top: 0 !important;
  margin-bottom: 12px !important;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px !important;
}

/* =========================================================
   IMAGENS DOS CARDS
========================================================= */

/*
   Todas as caixas recebem a mesma altura.
   As imagens continuam proporcionais.
*/
#servicos .grid > div .aspect-\[4\/3\] {
  width: 100%;
  height: 150px;

  aspect-ratio: auto !important;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background-color: #000000;

  border-radius: 9px;
}

/*
   object-fit: contain preserva a proporção original.
   Não corta e não deforma a imagem.
*/
#servicos .grid > div .aspect-\[4\/3\] img {
  width: 100%;
  height: 100%;

  object-fit: contain !important;
  object-position: center;

  flex-shrink: 0;

  padding: 0;
}

/*
   Mantém a animação existente sem mudar a proporção.
*/
#servicos .grid > div:hover .aspect-\[4\/3\] img {
  transform: scale(1.04);
}

/* =========================================================
   TÍTULOS DOS CARDS
========================================================= */

/*
   Todos os títulos ocupam a mesma área,
   mesmo quando um deles quebra em duas linhas.
*/
#servicos .grid > div h3 {
  width: 100%;
  min-height: 48px;

  margin: 0;
  padding-top: 14px !important;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px !important;
  line-height: 1.35;

  text-align: center;
}

/* =========================================================
   DESCRIÇÕES DOS CARDS
========================================================= */

/*
   margin-top: auto empurra as descrições para
   a mesma posição inferior.
*/
#servicos .grid > div p {
  width: 100%;
  min-height: 58px;

  margin-top: auto !important;
  margin-bottom: 0;

  padding-top: 10px;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  font-size: 11px !important;
  line-height: 1.5;

  text-align: center;
}

/* =========================================================
   SEGMENTOS DE ATUAÇÃO
========================================================= */

/*
   Reduz o grande espaço vazio da seção.
*/
#segmentos {
  padding-top: 58px !important;
  padding-bottom: 60px !important;
}

/*
   Reduz o espaço entre o título e os logotipos.
*/
#segmentos .mb-20 {
  margin-bottom: 34px !important;
}

/*
   Preserva o tamanho dos blocos das imagens.
*/
#segmentos .h-40 {
  height: 140px !important;
}

/*
   Mantém os logotipos grandes e proporcionais.
   Não reduzimos como na tentativa anterior.
*/
#segmentos img {
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

  transform: scale(1.9) !important;

  transition: transform 0.3s ease;
}

#segmentos img:hover {
  transform: scale(2) !important;
}

/* =========================================================
   RODAPÉ
========================================================= */

/*
   Reduz o espaço excessivo do rodapé,
   mantendo o conteúdo confortável.
*/
footer {
  padding-top: 52px !important;
  padding-bottom: 26px !important;
}

/*
   Reduz o espaço inferior das colunas.
*/
footer > div.max-w-7xl.grid {
  padding-bottom: 38px !important;
  gap: 44px !important;
}

/*
   Mantém a marca d'água visível e proporcional.
*/
footer img[alt=""] {
  width: 100%;
  max-width: 620px !important;

  opacity: 0.13 !important;

  object-fit: contain;
}

/* Reduz o espaço acima dos direitos autorais */
footer > div:last-child {
  padding-top: 20px !important;
}

/* =========================================================
   FORMULÁRIO
========================================================= */

.form-status {
  min-height: 1.25rem;

  font-size: 0.75rem;
  line-height: 1.25rem;
}

.form-status.success {
  color: #22c55e;
}

.form-status.error {
  color: #ef4444;
}

/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 1100px) {
  header > div {
    gap: 20px !important;
  }

  header nav {
    gap: 16px !important;
  }

  #servicos .grid > div {
    min-height: 350px;
  }

  #segmentos img {
    transform: scale(1.65) !important;
  }

  #segmentos img:hover {
    transform: scale(1.75) !important;
  }
}

/* =========================================================
   TELEMÓVEIS
========================================================= */

@media (max-width: 767px) {
  html {
    scroll-padding-top: 88px;
  }

  header > div {
    height: 86px !important;

    padding-left: 16px !important;
    padding-right: 16px !important;

    gap: 10px !important;
  }

  header img[alt="Prime Tap Logo"] {
    max-height: 56px;
  }

  .language-button {
    min-width: 90px;
    height: 38px;

    padding: 0 10px;

    font-size: 10px;
  }

  .language-flag {
    width: 17px;
    height: 17px;
  }

  #btn-talk {
    min-height: 38px;

    padding-left: 13px !important;
    padding-right: 13px !important;

    font-size: 9px;
  }

  body > section:first-of-type {
    min-height: auto !important;

    padding-top: 50px !important;
    padding-bottom: 42px !important;
  }

  body > section:first-of-type > div.max-w-7xl.mx-auto.px-6.w-full.grid {
    margin-bottom: 40px !important;
  }

  body > section:first-of-type h1 {
    font-size: clamp(3.5rem, 16vw, 5rem) !important;
  }

  #quem-somos > div {
    padding: 22px !important;
  }

  #servicos {
    padding-top: 50px !important;
    padding-bottom: 52px !important;
  }

  #servicos h2 {
    margin-bottom: 30px !important;
  }

  #servicos .grid > div {
    min-height: 340px;
  }

  #servicos .grid > div .aspect-\[4\/3\] {
    height: 180px;
  }

  #segmentos {
    padding-top: 48px !important;
    padding-bottom: 50px !important;
  }

  #segmentos .mb-20 {
    margin-bottom: 28px !important;
  }

  #segmentos .h-40 {
    height: 105px !important;
  }

  #segmentos img {
    transform: scale(1.35) !important;
  }

  #segmentos img:hover {
    transform: scale(1.43) !important;
  }

  footer {
    padding-top: 44px !important;
    padding-bottom: 22px !important;
  }

  footer > div.max-w-7xl.grid {
    padding-bottom: 30px !important;
    gap: 32px !important;
  }
}
