/* ==========================================================================
   ExpoMetal 2026 — estilos próprios
   Complementa css/tailwind.css (utilitários compilados do Tailwind).
   Carregue SEMPRE depois de tailwind.css.
   ========================================================================== */

/* ---------- Base ---------- */
html.has-modal {
  overflow: hidden;
}

/* Compensa o header fixo ao rolar para âncoras */
section[id] {
  scroll-margin-top: 4rem;
}

/* ---------- Imagens de fundo (antes inline no HTML) ---------- */
.hero-bg {
  background-image: url('../img/expometal-hero.webp');
}

.cta-bg {
  background-image: url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?w=1920&q=80');
}

.bg-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.3) 1px, transparent 0);
  background-size: 40px 40px;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------- Pequenos ajustes de componentes ---------- */
.logo-zoom {
  padding: 0;
  transform: scale(2.5);
}

.map-frame {
  border: 0;
  min-height: 400px;
}

.marquee-track {
  will-change: transform;
}

.marquee-card {
  width: 220px;
  height: 120px;
}

/* Bloco "Encontro com a Petrobras" */
.petro-card {
  padding: 2rem;
}

.petro-logo {
  padding: 0.75rem;
}

.petro-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

@media (min-width: 640px) {
  .logo-groups {
    gap: 4rem;
  }
}

@media (min-width: 768px) {
  .petro-head {
    flex-direction: row;
    align-items: flex-start;
  }

  .petro-logo-img {
    height: 5rem;
  }

  .petro-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .petro-card {
    padding: 3rem;
  }
}

/* ---------- Indicador de rolagem do hero ---------- */
@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-dot {
  animation: scroll-dot 1.5s ease-in-out infinite;
}

/* ---------- Revelar ao rolar (js/main.js adiciona .reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal--fade {
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Menu mobile ---------- */
.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-menu__inner {
  overflow: hidden;
  min-height: 0;
}

.mobile-menu.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

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

/* ---------- Modais ---------- */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal[hidden] {
  display: none;
}

.modal--dark {
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.modal--light {
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal__panel--dark {
  max-width: 32rem;
  padding: 1.5rem;
  text-align: center;
  background: #0d1f1b;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 1.5rem;
}

.modal__panel--light {
  max-width: 28rem;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
}

@media (min-width: 640px) {
  .modal__panel--dark {
    padding: 2rem;
  }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  color: #94a3b8;
  border-radius: 0.75rem;
  transition: color 0.15s, background-color 0.15s;
}

.modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal__close--light {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 9999px;
}

.modal__close--light:hover {
  color: #6b7280;
  background: #e5e7eb;
}

.modal__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

.modal__tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 9999px;
}

.modal__title {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}

.modal__text {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #cbd5e1;
}

.modal__note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  text-align: left;
  color: #fff;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 1rem;
}

.modal__note svg {
  color: #34d399;
}

.modal__note span {
  font-weight: 500;
}

.modal__btn-primary,
.modal__btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border-radius: 0.75rem;
  transition: all 0.15s;
}

.modal__btn-primary {
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #10b981;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.modal__btn-primary:hover {
  background: #34d399;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.25);
}

.modal__btn-secondary {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal__btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 640px) {
  .modal__title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .modal__text,
  .modal__btn-primary {
    font-size: 1rem;
  }
}

/* ---------- Acessibilidade: respeitar "reduzir movimento" ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .mobile-menu {
    transition: none;
  }

  .scroll-dot,
  .animate-marquee {
    animation: none;
  }
}
