/* ==========================================================
   NEW HERO + NAVBAR  —  G-Mesh · Blockline
   Design: editorial dark industrial, vermelho #e11d2e
   ========================================================== */

/* ── CSS vars ──────────────────────────────────────── */
:root {
  --red:   #e11d2e;
  --black: #0b0b0b;
  --off:   #111111;
  --gray:  #1c1c1c;
  --light: #f4f3f0;
  --muted: rgba(255,255,255,0.52);
  --nav-h: 76px;
}

/* ── Reset / base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html.gm-menu-open,
body.gm-menu-open {
  overflow: hidden;
}

body.gm-menu-open {
  position: fixed;
  width: 100%;
  inset: 0;
  touch-action: none;
}

body.gm-menu-open .gm-nav {
  background: rgba(11,11,11,0.94);
  backdrop-filter: blur(18px) saturate(1.4);
}

/* ── ════════════════════════════════════════════════
       NAVBAR
   ════════════════════════════════════════════════ */

/* Hide old navbar entirely */
.theme-main-menu.menu-style-two.gap-two.menu-overlay {
  display: none !important;
}

/* Hide old sidebar offcanvas */
.offcanvas.sidebar-nav {
  display: none !important;
}

/* ── New navbar ──────────────────────────────────── */
.gm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.gm-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.gm-nav.scrolled {
  background: rgba(11,11,11,0.94);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}

.gm-nav.scrolled::after {
  opacity: 0;
}

.gm-nav__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

/* Logo */
.gm-nav__logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.gm-nav__logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Nav links */
.gm-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gm-nav__links li a {
  display: block;
  padding: 8px 18px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.gm-nav__links li a:hover {
  color: #fff;
}

/* Active dot */
.gm-nav__links li a.active {
  color: #fff;
  position: relative;
}

/* Right actions */
.gm-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.gm-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gm-nav__cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff;
}

/* Hamburger (mobile) */
.gm-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.gm-nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.gm-nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gm-nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.gm-nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.gm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 420px);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  background: rgba(11,11,11,0.98);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: -24px 0 60px rgba(0,0,0,0.35);
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 24px calc(env(safe-area-inset-bottom, 0px) + 28px);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.25s ease, visibility 0.25s ease;
}

.gm-drawer.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gm-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.gm-drawer__logo img {
  height: 34px;
  filter: brightness(0) invert(1);
}

.gm-drawer__close {
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  width: 40px; height: 40px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.gm-drawer__close:hover { background: rgba(255,255,255,0.1); }

.gm-drawer__links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gm-drawer__links li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.gm-drawer__links li a {
  display: block;
  padding: 18px 0;
  color: rgba(255,255,255,0.8);
  font-family: 'Clash Display', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.gm-drawer__links li a:hover {
  color: #fff;
  padding-left: 8px;
}

.gm-drawer__footer {
  margin-top: auto;
}

.gm-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.gm-drawer__cta:hover { opacity: 0.88; color: #fff; }

/* ── ════════════════════════════════════════════════
       HERO
   ════════════════════════════════════════════════ */

.gm-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--black);
}

/* Background image */
.gm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gm-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}

/* Overlays */
.gm-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.22) 40%, rgba(0,0,0,0.75) 80%, rgba(0,0,0,0.92) 100%),
    linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 60%);
}

/* Red accent line on the left */
.gm-hero__redline {
  position: absolute;
  left: 32px;
  top: var(--nav-h);
  bottom: 0;
  width: 3px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 0%, var(--red) 30%, var(--red) 70%, transparent 100%);
  opacity: 0;
  animation: fadeIn 1s 0.6s ease forwards;
}

/* Noise texture overlay */
.gm-hero__noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Content wrapper */
.gm-hero__content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 80px) 56px 72px;
}

/* Top badge */
.gm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.82);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  width: fit-content;
  opacity: 0;
  transform: translateY(12px);
  animation: slideUp 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gm-hero__badge-dot {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}

/* Main heading */
.gm-hero__heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(72px, 12vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gm-hero__heading img {
  display: block;
  width: min(100%, 680px);
  height: auto;
  filter: brightness(0) invert(1);
}

.gm-hero__heading em {
  font-style: normal;
  color: var(--light);
}

/* Bottom row */
.gm-hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 40px;
  opacity: 0;
  transform: translateY(16px);
  animation: slideUp 0.8s 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gm-hero__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 0 28px;
}

/* Tags row */
.gm-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0; margin: 0 0 32px;
}

.gm-hero__tags li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.82);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
}

/* CTA group */
.gm-hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gm-hero__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gm-hero__btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  color: #fff;
}

.gm-hero__btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.88);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, color 0.2s ease;
}

.gm-hero__btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* Right side: stat card */
.gm-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

.gm-stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 18px 22px;
  color: #fff;
}

.gm-stat-card__val {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.gm-stat-card__val span {
  color: var(--red);
}

.gm-stat-card__lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.58);
  font-weight: 400;
  line-height: 1.4;
}

/* Scroll indicator */
.gm-hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s 1.4s ease forwards;
  text-decoration: none;
}

.gm-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ── Animations ─────────────────────────────────── */
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 1199px) {
  .gm-hero__content {
    padding-left: 40px;
    padding-right: 40px;
  }
  .gm-hero__bottom {
    grid-template-columns: 1fr;
  }
  .gm-hero__stats {
    flex-direction: row;
    min-width: 0;
  }
  .gm-stat-card {
    flex: 1;
  }
}

@media (max-width: 991px) {
  .gm-nav__links { display: none; }
  .gm-nav__cta { display: none; }
  .gm-nav__burger { display: flex; }

  .gm-hero__content {
    padding: calc(var(--nav-h) + 60px) 28px 60px;
  }

  .gm-hero__redline {
    left: 8px;
  }
}

@media (max-width: 639px) {
  .gm-hero__stats {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  .gm-stat-card {
    flex: none;
  }
  .gm-hero__content {
    padding: calc(var(--nav-h) + 40px) 20px 48px;
  }
  .gm-hero__cta-group {
    flex-direction: column;
  }
  .gm-hero__btn-primary,
  .gm-hero__btn-ghost {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 991px) {
  .gm-nav {
    padding-left: 18px;
    padding-right: 18px;
  }
  .gm-nav__inner {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }
  .gm-nav__logo img {
    height: 32px;
    max-width: min(180px, 48vw);
    object-fit: contain;
  }
}

@media (max-width: 575px) {
  .gm-drawer {
    width: 100vw;
    padding-left: 18px;
    padding-right: 18px;
  }
  .gm-drawer__head {
    margin-bottom: 28px;
  }
  .gm-drawer__logo img {
    height: 30px;
    max-width: min(170px, 52vw);
    object-fit: contain;
  }
  .gm-drawer__close {
    width: 38px;
    height: 38px;
  }
  .gm-drawer__links li a {
    padding: 16px 0;
    line-height: 1.15;
  }
  .gm-drawer__cta {
    padding: 16px;
  }
}

@media (max-width: 767px) {
  .gm-hero__heading {
    margin: 0 0 24px;
  }

  .gm-hero__heading img {
    width: min(100%, 320px);
  }
}
