/* ============================================
   LDPERJ - Layout (hero, grid)
   ============================================ */

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-12) var(--container-padding) var(--space-16);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  z-index: -1;
}

.hero__bg::after {
  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.04'%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");
  opacity: 0.5;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.hero--loaded .hero__content {
  opacity: 1;
  transform: translateY(0);
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero__tagline {
  color: var(--color-accent);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.hero__desc {
  color: rgba(255,255,255,0.9);
  font-size: var(--text-base);
  line-height: var(--line-relaxed);
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.hero__actions .btn {
  width: 100%;
  max-width: 280px;
}

.hero__actions .btn--primary {
  background: var(--color-white);
  color: var(--color-primary);
}

.hero__actions .btn--primary:hover {
  background: var(--color-surface);
  color: var(--color-primary-dark);
}

.hero__actions .btn--secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero__actions .btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-xs);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out) 0.4s;
}

.hero--loaded .hero__scroll {
  opacity: 1;
}

.hero__scroll-icon {
  animation: bounce 2s ease-in-out infinite;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(255,255,255,0.8);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero__actions .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 75vh;
    padding: var(--space-16) var(--container-padding) var(--space-20);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Seções: margem para âncoras (header fixo) e revelar ao scroll */
.section {
  scroll-margin-top: calc(var(--top-bar-height) + var(--header-height) + 0.5rem);
}

.section--reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.section--reveal.section--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .section--reveal,
  .section--reveal.section--visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Section contact (destaque) */
.section--contact {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
}
