/* ==========================================================================
   VIZIN MARKETING — Design System
   Conceito: a identidade nasce do próprio nome "Vizin" — a linguagem visual
   do bairro: placas esmaltadas de rua, toldos de comércio, letreiros pintados
   à mão. Fundo claro e "de papel", tinta azul-marinho profunda para
   autoridade, e um par quente (marigold + coral) que lembra os toldos
   listrados das lojas de esquina. O "toldo" listrado vira a assinatura visual
   repetida nos pontos-chave da página.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* -------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Cor */
  --ink: #0f2647;
  --ink-soft: #163863;
  --ink-060: rgba(15, 38, 71, 0.6);
  --paper: #f5f4ee;
  --paper-alt: #ece8dc;
  --blue: #1c4e8a;
  --blue-soft: #2f6cb3;
  --yellow: #ffc93c;
  --yellow-deep: #f0a500;
  --orange: #ff6a1f;
  --orange-deep: #e0500e;
  --slate: #57616f;
  --slate-light: #8a93a3;
  --whatsapp: #25d366;
  --white: #ffffff;
  --line: rgba(15, 38, 71, 0.1);

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Escala */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-h: 84px;

  /* Assinatura: listra de toldo */
  --awning: repeating-linear-gradient(
    115deg,
    var(--orange) 0 30px,
    var(--yellow) 30px 38px,
    var(--orange) 38px 68px,
    var(--ink) 68px 72px
  );

  --shadow-card: 0 24px 48px -24px rgba(15, 38, 71, 0.28);
  --shadow-soft: 0 12px 32px -18px rgba(15, 38, 71, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@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;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Rótulo "placa de bairro" reutilizado em toda a página */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--ink);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.section-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.section-description {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 46ch;
  margin-top: 1rem;
}

/* Revelar ao rolar — classes controladas pelo IntersectionObserver do script.js */
.hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.hidden.show {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------
   3. HEADER / NAV
   ------------------------------------------------------------------------- */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(15, 38, 71, 0.28);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#header:has(.navbar.scrolled) {
  background: rgba(15, 38, 71, 0.92);
  box-shadow: var(--shadow-soft);
}

.navbar {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding-block: 0.35rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--yellow);
}

.btn-nav {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
  background: var(--orange);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 8px 20px -10px rgba(255, 106, 31, 0.7);
}

.btn-nav:hover,
.btn-nav:focus-visible {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Botão hamburguer — só aparece no mobile */
.menu-mobile {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  border-radius: 50%;
}

.menu-mobile:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* O texto "Falar no WhatsApp" embutido no <i> fica só para leitores de tela;
   o tamanho é restaurado especificamente nas classes de ícone do Font Awesome,
   então o glifo troca normalmente entre fa-bars e fa-xmark via JS */
.menu-mobile i {
  font-size: 0;
  position: relative;
}

.menu-mobile i.fa-bars::before,
.menu-mobile i.fa-xmark::before {
  font-size: 1.25rem;
}

/* -------------------------------------------------------------------------
   4. HERO
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 460px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center 35%;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 38, 71, 0.55) 0%, rgba(15, 38, 71, 0.15) 32%, rgba(15, 38, 71, 0.15) 60%, rgba(15, 38, 71, 0.85) 100%);
}

.scroll-indicator {
  position: relative;
  z-index: 2;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  animation: float 2.6s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-indicator i {
  color: var(--orange);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* -------------------------------------------------------------------------
   5. SERVIÇOS
   ------------------------------------------------------------------------- */
.services {
  padding: 7.5rem 0 6rem;
  background: var(--paper);
}

.services h2,
.differentials h2,
.cta h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  max-width: 20ch;
}

.cards {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem 2.25rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* Assinatura visual: friso de "toldo" no topo de cada card */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--awning);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover .card-icon {
  background: var(--ink);
  color: var(--yellow);
  transform: rotate(-6deg) scale(1.05);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card > p {
  color: var(--slate);
  font-size: 0.96rem;
  margin-bottom: 1.5rem;
}

.card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card ul li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* -------------------------------------------------------------------------
   6. DIFERENCIAIS
   ------------------------------------------------------------------------- */
.differentials {
  padding: 6.5rem 0;
  background: var(--paper-alt);
  position: relative;
}

.differentials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--awning);
}

.differentials-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 2rem;
}

.differential-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.differential-card i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.differential-card:hover i {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.differential-card h3 {
  font-size: 1.15rem;
}

.differential-card p {
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 32ch;
}

/* -------------------------------------------------------------------------
   7. CTA / CONTATO
   ------------------------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--ink);
  padding: 7.5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 320px at 50% 0%, rgba(255, 106, 31, 0.22), transparent 70%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta .section-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--orange);
}

.cta h2 {
  color: var(--white);
  max-width: 18ch;
}

.cta > .container > p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
  margin: 1.5rem 0 2.75rem;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(255, 106, 31, 0.55);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-3px);
}

.btn-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-3px);
}

/* -------------------------------------------------------------------------
   8. FOOTER
   ------------------------------------------------------------------------- */
footer {
  background: var(--ink-soft);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-brand img {
  height: 30px;
  margin-bottom: 1rem;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 32ch;
}

footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-contact p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact span {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.9rem;
}

.footer-contact a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}

.footer-contact a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--awning);
}

.footer-bottom p {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* -------------------------------------------------------------------------
   9. BOTÃO FLUTUANTE DO WHATSAPP
   ------------------------------------------------------------------------- */
.whatsapp-button {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 14px 28px -10px rgba(37, 211, 102, 0.65);
  transition: transform 0.3s var(--ease);
}

.whatsapp-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  transform: scale(1.08);
}

/* -------------------------------------------------------------------------
   10. RESPONSIVO
   ------------------------------------------------------------------------- */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--ink);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.15rem;
  }

  .btn-nav {
    display: none;
  }

  .menu-mobile {
    display: flex;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 52vh;
    min-height: 320px;
    max-height: 420px;
    background: var(--ink);
  }

  .video-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    transform: none;
    object-fit: contain;
    object-position: center;
  }

  .services,
  .differentials {
    padding: 5rem 0;
  }

  .cta {
    padding: 5.5rem 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .whatsapp-button {
    right: 1.1rem;
    bottom: 1.1rem;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}