/* ============================================
   MAIN CSS — Vettoriale Marketing
   Sections: Base → Layout → Components → Sections
   ============================================ */

/* ─── IMPORTS ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800;900&family=Open+Sans:ital,wght@0,300;0,400;0,600;1,400&display=swap');
@import 'reset.css';
@import 'variables.css';

/* ════════════════════════════════════════════════
   1. BASE STYLES
   ════════════════════════════════════════════════ */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--surface);
  line-height: 1.6;
}

/* ─── CONTAINER ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ─── TYPOGRAPHY ──────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: var(--letter-spacing-wide, 0.08em);
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-style: normal;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* Numeração italiana editorial (01, 02, 03...) */
.section-num {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: var(--text-xs);
  color: var(--orange);
  opacity: 0.6;
  font-style: normal;
  letter-spacing: 0.05em;
  margin-right: 2px;
}

/* ─── SCROLL REVEAL ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback CSS animation for hero (always visible) */
.hero .reveal {
  animation: fadeInUp 0.7s ease forwards;
}
.hero .reveal-delay-1 { animation-delay: 0.1s; }
.hero .reveal-delay-2 { animation-delay: 0.2s; }
.hero .reveal-delay-3 { animation-delay: 0.3s; }
.hero .reveal-delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { 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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 15px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }

/* Primary CTA */
.btn-primary {
  background: var(--gradient-hero);
  color: var(--text-on-orange);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.50);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Outline Secondary */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--text-on-navy);
  transform: translateY(-2px);
}

/* Outline on dark bg */
.btn-outline-light {
  background: transparent;
  color: var(--text-on-navy);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

/* Ghost */
.btn-ghost {
  padding: 0;
  color: var(--orange-aa);
  font-weight: 600;
  font-size: var(--text-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--orange);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
  opacity: 1;
}

.btn-ghost:hover::after { width: 100%; }
.btn-ghost:hover { color: var(--orange-dark); }

/* Large variant */
.btn-lg {
  padding: 18px 40px;
  font-size: var(--text-lg);
}

/* ─── BADGE / CHIP ────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 102, 0, 0.10);
  border: 1px solid rgba(255, 102, 0, 0.25);
  color: var(--orange);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Section badge — structural annotation primitive */
.section-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-headline);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--orange-aa);
  background: rgba(26, 61, 104, 0.06);
  border: 1px solid rgba(26, 61, 104, 0.12);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  white-space: nowrap;
}

/* ─── SECTION COMMON ──────────────────────────── */
/* Seção com padding premium */
.section {
  padding: var(--space-section, clamp(5rem, 10vw, 8rem)) 0;
}

.section-alt {
  background: var(--surface-low);
}

/* Seções premium com espaçamento 10vw */
.section {
  padding: var(--space-section, clamp(5rem, 10vw, 8rem)) 0;
}

.section-navy {
  background: var(--gradient-navy);
  color: var(--text-on-navy);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-12), 6vw, var(--space-20));
}

.section-header h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-navy .section-header p {
  color: rgba(255,255,255,0.75);
}


/* ════════════════════════════════════════════════
   2. HEADER / NAVIGATION
   ════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-nav);
  transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Scrolled state — glassmorphism */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-nav);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 44px;
  width: auto;
  transition: transform var(--transition-base);
}

.header-logo:hover img {
  transform: scale(1.04);
}

/* Nav links */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header-nav a {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-on-navy);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-base);
}

.site-header.scrolled .header-nav a {
  color: var(--navy);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.header-nav a:hover { color: var(--orange); }
.site-header.scrolled .header-nav a:hover { color: var(--orange); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-navy);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.site-header.scrolled .menu-toggle span { background: var(--navy); }

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: calc(var(--z-nav) - 1);
  padding: calc(var(--header-height) + var(--space-8)) var(--space-8) var(--space-8);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-base), visibility var(--transition-base);
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--text-on-navy);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color var(--transition-base);
}

.mobile-nav a:hover { color: var(--orange); }

.mobile-nav .btn-primary {
  margin-top: var(--space-6);
  text-align: center;
  justify-content: center;
  width: 100%;
  white-space: normal;
}


