/* ===== AV STAND AUTOMÓVEL - ESTILOS PRINCIPAIS ===== */

:root {
  /* Configuração de imagens e contatos */
  --bg-image-desktop: url("../img/bg-desktop.webp");
  --bg-image-mobile: url("../img/bg-mobile.webp");
  --whatsapp-link: "https://wa.me/244943195177?text=Ol%C3%A1%2C%20gostaria%20de%20falar%20com%20a%20AV%20Stand%20Autom%C3%B3vel.";
  --email-address: "geral@avstandautomovel.ao";

  /* Cores oficiais */
  --red: #C8102E;
  --black: #0B0B0B;
  --charcoal: #171717;
  --white: #FFFFFF;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== FONTES LOCAIS (MANROPE) ===== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/manrope-v15-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-v15-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope-v15-latin-800.woff2') format('woff2');
}

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

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--white);
  background-color: var(--black);
  overflow-x: hidden;
}

/* ===== ECRÃ E ESTRUTURA ===== */
.screen {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 64px;
  background-color: var(--black);
  background-image: linear-gradient(180deg, rgba(11, 11, 11, 0.65), rgba(11, 11, 11, 0.88)), var(--bg-image-desktop);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .screen {
    background-image: linear-gradient(180deg, rgba(11, 11, 11, 0.65), rgba(11, 11, 11, 0.88)), var(--bg-image-mobile);
  }
}

main {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
}

/* ===== ANIMAÇÕES ===== */
.fade {
  opacity: 0;
  transform: translateY(8px);
  animation: in .8s cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes in {
  to {
    opacity: 1;
    transform: none;
  }
}

.d1 { animation-delay: .1s; }
.d2 { animation-delay: .4s; }
.d3 { animation-delay: .7s; }
.d4 { animation-delay: 1s; }

/* ===== LOGÓTIPO ===== */
.logo-card {
  background: var(--white);
  border-radius: 20px;
  padding: 12px 16px;
  width: min(460px, 100%);
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  border-bottom: 4px solid var(--red);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

/* Classe acessível para texto visivelmente oculto */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== ELEMENTOS VISUAIS E TIPOGRAFIA ===== */
.rule {
  width: 56px;
  height: 2px;
  background: var(--red);
  margin: 40px auto;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 3.4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: .01em;
}

.support {
  margin: 0 0 34px;
  color: #c9c9c9;
  font-weight: 300;
  font-size: clamp(.95rem, 2vw, 1.08rem);
}

/* ===== BOTÃO DE CONTACTO ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border: 2px solid var(--red);
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
  transition: background .25s, transform .25s;
}

.btn:hover {
  background: var(--red);
  transform: translateY(-2px);
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.mail {
  margin: 22px 0 0;
  font-size: .9rem;
  font-weight: 300;
}

.mail a {
  color: #cfcfcf;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 16, 46, .7);
  padding-bottom: 2px;
}

.mail a:hover {
  color: var(--white);
}

/* ===== RODAPÉ ===== */
footer {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  font-size: .78rem;
  color: #8a8a8a;
  padding: 0 16px;
}

@media (max-height: 640px) {
  .logo-card { width: min(340px, 100%); }
  .rule { margin: 22px auto; }
  .support { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; opacity: 1; transform: none; }
  .btn { transition: none; }
}
