/* ═══════════════════════════════════════════════════════════
   global.css — Reset, tokens (:root) e nav/menu mobile.
   Carregado em TODA página via partials/site_top.php. Qualquer
   coisa aqui precisa fazer sentido em qualquer página do site,
   não só na home — o que é específico da home vive em hero.css
   e home.css.
═══════════════════════════════════════════════════════════ */

:root {
  --bg: #FAFAF8;
  --text: #1A1A1A;
  --muted: #6B7280;
  --text2: #4B5563;
  --green: #0e817b;
  --grn-h: #0b6b65;
  --accent: #16a39c;
  --border: #E5E5E0;
  --pad: 16px;
  --nav: 58px;
  --font: 'Bricolage Grotesque', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ══════════ NAV ══════════ */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav);
  /* sem background: gradiente da página (definido por cada página) aparece por baixo */
}

.nav-i {
  height: 100%;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  padding-top: 2rem;
  padding-bottom: 2rem;
  align-items: center;
  backdrop-filter: blur(10px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Logo SVG sem fundo; o texto "Klavik." fica alinhado ao topo do logo. */
nav .nav-logo {
  align-items: flex-start;
}

.nav-logo-chip {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.nav-logo-chip img {
  height: 47px;
  width: auto;
  display: block;
}

.nav-logo span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin-left: auto;
  /* empurra para a direita */
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links li:last-child a {
  padding-right: 28px;
}

/* Ícone do WhatsApp usado no início de todo botão que abre o WhatsApp
   (nav, hero, CTA Final, tiers) — fill: currentColor herda a cor do
   texto do botão em qualquer variante, sem precisar de override por
   página. */
.btn-wa-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nav-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  padding: 9px 20px;
  border-radius: 6px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--grn-h);
}

/* Hamburger: mobile only */
.nav-burger {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  flex-shrink: 0;
  margin-left: auto;
}

.nav-burger:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.nav-burger svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .2s;
}

.nav-burger .ix {
  opacity: 0;
}

.nav-burger.open .id {
  opacity: 0;
}

.nav-burger.open .ix {
  opacity: 1;
}

/* ══════════ MOBILE MENU ══════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 180;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), visibility 0s .5s;
}

.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li+li {
  margin-top: 4px;
}

.mobile-menu ul a {
  display: block;
  font-size: clamp(38px, 11vw, 54px);
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--text);
  text-decoration: none;
  padding: 10px 24px;
  line-height: 1.08;
  transition: color .15s;
}

.mobile-menu ul a:hover {
  color: var(--green);
}

.mobile-menu .m-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  padding: 14px 36px;
  border-radius: 8px;
  min-height: 48px;
  text-decoration: none;
  transition: background .15s;
}

.mobile-menu .m-cta:hover {
  background: var(--grn-h);
}

/* ══════════ RESPONSIVO — NAV ══════════ */
@media (max-width: 860px) {
  :root {
    --pad: 20px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }
}
