/* Brum & Mello — fundamentos. Documentação: src/DESIGN-SYSTEM.md */

@font-face {
  font-family: 'Italiana';
  src: url('../../assets/fonts/italiana-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../../assets/fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Cor: tons da identidade (verde, verde-escuro, preto, areia) lidos dos PDFs da marca. */
  --green: #4a6336;
  --green-2: #5b7743;
  --forest: #2e3f29;
  --forest-deep: #1c2619;
  --ink: #0e1214;
  --ink-2: #4f554b;
  --sand: #dad8cb;
  --sand-2: #c9c6b5;
  --paper: #f3f1ea;
  --paper-2: #e8e5da;
  --on-dark: #eeece3;
  --on-dark-2: rgb(238 236 227 / 0.72);
  --line: rgb(14 18 20 / 0.14);
  --line-light: rgb(238 236 227 / 0.18);
  --wa: #25d366;

  /* Tipografia: Italiana ecoa as capitulares finas da marca; Montserrat, o "CHURRASCARIA". */
  --f-display: 'Italiana', 'Didot', Georgia, serif;
  --f-text: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Espaço e forma */
  /* Medidas em rem para acompanhar a escala do desktop (ver html, abaixo). */
  --max: 82.5rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(5rem, 10vw, 9rem);
  --r-sm: 0.375rem;
  --r: 0.875rem;
  --r-lg: 1.5rem;

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --slide-time: 7000ms;

  --hd-h: 5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--hd-h);
}

/* Desktop: o site inteiro é o layout de 1920px em escala (direção, 2026-10-26).
   1rem = 16px em 1920px e proporcional à largura da tela; como as medidas e os clamps
   são em rem/vw, tudo mantém o mesmo aspecto em qualquer monitor a partir de 1280px. */
@media (min-width: 1280px) {
  html { font-size: calc(100vw / 120); }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nw { white-space: nowrap; }

.skip {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r-sm);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec { padding-block: var(--sec); position: relative; }

/* Tipografia */
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.8vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
/* Italiana não tem itálico: a ênfase dos títulos muda de cor, não de estilo. */
.h2 em,
.slide__title em { font-style: normal; color: var(--green); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow__amp { width: 1.05rem; height: 1.05rem; flex: none; }
.eyebrow--light { color: var(--sand); }

.i { width: 1.25em; height: 1.25em; flex: none; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  position: relative;
  isolation: isolate;
  transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), border-color 240ms var(--ease-out), transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
/* Hover: o botão ganha sombra e uma cópia dele se expande e desaparece por trás. */
.btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  border: inherit;
  pointer-events: none;
  transition: transform 450ms var(--ease-out), opacity 450ms var(--ease-out);
}
.btn--ghost::after,
.btn--ghost-light::after { background: none; }
@media (hover: hover) {
  .btn:hover { box-shadow: 0 0.6rem 1.25rem rgb(0 0 0 / 0.22); }
  .btn:hover::after { transform: scale(1.18, 1.6); opacity: 0; }
}
.btn:active { box-shadow: 0 0.3rem 0.6rem rgb(0 0 0 / 0.2); }
.btn--sm { min-height: 2.75rem; padding: 0.65rem 1.25rem; font-size: 0.72rem; }
.btn--wa { background: var(--green); color: var(--on-dark); }
.btn--wa:hover { background: var(--green-2); }
.btn--light { background: var(--sand); color: var(--forest-deep); }
.btn--light:hover { background: var(--on-dark); }
.btn--dark { background: var(--forest); color: var(--on-dark); }
.btn--dark:hover { background: var(--green); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: rgb(238 236 227 / 0.45); color: var(--on-dark); }
.btn--ghost-light:hover { border-color: var(--on-dark); background: rgb(238 236 227 / 0.08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.35rem;
}
.link-arrow--light { color: var(--sand); }
.link-arrow .i:last-child { transition: transform 240ms var(--ease-out); }
.link-arrow:hover .i:last-child { transform: translate(2px, -2px); }

/* Estampa da marca como máscara: a cor vem de background-color. */
/* --fade: degradê que dissolve as bordas da estampa (sem cortes secos). */
.rod__pattern,
.hours__pattern,
.contact__pattern,
.nf__pattern {
  --fade: linear-gradient(#000, #000);
  -webkit-mask: url('../../assets/img/brand/estampa.svg') 0 0 / 7.5rem auto repeat, var(--fade);
  -webkit-mask-composite: source-in;
  mask: url('../../assets/img/brand/estampa.svg') 0 0 / 7.5rem auto repeat, var(--fade);
  mask-composite: intersect;
  pointer-events: none;
}

/* Revelação na rolagem (só com JS; sem JS o conteúdo fica visível). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
