/* =========================================================
   Davi Davino Filho 100 — Landing Page
   ========================================================= */

:root {
  --neon: #BBFF00;
  --neon-bright: #C9FF00;
  --yellow: #FFEA00;
  --navy: #002357;
  --navy-950: #011729;
  --blue-1: #001D37;
  --blue-2: #002554;
  --blue-3: #003079;
  --blue-4: #003E76;
  --blue-5: #005A87;
  --cyan: #00FFFF;
  --white: #FFFFFF;
  --gray-light: #BBBDBE;

  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;

  --header-h: 76px;
  --container-max: 1760px;
}

@media (min-width: 768px) {
  :root { --header-h: 92px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--navy-950);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--white);
  color: var(--navy-950);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 700;
  z-index: 1000;
  transition: top 150ms ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--neon-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--neon);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; cursor: pointer; }
.brand__logo { width: clamp(96px, 9vw, 130px); height: auto; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-davizap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--neon-bright);
  font-weight: 800;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.6em 0.5em 0.6em 1.2em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 200ms ease, filter 200ms ease;
  min-height: 44px;
}
.btn-davizap img { width: 22px; height: 22px; }
.btn-davizap:hover,
.btn-davizap:focus-visible { filter: brightness(1.15); transform: translateY(-1px); }
.btn-davizap:active { transform: translateY(0); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.2rem);
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(0.72rem, 0.95vw, 0.88rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 8px;
  height: 2px;
  background: currentColor;
  transition: right 200ms ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { right: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--navy);
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle:hover { background: rgba(0, 35, 87, 0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  display: flex;
  align-items: stretch;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.band {
  position: absolute;
  inset: 0;
}
.band--a { background: var(--blue-1); clip-path: polygon(30% 0, 100% 0, 100% 100%, 6% 100%); }
.band--b { background: var(--blue-2); clip-path: polygon(44% 0, 100% 0, 100% 100%, 20% 100%); }
.band--c { background: var(--blue-3); clip-path: polygon(58% 0, 100% 0, 100% 100%, 34% 100%); }
.band--d { background: var(--blue-4); clip-path: polygon(72% 0, 100% 0, 100% 100%, 48% 100%); }
.band--e { background: var(--blue-5); clip-path: polygon(86% 0, 100% 0, 100% 100%, 62% 100%); }

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.hero__copy {
  width: 100%;
  padding-top: clamp(1.5rem, 6vh, 3rem);
  padding-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.hero__lockup { width: min(560px, 94%); height: auto; }

.hero__portrait {
  width: 100%;
  display: flex;
  justify-content: center;
  line-height: 0;
}
/* A ilustração é mais alta que larga (proporção ~0,72), então o limite
   que importa é a ALTURA — por largura ela estica o hero para além de
   uma tela e o lockup sai da primeira dobra. */
.hero__portrait img {
  width: min(520px, 92%);
  max-height: 58vh;
  height: auto;
  object-fit: contain;
  object-position: bottom;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cyan);
  color: var(--navy);
  padding-block: clamp(1.5rem, 4vh, 2.75rem);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.footer-logo { display: inline-flex; cursor: pointer; }
.footer-logo img { width: clamp(90px, 10vw, 128px); height: auto; }

.footer-email {
  font-weight: 800;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  letter-spacing: 0.01em;
  word-break: break-word;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease, opacity 200ms ease;
}
.footer-email:hover,
.footer-email:focus-visible { border-color: currentColor; }

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.footer-social__label {
  font-weight: 800;
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.footer-social ul { display: flex; gap: 0.2rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: transform 200ms ease, filter 200ms ease;
  border-radius: 999px;
}
.footer-social a:hover,
.footer-social a:focus-visible { transform: translateY(-2px); filter: brightness(1.1); }
.footer-social img { width: clamp(34px, 3.6vw, 44px); height: auto; }

.footer-legal {
  max-width: var(--container-max);
  margin: clamp(1.25rem, 3vh, 2rem) auto 0;
  padding: clamp(0.85rem, 2.5vw, 1.1rem) clamp(1.25rem, 5vw, 2.5rem) 0;
  border-top: 1px solid rgba(0, 35, 87, 0.25);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(0, 35, 87, 0.75);
}

/* ---------- Layout: tablet+ (row hero) ---------- */
@media (min-width: 768px) {
  .hero {
    min-height: calc(100vh - var(--header-h));
  }
  .hero__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
  }
  .hero__copy {
    flex: 1 1 48%;
    justify-content: flex-start;
    padding-bottom: clamp(2rem, 6vh, 3.5rem);
    padding-top: 0;
  }
  .hero__lockup { width: 100%; max-width: 560px; }

  .hero__portrait {
    flex: 1 1 46%;
    justify-content: flex-end;
  }
  /* Teto de altura para o hero caber numa tela. O desconto extra
     (3.5rem) é o respiro entre a cabeça e o header — sem ele a
     ilustração encosta na barra do menu. */
  .hero__portrait img {
    width: 100%; max-width: 640px;
    max-height: calc(100vh - var(--header-h) - 3.5rem);
  }

  .site-footer__inner { text-align: left; justify-content: space-between; }
  .footer-social { align-items: flex-end; }
}

@media (min-width: 1024px) {
  .hero__lockup { max-width: 640px; }
  .hero__portrait img { max-width: 760px; }
}

@media (min-width: 1440px) {
  .hero__lockup { max-width: 720px; }
  .hero__portrait img { max-width: 860px; }
}

/* ---------- Layout: mobile nav ---------- */
@media (max-width: 767.98px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--neon);
    border-top: 1px solid rgba(0, 35, 87, 0.15);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 2.5rem) 1.25rem;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    width: 100%;
    padding-block: 0.85rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 35, 87, 0.12);
  }
  .main-nav a::after { display: none; }

  .btn-davizap span { display: none; }
  .btn-davizap { padding: 0.6rem; }
  .btn-davizap img { width: 24px; height: 24px; }
}
