/* =================================================================
   XEKLIST DELIVERY SERVICE — LANDING PAGE "EM CONSTRUÇÃO"
   Folha de estilos única, sem frameworks e sem dependências externas.
   Organização: Tokens -> Reset -> Base -> Layout -> Componentes ->
   Animações -> Responsividade -> Acessibilidade
================================================================= */

/* -----------------------------------------------------------------
   1. TOKENS DE DESIGN (VARIÁVEIS CSS)
   Toda a identidade visual da marca é centralizada aqui.
----------------------------------------------------------------- */
:root {
  /* Paleta oficial XEKLIST */
  --cor-primaria: #C8101A;       /* Vermelho XEKLIST */
  --cor-primaria-escura: #9c0c14;
  --cor-secundaria: #DFA33A;     /* Dourado Delivery */
  --cor-fundo: #FFFFFF;
  --cor-texto-principal: #2B2B2B;
  --cor-texto-secundario: #666666;

  /* Tipografia — pilha de fontes de sistema (sem CDN/webfonts externas) */
  --fonte-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, sans-serif;

  /* Escala de espaçamento */
  --espaco-xs: 0.5rem;
  --espaco-sm: 1rem;
  --espaco-md: 1.75rem;
  --espaco-lg: 3rem;
  --espaco-xl: 5rem;
  --espaco-xxl: 8rem;

  /* Elevação e forma */
  --raio-video: 20px;
  --sombra-video: 0 30px 70px -20px rgba(43, 43, 43, 0.35);
  --duracao-transicao: 0.6s;
  --easing-padrao: cubic-bezier(0.16, 1, 0.3, 1);

  /* Largura máxima de conteúdo (contém a página em monitores UltraWide/4K) */
  --largura-conteudo: 1180px;
}

/* -----------------------------------------------------------------
   2. RESET BÁSICO
----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* -----------------------------------------------------------------
   3. BASE
----------------------------------------------------------------- */
body {
  font-family: var(--fonte-base);
  background-color: var(--cor-fundo);
  color: var(--cor-texto-principal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-width: 320px;
}

/* Link de acessibilidade "pular para o conteúdo" — visível apenas no foco */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--espaco-sm);
  background: var(--cor-primaria);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.25s var(--easing-padrao);
}

.skip-link:focus {
  top: var(--espaco-sm);
}

/* Estado de foco visível e consistente em todo o site (acessibilidade) */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cor-secundaria);
  outline-offset: 4px;
  border-radius: 4px;
}

/* -----------------------------------------------------------------
   4. CABEÇALHO
----------------------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--espaco-lg) var(--espaco-sm) var(--espaco-md);
}

.logo {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  animation: aparecer 0.9s var(--easing-padrao) both;
}

/* -----------------------------------------------------------------
   5. SEÇÃO HERO (TÍTULO / SUBTÍTULO / LANÇAMENTO)
----------------------------------------------------------------- */
.hero {
  max-width: var(--largura-conteudo);
  margin: 0 auto;
  padding: 0 var(--espaco-md) var(--espaco-xl);
  text-align: center;
}

.hero-titulo {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cor-primaria);
  line-height: 1.05;
  animation: aparecerComZoom 1s 0.15s var(--easing-padrao) both;
}

.hero-subtitulo {
  margin-top: var(--espaco-md);
  font-size: clamp(1.05rem, 2.2vw, 1.375rem);
  color: var(--cor-texto-secundario);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  animation: aparecer 0.9s 0.4s var(--easing-padrao) both;
}

.hero-lancamento {
  margin-top: var(--espaco-lg);
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cor-secundaria);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--cor-secundaria);
  animation: aparecer 0.9s 0.6s var(--easing-padrao) both;
}

/* -----------------------------------------------------------------
   6. SEÇÃO DE VÍDEO — ELEMENTO VISUAL CENTRAL
----------------------------------------------------------------- */
.video-secao {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;

  border-radius: var(--raio-video);
  overflow: hidden;
  box-shadow: var(--sombra-video);
  background-color: #111;

  animation: aparecerComZoom 1.1s 0.5s var(--easing-padrao) both;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  /* Mantém a proporção original do arquivo, sem deformação */
  object-fit: contain;
}

/* Botão elegante exibido apenas quando o autoplay é bloqueado pelo navegador */
.botao-assistir {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 100%;
  background: rgba(43, 43, 43, 0.45);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background var(--duracao-transicao) var(--easing-padrao);
}

/* O display flex acima não pode sobrescrever o atributo hidden no Safari. */
.botao-assistir[hidden] {
  display: none;
}

.botao-assistir:hover,
.botao-assistir:focus-visible {
  background: rgba(43, 43, 43, 0.6);
}

