/* ============================================================
   CUSTOM.CSS — Paleta Veritto: #161616, #82001E, #FAFAFA, #00AF37
   Verde usado apenas em checkmarks e micro-detalhes (accent sparingly)
   ============================================================ */

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: #82001E;
  color: #FAFAFA;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid #00AF37;
  outline-offset: 2px;
}

/* Header claro — combina com fundo branco do logo */
.header-sticky.is-scrolled {
  box-shadow: 0 4px 24px rgba(22, 22, 22, 0.08);
  background-color: rgba(250, 250, 250, 0.98);
  border-bottom-color: rgba(22, 22, 22, 0.06);
}

.hero-section .hero-bg { z-index: 0; }
.hero-section .hero-fallback { z-index: 0; }
.hero-section .hero-overlay { z-index: 1; }

/* Linha decorativa vermelha sob títulos de seção */
.section-label::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0.75rem auto 0;
  background: #82001E;
  border-radius: 2px;
}

.section-label-left::after {
  margin-left: 0;
  margin-right: auto;
}

.fade-in {
  opacity: 0;
  transform: translateY(1.25rem);
  animation: fadeInUp 0.7s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.3s; }
.fade-in-delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card.reveal:nth-child(1) { transition-delay: 0s; }
.service-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.service-card.reveal:nth-child(4) { transition-delay: 0.24s; }

.project-card.reveal:nth-child(1) { transition-delay: 0s; }
.project-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.project-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* Hover nos cards: borda vermelha sutil */
.service-card:hover,
.project-card:hover {
  border-color: rgba(130, 0, 30, 0.25);
}

.img-fallback {
  display: none;
  z-index: 2;
}

.img-placeholder .img-fallback {
  display: flex;
}

.img-placeholder img {
  opacity: 0;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.is-open {
  max-height: 24rem;
}

.mobile-menu.hidden.is-open {
  display: block;
}

/* Logo: altura fixa, largura proporcional */
.site-logo {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 640px) {
  .site-logo {
    height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .fade-in,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .service-card,
  .project-card {
    transition: none;
  }

  .project-card img {
    transition: none;
  }
}
