html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Roboto Mono', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: #000;
}

/* Use CSS Grid on body so header row (56px) is reserved without margins */
body {
  display: grid;
  grid-template-rows: 56px 1fr;
  min-height: 100vh;
}

/* Topbar: 56px height, black background, white Roboto Mono text */
.topbar {
  position: sticky; /* stays visible but remains in flow (first grid row) */
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #000;
  color: #fff;
  z-index: 10;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.topbar .brand {
  font-weight: 600;
  letter-spacing: 0.04em;
}
.topbar-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.topbar-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

/* Prevent the fixed topbar from covering the banners - layout handled below */

/* Hamburger button - hidden on desktop */
.topbar-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.topbar-toggle .bars {
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
}
.topbar-toggle .bars::before,
.topbar-toggle .bars::after{
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
}
.topbar-toggle .bars::before{ top: -6px; }
.topbar-toggle .bars::after{ top: 6px; }

/* Animated X when open */
.topbar.open .topbar-toggle .bars{
  background: transparent;
}
.topbar.open .topbar-toggle .bars::before{
  transform: translateY(6px) rotate(45deg);
}
.topbar.open .topbar-toggle .bars::after{
  transform: translateY(-6px) rotate(-45deg);
}
.topbar-toggle .bars::before,
.topbar-toggle .bars::after,
.topbar-toggle .bars {
  transition: transform 220ms ease, background 220ms ease;
}

/* Body lock when menu is open to prevent background scrolling */
.body-locked { 
  overflow: hidden !important;
  touch-action: none;
}

/* Mobile behavior */
@media (max-width: 767px){
  .topbar-inner { padding: 0 12px; }
  .topbar .brand { font-size: 0.95rem; }
  .topbar-menu { 
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    background: #000;
    flex-direction: column;
    gap: 0;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 240ms ease;
    overflow: hidden;
  }
  .topbar-menu li { padding: 12px 16px; }
  .topbar-menu a { display: block; }
  .topbar-toggle { display: flex; }
  /* Show menu when topbar has .open */
  .topbar.open .topbar-menu{ transform: scaleY(1); }
  /* banner layout handled globally (no extra mobile padding needed) */
}

.banner-container {
  /* fill the grid's second row (remaining viewport below topbar) */
  height: 100%;
  width: 100vw;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  flex-direction: column;
}

.banner.active {
  z-index: 1;
  opacity: 1;
}

.banner-inner {
  flex: 1;
  min-height: 0; /* importante para flex funcionar corretamente */
  display: flex;
  flex-direction: column;
}

.banner-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1;
  min-height: 0; /* importante para evitar overflow */
}

.scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
  font-size:.85rem;
  color: rgba(255,255,255,0.9);
}

.mouse {
  width:28px;
  height:44px;
  border-radius:16px;
  border:2px solid rgba(255,255,255,0.85);
  display:block;
  position:relative;
  box-sizing:border-box;
}

.mouse::after {
  content:"";
  position:absolute;
  top:8px;
  left:50%;
  width:4px;
  height:6px;
  border-radius:2px;
  transform:translateX(-50%);
  background:rgba(255,255,255,0.9);
  animation:scroll 1.6s infinite;
}

@keyframes scroll {
  0% { opacity:0; transform:translate(-50%, -2px); }
  40% { opacity:1; transform:translate(-50%, 8px); }
  100% { opacity:0; transform:translate(-50%, 18px); }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 4;
  width: 48px;
  height: 48px;
  background-color: #fff;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 24px; height: 24px; fill: #000; }
