/*
Theme Name: Avante System Landing
Theme URI: https://marketing.avantesystem.com.br/
Author: Avante System
Author URI: https://avantesystem.com.br/
Description: Tema de landing page de alta conversão para Avante System, com carrossel, seções de Serviços, Quem Somos, Depoimentos, Pagamentos e CTAs integrados ao WhatsApp.
Version: 1.0.0
Text Domain: avante-system
*/

/* Design Tokens (HSL) */
:root {
  --primary: 0 84% 52%; /* vermelho marca */
  --primary-600: 0 72% 46%;
  --primary-700: 0 72% 40%;
  --bg: 0 0% 100%;
  --muted: 210 16% 96%;
  --surface: 0 0% 98%;
  --border: 210 16% 90%;
  --ring: 0 84% 52%;
  --foreground: 222 47% 11%;
  --foreground-muted: 215 16% 45%;
  --success: 142 72% 29%;
  --warning: 38 92% 50%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: hsl(var(--foreground));
  background: hsl(var(--bg));
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
.section { padding: 4rem 0; }
.section-title { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem); line-height: 1.2; margin: 0 0 1rem; }
.section-sub { color: hsl(var(--foreground-muted)); margin: 0 0 2rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: hsl(var(--bg)/0.8); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid hsl(var(--border)); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-600))); box-shadow: 0 6px 20px hsl(var(--primary)/.35); }
.brand-text { letter-spacing: .2px; }

.nav { display: none; gap: 1rem; }
.nav a { padding: .5rem .75rem; border-radius: .5rem; color: hsl(var(--foreground)); }
.nav a:hover { background: hsl(var(--surface)); }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid hsl(var(--border)); border-radius: .5rem; background: hsl(var(--bg)); }

@media (min-width: 992px) { .nav { display: flex; } .menu-toggle { display: none; } }

.mobile-menu { display: none; }
.mobile-menu.open { display: block; border-top: 1px solid hsl(var(--border)); background: hsl(var(--bg)); }
.mobile-menu a { display: block; padding: 1rem; border-bottom: 1px solid hsl(var(--border)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .875rem 1.25rem; border-radius: .625rem; border: 1px solid transparent; font-weight: 600; transition: all .2s ease; cursor: pointer; }
.btn-primary { background: hsl(var(--primary)); color: white; }
.btn-primary:hover { background: hsl(var(--primary-600)); transform: translateY(-1px); box-shadow: 0 10px 20px -10px hsl(var(--primary)/.5); }
.btn-outline { background: transparent; color: hsl(var(--primary)); border-color: hsl(var(--primary)); }
.btn-outline:hover { background: hsl(var(--primary)/.06); }

/* Hero */
.hero { position: relative; min-height: 100svh; color: white; display: grid; align-items: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.2), rgba(0,0,0,.55)); z-index: 1; }
.hero .content { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3rem); margin: 0 0 1rem; }
.hero p { font-size: clamp(1rem, .9rem + .6vw, 1.125rem); color: hsl(0 0% 98% / .92); margin: 0 0 1.5rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero .swiper, .hero .swiper-slide { position: absolute; inset: 0; }
.hero .swiper-slide { background-size: cover; background-position: center; }

/* Services */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: .75rem; padding: 1rem; transition: transform .15s ease, box-shadow .2s ease; height: 100%; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.25); }
.card h3 { margin: .5rem 0 .25rem; font-size: 1.1rem; }
.card p { margin: 0; color: hsl(var(--foreground-muted)); font-size: .95rem; }
.card-icon { width: 40px; height: 40px; border-radius: .5rem; display: grid; place-items: center; background: hsl(var(--primary)/.08); color: hsl(var(--primary)); }

.center { text-align: center; }

/* About */
.about { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 992px) { .about { grid-template-columns: 1.1fr 1fr; } }
.about video, .about img { width: 100%; border-radius: .75rem; border: 1px solid hsl(var(--border)); }

/* Testimonials */
.testimonials { background: hsl(var(--muted)); }
.testimonial-card { background: white; border: 1px solid hsl(var(--border)); border-radius: .75rem; padding: 1rem; height: 100%; display: flex; flex-direction: column; gap: .5rem; }
.stars { color: #F5A524; display: flex; gap: 2px; }

/* Payment */
.pay { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pay { grid-template-columns: repeat(3, 1fr); } }
.pay .item { background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: .75rem; padding: 1rem; display: flex; gap: .75rem; align-items: center; }
.pay .icon { width: 36px; height: 36px; border-radius: .5rem; display: grid; place-items: center; background: hsl(var(--primary)/.08); color: hsl(var(--primary)); }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: .375rem; padding: .375rem .625rem; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 999px; font-size: .875rem; }

/* Final CTA */
.final-cta { background: hsl(var(--primary)); color: white; border-radius: 1rem; padding: 2rem; display: grid; gap: .75rem; align-items: center; }
.final-cta h2 { margin: 0; }

/* Footer */
.site-footer { background: hsl(var(--foreground)); color: white; padding: 2rem 0; margin-top: 3rem; }
.site-footer a { color: white; text-decoration: underline; }

/* Floating WhatsApp */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: hsl(var(--success)); color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }
.whatsapp-float:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Utilities */
.muted { color: hsl(var(--foreground-muted)); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.rounded { border-radius: .5rem; }
.small { font-size: .875rem; }
