/**
 * ============================================================
 * ESTAÇÃO SOLAR — styles.css
 * Estilos globais e componentes customizados
 * ============================================================
 *
 * Estrutura:
 *   1. Reset & Base
 *   2. Tipografia global
 *   3. Componentes reutilizáveis (Botões, Badges, Cards)
 *   4. Layout (Navbar, Seções, Container)
 *   5. Seções específicas (Hero, Stats, Features, etc.)
 *   6. Animações e transições
 *   7. WhatsApp Float Button
 *   8. Utilitários
 *   9. Responsividade
 * ============================================================
 */

/* ═══════════════════════════════════════════
   1. RESET & BASE
   ═══════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

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

/* ═══════════════════════════════════════════
   2. TIPOGRAFIA GLOBAL
   ═══════════════════════════════════════════ */

/* Classe utilitária para texto com gradiente amarelo→verde */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Headline de impacto — usada no Hero */
.headline-hero {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
  font-weight: var(--font-black);
  line-height: var(--leading-none);
  letter-spacing: -0.02em;
}

/* Headline de seção — títulos H2 */
.headline-section {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

/* Subtítulo de seção */
.subheadline {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 640px;
}

/* Badge/label acima dos títulos */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary-light);
  color: var(--yellow-700);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-badge--dark {
  background: rgba(245, 196, 26, 0.15);
  color: var(--color-primary);
}

/* ═══════════════════════════════════════════
   3. COMPONENTES REUTILIZÁVEIS
   ═══════════════════════════════════════════ */

/* ─── Botão Primário (CTA principal — amarelo) ─ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: var(--text-base);
  font-weight: var(--btn-primary-font-weight);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--btn-primary-radius);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-slow);
}

.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
  box-shadow: var(--btn-primary-shadow);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  left: 100%;
}

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

/* ─── Botão Secundário (Ghost/Outline — transparente) ─ */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--btn-secondary-radius);
  border: 2px solid var(--btn-secondary-border);
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--gray-900);
  transform: translateY(-2px);
}

/* ─── Botão Verde (WhatsApp / Confirmar) ─ */
.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--color-secondary);
  color: var(--gray-0);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-green:hover {
  background: var(--green-600);
  box-shadow: var(--shadow-glow-green);
  transform: translateY(-2px);
}

/* ─── Card padrão ─ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--card-padding);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  /* iOS Safari: força compositing layer para overflow:hidden clipar flex children corretamente */
  -webkit-transform: translateZ(0);
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

/* ─── Card (ex-escuro) — agora claro com borda suave ─ */
.card-dark {
  background: #FFFFFF;
  border: 1px solid var(--gray-200);
  color: var(--color-text-primary);
}

.card-dark:hover {
  border-color: var(--yellow-300);
  box-shadow: var(--shadow-lg);
}

/* ─── Ícone em destaque ─ */
.icon-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  flex-shrink: 0;
}

.icon-box--yellow {
  background: var(--yellow-100);
  color: var(--yellow-700);
}

.icon-box--green {
  background: var(--green-50);
  color: var(--green-700);
}

.icon-box--dark {
  background: rgba(245, 196, 26, 0.12);
  color: var(--color-primary);
}

/* ─── Stat/Number em destaque ─ */
.stat-number {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-black);
  line-height: var(--leading-none);
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-medium);
  margin-top: var(--space-1);
}

/* ─── Divider decorativo ─ */
.divider-brand {
  height: 4px;
  width: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* ─── Tag/Chip de feature ─ */
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-secondary-light);
  color: var(--color-secondary-dark);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

/* ─── Avatar de depoimento ─ */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-primary);
  flex-shrink: 0;
}

/* ─── Estrelas de avaliação ─ */
.stars {
  color: var(--color-primary);
  letter-spacing: 2px;
  font-size: var(--text-lg);
}

/* ─── Step (processo) ─ */
.step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: var(--gray-900);
  font-weight: var(--font-black);
  font-size: var(--text-xl);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow-yellow);
}


/* ═══════════════════════════════════════════
   4. LAYOUT — Navbar, Container, Seções
   ═══════════════════════════════════════════ */

