/* =============================================
   FESPA Brasil 2027 — Custom Styles
   ============================================= */

html {
  scroll-behavior: smooth;
}

/* Hero decorative radial glows */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 65% 45%, rgba(0, 192, 199, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 15% 80%, rgba(229, 0, 75, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* Hero background photo */
.hero-bg-photo {
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
}

/* Nav underline hover effect */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

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

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

/* Mobile menu */
#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: block;
}

/* Image grid overlay cards */
.img-card {
  position: relative;
  overflow: hidden;
}

.img-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, transparent 55%);
  transition: opacity 0.3s ease;
}

.img-card:hover::after {
  opacity: 0.6;
}

.img-card img {
  transition: transform 0.45s ease;
}

.img-card:hover img {
  transform: scale(1.05);
}

/* Animated entrance (triggered via JS IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stats counter block */
.stat-block {
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  padding-left: 1.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #06101E;
}

::-webkit-scrollbar-thumb {
  background: #E5004B;
  border-radius: 2px;
}

/* Diagonal divider helper */
.diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.diagonal-top {
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
}

/* Focus ring for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #00C0C7;
  outline-offset: 3px;
}

/* Button pulse on CTA */
.btn-pulse {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(229, 0, 75, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(229, 0, 75, 0);
  }
}

/* Skeleton placeholder for images */
.img-placeholder {
  background: linear-gradient(90deg, #1a2b3c 25%, #1f3347 50%, #1a2b3c 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Responsive hero text clamp */
.hero-title {
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.9;
}

/* Teal accent line */
.accent-line {
  width: 48px;
  height: 4px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(3rem, 16vw, 6rem);
  }
}

/* =============================================
   INNER PAGE HERO BAND (pages beyond index)
   ============================================= */

/* Colorful gradient band used on all inner pages */
.page-hero-band {
  background: linear-gradient(120deg, #E5004B 0%, #9B2380 30%, #5B35D5 60%, #00C0C7 100%);
  position: relative;
  overflow: hidden;
}

/* .page-hero-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
} */

/* Foundation page green hero */
.foundation-hero {
  background: linear-gradient(135deg, #007A3D 0%, #00A651 50%, #00C060 100%);
}

.foundation-hero-dark {
  background: linear-gradient(135deg, #005A2E 0%, #007A3D 100%);
}

/* Horizontal bar chart */
.bar-track {
  background: #E5E7EB;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease;
}

/* Exhibitor card */
.exhibitor-card {
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 1.25rem;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.exhibitor-card:hover {
  border-color: #00C0C7;
  box-shadow: 0 4px 16px rgba(0, 192, 199, 0.12);
}

/* News grid card */
.news-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* Transport option card */
.transport-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.25s ease;
}

.transport-card:hover {
  border-color: #E5004B;
}

/* Foundation yellow accent card */
.foundation-card {
  background: #FFDE00;
  border-radius: 10px;
  padding: 1.5rem;
}

/* Testimonial quote */
.testimonial-card {
  border-left: 4px solid #00A651;
  padding-left: 1.5rem;
  font-style: italic;
}

/* World events list card */
.world-event-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.world-event-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Pink img placeholder for light pages */
.img-placeholder-light {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* =============================================
   NAV DROPDOWNS — simple menu & mega menu
   ============================================= */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

button.dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
}

.dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.dropdown.open .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.85rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}

.dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-right .dropdown-panel {
  left: auto;
  right: 0;
}

/* Simple dropdown — up to 5 links */
.dropdown-simple .dropdown-panel {
  width: 230px;
  padding: 0.5rem;
}

.dropdown-simple .dropdown-panel a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-simple .dropdown-panel a:hover {
  background: #F9FAFB;
  color: #E5004B;
}

/* Mega menu — wide multi-column panel, anchored to the nav's inner container */
.mega-menu {
  position: static;
}

.mega-menu .dropdown-panel {
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: min(880px, 100%);
  padding: 2.25rem 2.5rem;
}

.mega-menu .dropdown-panel a {
  display: block;
  padding: 0.35rem 0;
  color: #4B5563;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.mega-menu .dropdown-panel a:hover {
  color: #E5004B;
}

.mega-col-title {
  color: #0A1628;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.9rem;
}

/* Mobile menu accordion — same links as the desktop dropdown/mega menu */
.mobile-dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.mobile-dropdown.open .mobile-dropdown-toggle svg {
  transform: rotate(180deg);
}

.mobile-dropdown-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-dropdown.open .mobile-dropdown-panel {
  max-height: 720px;
}

.mobile-dropdown-panel a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  color: #9CA3AF;
  font-size: 0.83rem;
  font-weight: 600;
}

.mobile-dropdown-panel a:hover {
  color: #E5004B;
}

.mobile-col-title {
  color: #6B7280;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-left: 1rem;
  margin: 0.75rem 0 0.1rem;
}

/* =============================================
   MODAL — request forms (e.g. "Quero Expor")
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay .modal-panel {
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-field {
  display: block;
  width: 100%;
}

.modal-field input,
.modal-field select {
  width: 100%;
  border: 1px solid #E5E7EB;
  color: #0A1628;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.modal-field input::placeholder {
  color: #9CA3AF;
}

.modal-field input:focus,
.modal-field select:focus {
  outline: none;
  border-color: #E5004B;
}

.modal-field label {
  display: block;
  color: #0A1628;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* =============================================
   EVENT SUB-BRAND HERO BACKGROUNDS (Fábrica de Camisetas,
   FESPA Experts, Ilha da Sublimação, Print Live, Wrap Festival)
   ============================================= */
.event-hero {
  position: relative;
  background-color: #0A0810;
  overflow: hidden;
}

.event-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.event-hero--camisetas::before {
  background:
    radial-gradient(ellipse 65% 70% at 15% 10%, rgba(155, 35, 128, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 85% 90%, rgba(229, 0, 75, 0.25) 0%, transparent 60%),
    linear-gradient(160deg, #1a0b22 0%, #0A0810 55%, #120a08 100%);
}

.event-hero--experts::before {
  background:
    radial-gradient(ellipse 60% 65% at 10% 15%, rgba(147, 51, 234, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 90% 15%, rgba(249, 115, 22, 0.25) 0%, transparent 60%),
    linear-gradient(160deg, #1a0b22 0%, #0A0810 60%, #0A0810 100%);
}

.event-hero--sublimacao::before {
  background:
    radial-gradient(ellipse 70% 70% at 20% 10%, rgba(234, 88, 12, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 90% 95%, rgba(229, 0, 75, 0.3) 0%, transparent 55%),
    linear-gradient(160deg, #2b0f08 0%, #0A0810 55%, #0A0810 100%);
}

.event-hero--printlive::before {
  background:
    radial-gradient(ellipse 60% 70% at 20% 15%, rgba(147, 51, 234, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 55% at 90% 85%, rgba(229, 0, 75, 0.3) 0%, transparent 60%),
    linear-gradient(160deg, #150a24 0%, #0A0810 60%, #0A0810 100%);
}

.event-hero--wrap::before {
  background:
    radial-gradient(ellipse 55% 65% at 12% 20%, rgba(219, 39, 119, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 65% at 88% 10%, rgba(37, 99, 235, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 60% 90%, rgba(6, 182, 212, 0.25) 0%, transparent 60%),
    linear-gradient(160deg, #0b0a1f 0%, #0A0810 55%, #08131a 100%);
}

/* Subtle grid overlay used on some dark hero/content sections */
.grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* =============================================
   SCHEDULE / PROGRAMAÇÃO — day tabs
   ============================================= */
.day-tab {
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

.day-tab:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.day-tab.active {
  background: #E5004B;
  border-color: #E5004B;
  color: #fff;
}

.day-panel {
  display: none;
}

.day-panel.active {
  display: block;
}

/* Speaker avatar chip */
.avatar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.65rem 0.2rem 0.2rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.avatar-chip .dot {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  flex-shrink: 0;
}