/* ============================================================
   Grupo Lima Douro — landing de lançamento
   Tipos de letra alojados aqui mesmo (nada é pedido a servidores
   de fora: mais rápido, e sem partilha de IP com terceiros).
   ============================================================ */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* ---------- tokens da marca ---------- */

:root {
  --verde: #004136;
  --verde-fundo: #001a15;
  --dourado: #c2a35d;
  --dourado-claro: #e3cc97;
  --claro: #ffffff;
  --claro-suave: #dbe3df;
  --suave: cubic-bezier(0.22, 0.72, 0.19, 1);
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--verde-fundo);
  color: var(--claro);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--dourado-claro);
  outline-offset: 3px;
}

/* ---------- palco ---------- */

.palco {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  /* svh: altura real no telemóvel, sem saltos quando a barra do
     browser aparece ou desaparece */
  min-height: 100svh;
  overflow: hidden;
}

/* ---------- fundo em vídeo ---------- */

.fundo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--verde-fundo);
}

.fundo__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* enquanto o vídeo não chega, o poster já preenche */
  background: var(--verde-fundo) center / cover no-repeat;
}

/* véu que garante contraste do texto sobre qualquer fotograma */
.fundo__veu {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 26, 21, 0.74) 0%,
      rgba(0, 26, 21, 0.5) 30%,
      rgba(0, 26, 21, 0.58) 62%,
      rgba(0, 20, 16, 0.94) 100%
    ),
    radial-gradient(
      120% 85% at 50% 42%,
      rgba(0, 65, 54, 0.28) 0%,
      rgba(0, 26, 21, 0.7) 100%
    );
}

/* ---------- conteúdo central ---------- */

.conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  padding: clamp(2rem, 8vw, 4rem) clamp(1.25rem, 6vw, 3rem);
  padding-top: max(clamp(2rem, 8vw, 4rem), env(safe-area-inset-top));
  text-align: center;
}

.marca {
  width: clamp(168px, 32vw, 292px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0, 12, 9, 0.45));
}

.risco {
  display: block;
  width: clamp(52px, 11vw, 108px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--dourado) 22%,
    var(--dourado-claro) 50%,
    var(--dourado) 78%,
    transparent 100%
  );
}

.slogan {
  margin: 0;
  max-width: 22ch;
  font-weight: 500;
  font-size: clamp(1.8rem, 8.4vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-shadow: 0 2px 22px rgba(0, 14, 11, 0.55);
}

/* ---------- rodapé ---------- */

.rodape {
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 6vw, 3rem);
  padding-bottom: max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-bottom));
  text-align: center;
}

.rodape__linha {
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--claro);
}

/* o separador só faz sentido quando os dois nomes cabem na mesma linha */
.rodape__linha span[aria-hidden] {
  display: none;
  color: var(--dourado);
}

@media (min-width: 30em) {
  .rodape__linha {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    font-size: 0.8125rem;
  }
  .rodape__linha span[aria-hidden] {
    display: inline;
  }
}

.rodape__legal {
  margin: 0 auto;
  max-width: 76ch;
  font-size: 0.6625rem;
  line-height: 1.65;
  color: var(--claro-suave);
  text-wrap: pretty;
}

@media (min-width: 30em) {
  .rodape__legal {
    font-size: 0.6875rem;
  }
}

@media (min-width: 48em) {
  .rodape__legal {
    font-size: 0.75rem;
  }
}

/* ---------- movimento ---------- */

@keyframes surgir {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes abrir {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .marca,
  .slogan,
  .rodape {
    animation: surgir 0.9s var(--suave) both;
  }
  .marca {
    animation-delay: 0.1s;
  }
  .slogan {
    animation-delay: 0.42s;
  }
  .rodape {
    animation-delay: 0.72s;
    animation-duration: 1.1s;
  }
  .risco {
    animation: abrir 1s var(--suave) 0.34s both;
  }
}

/* telemóveis pequenos: marca ligeiramente menor, rodapé mais cerrado */
@media (max-width: 22.5em) {
  .marca {
    width: 148px;
  }
  .conteudo {
    gap: 1.1rem;
  }
  .rodape {
    padding-inline: 1rem;
  }
}

/* ecrãs baixos (telemóvel deitado): tudo mais compacto e com scroll */
@media (max-height: 30em) and (orientation: landscape) {
  .palco {
    min-height: auto;
  }
  .conteudo {
    padding-block: 2.5rem;
    gap: 1rem;
  }
  .marca {
    width: clamp(120px, 18vw, 180px);
  }
  .slogan {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
  }
}

/* ecrãs muito largos: o texto não cresce sem fim */
@media (min-width: 100em) {
  .slogan {
    font-size: 5rem;
  }
}

/* ---------- impressão ---------- */

@media print {
  .fundo {
    display: none;
  }
  body {
    background: #fff;
    color: #001a15;
  }
  .slogan,
  .rodape__linha,
  .rodape__legal {
    color: #001a15;
    text-shadow: none;
  }
}

/* ---------- página 404 ---------- */

.slogan--pequeno {
  font-size: clamp(1.6rem, 5.5vw, 3rem);
  max-width: 22ch;
}

.regresso {
  margin: 0;
}

.ligacao {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(226, 208, 160, 0.55);
  border-radius: 999px;
  color: var(--claro);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: border-color 0.3s var(--suave), background-color 0.3s var(--suave);
}

.ligacao:hover,
.ligacao:focus-visible {
  border-color: var(--dourado-claro);
  background-color: rgba(226, 208, 160, 0.12);
}

/* na impressão o logótipo é branco: precisa do fundo da marca */
@media print {
  .marca {
    background: #004136;
    padding: 1rem;
    filter: none;
  }
}
