/* ======== MENU HAMBÚRGUER FIXO E INTERATIVO ======== */

:root {
  --nav-height: 64px;
  --nav-bg: #5F9EA0;
  --accent: #FF4500;
  --menu-bg: #696969;
}

/* Layout geral */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #222;
  scroll-behavior: smooth;
}

/* Barra superior fixa */
.ns-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.ns-nav h1 {
  color: white;
  font-size: 20px;
  margin: 0;
}

/* Checkbox oculto que controla o estado */
#menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Botão (três barras) */
.ns-menu-btn {
  position: fixed;
  left: 15px;
  top: 18px;
  width: 35px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.ns-bar {
  width: 100%;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Animação do X */
#menu-toggle:checked + .ns-menu-btn .ns-bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
#menu-toggle:checked + .ns-menu-btn .ns-bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .ns-menu-btn .ns-bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu lateral fixo */
.ns-menu-content {
  position: fixed;
  top: var(--nav-height);
  left: 15px;
  background: var(--menu-bg);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1050;
}

/* Abre o menu quando checked */
#menu-toggle:checked ~ .ns-menu-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Itens do menu */
.ns-item {
  display: block;
  padding: 12px 16px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.ns-item:hover {
  background: var(--accent);
}

/* Overlay escuro que fecha o menu */
.ns-overlay {
  display: none;
}

#menu-toggle:checked ~ .ns-overlay {
  display: block;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
}

section {
    padding: 65px 25px;
    text-align: center;
}

section h2 {
    font-size: 2em;
    color: #2c3e50;
}

section h3 {
    font-size: 1.8em;
    color: #2c3e50;
}

section p {
    font-size: 1.3em;
    color: #000000;
    max-width: 750px;
    margin: auto;
}

/* ======== RESTO DO SITE ======== */

.hero-content {
  padding: 60px 30px;
  text-align: center;
}

.btn {
  display: inline-block;
  margin: 10px 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin: 5px;
}

.btn-chartreuse { background: #7FFF00; color: black; }
.btn-lightskyblue { background: #87CEFA; color: black; }
.btn-dodgerblue { background: #1E90FF; color: black; }

.btn:hover {
    transform: scale(1.05);
    opacity: 1.9;
}

.btn i {
    margin-rigth: 8px;
}

footer {
    background: #FFFFFF;
    color: black;
    padding: 20px;
    text-align: center;
}

/* === VÍDEO DE FUNDO DENTRO DA SEÇÃO LAR ===*/
html, body {
  margin: 0;
  padding: 0;
  height: auto; /* permite que o body cresça conforme o conteúdo */
  overflow-x: hidden;
  overflow-y: auto; /* ativa a rolagem vertical */
}

/* ======== SEÇÃO LAR (VERSÃO FINAL AJUSTADA) ======== */
#lar {
  position: relative;
    background: url("c752e372-809c-47aa-8f04-78ca4ee7ed3b.jpeg") center center no-repeat fixed;
    background-size: cover; /* Preenche toda a tela (sem barras pretas) */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}


#lar .hero-content h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
}

#lar .hero-content h2 {
    font-size: 2.1em;
    color: #FFFFFF
}

#lar .hero-content p {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 700px;
  margin: auto;
}

/* ======== GARANTE QUE RESTO DO SITE ROLE ======== */
html, body {
  margin: 0;
  padding: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Resto do site aparece sobre o vídeo */
main, section, footer {
  position: relative;
  z-index: 2;
  background: #fff;
}

/* ======== BOTÃO DE TRÊS BARRAS (MENU HAMBÚRGUER) ======== */
.ns-menu-btn {
  position: fixed;
  top: 20px;        /* distância do topo */
  right: 20px;      /* distância da direita */
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6); /* leve fundo transparente */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
}

.ns-bar {
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background-color: white; /* cor das barras */
  transition: 0.3s;
}