/* ════════════════════════════════════════════════
   3. HERO SECTION
   ════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  padding-bottom: var(--space-16);
}

/* Decorative bg vector */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(ellipse at center, rgba(255, 102, 0, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  background: radial-gradient(ellipse at center, rgba(255, 153, 51, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: center;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* ── Hero H1 display premium ── */
.hero-h1-split {
  font-size: var(--text-display);
  color: var(--text-on-navy);
  line-height: 1.05;
  letter-spacing: var(--letter-spacing-tight);
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.22em;
  align-items: baseline;
}

/* Force flex line-breaks at <br> positions inside word-split H1 */
.hero-h1-split br {
  flex-basis: 100%;
  height: 0;
}

/* Word-split: clip-path reveal container */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.1;
}

.word {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

/* Fallback: se GSAP não carregar, mostrar tudo */
.no-gsap .word,
.word-visible {
  transform: none !important;
  opacity: 1 !important;
}

.hero-content h1 .accent {
  color: var(--orange);
  position: relative;
}

.hero-content p,
.hero-lead {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.7;
  max-width: 520px;
  opacity: 0; /* GSAP vai animar */
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--space-2);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: var(--text-3xl);
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.60);
  margin-top: var(--space-1);
}

/* Hero visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-illustration {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
}

/* Animated vector arrow illustration */
.vector-graphic {
  width: 100%;
  height: 100%;
}


/* ════════════════════════════════════════════════
   4. PROBLEMA / SOLUÇÃO SECTION
   ════════════════════════════════════════════════ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.problem-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.problem-card:hover::before { transform: scaleX(1); }

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

.problem-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 102, 0, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  transition: background var(--transition-base);
}

.problem-card:hover .problem-icon {
  background: var(--orange);
}

.problem-icon svg {
  width: 28px;
  height: 28px;
  color: var(--orange);
  transition: color var(--transition-base);
}

.problem-card:hover .problem-icon svg { color: white; }

.problem-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.problem-card p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.solution-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(26, 61, 104, 0.06);
  color: var(--navy);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.solution-tag svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}


/* ════════════════════════════════════════════════
   5. SERVIZI SECTION
   ════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.service-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-spring);
  cursor: default;
  position: relative;
}

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

.service-icon-wrap {
  width: 68px;
  height: 68px;
  background: rgba(255, 102, 0, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon-wrap {
  background: var(--gradient-hero);
}

.service-icon-wrap svg {
  width: 30px;
  height: 30px;
  color: var(--orange);
  transition: color var(--transition-base);
}

.service-card:hover .service-icon-wrap svg { color: white; }

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

/* ════════════════════════════════════════════════
   6. WHY VETTORIALE (dark navy section)
   ════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 8vw, var(--space-24));
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.why-check {
  width: 28px;
  height: 28px;
  background: rgba(255, 102, 0, 0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-check svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.why-item-text h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-1);
  letter-spacing: normal;
}

.why-item-text p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.why-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: background var(--transition-base);
}

.why-stat-card:hover {
  background: rgba(255, 102, 0, 0.12);
  border-color: rgba(255, 102, 0, 0.30);
}

.why-stat-num {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(var(--text-4xl), 4vw, var(--text-5xl));
  color: var(--orange);
  line-height: 1;
  display: block;
}

.why-stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-2);
  display: block;
}


/* ════════════════════════════════════════════════
   7. TESTIMONIALS
   ════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.testimonial-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.testimonial-stars {
  display: flex;
  gap: 3px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  fill: var(--gold);
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(26, 61, 104, 0.08);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: var(--text-lg);
  color: white;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--navy);
}

.author-role {
  font-size: var(--text-sm);
  color: var(--text-muted);
}


/* ════════════════════════════════════════════════
   8. CONTATTI / FORMULÁRIO
   ════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 102, 0, 0.10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.contact-item-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: block;
}

.contact-item-value {
  font-weight: 600;
  color: var(--navy);
  font-size: var(--text-base);
}

/* Form */
.contact-form-card {
  background: var(--surface-card);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  height: 52px;
  padding: 0 var(--space-4);
  background: var(--surface-low);
  border: 1.5px solid rgba(26, 61, 104, 0.15);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  outline: none;
  appearance: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--orange);
  background: var(--surface-card);
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.10);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: var(--space-10);
}

textarea.form-control {
  height: auto;
  min-height: 120px;
  padding: var(--space-4);
  resize: vertical;
  line-height: 1.6;
}

