/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* iOS Safari: fix para altura de viewport com chrome do browser */
html {
  height: -webkit-fill-available;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  min-height: -webkit-fill-available;
}

/* ==========================================================================
   Slideshow de fundo
   ========================================================================== */
#slideshow-container {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Cada .slide é injetado via JavaScript */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* ==========================================================================
   Overlay escuro — garante legibilidade sobre qualquer imagem de fundo
   ========================================================================== */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* ==========================================================================
   Conteúdo principal: logo + tagline
   ========================================================================== */
#content {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;

  /* Animação de entrada */
  opacity: 0;
  animation: fadeInContent 1.2s ease 0.4s forwards;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Logo
   ========================================================================== */
#logo {
  display: block;
  width: clamp(140px, 30vw, 320px);
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   Tagline
   ========================================================================== */
#tagline {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(1.25rem, 3.5vw, 2.2rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.65;
  max-width: 580px;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   Card de Contatos
   ========================================================================== */
#contacts {
  margin-top: 2.5rem;
  font-style: normal;

  /* Glassmorphism card */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.5rem, 4vw, 2.8rem);

  /* Sombra suave para elevar o card */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  /* Animação ligeiramente atrasada em relação ao conteúdo */
  animation: fadeInCard 1s ease 0.9s both;
}

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Título do card */
.contact-heading {
  font-family: 'Google Sans Flex', 'Google Sans', sans-serif;
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 1.1rem;
}

/* Grid com as duas unidades lado a lado */
.contact-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Linha vertical divisória entre as unidades */
.contact-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 clamp(1rem, 2.5vw, 1.8rem);
  flex-shrink: 0;
}

/* Bloco de cada unidade */
.contact-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 130px;
}

/* Nome da cidade */
.contact-city {
  font-family: 'Google Sans Flex', 'Google Sans', sans-serif;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.04em;
}

/* Telefone clicável */
.contact-phone {
  font-family: 'Google Sans Flex', 'Google Sans', sans-serif;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.contact-phone:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Endereço */
.contact-addr {
  font-family: 'Google Sans Flex', 'Google Sans', sans-serif;
  font-size: clamp(0.7rem, 1.3vw, 0.82rem);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

#footer p {
  font-family: 'Google Sans Flex', 'Google Sans', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

#footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer a:hover {
  color: #ffffff;
}

#copyright-symbol {
  font-size: 1.6em;
  vertical-align: middle;
}

/* ==========================================================================
   Botão flutuante WhatsApp
   ========================================================================== */
#whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInWA 1s ease 1.2s both;
}

#whatsapp-btn img {
  width: 36px;
  height: 36px;
}

#whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

@keyframes fadeInWA {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Responsividade
   ========================================================================== */

/* Mobile pequeno */
@media (max-width: 480px) {
  #tagline {
    font-size: 1.15rem;
    letter-spacing: 0.01em;
  }

  /* Card mantém horizontal no mobile */
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  #tagline {
    font-size: 1.5rem;
  }
}

/* Desktop grande */
@media (min-width: 1400px) {
  #tagline {
    font-size: 2.2rem;
    max-width: 780px;
  }
}
