/*
 * ============================================================
 *  TAZZI Consultoria & Capacitação — global.css
 *  Estilos compartilhados por TODAS as páginas do site.
 *  Inclui: tokens, fontes, reset, layout, botões, nav, footer.
 *
 *  Caminhos de fonte relativos à posição deste arquivo:
 *    assets/css/global.css → assets/fonts/
 * ============================================================
 */


/* ─────────────────────────────────────────────────────────────
   1. FONTES — PP Neue Montreal (woff2, self-hosted)
   Peso 300 = Light  |  400 = Regular  |  500 = Medium  |  700 = Bold
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'NeueMontreal';
  src: url('../fonts/NeueMontreal-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NeueMontreal';
  src: url('../fonts/NeueMontreal-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NeueMontreal';
  src: url('../fonts/NeueMontreal-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'NeueMontreal';
  src: url('../fonts/NeueMontreal-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NeueMontreal';
  src: url('../fonts/NeueMontreal-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'NeueMontreal';
  src: url('../fonts/NeueMontreal-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ─────────────────────────────────────────────────────────────
   2. DESIGN TOKENS — Paleta, tipografia, espaçamentos
   Cores:
     --dark      #383433  carvão escuro (principal da marca)
     --taupe     #ada199  bege/taupe (acento da marca)
     --taupe-lt  #c9bfb8  taupe claro (variante)
     --light     #f6f3f6  off-white (fundo de seções alternadas)
     --white     #ffffff
   ───────────────────────────────────────────────────────────── */

:root {
  /* Cores */
  --dark:        #383433;
  --taupe:       #ada199;
  --taupe-lt:    #c9bfb8;
  --taupe-text:  #6e6460;  /* taupe escuro para texto — passa WCAG AA (≥4.5:1) em fundo claro */
  --light:       #f6f3f6;
  --white:       #ffffff;
  --text:        #383433;
  --text-muted:  #6b6360;

  /* Layout */
  --radius:      4px;
  --max-w:       1200px;
  --section-py:  96px;
}


/* ─────────────────────────────────────────────────────────────
   3. RESET & BASE
   ───────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* evita scroll lateral indesejado */
}

body {
  font-family: 'NeueMontreal', system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* Remove cor padrão azul de links em todo o site */
a {
  text-decoration: none;
  color: inherit;
}


/* ─────────────────────────────────────────────────────────────
   4. UTILITÁRIOS DE LAYOUT
   ───────────────────────────────────────────────────────────── */

/* Container centralizado com padding lateral */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* Seções com padding vertical padrão e variantes de fundo */
.section       { padding: var(--section-py) 0; }
.section--light { background: var(--light); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--taupe { background: var(--taupe); color: var(--white); }

/* Label de seção — pequeno texto em caps acima dos títulos */
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe-text);
  display: block;
  margin-bottom: 16px;
}
.section--dark .label,
.section--taupe .label {
  color: rgba(255, 255, 255, .6);
}

/* Escala tipográfica — headings usam peso leve por padrão */
h1, h2, h3, h4 { font-weight: 300; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400; }

/* Prevenção de palavras órfãs — regra global */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }


/* ─────────────────────────────────────────────────────────────
   5. BOTÕES
   Variantes: primary (fundo escuro) | outline (borda escura) | outline-light (borda branca)
   ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'NeueMontreal', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--dark);
  cursor: pointer;
  transition: all .25s ease;
  border-radius: var(--radius);
}

/* Fundo escuro — para uso em seções claras */
.btn--primary {
  background: var(--dark);
  color: var(--white);
}
.btn--primary:hover {
  background: #4d4746;
  border-color: #4d4746;
}

/* Apenas borda escura — para uso em seções claras */
.btn--outline {
  background: transparent;
  color: var(--dark);
}
.btn--outline:hover {
  background: var(--dark);
  color: var(--white);
}

/* Borda branca — para uso sobre fundos escuros (hero, seção dark) */
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--dark);
}


/* ─────────────────────────────────────────────────────────────
   6. NAVEGAÇÃO
   Transparente sobre o hero, vira branca ao scrollar
   ───────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}

/* Estado scrollado: fundo branco com blur */
.nav.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(56, 52, 51, .08);
  padding: 14px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo: branco no hero (filter invert), escuro ao scrollar */
.nav__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .3s;
}
.nav.scrolled .nav__logo img {
  filter: none;
}

/* Links de navegação */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.nav__links a { color: var(--white); transition: opacity .2s; }
.nav.scrolled .nav__links a { color: var(--dark); }
.nav__links a:hover { opacity: .6; }

.nav__cta { font-size: 13px; }

/* CTA vira escuro quando o nav fica sobre fundo branco */
.nav.scrolled .nav__cta {
  border-color: var(--dark);
  color: var(--dark);
}
.nav.scrolled .nav__cta:hover {
  background: var(--dark);
  color: var(--white);
}

/* Botão hambúrguer — visível só no mobile */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: background .3s;
}
.nav.scrolled .nav__toggle span {
  background: var(--dark);
}


/* ─────────────────────────────────────────────────────────────
   7. MENU MOBILE
   Sobreposição em tela cheia, fundo escuro
   ───────────────────────────────────────────────────────────── */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--dark);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; z-index: 101; }

.mobile-menu a {
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: .06em;
  transition: opacity .2s;
}
.mobile-menu a:hover { opacity: .6; }

.mobile-menu__close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}


/* ─────────────────────────────────────────────────────────────
   8. FOOTER
   ───────────────────────────────────────────────────────────── */

footer {
  background: #2a2625;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Logo invertida no fundo escuro */
.footer-logo img {
  height: 28px;
  width: auto;
  filter: invert(1);
  opacity: .6;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  letter-spacing: .04em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  letter-spacing: .06em;
  transition: color .2s;
}
.footer-links a:hover { color: rgba(255, 255, 255, .7); }


/* ─────────────────────────────────────────────────────────────
   9. RESPONSIVO — breakpoints globais
   ───────────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --section-py: 56px; }

  .container { padding: 0 20px; }

  /* Esconde nav desktop, exibe hambúrguer */
  .nav__links,
  .nav__cta   { display: none; }
  .nav__toggle { display: flex; }

  /* Footer em coluna */
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
