/* ============================================================
   ZP Contabilidade — Home Page Styles
   ============================================================ */

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--color-blue-deep) 0%, #0f2540 100%);
  color: var(--color-white);
  padding: 178px 0 100px; /* 140 + 38 (ticker fixo) */
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--space-7);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-pretitle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(201,151,58,0.15);
  border: 1px solid rgba(201,151,58,0.30);
  color: var(--color-gold);
  font-size: var(--text-small);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1-desktop);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  color: var(--color-white);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-gold);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.80);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.hero-badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-small);
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.hero-badge::before {
  content: '✓';
  color: var(--color-green);
  font-weight: 700;
}

/* Elemento visual hero */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
}
.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 2px solid rgba(40,160,96,0.25);
  border-radius: calc(var(--radius-lg) + 16px);
  pointer-events: none;
}

/* ---- STATS ---- */
.stats-section {
  background: var(--color-blue-deep);
  padding: var(--space-7) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}
.stat-item {
  padding: var(--space-4);
  border-right: 1px solid rgba(255,255,255,0.10);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-mono);
  font-size: var(--text-stats-desktop);
  color: var(--color-gold);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.70);
  font-weight: 500;
}

/* ---- BANNER IRPF ---- */
.irpf-banner {
  background: linear-gradient(135deg, var(--color-blue-deep) 0%, var(--color-green) 100%);
  padding: var(--space-7) 0;
  color: var(--color-white);
}
.irpf-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}
.irpf-banner-content { flex: 1; }
.irpf-banner-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2-desktop);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.25;
}
.irpf-banner-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-5);
  max-width: 540px;
}
.irpf-banner-side {
  flex-shrink: 0;
  text-align: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}
.irpf-countdown-label {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.irpf-countdown-value {
  font-family: var(--font-mono);
  font-size: 38px;
  color: var(--color-white);
  font-weight: 700;
  display: block;
}
.irpf-deadline {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.60);
  margin-top: var(--space-1);
}

/* ---- CARROSSEL DE DEPOIMENTOS ---- */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-item {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.carousel-prev,
.carousel-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-blue-deep);
  color: var(--color-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  background: none;
}
.carousel-prev:hover,
.carousel-next:hover {
  background: var(--color-blue-deep);
  color: var(--color-white);
}
.carousel-dots {
  display: flex;
  gap: var(--space-2);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26,58,92,0.20);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.carousel-dot.active {
  background: var(--color-blue-deep);
  transform: scale(1.3);
}

/* ---- RESPONSIVO HOME ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-subtitle { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-badges { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.10); }
  .stat-item:nth-child(even):nth-child(n+3) { border-bottom: none; }
  .irpf-banner-inner { flex-direction: column; text-align: center; }
  .carousel-item { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 152px 0 80px; } /* 120 + 32 (ticker mobile) */
  .hero h1 { font-size: var(--text-h1-mobile); }
  .irpf-banner-content h2 { font-size: var(--text-h2-mobile); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: var(--text-stats-mobile); }
}
