/* =========================================================
   BRASEIRO GAÚCHO — style.css
   Identidade: selo vermelho/preto do logo + Key Visual escuro,
   tipografia serifada (Editorial Today) + script de assinatura
   (Bradley Jermaine), fotografia de prato em destaque.
   ========================================================= */

/* ---------- Fontes da marca ---------- */
@font-face {
  font-family: "Editorial Today";
  src: url("../assets/fonts/EditorialToday-Thin.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Editorial Today";
  src: url("../assets/fonts/EditorialToday-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Editorial Today";
  src: url("../assets/fonts/EditorialToday-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Editorial Today";
  src: url("../assets/fonts/EditorialToday-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bradley Jermaine";
  src: url("../assets/fonts/BradleyJermaine.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --red: #a61e22;
  --red-dark: #7c1518;
  --black: #17120f;
  --black-soft: #221b16;
  --cream: #f4ecdd;
  --cream-2: #eadfc8;
  --text-dark: #241d17;
  --text-light: #f8f1e4;
  --text-muted: #6c6055;

  --font-display: "Editorial Today", Georgia, "Times New Roman", serif;
  --font-script: "Bradley Jermaine", cursive;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1180px;
  --radius: 6px;
  --shadow-soft: 0 18px 40px rgba(0,0,0,.25);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.script-accent {
  font-family: var(--font-script);
  color: var(--red);
  font-weight: 400;
  font-size: 1.3em;
  line-height: 1;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: .6em;
}
.eyebrow-script {
  font-family: var(--font-script);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 2.3rem;
  color: var(--cream);
  margin-bottom: .2em;
}

.section-intro {
  max-width: 680px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: var(--text-light);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}
.btn-outline:hover { background: var(--text-light); color: var(--black); }
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline-light:hover { background: var(--cream); color: var(--black); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.site-header.is-scrolled {
  background: rgba(23, 18, 15, .92);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-logo {
  height: 54px;
  width: auto;
  transition: height .3s ease;
}
.brand:has(~ .main-nav.is-open) .brand-logo {
  display: none;
}
.is-scrolled .brand-logo { height: 42px; }
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  color: var(--text-light);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-cta { margin-left: 8px; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-light);
  overflow: hidden;
  padding-top: 100px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media .hero-poster { z-index: 0; }
.hero-media .hero-video { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-media .hero-video { display: none; }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0,0,0,.5);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.35) 100%)
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-bottom: 60px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--text-light);
  margin-bottom: .35em;
}
.hero-subtitle {
  font-size: 1.15rem;
  max-width: 560px;
  color: rgba(248,241,228,.9);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1.5em;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.section-light { background: var(--cream); color: var(--text-dark); }
.section-dark { background: var(--black); color: var(--text-light); }
.section-dark .eyebrow { color: var(--red); }
.section-dark h2 { color: var(--text-light); }
.section-dark .section-intro { color: rgba(248,241,228,.82); }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.badge-desde {
  position: absolute;
  bottom: 18px; left: 18px;
  background: var(--red);
  color: var(--text-light);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Destaques do cardápio ---------- */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.dish-card {
  position: relative;
  aspect-ratio: 3/4;
  border: 1px solid rgba(248,241,228,.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.dish-card:hover { transform: translateY(-6px); border-color: var(--red); }
.dish-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.dish-card:hover img { transform: scale(1.06); }
.dish-card-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 22px 20px 48px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10,7,5,.88) 0%, rgba(10,7,5,.5) 60%, rgba(10,7,5,0) 100%);
}
.dish-card-top h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-light);
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.9);
}
.dish-card-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 20px 22px;
  background: linear-gradient(0deg, rgba(10,7,5,.9) 0%, rgba(10,7,5,.55) 60%, rgba(10,7,5,0) 100%);
}
.dish-card-bottom p {
  margin: 0;
  font-family: var(--font-body);
  color: rgba(248,241,228,.9);
  font-size: .93rem;
  text-shadow: 0 1px 5px rgba(0,0,0,.85);
}
.cardapio-cta {
  text-align: center;
  margin-top: 56px;
}
.cardapio-note {
  margin-top: 12px;
  color: rgba(248,241,228,.65);
  font-size: .88rem;
}

/* ---------- Fondue ---------- */
.fondue-section { overflow: hidden; }
.fondue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.fondue-media {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 16px;
}
.fondue-img-main, .fondue-img-secondary {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.fondue-img-main { aspect-ratio: 3/4; }
.fondue-img-secondary { aspect-ratio: 3/4; margin-top: 40px; }
.fondue-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* ---------- Ambiente ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
}
.ambiente-cta { margin-top: 44px; }

/* ---------- Casais / Famílias ---------- */
.casais-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.casais-media img {
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.casais-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.casais-text strong { color: var(--red-dark); }

/* ---------- Avaliações ---------- */
.testimonial-slider { margin-top: 40px; }
.testimonial-track {
  position: relative;
}
.testimonial {
  display: none;
  margin: 0;
  padding: 32px;
  background: rgba(248,241,228,.05);
  border: 1px solid rgba(248,241,228,.12);
  border-radius: var(--radius);
  animation: testimonial-fade .35s ease;
}
.testimonial.is-active {
  display: block;
}
@keyframes testimonial-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.testimonial p {
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-light);
}
.testimonial cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 700;
  color: var(--red);
  font-size: .9rem;
  letter-spacing: .03em;
}
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.testimonial-controls button {
  background: transparent;
  border: 1px solid rgba(248,241,228,.35);
  color: var(--text-light);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s ease, border-color .2s ease;
}
.testimonial-controls button:hover { background: var(--red); border-color: var(--red); }
.testimonial-dots {
  display: flex;
  gap: 8px;
}
.testimonial-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(248,241,228,.3);
  padding: 0;
  cursor: pointer;
}
.testimonial-dots button.is-active { background: var(--red); }