.botao-assistir-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--cor-primaria);
  font-size: 1.1rem;
  padding-left: 0.2rem; /* otimiza o centro visual do triângulo de play */
}

/* -----------------------------------------------------------------
   7. SEÇÃO DE ENCERRAMENTO
----------------------------------------------------------------- */
.encerramento {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--espaco-md) var(--espaco-xxl);
  text-align: center;
}

.encerramento-texto {
  color: var(--cor-texto-secundario);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin-top: var(--espaco-sm);
}

.encerramento-destaque {
  margin-top: var(--espaco-md);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--cor-texto-principal);
}

.botao-cta {
  display: inline-block;
  margin-top: var(--espaco-lg);
  padding: 1rem 2.5rem;
  border-radius: 999px;
  background: var(--cor-primaria);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px -10px rgba(200, 16, 26, 0.45);
  transition: transform var(--duracao-transicao) var(--easing-padrao),
              background var(--duracao-transicao) var(--easing-padrao),
              box-shadow var(--duracao-transicao) var(--easing-padrao);
}

.botao-cta:hover,
.botao-cta:focus-visible {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(200, 16, 26, 0.55);
}

/* -----------------------------------------------------------------
   8. RODAPÉ
----------------------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: var(--espaco-lg) var(--espaco-sm) var(--espaco-xl);
  color: var(--cor-texto-secundario);
  font-size: 0.85rem;
}

.site-footer p + p {
  margin-top: 0.25rem;
}

/* -----------------------------------------------------------------
   9. ANIMAÇÕES (SUAVES, SEM EXAGERO)
----------------------------------------------------------------- */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aparecerComZoom {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Revelação suave ao rolar a página (classe alternada via JavaScript) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--easing-padrao), transform 0.8s var(--easing-padrao);
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------------------------
   10. RESPONSIVIDADE
   Desktop, notebook, tablet, iPhone, Android, Smart TV,
   monitores UltraWide e 4K.
----------------------------------------------------------------- */

/* Telas muito pequenas (smartphones em modo retrato) */
@media (max-width: 480px) {
  .site-header {
    padding: var(--espaco-md) var(--espaco-sm) var(--espaco-sm);
  }

  .hero {
    padding: 0 var(--espaco-sm) var(--espaco-lg);
  }

  .video-secao {
   /* padding: 0 var(--espaco-sm) var(--espaco-xl);*/
  }

  .video-wrapper {
    border-radius: 14px;
  }

  .botao-cta {
    width: 100%;
  }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 900px) {
  .hero {
    padding: 0 var(--espaco-md) var(--espaco-lg);
  }
}

/* Monitores UltraWide — evita que o conteúdo fique "perdido" no centro */
@media (min-width: 1920px) {
  :root {
    --largura-conteudo: 1320px;
  }

  .hero-titulo {
    font-size: 6.5rem;
  }
}

/* Telas 4K / Smart TV — reforça legibilidade a distância */
@media (min-width: 2560px) {
  :root {
    --largura-conteudo: 1600px;
  }

  body {
    font-size: 1.15rem;
  }

  .hero-titulo {
    font-size: 8rem;
  }
}

/* Orientação paisagem em smartphones (evita vídeo colado nas bordas) */
@media (max-height: 480px) and (orientation: landscape) {
  .site-header {
    padding: var(--espaco-sm);
  }

  .hero {
    padding-bottom: var(--espaco-md);
  }
}

/* -----------------------------------------------------------------
   11. ACESSIBILIDADE — RESPEITO A PREFERÊNCIAS DO USUÁRIO
----------------------------------------------------------------- */

/* Reduz/remove animações para usuários com preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Suporte a alto contraste do sistema operacional */
@media (prefers-contrast: high) {
  :root {
    --cor-texto-secundario: #3a3a3a;
  }

  .botao-cta {
    box-shadow: none;
    border: 2px solid var(--cor-texto-principal);
  }
}



/* ================================================================
   APRESENTAÇÃO PRINCIPAL
   Desktop: vídeo + pré-cadastro lado a lado
================================================================ */

.apresentacao-xeklist {
  width: calc(100% - 48px);
  width: min(100% - 48px, var(--largura-conteudo));
  margin: 0 auto;
  padding: 0 0 var(--espaco-xl);

  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);

  align-items: center;
}


/* ================================================================
   VÍDEO
================================================================ */

