/* =========================================================
   COMPONENTES REUSÁVEIS
   ========================================================= */

/* NAVBAR (único componente para todas as páginas) */
.navbar{
  position:fixed;
  top:0; left:0;
  width:100%;
  background:var(--navy);
  padding:.6rem 2rem;
  box-shadow:var(--shadow-sm);
  z-index:1000;
}

/* Compensa o navbar fixo */
body{ padding-top: var(--nav-offset, 88px); }
.nav-container{
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  display:flex;
  align-items:center;
  font-weight:800;
  font-size:1.05rem;
  color:var(--offwhite);
}
.logo-texto a{
  display:inline-block;
  padding:10px;
  text-decoration:none;
  color:var(--offwhite);
}
.nav-menu{
  display:flex;
  list-style:none;
  gap:2rem;
}
.nav-menu a{
  display:inline-block;
  padding:10px;
  text-decoration:none;
  color:rgba(247,247,245,.92);
  font-weight:800;
  font-size:.8rem;
  letter-spacing:.02em;
  transition:opacity .2s ease, color .2s ease;
}
.nav-menu a:hover{ color:var(--offwhite); opacity:1; }

/* Idioma (switcher) */
.nav-lang{ display:flex; align-items:center; gap:.75rem; }
.nav-lang a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  font-size:.72rem;
  letter-spacing:.06em;
  color:rgba(247,247,245,.92);
  border:1px solid rgba(247,247,245,.18);
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
.nav-lang a:hover{
  transform:translateY(-1px);
  border-color:rgba(247,247,245,.35);
  background:rgba(247,247,245,.08);
}

/* ===== Navegação mobile (hambúrguer) ===== */
.nav-toggle{
  display:none;
  background:transparent;
  border:0;
  cursor:pointer;
  padding:10px;
  border-radius:10px;
}
.nav-toggle:focus-visible{
  outline:2px solid rgba(247,247,245,.55);
  outline-offset:2px;
}
.nav-toggle-bars{
  display:inline-block;
  width:22px;
  height:14px;
  position:relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background:rgba(247,247,245,.92);
  border-radius:999px;
}
.nav-toggle-bars::before{ top:2px; }
.nav-toggle-bars::after{ bottom:2px; }

/* Wrapper do menu (desktop) */
.site-nav{
  display:flex;
  align-items:center;
  gap:1.5rem;
}

/* MOBILE */
@media (max-width: 900px){
  .navbar{ padding:.6rem 1rem; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }

  /* Esconde o menu no topo e abre como drawer */
  .site-nav{
    position:fixed;
    top: var(--nav-offset, 72px);
    left:0; right:0;
    background:var(--navy);
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:.25rem 0 .75rem 0;
    border-top:1px solid rgba(247,247,245,.12);
    box-shadow:var(--shadow-sm);
    z-index:1001;
  }

  body.nav-open .site-nav{ display:flex; }

  .nav-menu{
    flex-direction:column;
    gap:0;
    padding:0;
    margin:0;
  }
  .nav-menu a{
    width:100%;
    padding:14px 16px;
    font-size:.95rem;
    border-bottom:1px solid rgba(247,247,245,.08);
  }

  .nav-lang{
    padding:12px 16px 0 16px;
    justify-content:flex-start;
  }
}


/* BOTÕES */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:15px 30px;
  border-radius:var(--radius-btn);
  font-size:.8rem;
  font-weight:800;
  letter-spacing:1px;
  text-decoration:none;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border:0;
}
.btn:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lg); }

.btn-primary{ background:var(--navy); color:var(--offwhite); }
.btn-primary:hover{ background:var(--navy-2); }

.btn-outline{
  background:transparent;
  color:var(--navy);
  border:2px solid var(--navy);
}
.btn-outline:hover{ background:var(--navy); color:var(--offwhite); }

.btn-ghost{
  background:transparent;
  color:inherit;
  border:1px solid rgba(18,33,55,.25);
}
.btn-ghost:hover{ border-color:rgba(18,33,55,.45); }

/* Chips */
.chip{
  padding:.5rem .8rem;
  background:rgba(0,0,0,.25);
  border-radius:999px;
  font-size:.85rem;
}

/* Footer básico (você pode evoluir depois) */
#footer{
  padding:1.5rem 2rem;
  background:var(--navy);
  border-top:1px solid rgba(247,247,245,.12);
  text-align:center;
}
.footer-copyright{
  margin:0;
  font-size:.88rem;
  line-height:1.6;
  color:rgba(247,247,245,.72);
}

/* Responsivo: padrões globais */
@media(max-width:992px){
  .nav-menu{ gap:1rem; }
}

/* Botões em fundo escuro (ex.: seções dark) */
.section-dark .btn-ghost{
  color:rgba(247,247,245,.92);
  border-color:rgba(247,247,245,.22);
}
.section-dark .btn-ghost:hover{
  border-color:rgba(247,247,245,.35);
  box-shadow:var(--shadow-lg);
}

/* =========================================================
   HERO — componente padrão (1 fonte de verdade)
   Uso: <header class="section section-light page-hero"> ...
========================================================= */

:root{
  --nav-offset: 88px;
  --hero-pad-y: 5.25rem;
  --hero-title-size: clamp(2.1rem, 3.1vw, 2.5rem);
  --hero-lead-size: 1.02rem;
}

.page-hero{
  padding: var(--hero-pad-y) 0;
  scroll-margin-top: calc(var(--nav-offset) + 14px);
}

.page-hero .hero-layout{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}

.page-hero .hero-eyebrow{
  margin: 0 0 .75rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: .9;
}

.page-hero .hero-title{
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-size: var(--hero-title-size);
  color: var(--text);
  text-wrap: balance;
}

.page-hero .hero-lead{
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: var(--hero-lead-size);
  max-width: 66ch;
}

.page-hero .hero-actions{
  margin-top: 1.35rem;
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}

.page-hero .hero-media{
  display: flex;
  justify-content: flex-end;
}

.page-hero .hero-media img{
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid rgba(18,33,55,.08);
  box-shadow: 0 22px 55px rgba(0,0,0,.18);
}

@media (max-width: 980px){
  :root{ --nav-offset: 80px; }

  .page-hero .hero-layout{
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-hero .hero-media{
    justify-content: center;
  }

  .page-hero .hero-media img{
    max-width: 320px;
  }

  .page-hero .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }
}

.nav-sep { margin: 0 10px; opacity: .5; }

