/* =================== ROOT VARS =================== */
:root{
  --bg: #08090b;
  --text: #c2b896;                 /* cor do conteúdo (print) */
  --muted:#d9d9d9;
  --gold: #f5c846;
  --top-gap: 80px;                 /* respiro entre logo/menu/conteúdo */
  --gold-grad: linear-gradient(90deg, #f5c846 0%, #dead2d 100%);
  --glow: 0 0 12px rgba(230,178,26,.55);
}

/* =================== BASE =================== */
*{ box-sizing: border-box }

html{ scroll-behavior: smooth; }   /* rolagem suave em âncoras */

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins","Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  /* sem display:flex e sem min-height, para NÃO forçar tela cheia */
}

/* =================== HEADER =================== */
.site-header{ padding:0; }
.site-header .wrap{
  max-width:1600px;
  margin:0 auto;
  padding:24px;
  position:relative;
  display:flex;
  justify-content:center;   /* logo centralizado */
  align-items:center;
}
.logo{ width:200px; }

/* Hamburguer (mostra no mobile) */
.menu-toggle{
  position:absolute;
  right:24px; top:50%;
  transform:translateY(-50%);
  width:44px; height:44px;
  background:transparent;
  border:1px solid var(--gold);
  border-radius:10px;
  display:none;
  align-items:center; justify-content:center;
  cursor:pointer;
}
.menu-toggle span{
  display:block; width:20px; height:2px; background:var(--gold); margin:3px 0;
}

/* =================== WRAPPER & LAYOUT =================== */
.container-1600{ width:100%; }
.layout{
  max-width:1600px;
  margin:0 auto;
  padding:0 24px;
  display:flex;                  /* mantém menu e conteúdo lado a lado */
  gap:32px;
  padding-top: var(--top-gap);   /* alinha com topo/LOGO */
}

/* =================== SIDEBAR =================== */
.sidebar{
  width:300px;
  position:sticky;
  top: var(--top-gap);
  height: fit-content;
  background: var(--bg);
  z-index:20;
}
.menu{ list-style:none; margin:0; padding:0; }
.menu li{ margin-bottom:14px; }

.menu-link{
  display:flex; align-items:center; gap:14px;
  padding:20px 18px;
  text-decoration:none;
  color: var(--text);
  border:1px solid var(--gold);
  border-radius:12px;
  transition:box-shadow .25s, color .25s, transform .1s, background .25s, border-color .25s;
  font-size:16px; font-weight:500;
}
.menu-link .icon{ width:32px; height:32px; flex-shrink:0; }
.menu-link:hover{ box-shadow:var(--glow); color:var(--gold); }
.menu-link.is-active{ color:var(--gold); box-shadow:var(--glow); transform:translateY(-1px); }

/* CTA "Back to the site" com degradê */
.menu-cta .menu-link{
  background: var(--gold-grad);
  color:#111;
  border-color: transparent;
  text-align:center;
  justify-content:center;
  font-weight:700;
}
.menu-cta .menu-link:hover{
  filter: brightness(1.05);
  color:#111;
  box-shadow: 0 0 18px rgba(240,198,70,.35);
}

/* =================== CONTENT =================== */
.content{ flex:1; }

/* Coluna de leitura + tipografia do print */
.wp-section{
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 20px;
  line-height: 1.8;
  letter-spacing: 0.2px;
  scroll-margin-top: 120px; /* garante que o título apareça no topo ao clicar no menu */
  display:none;
}
.wp-section.active{ display:block; }

.wp-section h1,
.wp-section h2{
  color: var(--gold);
  font-weight:600;
  font-size:28px;
  margin:0 0 24px;
}

.wp-section p{
  color: var(--text);       /* #c2b896 */
  font-size:20px;
  margin:0 0 28px;
}

/* =================== FOOTER =================== */
footer{
  width:100%;
  background:#000;
  color:#aaa;
  text-align:center;
  padding:18px 10px;
  font-size:14px;
  margin-top:40px;          /* espaçamento natural; sem empurrar pé da página */
}

/* =================== RESPONSIVO =================== */
@media (max-width: 1080px){
  .menu-toggle{ display:flex; }
  .layout{ gap:0; padding-top:24px; }
  .wp-section{ scroll-margin-top: 90px; }

  .sidebar{
    position:fixed;
    top:0; right:-100%;
    height:100vh;
    width:320px;
    padding:90px 20px 24px;
    background:rgba(8,9,11,.98);
    box-shadow:-12px 0 24px rgba(0,0,0,.4);
    transition:right .25s ease;
  }
  .sidebar.open{ right:0; }

  .menu-link{ padding:18px 16px; }
  .menu-link .icon{ width:28px; height:28px; }
}

@media (max-width: 520px){
  .logo{ width:160px; }
}