.video-secao {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

.video-wrapper {
  position: relative;

  width: 100%;
  max-width: none;
  margin: 0;

  border-radius: var(--raio-video);
  overflow: hidden;

  box-shadow: var(--sombra-video);
  background-color: #111;

  animation:
    aparecerComZoom
    1.1s
    0.5s
    var(--easing-padrao)
    both;
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;

  object-fit: contain;
}


/* ================================================================
   PRÉ-CADASTRO
================================================================ */

.pre-cadastro-xeklist {
  width: 100%;
  padding: 0;

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

.pre-cadastro-conteudo {
  width: 100%;
  max-width: 520px;

  padding: clamp(32px, 4vw, 52px);

  text-align: left;

  background:
    linear-gradient(
      135deg,
      rgba(159, 70, 51, 0.06),
      rgba(223, 163, 58, 0.04)
    );

  border: 1px solid rgba(159, 70, 51, 0.12);
  border-radius: 28px;

  box-shadow:
    0 25px 60px rgba(43, 43, 43, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* BADGE */

.pre-cadastro-badge {
  display: inline-block;

  margin-bottom: 20px;
  padding: 8px 16px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;

  color: #9F4633;

  background: rgba(159, 70, 51, 0.08);
  border: 1px solid rgba(159, 70, 51, 0.14);

  border-radius: 999px;
}


/* TÍTULO */

.pre-cadastro-conteudo h2 {
  margin: 0 0 20px;

  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;

  color: #9F4633;
}

/* TEXTO */
.pre-cadastro-conteudo p {
  max-width: 100%;
  margin: 0 0 16px;

  font-size: 17px;
  line-height: 1.65;

  color: var(--cor-texto-secundario);

  /* Justifica somente os parágrafos */
  text-align: justify;
  text-justify: inter-word;
}

.pre-cadastro-conteudo p strong {
  color: #9F4633;
  font-weight: 700;
}

.pre-cadastro-destaque {
  display: inline;

  margin: 0 !important;

  font-size: inherit !important;
  font-weight: 600;

  color: var(--cor-texto-principal) !important;
}


/* BOTÃO */

.btn-pre-cadastro {
  display: inline-flex;

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

  width: auto;
  min-height: 56px;

  /* Centraliza horizontalmente */
  margin: 24px auto 0;

  padding: 0 32px;

  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;

  color: #f1d98a;
  text-decoration: none;

  background: #9F4633;
  border-radius: 14px;

  box-shadow:
    0 12px 30px rgba(159, 70, 51, 0.22);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn-pre-cadastro:hover {
  transform: translateY(-3px);

  background: #893a2a;

  box-shadow:
    0 18px 38px rgba(159, 70, 51, 0.30);
}

.btn-pre-cadastro:active {
  transform: translateY(0);
}


/* ================================================================
   TABLET / NOTEBOOK MENOR
================================================================ */

@media (max-width: 1050px) {

  .apresentacao-xeklist {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
    gap: 28px;
  }

  .pre-cadastro-conteudo {
    padding: 32px;
  }

  .pre-cadastro-conteudo h2 {
    font-size: clamp(2rem, 4vw, 2.7rem);
  }
}


/* ================================================================
   MOBILE / TABLET
================================================================ */

@media (max-width: 800px) {

  .apresentacao-xeklist {
    width: calc(100% - 32px);
    width: min(100% - 32px, 680px);

    grid-template-columns: 1fr;

    gap: 28px;

    padding-bottom: var(--espaco-lg);
  }

  .video-secao {
    width: 100%;
  }

  .video-wrapper {
    width: 100%;
    border-radius: 18px;
  }

  .pre-cadastro-xeklist {
    width: 100%;
  }

  .pre-cadastro-conteudo {
    max-width: none;

    padding: 36px 28px;

    text-align: center;

    border-radius: 22px;
  }

  .pre-cadastro-conteudo h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .pre-cadastro-conteudo p {
    font-size: 16px;
    text-align: left;
  }

  .btn-pre-cadastro {
    width: 100%;
  }
}


/* ================================================================
   CELULARES PEQUENOS
================================================================ */

@media (max-width: 480px) {

  .apresentacao-xeklist {
    width: calc(100% - 24px);

    gap: 20px;

    padding-bottom: 32px;
  }

  .video-wrapper {
    border-radius: 14px;
  }

  .pre-cadastro-conteudo {
    padding: 30px 20px;

    border-radius: 18px;
  }

  .pre-cadastro-badge {
    margin-bottom: 16px;

    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .pre-cadastro-conteudo h2 {
    margin-bottom: 16px;

    font-size: clamp(1.8rem, 9vw, 2.3rem);
  }

  .pre-cadastro-conteudo p {
    font-size: 15px;
    line-height: 1.6;
  }

  .btn-pre-cadastro {
    min-height: 54px;

    margin-top: 12px;
    padding: 0 18px;

    font-size: 14px;
  }
}
