/* ==========================================================================
   Fontes
   ========================================================================== */
@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/Unbounded-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Humane';
  src: url('../fonts/Humane-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'DMSans';
  src: url('../fonts/DMSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh; /* acompanha a barra de endereço no mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #BC6C25;
  overflow: hidden; /* tela única: sem rolagem */
}

/* ==========================================================================
   Animações
   ========================================================================== */
/* Fade-in genérico */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pulsar da logo (após a entrada) */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* Cursor piscando da digitação */
@keyframes blink-caret {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ==========================================================================
   Marca (logo + títulos + slogan)
   ========================================================================== */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 161px;
  max-width: 40vw;
  height: auto;
  color: #BC6C25;
  opacity: 0;
  /* 1. fade-in e, em seguida, pulsar em loop */
  animation:
    fade-in 0.8s ease-out forwards,
    pulse 2s ease-in-out 0.8s infinite;
}

.brand-name {
  margin: 0;
  color: #BC6C25;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 2px;
}

/* Grupo do título: encolhe para a largura de "Betânia" */
.brand-title {
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
  margin-top: 10px;
}

.brand-name--igreja {
  font-family: "DMSans", Georgia;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 8px;
  opacity: 0;
  /* aparece depois da Betânia (delay de 1.8s) */
  animation: fade-in 0.8s ease-out 1.8s forwards;
}

.brand-name--betania {
  font-family: 'Unbounded', Arial, Helvetica, sans-serif;
  text-transform: none;
  font-size: 3rem;
  font-weight: 600;
  opacity: 0;
  /* 2. aparece depois da logo (delay de 1s) */
  animation: fade-in 0.8s ease-out 1s forwards;
}

.brand-name--slogan {
  font-family: 'Unbounded', Arial, Helvetica, sans-serif;
  text-transform: none;
  font-size: 1rem;
  text-align: center;
  opacity: 0;
}

/* 3. slogan visível quando a digitação começa */
.brand-name--slogan.is-typing {
  opacity: 1;
}

/* Cursor da digitação */
.brand-name--slogan .caret {
  display: inline-block;
  width: 1px;
  margin-left: 2px;
  background: #BC6C25;
  animation: blink-caret 0.7s step-end infinite;
  align-self: stretch;
}

/* ==========================================================================
   Rodapé (faixas de logos)
   ========================================================================== */
.footer {
  position: fixed;
  bottom: 5px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #BC6C25;
  opacity: 0.2;
}

.footer-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.footer-row--fade {
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.footer-row svg {
  display: block;
  width: 80px;
  height: auto;
  flex: none;
}

.footer-row svg:nth-child(even) {
  transform: translate(2px, -26px) scaleX(-1);
  margin-left: -24px;
  margin-right: 2px;
}

/* ==========================================================================
   Mobile: sobe a seção da marca para o topo
   ========================================================================== */
@media (max-width: 600px) {
  body {
    justify-content: flex-start;
    padding-top: 10dvh;
  }

  .brand {
    margin-top: 0;
  }
}

/* ==========================================================================
   Desktop: sobe levemente a seção da marca
   ========================================================================== */
@media (min-width: 601px) {
  .brand {
    margin-bottom: 12vh;
  }
}
