/* ══════════════════════════════════════
   SCROLL SUAVE GLOBAL
══════════════════════════════════════ */
html {
  scroll-behavior: smooth;
  /* Compensar a altura do navbar fixo */
  scroll-padding-top: 72px;
}

/* Link activo no navbar */
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #F97316;
}

/* ══════════════════════════════════════
   BASE
══════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Barlow', sans-serif;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
#navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease;
  z-index: 100;
  /* Altíssimo para ficar acima do mobile-menu */
}

#navbar>div:first-child {
  position: relative;
  z-index: 50;
  /* Garante que logo e hamburger fiquem ACIMA do menu mobile (z-index 40) */
}

#navbar.scrolled {
  background: rgba(15, 15, 15, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Nav links */
.nav-link {
  position: relative;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  text-decoration: none;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #F97316;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu overlay */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  border: none;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Centered content inside mobile menu */
#mobile-menu>div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem !important;
  text-align: center;
}

#mobile-menu .nav-link {
  font-size: 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Ensure the budget button in mobile looks premium */
#mobile-menu .bg-brand {
  margin-top: 1rem;
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* Hamburger "X" Animation */
#hamburger.is-active #ham1 {
  transform: translateY(8px) rotate(45deg);
}

#hamburger.is-active #ham2 {
  opacity: 0;
}

#hamburger.is-active #ham3 {
  transform: translateY(-8px) rotate(-45deg);
  width: 24px;
}

/* ══════════════════════════════════════
   HERO — SLIDESHOW
══════════════════════════════════════ */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

/* ══════════════════════════════════════
   HERO — OVERLAY E CONTEÚDO POR SLIDE
══════════════════════════════════════ */

/* Overlay escuro dentro de cada slide */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Wrapper do texto — centrado, sobre overlay */
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  z-index: 10;
  /* Começa invisível — animação só quando o slide fica active */
  pointer-events: none;
}

.slide.active .slide-content {
  pointer-events: auto;
}

/* Animação de entrada do texto quando o slide ativa */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-label,
.slide-title,
.slide-sub,
.slide-btns {
  opacity: 0;
}

.slide.active .slide-label {
  animation: fadeUp 0.7s ease 0.15s forwards;
}

.slide.active .slide-title {
  animation: fadeUp 0.7s ease 0.35s forwards;
}

.slide.active .slide-sub {
  animation: fadeUp 0.7s ease 0.55s forwards;
}

.slide.active .slide-btns {
  animation: fadeUp 0.7s ease 0.72s forwards;
}

/* Tipografia */
.slide-label {
  color: #F97316;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .slide-label {
    font-size: 0.875rem;
  }
}

.slide-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.slide-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  max-width: 36rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .slide-sub {
    font-size: 1.125rem;
  }
}

/* Botões */
.slide-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .slide-btns {
    flex-direction: row;
  }
}

.btn-primary {
  background: #F97316;
  color: #fff;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  background: #ea6c0a;
  transform: scale(1.05);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
  backdrop-filter: blur(4px);
}

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

/* ══════════════════════════════════════
   HERO — SLIDE DOTS
══════════════════════════════════════ */
.dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.3s ease;
}

.dot.active {
  background: #F97316;
}

/* ══════════════════════════════════════
   HERO — SCROLL CHEVRON
══════════════════════════════════════ */
@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.chevron {
  animation: bounce 1.6s ease-in-out infinite;
}

/* ══════════════════════════════════════
   FEATURES BAR
══════════════════════════════════════ */
.feature-icon {
  width: 64px;
  height: 64px;
  background: #FFF3E8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-4px);
  background: #FFE4CC;
}

.feature-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   SOBRE NÓS
══════════════════════════════════════ */
.sobre-img-wrap {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.sobre-badge {
  position: absolute;
  bottom: -24px;
  right: -16px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  min-width: 180px;
}

#sobre .col-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

#sobre .col-reveal.delay {
  transition-delay: 0.2s;
}

#sobre .col-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   NOSSOS SERVIÇOS
══════════════════════════════════════ */
.servico-img {
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.servico-img img {
  transition: transform 0.6s ease;
}

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

.servico-row {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.servico-row.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   OUTROS SERVIÇOS — CARDS
══════════════════════════════════════ */
.outro-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease,
    background 0.3s ease, box-shadow 0.3s ease,
    translate 0.3s ease;
}

.outro-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   PORTFÓLIO — GALLERY
══════════════════════════════════════ */
.gallery-item {
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-img {
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.85) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* Wrapper imagem + meta */
#lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 88vw;
}

#lightbox-img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.18s ease;
  display: block;
  object-fit: contain;
}

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

/* Barra de info: título + contador */
#lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
}

#lightbox-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

#lightbox-counter {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Botão fechar */
#lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 1;
  transition: color 0.2s;
  background: none;
  border: none;
  line-height: 1;
  z-index: 10;
}

#lightbox-close:hover {
  color: #F97316;
}

/* Setas de navegação */
#lightbox-prev,
#lightbox-next {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(249, 115, 22, 0.5);
  border-color: #F97316;
  transform: scale(1.08);
}

/* Dots indicadores de posição */
#lightbox-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 2px;
}

.lb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.25s, transform 0.25s;
}

.lb-dot.active {
  background: #F97316;
  transform: scale(1.3);
}

/* ══════════════════════════════════════
   CONTACTOS
══════════════════════════════════════ */
.contact-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.contact-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  font-family: 'Barlow', sans-serif;
}

.contact-input::placeholder {
  color: #9ca3af;
}

.contact-input:focus {
  border-color: #F97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F97316;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
  font-family: 'Barlow', sans-serif;
}

.contact-btn:hover {
  background: #ea6c0a;
  transform: scale(1.04);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.social-icon-btn:hover {
  background: #F97316;
  color: #fff;
  transform: translateY(-2px);
}

/* Scroll reveal */
.contact-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-reveal-delay {
  transition-delay: 0.18s;
}

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

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #F97316;
}

.footer-social {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.footer-social:hover {
  color: #F97316;
  transform: translateY(-2px);
}