/* ---------- Contato ---------- */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}
.contato-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contato-info {
  margin: 24px 0 32px;
  display: grid;
  gap: 10px;
}
.contato-info li { font-size: .98rem; }
.contato-info a { color: var(--red-dark); font-weight: 700; }
.contato-map {
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(248,241,228,.75);
  padding: 60px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(248,241,228,.12);
}
.footer-logo { height: 70px; width: auto; margin-bottom: 16px; }
.footer-tagline { max-width: 320px; font-size: .95rem; }
.footer-info p, .footer-links a { margin: 0 0 10px; display: block; font-size: .95rem; }
.footer-links a { color: var(--text-light); font-weight: 600; }
.footer-links a:hover { color: var(--red); }
.footer-copy {
  text-align: center;
  font-size: .82rem;
  color: rgba(248,241,228,.5);
  margin: 24px 0 0;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .fondue-grid, .casais-grid, .contato-grid { grid-template-columns: 1fr; }
  .about-media, .casais-media { order: -1; }
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contato-map { min-height: 280px; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: rgba(23,18,15,.98);
    padding: 24px;
    gap: 18px;
  }
  .header-cta.is-open { display: inline-block; }
  .hero { padding-top: 90px; }
  .dish-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .fondue-media { grid-template-columns: 1fr; }
  .fondue-img-secondary { margin-top: 0; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .section { padding: 64px 0; }
}

/* ---------- Reveal ao rolar (fade + leve movimento para cima) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* cascata suave nos grids de cards/fotos */
.dish-card.reveal:nth-child(1) { --reveal-delay: 0s; }
.dish-card.reveal:nth-child(2) { --reveal-delay: .08s; }
.dish-card.reveal:nth-child(3) { --reveal-delay: .16s; }
.dish-card.reveal:nth-child(4) { --reveal-delay: .24s; }
.dish-card.reveal:nth-child(5) { --reveal-delay: .32s; }
.dish-card.reveal:nth-child(6) { --reveal-delay: .4s; }

.gallery img.reveal:nth-child(1) { --reveal-delay: 0s; }
.gallery img.reveal:nth-child(2) { --reveal-delay: .1s; }
.gallery img.reveal:nth-child(3) { --reveal-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