/* ─── Container responsivo ─ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

@media (min-width: 640px)  { .container { padding-left: var(--space-6);  padding-right: var(--space-6);  } }
@media (min-width: 1024px) { .container { padding-left: var(--space-8);  padding-right: var(--space-8);  } }
@media (min-width: 1280px) { .container { padding-left: var(--space-12); padding-right: var(--space-12); } }

/* ─── Seção genérica ─ */
.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

.section-lg {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .section-lg {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
  }
}

.section-dark {
  background: linear-gradient(150deg, #F0F7E8 0%, #F9FCF4 60%, #FDFCF8 100%);
  color: var(--color-text-primary);
}

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

/* ─── Header do bloco de seção ─ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-16);
  }
}

/* ─── Navbar ─ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  z-index: var(--z-sticky);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: var(--navbar-bg-scroll);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 65px;
  width: auto;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-links a {
  color: rgba(30, 41, 59, 0.7);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.navbar-links a:hover {
  color: var(--color-primary);
}

.navbar-links a:hover::after {
  width: 100%;
}

/* ─── Menu hamburguer mobile ─ */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

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

/* ─── Mobile menu drawer ─ */
.mobile-menu {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  z-index: calc(var(--z-sticky) - 1);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateY(-110%);
  transition: transform var(--transition-slow);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu a {
  color: rgba(30, 41, 59, 0.75);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--color-primary);
}

.mobile-menu .btn-primary {
  margin-top: var(--space-2);
  text-align: center;
}


/* ═══════════════════════════════════════════
   5. SEÇÕES ESPECÍFICAS
   ═══════════════════════════════════════════ */

/* ─── HERO ─ */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* iOS Safari 15.4+: exclui barra do browser do viewport */
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-height) + var(--space-8));
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
  /* iOS Safari: força compositing layer para overflow:hidden clipar transforms corretamente */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Brilho suave no topo — luz solar */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 0%, rgba(251, 176, 45, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(124, 181, 24, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* Grade pontilhada suave */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Aumenta a altura do hero em 15% (proporção original 620×440 → 620×506) */
.hero-slider {
  aspect-ratio: 620 / 506;
}
.hero-slides {
  height: 100%;
}
.hero-slide,
.hero-slide.active {
  height: 100%;
  object-fit: cover;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1;
  pointer-events: none;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) saturate(1.1);
}

/* ─── STATS BAR ─ */
.stats-bar {
  background: var(--gray-0);
  border-top: 3px solid var(--yellow-400);
  border-bottom: 1px solid var(--gray-100);
  padding: var(--space-8) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  position: relative;
  padding: var(--space-4);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-border);
  display: none;
}

@media (min-width: 768px) {
  .stat-item:not(:last-child)::after {
    display: block;
  }
}

/* ─── SEÇÃO DORES ─ */
.pain-section {
  background: #F8FAFC;
  position: relative;
  overflow: hidden;
}

.pain-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(251, 176, 45, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── SEÇÃO BENEFÍCIOS ─ */
.benefit-card {
  background: var(--gray-0);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.benefit-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: transparent;
}

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

@media (min-width: 768px) {
  .benefit-card {
    padding: var(--space-8);
  }
}

/* ─── SEÇÃO SERVIÇOS ─ */
.service-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  height: 280px;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-bg {
  transform: scale(1.05);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  transition: background var(--transition-base);
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(245, 196, 26, 0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  color: var(--gray-0);
  transform: translateY(8px);
  transition: transform var(--transition-base);
}

.service-card:hover .service-card-content {
  transform: translateY(0);
  color: var(--gray-900);
}

/* ─── SEÇÃO PROCESSO (STEPS) ─ */
.process-connector {
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
  margin: 0 auto;
  border-radius: var(--radius-full);
}

/* ─── SEÇÃO DEPOIMENTOS ─ */
.testimonial-card {
  background: var(--gray-0);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
}

@media (min-width: 641px) {
  .testimonial-card {
    padding: var(--space-8);
  }
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-size: 80px;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

/* ─── CARROSSEL DE DEPOIMENTOS ─ */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--space-10);
}

.testimonials-track {
  display: flex;
  gap: var(--space-6);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Mobile-first: 1 card por vez */
.testimonial-slide {
  flex: 0 0 calc(100% - var(--space-3));
  min-width: 0;
}

@media (min-width: 641px) {
  .testimonial-slide {
    flex: 0 0 calc(50% - var(--space-3));
  }
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.testimonials-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  background: var(--gray-0);
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.testimonials-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--gray-900);
}

.testimonials-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.testimonials-dots {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-base);
}

