/* ============================================================
   base.css — Hépego · Site 2.0
   Tokens, reset, fontes, header/footer/menu-mobile, botões,
   pílulas, marquee, utilitários. Compartilhado pelas 2 páginas.
   ============================================================ */

/* ---------- Fontes (Gyst self-hosted, 6 cortes) ----------
   light (display gigante) · medium (headings) · bold (preços/números)
   + itálicos correspondentes (a palavra em <em> da assinatura da marca). */
@font-face {
  font-family: "Gyst";
  src: url("../assets/fonts/gyst-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gyst";
  src: url("../assets/fonts/gyst-medium.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gyst";
  src: url("../assets/fonts/gyst-bold.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gyst";
  src: url("../assets/fonts/gyst-lightitalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Gyst";
  src: url("../assets/fonts/gyst-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Gyst";
  src: url("../assets/fonts/gyst-mediumitalic.woff2") format("woff2");
  font-weight: 500 600;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens (OKLCH; nunca #000/#fff puros) ---------- */
:root {
  color-scheme: light;
  --cream: oklch(96.5% 0.02 85);
  --cream-deep: oklch(93.5% 0.03 82);
  --card: oklch(98.5% 0.012 85);
  --espresso: oklch(29% 0.035 55);
  --espresso-2: oklch(24% 0.03 55);
  --brown: oklch(41% 0.045 55);
  --muted: oklch(55% 0.035 70);
  --gold: oklch(72% 0.09 85);
  --gold-text: oklch(52% 0.09 78);
  --gold-soft: oklch(72% 0.09 85 / .32);
  --line: oklch(87% 0.035 82);
  --wa: oklch(63% 0.17 150);
  --wa-deep: oklch(55% 0.15 150);
  --cream-on-dark: oklch(95% 0.02 85);
  --gold-on-dark: oklch(78% 0.09 85);

  /* sombras tintadas de espresso (nunca preto puro) */
  --shadow-sm: 0 2px 10px oklch(29% 0.035 55 / .08);
  --shadow-md: 0 14px 40px oklch(29% 0.035 55 / .14);
  --shadow-lg: 0 30px 80px oklch(29% 0.035 55 / .20);

  --serif: "Gyst", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(3.4rem, 9vw, 7.5rem);
  --fs-h2: clamp(2.2rem, 5vw, 4rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.6rem);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 12vw, 140px);
  --radius: 16px;
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  width: 100%;
  min-height: 100%;
  max-width: 100%;
  background: var(--cream); /* nunca deixa a UA/webview mostrar outra cor nas bordas */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* em mobile, overflow-x:hidden só no body não é suficiente em
    todo navegador — o elemento rolável real costuma ser o html; sem isso dá pra
    "arrastar" a página pra direita revelando margem extra (relatado em dispositivo real) */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh; /* considera a barra de endereço dinâmica do navegador mobile */
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (max-width: 640px) { body { font-size: 16px; } }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Tipografia utilitária ---------- */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
em, .em { font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0;
}
.eyebrow--dark { color: var(--gold-on-dark); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.full-bleed { width: 100%; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 200;
  background: var(--espresso);
  color: var(--cream-on-dark);
  padding: 10px 18px;
  border-radius: 8px;
  transform: translateY(-140%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--solid {
  background: var(--espresso);
  color: var(--cream-on-dark);
  box-shadow: var(--shadow-sm);
}
.btn--solid:hover { background: var(--espresso-2); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  color: var(--espresso);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--gold-text); color: var(--gold-text); }
.btn--wa {
  background: var(--wa);
  color: oklch(99% 0.01 150);
  box-shadow: var(--shadow-sm);
}
.btn--wa:hover { background: var(--wa-deep); box-shadow: var(--shadow-md); }
.btn--on-dark.btn--outline {
  color: var(--cream-on-dark);
  box-shadow: inset 0 0 0 1.5px oklch(78% 0.09 85 / .5);
}
.btn--on-dark.btn--outline:hover { color: var(--gold-on-dark); box-shadow: inset 0 0 0 1.5px var(--gold-on-dark); }
.btn--lg { min-height: 54px; padding: 0 32px; font-size: 16px; }
.btn.is-loading { pointer-events: none; opacity: .78; }
.btn.is-loading::after {
  content: "";
  width: 15px; height: 15px;
  margin-left: 2px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pílulas ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}
.pill-gold {
  background: oklch(72% 0.09 85 / .18);
  color: var(--gold-text);
  box-shadow: inset 0 0 0 1px var(--gold-soft);
}
.pill-gold::before { content: "★"; font-size: 10px; line-height: 1; }
.pill-fest {
  background: oklch(29% 0.035 55 / .9);
  color: var(--cream-on-dark);
}

/* ---------- Fio dourado (divisor) ---------- */
.hairline-gold {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 18%, var(--gold) 50%, var(--gold-soft) 82%, transparent);
}

/* ============================================================
   HEADER (sticky, compartilhado — HTML idêntico nas 2 páginas)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-stuck {
  background: oklch(96.5% 0.02 85 / .97);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
}
/* Lockup oficial 2026, versão final: arquivo master com o texto "HEPEGO" já
   convertido em contorno vetorial (outline) — zero dependência de fonte, fiel
   ao original em qualquer navegador. currentColor deixa o mesmo SVG se adaptar
   a fundo claro (header) ou escuro (menu mobile, footer). */
.header-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  color: var(--espresso);
}
.header-logo::after {
  content: "";
  position: absolute;
  inset: 50%;
  min-width: 44px;
  min-height: 44px;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
} /* alvo de toque mínimo, sem alterar o tamanho visual da marca */
.logo-full { width: 118px; height: auto; fill: currentColor; display: block; }
.mm-logo, .footer-logo { color: inherit; } /* herda cream-on-dark do container escuro */
.footer-logo { margin-bottom: 16px; }
.footer-logo .logo-full { width: 168px; }
/* emblema pequeno (coroa+joia) reutilizado como bullet/ícone decorativo */
.crown-mark { width: 13px; height: auto; fill: currentColor; flex: none; }
.header-nav {
  display: none;
  gap: clamp(18px, 2.4vw, 34px);
  margin-inline: auto;
}
.header-nav a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--brown);
  position: relative;
  padding: 6px 2px;
  transition: color .18s ease;
}
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}
.header-nav a:hover { color: var(--espresso); }
.header-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { position: relative; }
.cart-badge {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--espresso-2);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--serif);
  box-shadow: 0 0 0 2px var(--cream);
}
.hamburger, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  color: var(--espresso);
}
.hamburger:hover, .icon-btn:hover { background: oklch(29% 0.035 55 / .06); }
.hamburger svg, .icon-btn svg { width: 22px; height: 22px; }

@media (min-width: 900px) {
  .header-nav { display: flex; }
  .hamburger { display: none; }
}

/* ============================================================
   MENU MOBILE (overlay espresso, focus trap via JS)
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--espresso-2);
  color: var(--cream-on-dark);
  display: flex;
  flex-direction: column;
  padding: 22px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 34px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.mm-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cream-on-dark);
  border-radius: 10px;
}
.mm-close:hover { background: oklch(95% 0.02 85 / .1); }
.mm-close svg { width: 22px; height: 22px; }
.mm-nav {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 2vw, 14px);
  margin-top: clamp(24px, 8vh, 64px);
}
.mm-nav a {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.08;
  color: var(--cream-on-dark);
  opacity: 0;
  transform: translateY(14px);
  transition: color .2s ease, opacity .35s ease, transform .35s ease;
}
.mm-nav a:hover { color: var(--gold-on-dark); }
/* stagger de entrada dos links (60ms por item) */
.mobile-menu.is-open .mm-nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mm-nav a:nth-child(1) { transition-delay: 0s, .08s, .08s; }
.mobile-menu.is-open .mm-nav a:nth-child(2) { transition-delay: 0s, .14s, .14s; }
.mobile-menu.is-open .mm-nav a:nth-child(3) { transition-delay: 0s, .20s, .20s; }
.mobile-menu.is-open .mm-nav a:nth-child(4) { transition-delay: 0s, .26s, .26s; }
.mobile-menu.is-open .mm-nav a:nth-child(5) { transition-delay: 0s, .32s, .32s; }
.mm-foot { margin-top: auto; padding-top: 28px; }
.mm-foot .btn { width: 100%; }
.mm-micro {
  margin-top: 16px;
  font-size: 13px;
  color: oklch(78% 0.03 82);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mm-micro .crown-mark { width: 12px; opacity: .8; }
body.menu-open { overflow: hidden; }

/* ============================================================
   MARQUEE (full-bleed, fios dourados em cima/baixo)
   ============================================================ */
.marquee {
  border-block: 1px solid var(--gold-soft);
  background: var(--cream);
  overflow: hidden;
  padding-block: 16px;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__item {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--espresso);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.marquee__sep {
  height: 14px;
  width: auto;
  margin-inline: clamp(14px, 2.4vw, 28px);
  color: var(--gold-text); /* fill:currentColor do crown-mark pega o dourado, não o espresso do texto ao redor */
  opacity: .9;
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
.marquee.is-paused .marquee__track { animation-play-state: paused; }

/* ============================================================
   FOOTER (espresso-2, compartilhado)
   ============================================================ */
.site-footer {
  background: var(--espresso-2);
  color: var(--cream-on-dark);
  padding-block: clamp(56px, 8vw, 88px) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vw, 64px);
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: oklch(82% 0.03 82);
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-on-dark);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; }
.footer-col a {
  color: oklch(88% 0.02 82);
  font-size: 15px;
  transition: color .18s ease;
  display: inline-flex;
  min-height: 44px; /* alvo de toque mínimo — era 24px */
  align-items: center;
}
.footer-col a:hover { color: var(--gold-on-dark); }
.footer-link-ig { gap: 8px; }
.footer-link-ig svg { width: 18px; height: 18px; flex: none; }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid oklch(95% 0.02 85 / .12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: oklch(75% 0.02 82);
}
.footer-bottom .crown-mark { width: 18px; opacity: .85; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; align-items: start; }
}

/* ---------- Utilitários ---------- */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.hit-44 { position: relative; }
.hit-44::after {
  content: "";
  position: absolute;
  inset: 50% 50% 50% 50%;
  min-width: 44px; min-height: 44px;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  /* garante alvo de toque ≥44px sem alterar o visual */
}

/* ============================================================
   Kill-switch de movimento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
