/* ========================================
   ABSS LANDING PAGE v2 — STYLES
   Otimizada para conversão mobile-first
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Mulish:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --color-blue: #000d49;
  --color-blue-light: #001a6e;
  --color-yellow: #ffc700;
  --color-bg: #F5F7FA;
  --color-text: #1A1A2E;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --font-headline: 'Anton', sans-serif;
  --font-body: 'Mulish', sans-serif;
  --font-numbers: 'Playfair Display', serif;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2 { font-family: var(--font-headline); text-transform: uppercase; letter-spacing: 0.02em; }
.font-headline { font-family: var(--font-headline); }
.font-body { font-family: var(--font-body); }
.font-numbers { font-family: var(--font-numbers); }

/* ---- Navbar (simplificada) ---- */
#navbar {
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
#navbar.scrolled {
  background-color: rgba(255,255,255,0.95) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
}
#navbar.scrolled .nav-logo-white {
  display: none;
}
#navbar.scrolled .nav-logo-color {
  display: block !important;
}
#navbar.scrolled a[href="#formulario"] {
  background-color: var(--color-blue);
  color: var(--color-yellow);
}

/* ---- Hero Video Background ---- */
.hero-video {
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
  filter: blur(3px);
  transform: scale(1.04);
}

/* ---- Hero Text Animations ---- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-anim-d1 { animation-delay: 0.15s; }
.hero-anim-d2 { animation-delay: 0.4s; }
.hero-anim-d3 { animation-delay: 0.65s; }
.hero-anim-d4 { animation-delay: 0.9s; }

/* ---- Marquee ---- */
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(70%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}
.marquee-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (min-width: 640px) {
  .marquee-logo { height: 36px; }
  .marquee-track { gap: 3.5rem; }
}

/* ---- Counter Numbers ---- */
.counter-number {
  font-family: var(--font-numbers);
  font-weight: 800;
}

/* ---- Testimonials ---- */
.testimonial-slide {
  transition: opacity 0.6s ease;
}
.testimonial-dot {
  transition: background-color 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
}
.testimonial-dot:hover {
  transform: scale(1.3);
}

/* ---- CTA Pulse ---- */
.cta-pulse {
  animation: ctaPulse 2.5s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,199,0,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255,199,0,0); }
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show {
  transform: translateY(0);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- Sticky CTA Mobile ---- */
#stickyCta {
  transition: transform 0.3s ease;
}
#stickyCta.hidden {
  transform: translateY(100%);
}
#stickyCta.visible {
  transform: translateY(0);
}

/* ---- Form Focus States ---- */
#leadForm input:focus,
#leadForm select:focus {
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.15);
}

/* ---- Form Success Animation ---- */
@keyframes successPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
#formSuccess:not(.hidden) {
  animation: successPop 0.4s ease forwards;
}

/* ---- Scrollbar (subtle) ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }

/* =========================================
   RESPONSIVE OVERRIDES
   ========================================= */

/* Quando sticky CTA visível, dar padding no body */
@media (max-width: 1023px) {
  body.sticky-active {
    padding-bottom: 60px;
  }
}

/* Small phones (<400px) */
@media (max-width: 399px) {
  #hero h1 {
    font-size: 1.5rem;
  }
}

/* Print hidden items */
@media print {
  #navbar, .cookie-banner, #stickyCta, .hero-video { display: none !important; }
}