/* GDPR checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gray);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--orange);
}

.form-check-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.form-check-label a {
  color: var(--orange);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: var(--text-lg);
  padding: 18px;
}

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-12);
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.form-success.show { display: flex; }

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 102, 0, 0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: var(--orange);
}

.form-success h3 {
  font-size: var(--text-2xl);
}

.form-success p {
  color: var(--text-secondary);
  max-width: 360px;
}


/* ════════════════════════════════════════════════
   9. FOOTER
   ════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.80);
  padding: clamp(var(--space-16), 6vw, var(--space-24)) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-16);
}

.footer-brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-5);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.60);
  max-width: 280px;
  margin-bottom: var(--space-6);
}

.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--orange);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.80);
}

.footer-col h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--text-sm);
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.60);
  transition: color var(--transition-base);
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-6) 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
}


/* ════════════════════════════════════════════════
   10. RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid,
  .problem-grid { grid-template-columns: repeat(2, 1fr); }

  .why-grid { gap: var(--space-12); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  /* Header */
  .header-nav { display: none; }
  .header-actions .btn-primary { display: none; }
  .menu-toggle { display: flex; }

  /* Hero */
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content h1 { font-size: var(--text-4xl); }
  .hero-stats { gap: var(--space-6); }

  /* Grids */
  .services-grid,
  .problem-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; width: 100%; }
  .btn-lg { padding: 14px 24px; font-size: var(--text-base); }
  .hero-stats { flex-direction: column; gap: var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .hero .container { padding-top: var(--space-8); padding-bottom: var(--space-8); }
}


/* ════════════════════════════════════════════════
   11. UTILITIES
   ════════════════════════════════════════════════ */
.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;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ════════════════════════════════════════════════
   PREMIUM ADDITIONS — Fases 1-5 Redesign Visual
   ════════════════════════════════════════════════ */

/* ── Hero Dot-Grid (Fase 2) ── */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}

/* ── Growth Vector Lines (Fase 1) ── */
.hero-vector-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vector-line-svg {
  width: 100%;
  height: 100%;
}

/* ── Badge com pulse-dot (Fase 2) ── */
.badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Badge sem o ::before genérico quando usa badge-dot */
.hero-badge-anim.badge::before {
  display: none;
}

/* ── Hero H1 word-split containers (Fase 2 + 5) ── */
.accent-word .word.accent {
  color: var(--orange);
}

/* ── Hero: remove opacity GSAP das ctas/stats inicialmente ── */
.hero-ctas,
.hero-stats {
  opacity: 0; /* GSAP anima */
}

/* ── Stats hero border-top tonal (No-Line Rule) ── */
.hero-stats {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: var(--space-2);
  display: flex;
  gap: var(--space-8);
}

/* ── Service Cards: Accent-Line hover (Precision Architect) ── */
/* Remove translateY lift, usa border-left laranja */
.service-card {
  position: relative;
  transition: box-shadow var(--transition-base);
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-expo-fast, 450ms cubic-bezier(0.22, 1, 0.36, 1));
}

.service-card:hover::before {
  transform: scaleY(1);
}

/* Cancelar translateY no card hover (regra Precision Architect) */
.service-card:hover {
  transform: none;
  box-shadow: 0 8px 32px rgba(26, 61, 104, 0.12);
}

/* ── Problem Cards: mesma accent-line ── */
.problem-card {
  position: relative;
}

.problem-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-expo-fast, 450ms cubic-bezier(0.22, 1, 0.36, 1));
}

.problem-card:hover::before {
  transform: scaleY(1);
}

.problem-card:hover {
  transform: none;
}

/* ── Section H2 Editorial Letter-spacing (Fase 5) ── */
.section-header h2 {
  letter-spacing: var(--letter-spacing-tight, -0.035em);
}

/* ── SCROLL PROGRESS BAR (Fase 4) ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  z-index: calc(var(--z-nav) + 10);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── CUSTOM CURSOR VETORIAL (Fase 1) ── */
.custom-cursor {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 102, 0, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  will-change: transform;
  display: none;
}

.custom-cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  display: none;
}

/* Só mostrar em dispositivos com pointer fino (mouse) */
.has-custom-cursor .custom-cursor,
.has-custom-cursor .custom-cursor-dot {
  display: block;
}

.has-custom-cursor * {
  cursor: none !important;
}

.custom-cursor.cursor-hover {
  width: 56px;
  height: 56px;
  border-color: rgba(255, 102, 0, 0.9);
  background: rgba(255, 102, 0, 0.06);
}

.custom-cursor.cursor-hidden {
  opacity: 0;
}

