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

/* Observação: havia conflito de cores entre html/body e body.
   Se quiser fundo branco geral, deixe ambos em #fff; se quiser fundo escuro, deixe ambos em #111. */
html, body { height: 100%; background-color: #fff; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: #000;                  /* texto escuro para fundo claro */
}

/* ===== Variáveis simples de espaçamento (fácil de ajustar) ===== */
:root {
  --container-max: 1200px;
  --gutter: 16px;               /* espaçamento lateral do boxed */
  --block-gap: 50px;            /* espaço vertical entre itens/galerias */
}

/* ===== BLOCO 1: Header com vídeo em tela cheia ===== */
/* 100svh melhora a altura no iOS/Android (considera UI do navegador) */
.hero { position: relative; width: 100%; height: 100svh; overflow: hidden; }
.hero__video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* ===== Container "boxed" (lateral) ===== */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }

/* ===== BLOCO 2: Galeria de imagens coladas ===== */
.gallery { display: grid; grid-template-columns: 1fr; gap: 0; padding: var(--block-gap) 0; }
.gallery img { width: 100%; height: auto; display: block; border-radius: 0; }

/* ===== BLOCO 3: Vídeo do YouTube responsivo ===== */
/* Use margem no wrapper para espaçamento; evite padding no iframe */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;        /* mais moderno/limpo que padding-top */
  margin: 0 0 var(--block-gap) 0;
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block;
}

/* ===== BLOCO 4: Footer ===== */
.footer { padding: 16px var(--gutter) 48px; }
.footer__img { display: block; width: 50%; height: auto; margin: 0 auto; }

/* ===== Acessibilidade: reduz animações/loops pesados se o usuário preferir menos movimento ===== */
@media (prefers-reduced-motion: reduce) {
  .hero__video { animation: none; }
}

/* ===== MOBILE (até 768px) ===== */
@media (max-width: 768px) {

  /* Gutter um pouco menor para caber melhor na tela */
  :root { --gutter: 12px; --block-gap: 32px; }

  /* Vídeo introdutório ocupa a viewport “segura” */
    .hero {
    height: auto;        /* deixa a altura pelo aspect-ratio */
    aspect-ratio: 16 / 9;
  }
    .hero__video {
    position: static;    /* reseta o absoluto */
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* cobre a faixa 16:9 */
    display: block;
  }

  /* Galeria com menos espaço vertical entre itens/blocos */
  .gallery { padding: var(--block-gap) 0; }

  /* Footer: imagem em largura total no mobile */
  .footer { padding: 16px var(--gutter) 32px; }
  .footer__img { width: 100%; }
}

/* ===== DESKTOP (a partir de 1024px) ===== */
@media (min-width: 1024px) {
  /* Se quiser, pode “apertar” ou “abrir” o boxed aqui */
  :root { --gutter: 16px; --block-gap: 50px; }
}

/* ===== Botão Flutuante do WhatsApp ===== */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Mobile: diminuir o tamanho do botão */
@media (max-width: 768px) {
  .whatsapp-button {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }
}
