/* Beertronic — design system "Taproom".
   Tokens, base, navegação, botões, rodapé e componentes globais. */

:root {
  --amber: #f4bb2e;
  --amber-600: #e5a11b;
  --amber-700: #d9950c;
  --stout: #121010;
  --stout-2: #1b1714;
  --stout-3: #26201b;
  --foam: #f7f1e6;
  --foam-2: #efe5d3;
  --cream: #fffaf1;

  --bg: var(--foam);
  --surface: var(--cream);
  --surface-2: #f1e8d8;
  --ink: #1b1714;
  --ink-2: #4a4038;
  --muted: #74685b;
  --line: rgba(27, 23, 20, 0.12);
  --line-strong: rgba(27, 23, 20, 0.22);
  --accent-text: #8a5a00;         /* âmbar legível sobre fundo claro (AA) */
  --focus: #b77600;
  --ok: #2f8a4a;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgba(27, 23, 20, .06), 0 8px 24px rgba(27, 23, 20, .08);
  --shadow-lg: 0 24px 60px rgba(18, 16, 16, .22);

  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1180px;
  --pad-x: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 72px;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: var(--stout);
  --surface: var(--stout-2);
  --surface-2: var(--stout-3);
  --ink: #f7f1e6;
  --ink-2: #d6cab8;
  --muted: #a3968a;
  --line: rgba(247, 241, 230, 0.10);
  --line-strong: rgba(247, 241, 230, 0.2);
  --accent-text: var(--amber);
  --focus: var(--amber);
  --ok: #5cc27a;
  --danger: #ff8a80;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* --- base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p a, li a, dd a, .prose a, address a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, li a:hover, .prose a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--stout); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--stout); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .74rem/1 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--amber); }

.linklike { background: none; border: 0; padding: 0; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* --- botões ----------------------------------------------------------------- */

.btn {
  --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font: 600 .98rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn--amber { --b-bg: var(--amber); --b-fg: var(--stout); --b-bd: var(--amber); box-shadow: 0 6px 18px rgba(244, 187, 46, .28); }
.btn--amber:hover { --b-bg: #ffc93f; --b-bd: #ffc93f; }
.btn--ghost:hover { --b-bd: var(--ink); }
.btn--ghost-light { --b-fg: var(--foam); --b-bd: rgba(247, 241, 230, .35); }
.btn--ghost-light:hover { --b-bd: var(--foam); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn__spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
  font: 600 .74rem/1.2 var(--font-mono); letter-spacing: .02em;
  border: 1px solid var(--line);
}
.chip--amber { background: rgba(244, 187, 46, .16); color: var(--accent-text); border-color: rgba(244, 187, 46, .4); }
.chip--link { text-decoration: none; font-size: .85rem; padding: 8px 14px; }
.chip--link:hover { border-color: var(--amber); }
.chip--status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip--status.is-open { color: var(--ok); border-color: currentColor; background: transparent; }
.chip--status.is-open::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.chip--status.is-closed { color: var(--muted); }

/* --- navegação -------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x);
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}
.nav__logo { flex: none; display: block; }
.nav__logo img { height: 44px; width: auto; }
.logo-for-dark { display: none !important; }
html[data-theme="dark"] .logo-for-dark { display: block !important; }
html[data-theme="dark"] .logo-for-light { display: none !important; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2);
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--amber);
}
.nav__cta-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav__cta { display: none; }
  .nav-toggle { display: grid; }
  .nav__inner { gap: 12px; }
  .nav__actions { margin-left: auto; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--pad-x) 20px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a[aria-current="page"]::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .nav__links a[aria-current="page"] { padding-left: 16px; }
  .nav__cta-mobile { display: flex; justify-content: center; margin-top: 14px; background: var(--amber); color: var(--stout) !important; border-radius: 999px !important; border: 0 !important; }
}
@media (max-width: 420px) {
  .nav__logo img { height: 36px; }
}

/* --- layout de seções ------------------------------------------------------ */

.sec { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.sec--tight { padding-top: clamp(32px, 5vw, 56px); }
.sec--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--note { padding: 28px 0 40px; }
.sec__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head__desc { color: var(--ink-2); font-size: 1.05rem; margin: 0; }

/* seção escura ("stout"): mesma aparência nos dois temas */
.sec--dark, .phero--dark, .hero, .cta-band, .foot {
  --ink: #f7f1e6; --ink-2: #d6cab8; --muted: #a3968a;
  --line: rgba(247, 241, 230, .1); --line-strong: rgba(247, 241, 230, .22);
  --surface: #1b1714; --surface-2: #26201b; --accent-text: var(--amber);
  background: var(--stout); color: var(--ink);
}
/* no tema escuro, as seções "stout" ganham um tom âmbar para não sumirem no fundo */
html[data-theme="dark"] .sec--dark, html[data-theme="dark"] .phero--dark {
  background: radial-gradient(900px 400px at 100% 0%, rgba(244, 187, 46, .08), transparent 70%), #1a1511;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split--top { align-items: start; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); position: relative; }
.frame img { width: 100%; }
.frame figcaption { font: 500 .78rem/1.4 var(--font-mono); color: var(--muted); padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); }
.frame--tilt { transform: rotate(1.2deg); }
.frame--tilt:hover { transform: rotate(0); transition: transform .4s ease; }

.footnote { font-size: .82rem; color: var(--muted); margin: 0; max-width: 900px; }

/* faixa de CTA */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 220px at 85% 120%, rgba(244, 187, 46, .28), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(247, 241, 230, .04) 46px 47px);
  pointer-events: none;
}
.cta-band__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 84px) var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band__text { max-width: 620px; }
.cta-band h2 { margin-bottom: .35em; }
.cta-band p { color: var(--ink-2); margin: 0; font-size: 1.05rem; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- rodapé ----------------------------------------------------------------- */

.foot { position: relative; padding-top: 0; }
/* topo do rodapé: o mesmo desenho da faixa de destaques da home — o chope sobe em onda
   para dentro do fim da página (âmbar clara na frente, âmbar escura atrás e sempre acima,
   então só ela desenha a borda) — sobre uma faixa âmbar sólida, de onde as gotas pingam.
   Tangentes horizontais nas cristas, vales e bordas: a repetição não forma bicos. */
.foot__tapline { position: relative; height: 16px; background: var(--amber); isolation: isolate; }
.foot__tapline::before, .foot__tapline::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; background-repeat: repeat-x; }
.foot__tapline::before {
  top: -30px; height: 32px; background-size: 520px 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 32' preserveAspectRatio='none'%3E%3Cpath d='M0 12 C130 12 130 2 260 2 S390 12 520 12 V32 H0Z' fill='%23d9950c'/%3E%3C/svg%3E");
  animation: foot-wave-rev 30s linear infinite;
}
.foot__tapline::after {
  top: -20px; height: 22px; background-size: 400px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0 16 C100 16 100 6 200 6 S300 16 400 16 V22 H0Z' fill='%23f4bb2e'/%3E%3C/svg%3E");
  animation: foot-wave 24s linear infinite;
}
.foot__tapline span {
  position: absolute; top: 10px; width: 8px; height: 11px; margin-left: -4px;
  z-index: 2; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: var(--amber);
  opacity: 0; animation: drip 4.2s ease-in infinite;
}
.foot__tapline span:nth-child(1) { left: 14%; }
.foot__tapline span:nth-child(2) { left: 39%; animation-delay: 1.3s; }
.foot__tapline span:nth-child(3) { left: 63%; animation-delay: 2.6s; }
.foot__tapline span:nth-child(4) { left: 87%; animation-delay: .7s; }
@keyframes drip {
  0%, 55% { transform: translateY(0) scale(.4); opacity: 0; }
  62% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(46px) scale(.9, 1.15); opacity: 0; }
}
@keyframes foot-wave { to { background-position: 400px 0; } }
@keyframes foot-wave-rev { to { background-position: -520px 0; } }

.foot__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 48px var(--pad-x) 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px;
}
.foot__brand img { width: 210px; margin-bottom: 18px; }
.foot__brand p { color: var(--ink-2); font-size: .95rem; max-width: 320px; }
.foot__social { display: flex; gap: 8px; margin-top: 18px; }
.foot__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--ink); }
.foot__social a:hover { background: var(--amber); color: var(--stout); border-color: var(--amber); }
.foot__social svg { width: 18px; height: 18px; }
.foot__col h2 { font: 600 .74rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--amber); margin: 6px 0 18px; }
.foot__col a { display: block; color: var(--ink-2); text-decoration: none; padding: 5px 0; font-size: .95rem; }
.foot__col a:hover { color: var(--amber); }
.foot__col p { color: var(--ink-2); font-size: .9rem; margin: 0 0 8px; }
.foot__contact { display: flex !important; align-items: center; gap: 10px; }
.foot__contact svg { width: 17px; height: 17px; flex: none; color: var(--amber); }
.foot__legal { font-weight: 700; color: var(--ink) !important; font-size: .82rem !important; letter-spacing: .02em; }
.foot__mono { font-family: var(--font-mono); font-size: .8rem !important; }
.foot__bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--pad-x) 32px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: var(--muted);
}
.foot__bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__bottom a, .foot__bottom .linklike { color: var(--ink-2); text-decoration: none; font-size: .85rem; }
.foot__bottom a:hover, .foot__bottom .linklike:hover { color: var(--amber); }
@media (max-width: 900px) { .foot__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__inner { grid-template-columns: 1fr; gap: 28px; } }

/* --- WhatsApp flutuante e consentimento ------------------------------------- */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }
body.has-consent .wa-float { bottom: 120px; }

.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 16px;
  background: var(--stout-2); color: #f7f1e6; border: 1px solid rgba(247, 241, 230, .14);
  box-shadow: var(--shadow-lg);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; font-size: .9rem; color: #d6cab8; }
.consent a { color: var(--amber); }
.consent__actions { display: flex; gap: 8px; }
.consent .btn--ghost { --b-fg: #f7f1e6; --b-bd: rgba(247, 241, 230, .3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* notas de rodapé dentro da faixa de CTA quando ela fecha a página */
.cta-band .cta-band__notes {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x) 72px;   /* a onda do rodapé sobe ~30px aqui; o resto é respiro */
  font-size: .78rem; line-height: 1.6; color: var(--muted);
}
.cta-band:has(.cta-band__notes) .cta-band__inner { padding-bottom: 20px; }