.testimonials-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-primary);
}

/* ─── SEÇÃO CTA FINAL ─ */
.cta-section {
  background: linear-gradient(150deg, #FFFDF4 0%, #FFF8E1 50%, #F4F9F1 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 176, 45, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 181, 24, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── FOOTER ─ */
.footer {
  background: #FDFDFD;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--gray-600);
}

.footer-logo img {
  height: 48px;
  width: auto;
  opacity: 1;
}

.footer-links a {
  color: var(--gray-500);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.06);
  color: var(--gray-500);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--gray-900);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════
   6. ANIMAÇÕES E TRANSIÇÕES
   ═══════════════════════════════════════════ */

/* ─── Fade in up — usado via Intersection Observer ─ */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Stagger delay para listas de cards ─ */
[data-animate-delay="100"] { transition-delay: 100ms; }
[data-animate-delay="200"] { transition-delay: 200ms; }
[data-animate-delay="300"] { transition-delay: 300ms; }
[data-animate-delay="400"] { transition-delay: 400ms; }
[data-animate-delay="500"] { transition-delay: 500ms; }
[data-animate-delay="600"] { transition-delay: 600ms; }

/* ─── Pulse solar (ícone do hero / logo) ─ */
@keyframes pulse-solar {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 196, 26, 0.4); }
  50%       { box-shadow: 0 0 0 16px rgba(245, 196, 26, 0); }
}

.pulse-solar {
  animation: pulse-solar 2.5s infinite;
}

/* ─── Float (elemento flutuando suavemente) ─ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ─── Contador numérico (JS controla os valores) ─ */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ─── Shine no botão ─ */
@keyframes shine {
  0%   { left: -100%; }
  100% { left: 200%; }
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 3s ease-in-out infinite;
  animation-delay: 1s;
}

/* ─── Rotação suave do ícone solar ─ */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* ─── Piscar de LED ─ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.blink {
  animation: blink 2s ease-in-out infinite;
}

/* ─── Entrada suave no hero ─ */
@-webkit-keyframes fade-in-up {
  from { opacity: 0; -webkit-transform: translateY(40px); transform: translateY(40px); }
  to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title    { -webkit-animation: fade-in-up 0.7s ease 0.1s both; animation: fade-in-up 0.7s ease 0.1s both; }
.hero-subtitle { -webkit-animation: fade-in-up 0.7s ease 0.3s both; animation: fade-in-up 0.7s ease 0.3s both; }
.hero-ctas     { -webkit-animation: fade-in-up 0.7s ease 0.5s both; animation: fade-in-up 0.7s ease 0.5s both; }
.hero-stats    { -webkit-animation: fade-in-up 0.7s ease 0.7s both; animation: fade-in-up 0.7s ease 0.7s both; }
.hero-image    { -webkit-animation: fade-in-up 0.9s ease 0.4s both; animation: fade-in-up 0.9s ease 0.4s both; }


/* ═══════════════════════════════════════════
   7. WHATSAPP FLOAT BUTTON
   ═══════════════════════════════════════════ */

/* ─── Botão flutuante de WhatsApp (posição fixa) ─ */
.whatsapp-float {
  position: fixed;
  bottom: var(--whatsapp-bottom);
  right: var(--whatsapp-right);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ─── Label do tooltip ao lado do botão ─ */
.whatsapp-tooltip {
  background: var(--gray-800);
  color: var(--gray-0);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition-base);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ─── O botão circular ─ */
.whatsapp-btn {
  width: var(--whatsapp-size);
  height: var(--whatsapp-size);
  background: var(--whatsapp-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--whatsapp-shadow);
  transition: all var(--transition-spring);
  text-decoration: none;
  flex-shrink: 0;
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 35px rgb(37 211 102 / 0.55);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--gray-0);
}

/* ─── Anel de pulso verde ─ */
.whatsapp-btn::before {
  content: '';
  position: absolute;
  width: var(--whatsapp-size);
  height: var(--whatsapp-size);
  border-radius: var(--radius-full);
  background: var(--whatsapp-color);
  opacity: 0.4;
  animation: pulse-solar 2s infinite;
  animation-name: pulse-whatsapp;
}

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


/* ═══════════════════════════════════════════
   8. UTILITÁRIOS
   ═══════════════════════════════════════════ */

/* ─── Ocultar visualmente mas manter acessibilidade ─ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Overlay escuro genérico ─ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-sticky) - 2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ─── Grid de 2 a 4 colunas responsivo ─ */
.grid-auto {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px)  { .grid-auto { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-auto { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid-auto { grid-template-columns: repeat(4, 1fr); } }

/* ─── Linha separadora com texto central ─ */
.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ─── Highlight de texto (fundo amarelo) ─ */
.highlight {
  background: linear-gradient(90deg, rgba(245, 196, 26, 0.2), rgba(245, 196, 26, 0.2));
  padding: 0 4px;
  border-radius: var(--radius-sm);
}

/* ─── Scrollbar customizada ─ */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-hover); }


/* ═══════════════════════════════════════════
   9. RESPONSIVIDADE — Mobile-first
   ═══════════════════════════════════════════ */

/* ─── Mobile: botões full-width por padrão ─ */
.btn-primary,
.btn-secondary,
.btn-green {
  width: 100%;
}

@media (min-width: 481px) {
  .btn-primary,
  .btn-secondary,
  .btn-green {
    width: auto;
  }
}

/* ─── Desktop: hero com mais respiro ─ */
@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--navbar-height) + var(--space-16));
  }
}

