/* =====================================================================
   A Base 21 — design system, mobile first.

   Regra da casa: o estilo base é o do celular estreito. Toda media query
   é `min-width`, ou seja, só ADICIONA a partir de telas maiores. Nada de
   `max-width` desfazendo o que a regra de cima fez, que é como um CSS
   desktop-first acaba brigando consigo mesmo.

   Escala: 320px (base) → 480 → 700 → 901 (nav horizontal) → 1180 (teto).
   O 901 é onde as sete seções cabem em linha; abaixo disso o menu é
   hambúrguer, porque faixa rolável esconde item sem avisar o usuário.

   Preto e laranja da marca sobre papel. A stencil (Big Shoulders) fica
   nos rótulos curtos, porque é a fonte do lettering da logo; texto
   corrido é Archivo, que aguenta corpo pequeno.
   ===================================================================== */

:root {
  --papel:      #F2EEE5;
  --papel-2:    #EAE4D7;
  --papel-3:    #E0D9C8;
  --branco:     #FBF9F4;
  --ink:        #17150F;
  --ink-2:      #2b2820;
  --mut:        #6b6659;
  --mut-2:      #8b8578;
  --orange:     #EA650A;   /* gráfico: ícones, bordas, marcadores */
  --orange-txt: #A8450A;   /* texto pequeno: 5.2:1 no papel */
  --orange-esc: #8a3808;
  --verde:      #2f6f3e;
  --vermelho:   #a52020;
  --line:       rgba(23, 21, 15, .16);
  --line-2:     rgba(23, 21, 15, .09);
  --sombra:     0 2px 10px rgba(23, 21, 15, .07);
  --sombra-2:   0 12px 34px rgba(23, 21, 15, .13);
  --nav-h:      56px;      /* celular; cresce no desktop */
  --raio:       10px;
  --toque:      44px;      /* alvo mínimo de toque */
  --gutter:     16px;

  --font-stencil: "Big Shoulders Stencil", "Oswald", sans-serif;
  --font-body:    "Archivo", system-ui, -apple-system, sans-serif;
}

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

html {
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;    /* iOS não infla a fonte ao girar */
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-txt); }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ================================================================ fundo
   Camuflagem gasta: manchas chapadas desbotando sobre trama de tecido.
   feFuncA discrete corta os meios-tons, é o que faz virar camo e não
   névoa. O grão é textura estática com background-position animada,
   muito mais barato que reprocessar a turbulência a cada quadro. */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.bg-camo {
  position: fixed;
  top: -10%; left: -10%;
  width: 120%; height: 120%;
  z-index: -1;
  pointer-events: none;
}
.camo-1 { animation: camo-a 58s ease-in-out infinite alternate; }
.camo-2 { animation: camo-b 74s ease-in-out infinite alternate; }
/* opacity explícita: com prefers-reduced-motion a animação some e o
   grupo voltaria a 1, três vezes mais forte que o pretendido. */
.camo-3 { opacity: .29; animation: camo-fade 26s ease-in-out infinite alternate; }

@keyframes camo-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.09); }
}
@keyframes camo-b {
  from { transform: translate3d(1%, -1%, 0) scale(1.06); }
  to   { transform: translate3d(-1%, 3%, 0) scale(1); }
}
@keyframes camo-fade {
  from { opacity: .16; }
  to   { opacity: .42; }
}

.bg-trama {
  background-image:
    repeating-linear-gradient(0deg, rgba(23,21,15,.045) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(23,21,15,.035) 0 1px, transparent 1px 4px);
  opacity: .7;
}
.bg-grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='210'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='210' height='210' filter='url(%23n)' opacity='0.36'/%3E%3C/svg%3E");
  opacity: .44;
  mix-blend-mode: multiply;
  animation: grain 750ms steps(5) infinite;
}
@keyframes grain {
  0%   { background-position: 0 0; }
  25%  { background-position: -10px 8px; }
  50%  { background-position: 9px -11px; }
  75%  { background-position: -7px -7px; }
  100% { background-position: 0 0; }
}
.bg-vinheta {
  background: radial-gradient(70% 60% at 50% 42%, transparent 44%, rgba(23, 21, 15, .15) 100%);
}

/* ============================================================ NAV (base)
   No celular: engrenagem + wordmark à esquerda, hambúrguer à direita.
   A lista horizontal e os botões de ação só aparecem a partir de 901px. */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 229, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px max(12px, env(safe-area-inset-left)) 6px max(12px, env(safe-area-inset-right));
}

