/* HEADER ocupa a viewport e vira coluna */
header {
  background-image:
    linear-gradient(to bottom, #00000000, #030f35cc),
    /* filtro de cor */
    url('/public/bg-header.png');
  background-size: cover;
  background-position: center;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;           
  flex-direction: column;  
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

nav {
  display: flex;
  justify-content: center; 
  /* border-bottom: 1px solid #888888; */
  border-bottom: 1px solid transparent; /* define a espessura */
  border-image: linear-gradient(to right, #888888, transparent, #888888) 1;
  height: 90px;
  background-color: rgba(0, 0, 0, 0.219);
}

.nav-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between; 
  width: 100%;
  max-width: 1500px;
  padding-inline: 10%;           
}

nav img {
  width: 200px;
}

.nav-list {
  display: flex;
  flex-direction: row;
  gap: 80px;
  list-style: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 15px;
  margin: 0; 
  padding: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* animação do menu mobile */
@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-list.open { display: flex; }

/* A seção hero ocupa TODO o espaço restante do header e alinha conteúdo no bottom */
.hero {
  flex: 1;                         /* ocupa o restante abaixo do nav */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: 1500px;              
  padding-inline: 10%;             
  padding-bottom: env(safe-area-inset-bottom, 16px); 
  margin: 0 auto;
  position: relative;
  
}

.hero-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 40px;
  justify-content: center;
}

.hero-text img {
  width: 360px;
  height: auto;
}

.hero-text h1 {
  font-size: 35px;
  font-weight: 500;
}

.hero-text b {
  font-size: 35px;
  font-weight: 700;
}
/* container da imagem */
.hero-image {
 z-index: 1;
 position: absolute;
  right: 0;
  bottom: 0;
  justify-self: right;
  align-self: flex-start;
  margin-right: 0 auto;
  width: 100%;
}

/* imagem responsiva: cresce com a viewport, sem estourar */
.hero-image img {
  display: block;
  width: clamp(760px, 45vw, 2060px); /* min 420px, ideal 38vw, máx 860px */
  height: auto;
}
/* ====== MOBILE ====== */
@media (max-width: 768px) {
  header {
    background-image:
      /* filtro de cor removido no mobile para priorizar a arte (ajuste se quiser) */
      url('/public/assets/heromobile.png');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    min-height: 100vh;
  }

  .menu-toggle { display: block; }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px;
    right: 0;
    background: #0a1830;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 12px;
    z-index: 10;
    transition: all 0.3s ease;
  }

  .nav-list.open {
    display: flex;
    animation: fadeInMenu 0.3s;
  }

  .nav-list li {
    margin: 12px 0;
    text-align: center;
  }

  .nav-list li a {
    color: #fff;
    font-size: 15px;
    padding: 5px 0;          
    display: block;
    border-radius: 6px;
    transition: background 0.2s;
  }

  .nav-list li a:hover { background: rgba(255, 255, 255, 0.08); }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: start;             /* conteúdo encostado no fundo da dobra */
    height: auto;
    padding-block: 0;
  }

  .hero-text {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    padding-top: 25px;
    font-size: 12px;
 
  }
    .hero-text-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }
  .hero-text h1 { font-size: 18px; }
  .hero-text b  { font-size: 18px; }

  .hero-image { display: none; }

  .hero-text img { width: 220px; }

  .button-acess { margin-top: 95% !important; }
}