/* ── WHATSAPP FAB (Fase 3) ── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.40);
  z-index: calc(var(--z-overlay) + 5);
  transform: scale(0) translateY(20px);
  opacity: 0;
  transition: transform var(--transition-spring), opacity 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

.whatsapp-fab.visible {
  transform: scale(1) translateY(0);
  opacity: 1;
  animation: whatsapp-pulse 3s ease-in-out 1s infinite;
}

.whatsapp-fab:hover {
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
  transform: scale(1.08) translateY(-2px) !important;
  animation: none;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.40); }
  50%       { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.70), 0 0 0 8px rgba(37, 211, 102, 0.10); }
}

/* ── FORM Premium States (Fase 4) ── */
.field-error {
  display: block;
  color: var(--orange-dark);
  font-size: 0.8125rem;
  margin-top: 4px;
  animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-alert {
  background: rgba(230,76,0,0.08);
  border: 1px solid rgba(230,76,0,0.25);
  color: var(--orange-dark);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

/* Shake animation — erro de validação */
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-6px); }
  30%       { transform: translateX(6px); }
  45%       { transform: translateX(-4px); }
  60%       { transform: translateX(4px); }
  75%       { transform: translateX(-2px); }
  90%       { transform: translateX(2px); }
}

.shake,
.field-shake {
  animation: shakeX 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Spinner no botão de submit */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-submit.success {
  background: var(--success);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

/* ── BADGE HERO com dot animado (Fade in override) ── */
.hero-badge-anim {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 102, 0, 0.10);
  border: 1px solid rgba(255, 102, 0, 0.25);
  color: var(--orange);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  opacity: 0; /* GSAP anima */
}

/* ── Why-stat-cards: tonal layering sem border 1px ── */
.why-stat-card {
  background: rgba(255,255,255,0.06);
  /* Sem border 1px — No-Line Rule */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}

/* ── SVG bars animation ── */
@keyframes barRise {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}

.vector-graphic .bar-ani {
  transform-origin: bottom;
  animation: barRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vector-graphic .bar-ani:nth-child(1) { animation-delay: 0.8s; }
.vector-graphic .bar-ani:nth-child(2) { animation-delay: 0.95s; }
.vector-graphic .bar-ani:nth-child(3) { animation-delay: 1.1s; }
.vector-graphic .bar-ani:nth-child(4) { animation-delay: 1.25s; }

/* ── Responsive ajustes premium ── */
@media (max-width: 768px) {
  /* Hero H1 clamp mobile */
  .hero-h1-split {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    letter-spacing: -0.02em;
  }

  /* FAB menor no mobile pequeno */
  .whatsapp-fab {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 16px;
  }

  .whatsapp-fab svg {
    width: 24px;
    height: 24px;
  }

  /* Custom cursor: esconder em touch */
  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
}


/* ════════════════════════════════════════════════
   THREE.JS HERO CANVAS + CURSOR FIX
   ════════════════════════════════════════════════ */

/* ── Canvas 3D container ── */
.hero-canvas-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  position: relative;
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
}

.hero-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit;
}

/* Fallback: só visível se sem WebGL */
.hero-canvas-fallback {
  display: none;
  width: 100%;
  height: 100%;
}

.hero-canvas-wrap.no-webgl .hero-canvas-fallback {
  display: block;
}

/* SVG fallback */
.no-webgl-only {
  display: none; /* JS adiciona .no-webgl ao container para ativar */
}

/* ── Badges HTML sobre o canvas ── */
.hero-3d-badge {
  position: absolute;
  background: rgba(26, 61, 104, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,102,0,0.25);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  animation: badgeFadeIn 0.6s ease forwards;
}

@keyframes badgeFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-3d-badge--roi {
  top: 8%;
  right: -12px;
  animation-delay: 1.6s;
}

.hero-3d-badge--lead {
  bottom: 12%;
  left: -12px;
  animation-delay: 1.9s;
}

.badge-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}

.badge-value {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

/* Posicionamento relativo do hero-visual para badges absolute funcionarem */
.hero-visual {
  position: relative;
}

/* ── CURSOR FIX — usar left/top em vez de transform ── */
/* Remove o translate(-50%,-50%) do position: fixed que conflitava */
.custom-cursor {
  transform: none !important; /* override do CSS anterior */
  /* left e top são definidos pelo JS */
  margin-left: -18px; /* centraliza: metade de 36px */
  margin-top:  -18px;
}

.custom-cursor-dot {
  transform: none !important;
  /* left e top são definidos pelo JS */
  margin-left: -2.5px; /* centraliza: metade de 5px */
  margin-top:  -2.5px;
}

.custom-cursor.cursor-hover {
  margin-left: -28px; /* metade de 56px */
  margin-top:  -28px;
}

/* ── Hero visual: responsividade canvas ── */
@media (max-width: 768px) {
  .hero-canvas-wrap {
    max-width: 320px;
    aspect-ratio: 1 / 1;
  }

  .hero-3d-badge--roi {
    right: 0;
    font-size: 0.8rem;
  }

  .hero-3d-badge--lead {
    left: 0;
    font-size: 0.8rem;
  }
}