.nav-marca {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
  margin-right: auto;
  min-height: var(--toque);
  padding: 2px;
}
/* Engrenagem da BCGA girando devagar, como no bcgaairsoft, em preto. */
.nav-engrenagem {
  width: 26px;
  height: 26px;
  flex: none;
  animation: gira 26s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

.nav-wordmark {
  font-family: var(--font-stencil);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-wordmark em { font-style: normal; color: var(--orange-txt); }
.nav-marca:hover .nav-wordmark { color: var(--orange-txt); }

/* Escondidos no celular; ligados a partir de 901px. */
.nav-scroll { display: none; min-width: 0; flex: 1; }
.nav-acoes { display: none; align-items: center; gap: 8px; flex: none; }

.nav-scroll ul {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  list-style: none;
  justify-content: center;
}
.nav li { flex: none; }

.nav-item {
  font-family: var(--font-stencil);
  font-weight: 600;
  font-size: clamp(13px, 1.05vw, 15px);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mut);
  white-space: nowrap;
  text-decoration: none;
  padding: 5px 2px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
a.nav-item:hover { color: var(--ink); }
a.nav-item[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
span.nav-item { cursor: default; user-select: none; opacity: .72; }

.btn-loja, .btn-conta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 7px;
  text-decoration: none;
  font-family: var(--font-stencil);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-loja { border: 1.5px solid var(--orange); color: var(--ink); }
.btn-loja:hover { background: var(--orange); color: #fff; }
.btn-conta { border: 1.5px solid var(--line); color: var(--ink); }
.btn-conta:hover { border-color: var(--ink); }
.btn-loja svg, .btn-conta svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ---------------------------------------------------------- hambúrguer */
.nav-burger {
  display: flex;
  width: var(--toque); height: var(--toque);
  flex: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .22s ease, opacity .18s ease;
}
.nav-burger.aberto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.aberto span:nth-child(2) { opacity: 0; }
.nav-burger.aberto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-fundo {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(23, 21, 15, .45);
  opacity: 0; transition: opacity .22s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.menu-fundo.aberto { opacity: 1; }

.menu-mobile {
  position: fixed; top: 0; right: 0; z-index: 50;
  width: min(310px, 84vw);
  height: 100svh;
  background: var(--papel);
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 40px rgba(23, 21, 15, .16);
  padding: calc(var(--nav-h) + 16px) 0 calc(24px + env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform .24s cubic-bezier(.2, .7, .2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu-mobile.aberto { transform: none; }
.menu-mobile ul { list-style: none; }
.menu-mobile a {
  display: flex; align-items: center; gap: 8px;
  min-height: var(--toque);
  padding: 12px 22px;
  font-family: var(--font-stencil); font-weight: 600; font-size: 17px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-left: 3px solid transparent;
}
.menu-mobile a:hover { background: var(--papel-2); }
.menu-mobile a[aria-current="page"] { border-left-color: var(--orange); color: var(--orange-txt); }
.menu-mobile a svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.menu-mobile .sep-menu { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

body.sem-scroll { overflow: hidden; }

/* ============================================================== layout */
main { flex: 1; }
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.wrap-estreito { max-width: 800px; }

.secao { padding: clamp(34px, 7vw, 76px) 0; }
.secao + .secao { border-top: 1px solid var(--line-2); }

.cabeca { padding: clamp(24px, 6vw, 56px) 0 clamp(16px, 4vw, 34px); }
.cabeca .kicker {
  font-family: var(--font-stencil);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--orange-txt);
  display: block;
  margin-bottom: 8px;
}

h1, h2, h3 { font-family: var(--font-stencil); text-transform: uppercase; line-height: 1.05; }
h1 { font-weight: 700; font-size: clamp(27px, 8vw, 58px); letter-spacing: .02em; }
h2 { font-weight: 700; font-size: clamp(21px, 5.4vw, 34px); letter-spacing: .04em; }
h3 { font-weight: 600; font-size: clamp(16px, 3.6vw, 21px); letter-spacing: .07em; }
.cabeca p.lead { margin-top: 13px; max-width: 62ch; color: var(--ink-2); font-size: clamp(14.5px, 3.4vw, 18px); }

.regua { width: 56px; height: 3px; background: var(--orange); margin: 14px 0 0; }

/* =============================================================== cards */
.card {
  background: var(--branco);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  padding: 16px;
  box-shadow: var(--sombra);
}
/* min(Xpx, 100%) e não Xpx puro: abaixo de X o minmax vira largura mínima
   rígida e a página passa a rolar de lado (Galaxy Fold, 280px). */
.grade { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }

/* ============================================================== botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--toque);
  padding: 11px 20px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-family: var(--font-stencil);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  background: none;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primario { background: var(--orange); color: #fff; }
.btn-primario:hover:not(:disabled) { background: var(--orange-esc); transform: translateY(-1px); }
.btn-linha { border-color: var(--line); color: var(--ink); }
.btn-linha:hover:not(:disabled) { border-color: var(--ink); }
.btn-pequeno { min-height: 38px; padding: 8px 14px; font-size: 12px; }

/* =========================================================== etiquetas */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-stencil);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mut);
  background: var(--papel-2);
}
.tag-laranja { border-color: var(--orange); color: var(--orange-txt); background: rgba(234,101,10,.09); }
.tag-verde   { border-color: rgba(47,111,62,.4); color: var(--verde); background: rgba(47,111,62,.09); }
.tag-vermelha{ border-color: rgba(165,32,32,.35); color: var(--vermelho); background: rgba(165,32,32,.08); }

/* ========================================================== formulário */
label { display: block; font-size: 13px; font-weight: 600; color: var(--mut); margin-bottom: 5px; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  /* 16px é o mínimo que impede o Safari do iPhone de dar zoom no foco. */
  font-size: 16px;
  color: var(--ink);
  background: var(--branco);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  min-height: var(--toque);
}
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234,101,10,.14);
}
.campo { margin-bottom: 14px; }
.campos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.ajuda { font-size: 12.5px; color: var(--mut); margin-top: 5px; line-height: 1.5; }

/* =============================================================== avisos */
.aviso {
  border-left: 3px solid var(--orange);
  background: rgba(234, 101, 10, .07);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.aviso-erro { border-left-color: var(--vermelho); background: rgba(165,32,32,.07); }
.aviso-ok   { border-left-color: var(--verde);    background: rgba(47,111,62,.07); }

/* ============================================================ esqueleto */
.skel {
  background: linear-gradient(90deg, var(--papel-2) 25%, var(--papel-3) 50%, var(--papel-2) 75%);
  background-size: 200% 100%;
  animation: skel 1.3s linear infinite;
  border-radius: 6px;
}
@keyframes skel { to { background-position: -200% 0; } }

/* =============================================================== rodapé */
.rodape {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 28px max(var(--gutter), env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom));
  background: rgba(23, 21, 15, .03);
}
.rodape-in {
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
}
.rodape h4 {
  font-family: var(--font-stencil); font-weight: 700; font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink);
}
.rodape a, .rodape p, .rodape li { font-size: 14px; color: var(--mut); text-decoration: none; line-height: 1.85; }
.rodape a:hover { color: var(--orange-txt); }
.rodape ul { list-style: none; }
.rodape-fim {
  max-width: 1180px; margin: 22px auto 0; padding-top: 16px;
  border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; text-align: center;
  font-family: var(--font-stencil); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mut);
}
.sep { color: var(--orange); }

/* ========================================================= utilitários */
.mono { font-variant-numeric: tabular-nums; }
.centro { text-align: center; }
.stencil { font-family: var(--font-stencil); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.mut { color: var(--mut); }
.pequeno { font-size: 13.5px; }
.oculto { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.preco {
  font-family: var(--font-stencil); font-weight: 700; font-size: 22px;
  letter-spacing: .02em; color: var(--ink);
}
.preco small { font-size: 13px; color: var(--mut); font-weight: 600; letter-spacing: .1em; }

/* =====================================================================
   A PARTIR DAQUI: só min-width. Cada bloco ADICIONA sobre o mobile.
   ===================================================================== */

/* ------------------------------------------------- 400px: celular largo */
@media (min-width: 400px) {
  :root { --gutter: 18px; }
  .nav-engrenagem { width: 28px; height: 28px; }
  .nav-wordmark { font-size: 21px; }
  .card { padding: 18px; }
}

/* --------------------------------------------- 700px: tablet retrato */
@media (min-width: 700px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .grade { gap: 16px; }
  .card { padding: 20px; }
  .rodape-fim { justify-content: space-between; text-align: left; font-size: 12px; }
  .preco { font-size: 24px; }
}

/* ------------------------------- 901px: nav horizontal, sem hambúrguer */
@media (min-width: 901px) {
  :root { --nav-h: 62px; }
  .nav { gap: 12px; }
  .nav-scroll { display: block; }
  .nav-acoes { display: flex; }
  .nav-burger { display: none; }
  /* o painel do hambúrguer não deve sobrar aberto ao girar pro desktop */
  .menu-mobile, .menu-fundo { display: none; }
  .nav-marca { margin-right: 0; }
}

/* ------------------------------------------------------ 1180px: teto */
@media (min-width: 1180px) {
  .secao { padding: 76px 0; }
}

/* ========================================================== movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================= toque
   Sem hover confiável, o :hover fica "grudado" depois do toque. */
@media (hover: none) {
  .btn-primario:hover:not(:disabled) { transform: none; }
  .menu-mobile a:hover { background: none; }
}

@media print {
  .nav, .rodape, .bg, .bg-camo, .menu-mobile, .menu-fundo, .nav-burger { display: none !important; }
  body { background: #fff; }
}