/* ─── Tablet: ajustes intermediários ─ */
@media (min-width: 641px) and (max-width: 1023px) {
  .navbar-links { display: none; }

  .hero-image { max-height: 400px; overflow: hidden; }
}

/* ─── Focus states para acessibilidade ─ */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── Print ─ */
@media print {
  .navbar,
  .whatsapp-float,
  .mobile-menu { display: none !important; }
  body { background: white; color: black; }
}

/* ════════════════════════════════════════
   LIGHTBOX — Popup de imagem
   ════════════════════════════════════════ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-lg, 1rem);
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  object-fit: contain;
}

.lightbox-overlay.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* ════════════════════════════════════════
   SELOS DE PARCERIA (Testimonials)
   ════════════════════════════════════════ */

.selos-parceiros {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.25rem;
}

.selo-item {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.625rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  /* iOS Safari: força compositing para overflow:hidden funcionar */
  -webkit-transform: translateZ(0);
  overflow: hidden;
}

.selo-logo {
  display: block;
  height: 2rem;       /* 32px */
  width: 2.75rem;     /* 44px — proporção 100:75 das imagens */
  max-width: 2.75rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  object-fit: contain;
}

.selo-texto {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .selos-parceiros {
    gap: 0.75rem;
  }

  .selo-item {
    width: 100%;
    -webkit-justify-content: center;
    justify-content: center;
  }

  .selo-texto {
    white-space: normal;
  }
}

/* ════════════════════════════════════════
   ANTES E DEPOIS
   ════════════════════════════════════════ */

/* Wrapper da imagem: centraliza dentro da coluna */
.antes-depois-img-wrap {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

/* Imagem: ocupa a coluna inteira, com sombra e borda arredondada */
.antes-depois-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  -webkit-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.case-card {
  cursor: pointer;
  /* Safari iOS: força contexto de composição para overflow-hidden funcionar */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Safari iOS: wrapper interno com width explícito */
.case-card > div {
  display: block;
  width: 100%;
}

/* Imagem base: ocupa toda a largura */
.case-card-img {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Desktop (≥768px): altura fixa com crop centrado */
@media (min-width: 768px) {
  .case-card-img {
    height: 16rem;
    -webkit-object-fit: cover;
    object-fit: cover;
    -webkit-object-position: center;
    object-position: center;
  }
}

/* Mobile (≤767px): imagem completa, proporção natural, sem crop */
@media (max-width: 767px) {
  .case-card > div {
    overflow: visible;
  }

  .case-card-img {
    height: auto;
    -webkit-object-fit: unset;
    object-fit: unset;
  }
}
