/* ================= HERO ================= */
.hero-advanced{
  min-height:900px;
  height:100vh;
  position:relative;
  overflow:hidden;
  background:#092D69;
  display:flex;
  align-items:center;
}

/* ================= SLIDES ================= */
.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  z-index:1;
  overflow:hidden;
  transition:opacity 1.2s ease;

  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.55) 30%,
    rgba(0,0,0,.85) 55%,
    rgba(0,0,0,1) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.55) 30%,
    rgba(0,0,0,.85) 55%,
    rgba(0,0,0,1) 100%
  );
}

.hero-slide.active{ opacity:1; }

/* VIDEO */
.hero-slide video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.06);
  transition:transform 2.2s cubic-bezier(.22,.61,.36,1);
}
.hero-slide.active video{ transform:scale(1); }

/* OVERLAY */
.hero-slide::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(
    to right,
    rgba(9,45,105,.05) 0%,
    rgba(9,45,105,.35) 45%,
    rgba(9,45,105,.70) 75%,
    rgba(9,45,105,.85) 100%
  );
}

/* ================= SHAPES ================= */
.shape{
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
  opacity:.5;
  z-index:2;
}
.shape-1{
  width:420px;
  height:420px;
  background:#48C5F3;
  top:10%;
  left:-120px;
}
.shape-2{
  width:500px;
  height:500px;
  background:#ffffff;
  bottom:-200px;
  right:-150px;
}

/* ================= CONTENT (BASE) ================= */
.hero-container{
  position:relative;
  z-index:3;
  width:90%;
  max-width:1300px; /* desktop pode ser mais largo, mas vamos alinhar pelo 90% */
  margin:0 auto;
  display:flex;
  align-items:center;
  height:100%;
}

.hero-text{
  max-width:720px;
  color:#fff;
}

/* ================= ANIMAÇÃO ================= */
.hero-badge,
.hero-title,
.hero-text p,
.hero-actions{
  opacity:0;
  transform:translateY(24px);
}

.hero-slide.active ~ .hero-container .hero-badge{
  animation:heroFadeUp .8s ease forwards .4s;
}
.hero-slide.active ~ .hero-container .hero-title{
  animation:heroFadeUp .9s ease forwards .55s;
}
.hero-slide.active ~ .hero-container p{
  animation:heroFadeUp 1s ease forwards .75s;
}
.hero-slide.active ~ .hero-container .hero-actions{
  animation:heroFadeUp 1s ease forwards .95s;
}

@keyframes heroFadeUp{
  to{ opacity:1; transform:translateY(0); }
}

/* BADGE */
.hero-badge{
  display:inline-flex;
  padding:10px 18px;
  border-radius:30px;
  background:rgba(255,255,255,.15);
  margin-bottom:26px;
  font-weight:600;
}

/* TITLE */
.hero-title{
  font-weight:900;
  line-height:1.1;
  font-size:clamp(42px,4.5vw,64px);
  display:flex;
  flex-direction:column;
  gap:6px;
}

.hero-title .line-1,
.hero-title .line-2{
  display:block;
  white-space:nowrap; /* desktop não quebra */
}

.hero-title .highlight{ color:#48C5F3; }

/* TEXT */
.hero-text p{
  font-size:18px;
  line-height:1.7;
  margin:26px 0 36px;
}

/* BUTTONS */
.hero-actions{
  display:flex;
  gap:20px;
}

.btn-main{
  background:#48C5F3;
  color:#092D69;
  padding:18px 36px;
  border-radius:50px;
  font-weight:800;
  text-decoration:none;
}
.btn-outline{
  border:2px solid #fff;
  color:#fff;
  padding:18px 36px;
  border-radius:50px;
  font-weight:700;
  text-decoration:none;
}

/* =========================================================
   ✅ DESKTOP ALIGN (mesmo alinhamento das outras seções)
   - alinha à esquerda e usa max-width:90% como padrão do site
========================================================= */
@media (min-width: 769px){
  .hero-container{
    width:100%;
    max-width:90%;          /* ✅ igual header/sections */
    margin:0 auto;
    justify-content:flex-start; /* ✅ esquerda */
    text-align:left;            /* ✅ esquerda */
  }

  .hero-text{
    margin:0;              /* ✅ remove centralização */
    max-width:720px;
  }

  .hero-actions{
    justify-content:flex-start;
  }
}

/* =======================================================
   🔥 MOBILE ULTRA RESPONSIVO (mantém seu comportamento)
======================================================= */
@media (max-width:768px){

  /* altura maior para preencher bem */
  .hero-advanced{
    min-height:920px;
    height:auto;
    padding-top:140px;
    padding-bottom:90px;
  }

  /* remove máscara lateral (mobile precisa clarear) */
  .hero-slide{
    -webkit-mask-image:none;
    mask-image:none;
  }

  .hero-slide::after{
    background:linear-gradient(
      to bottom,
      rgba(9,45,105,.35),
      rgba(9,45,105,.85)
    );
  }

  /* CENTRALIZA TUDO */
  .hero-container{
    justify-content:center;
    text-align:center;
    max-width:90%;
  }

  .hero-text{
    margin:0 auto;
    max-width:520px;
  }

  .hero-badge{ margin-bottom:20px; }

  .hero-title{
    font-size:clamp(34px,8vw,44px);
  }

  /* no mobile pode quebrar linha */
  .hero-title .line-1,
  .hero-title .line-2{
    white-space:normal;
  }

  .hero-text p{
    font-size:16px;
    margin:20px 0 28px;
  }

  /* BOTÕES CENTRALIZADOS */
  .hero-actions{
    flex-direction:column;
    align-items:center;
    gap:14px;
  }

  .btn-main,
  .btn-outline{
    width:100%;
    max-width:320px;
    text-align:center;
    padding:16px 24px;
  }

  /* shapes menos agressivos */
  .shape{
    opacity:.25;
    filter:blur(110px);
  }
}
