/* ================================================================
   BRASA BURGER — STYLESHEET
   Cores em variáveis CSS, sobrescritas em runtime por script.js
   a partir de config.js — mude a cor lá, o site inteiro atualiza.
   ================================================================ */

:root{
  --bg: #111111;
  --bg-alt: #222222;
  --red: #E6392F;
  --red-dark: #C42E25;
  --yellow: #F4B942;
  --white: #FFFFFF;

  --font-display: "Anton", sans-serif;
  --font-body: "Barlow", sans-serif;

  --container: 1200px;
  --radius: 4px;
}

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

html{ scroll-behavior: smooth; scroll-padding-top: 84px; }

body{
  margin:0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin:0;
}

p{ margin:0; }

.container{ max-width: var(--container); margin:0 auto; padding: 0 28px; }

:focus-visible{ outline: 2px solid var(--yellow); outline-offset: 3px; }

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

/* ---------------- ICONS ---------------- */
.icon{ width: 22px; height: 22px; }
.icon--sm{ width: 17px; height: 17px; }
.icon--xl{ width: 64px; height: 64px; color: var(--red); }

/* ---------------- BUTTONS ---------------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor:pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  white-space: nowrap;
}
.btn--lg{ padding: 18px 34px; font-size: 0.92rem; }
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

.btn--primary{ background: var(--red); color: var(--white); }
.btn--primary:hover{ background: var(--red-dark); }

.btn--outline{ background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover{ background: var(--white); color: var(--bg); }

.btn--dark{ background: var(--bg); color: var(--white); }
.btn--dark:hover{ background: #000; }

.btn--header{ padding: 11px 20px; font-size: 0.78rem; }

/* ---------------- HEADER ---------------- */
.header{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid transparent;
  transition: border-color .3s ease;
}
.header.is-scrolled{ border-color: var(--red); }

.header__inner{ display:flex; align-items:center; justify-content:space-between; height: 76px; }

.brand{
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand span{ color: var(--red); }

.nav{ display:flex; gap: 34px; }
.nav a{ font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; position:relative; padding: 4px 0; }
.nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background: var(--yellow); transition: right .22s ease;
}
.nav a:hover::after{ right:0; }

.nav-toggle{ display:none; background:none; border:none; color:var(--white); cursor:pointer; }

.mobile-nav{
  position: fixed; inset:0; z-index:200;
  background: var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 28px;
  transform: translateY(-100%);
  transition: transform .35s ease;
}
.mobile-nav.is-open{ transform: translateY(0); }
.mobile-nav a{ font-family: var(--font-display); font-size: 1.7rem; text-transform:uppercase; color:var(--white); }
.mobile-nav__close{ position:absolute; top:26px; right:26px; background:none; border:none; color:var(--white); cursor:pointer; }

/* ---------------- ANIMAÇÕES (entrada orquestrada) ---------------- */
.anim{ animation-duration: .8s; animation-timing-function: cubic-bezier(.16,1,.3,1); animation-fill-mode: both; animation-delay: var(--d, 0ms); }
.anim-fade-in{ animation-name: fadeInA; animation-duration:.6s; animation-timing-function: ease-out; }
.anim-fade-up{ animation-name: fadeUp; }
.anim-slide-left{ animation-name: slideLeft; }
.anim-slide-right{ animation-name: slideRight; }
.anim-scale-in{ animation-name: scaleIn; animation-duration:.7s; }
.anim-photo-reveal{ animation-name: photoReveal; animation-duration: 1.1s; }
.anim-word-pop{ animation-name: wordPop; animation-duration:.9s; animation-timing-function: cubic-bezier(.34,1.56,.64,1); opacity:0; }
@keyframes fadeInA{ from{opacity:0} to{opacity:1} }
@keyframes fadeUp{ from{opacity:0; transform:translateY(30px)} to{opacity:1; transform:none} }
@keyframes slideLeft{ from{opacity:0; transform:translateX(-40px)} to{opacity:1; transform:none} }
@keyframes slideRight{ from{opacity:0; transform:translateX(40px)} to{opacity:1; transform:none} }
@keyframes scaleIn{ from{opacity:0; transform:scale(.85)} to{opacity:1; transform:none} }
@keyframes photoReveal{ from{opacity:0; transform:translateY(80px) scale(1.02)} to{opacity:1; transform:none} }
@keyframes wordPop{
  0%{ opacity:0; transform: translateY(60px) scale(.7) rotate(-4deg); filter: blur(8px); }
  60%{ opacity:1; transform: translateY(-8px) scale(1.04) rotate(1deg); filter: blur(0); }
  100%{ opacity:1; transform:none; filter:none; }
}

/* ---------------- HERO ---------------- */
.hero{
  position:relative; overflow:hidden;
  height: max(100vh, 700px); height: max(100svh, 700px);
  background: var(--bg);
  border-bottom: 4px solid var(--red);
}
.hero__glow{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(55% 45% at 50% 28%, color-mix(in srgb, var(--red) 26%, transparent), transparent 70%),
    radial-gradient(30% 30% at 50% 100%, color-mix(in srgb, var(--yellow) 14%, transparent), transparent 70%);
}

.hero__content{
  position:relative; z-index:5; text-align:center;
  display:flex; flex-direction:column; align-items:center;
  padding-top: clamp(92px, 12vh, 120px);
}
.hero__title{
  font-size: clamp(2.4rem, min(6vw, 10.5vh), 5.75rem);
  line-height: .95; letter-spacing: -0.005em;
  max-width: 9.5em; text-wrap: balance;
}
.hero__title .word{ display:inline-block; }
.hero__subtitle{
  margin-top: clamp(12px, 2vh, 20px); max-width: 52ch;
  color: #D8D2CB; font-size: clamp(.95rem, 1.1vw, 1.08rem);
}
.hero__actions{ margin-top: clamp(18px, 3vh, 28px); display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }

/* cards laterais (produtos) */
.hero__cards{ display:contents; }
.hero-card{ position:absolute; top: clamp(96px, 13vh, 130px); z-index:6; width: clamp(130px, 13vw, 240px); }
.hero-card--left{ left: clamp(16px, 3.4vw, 48px); }
.hero-card--right{ right: clamp(16px, 3.4vw, 48px); }
.hero-card__media{ position:relative; border-radius: 16px; overflow:hidden; aspect-ratio: 1/1; background: var(--bg-alt); }
.hero-card--right .hero-card__media{ aspect-ratio: 4/5; }
.hero-card__media img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.hero-card:hover .hero-card__media img{ transform: scale(1.06); }
.hero-card__go{
  position:absolute; right:10px; bottom:10px;
  width: 40px; height:40px; border-radius:50%;
  background: var(--red); color: var(--white);
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, transform .2s ease;
}
.hero-card__go:hover{ background: var(--red-dark); transform: scale(1.08); }
.hero-card__name{ margin-top: 10px; color:#B8B0A6; font-size: clamp(.82rem, 1vw, .95rem); font-weight:600; line-height:1.3; }
.hero-card__price{ display:flex; align-items:center; gap:8px; margin-top:2px; }
.hero-card__price strong{ font-family: var(--font-display); font-weight:400; color: var(--yellow); font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
.hero-card__price span{ font-size:.58rem; font-weight:800; letter-spacing:.05em; background: var(--yellow); color: var(--bg); padding: 2px 6px; border-radius:3px; }

/* três fotos coladas na base */
.hero__photos{
  position:absolute; left:0; right:0; bottom:0; height:100%;
  z-index:10; display:flex; align-items:flex-end; pointer-events:none;
}
.hero-photo{ position:relative; margin:0; overflow:hidden; flex:1; min-width:0; }
.hero-photo--side{ height: 36%; }
.hero-photo--center{ flex: 1.265; height: 46%; }
.hero-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-photo::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(180deg, transparent 38%, rgba(17,17,17,.88) 100%);
}
.hero-photo__overlay{
  position:absolute; z-index:2; left:0; right:0;
  bottom: clamp(20px, 4vh, 50px);
  padding: 0 clamp(14px, 2.2vw, 36px);
  display:flex; flex-direction:column; align-items:flex-start; gap:8px;
  pointer-events:auto;
}
.hero-photo__overlay > .icon{ color: var(--yellow); }
.hero-photo__overlay--center{ align-items:center; text-align:center; }
.hero-photo__overlay--right{ align-items:flex-end; text-align:right; }

#hero-hours p:first-child{ font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2.8rem); line-height:1; color: var(--white); }
#hero-hours p:first-child + p{ margin-top:4px; font-size: clamp(.68rem, .9vw, .85rem); color:#D8D2CB; }
#hero-slogan{ font-family: var(--font-display); text-transform:uppercase; line-height:1.05; font-size: clamp(1rem, 2.1vw, 2rem); max-width: 14ch; text-wrap: balance; }
.hero-arrow, .hero-ig{
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, transform .2s ease;
}
.hero-arrow{ background: var(--red); color: var(--white); }
.hero-arrow:hover{ background: var(--red-dark); transform: translateY(3px); }
.hero-ig{ border: 1.5px solid rgba(255,255,255,.7); color: var(--white); }
.hero-ig:hover{ background: var(--red); border-color: var(--red); }
#hero-handle{ font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.9rem); line-height:1; }

/* mobile: tudo empilhado, fotos em fluxo normal */
@media (max-width: 767px){
  .hero{ height:auto; }
  .hero__content{ padding-top: 104px; padding-left:20px; padding-right:20px; }
  .hero__title{ font-size: clamp(2.3rem, 11.5vw, 3.4rem); max-width:100%; }
  .hero__actions .btn{ width:100%; justify-content:center; }
  .hero__cards{
    display:grid; grid-template-columns: 1fr 1fr; gap:12px;
    position:relative; z-index:6; padding: 34px 20px 0;
  }
  .hero-card{ position:static; width:auto; }
  .hero-card--right .hero-card__media{ aspect-ratio:1/1; }
  .hero__photos{ position:relative; height:auto; margin-top:34px; }
  .hero-photo--side{ height: clamp(200px, 56vw, 320px); }
  .hero-photo--center{ height: clamp(250px, 70vw, 400px); }
  .hero-photo__overlay{ padding:0 10px; bottom:14px; gap:6px; }
  .hero-arrow, .hero-ig{ width:34px; height:34px; }
  #hero-hours p:first-child{ font-size:1.15rem; }
  #hero-slogan{ font-size:.95rem; }
  #hero-handle{ font-size:.9rem; }
}

/* ---------------- SECTION TITLES ---------------- */
.section-title{
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align:center;
  margin-bottom: 50px;
}
.section-title--light{ color: var(--bg); }

/* ---------------- DESTAQUES ---------------- */
.highlights{ padding: 100px 0 90px; }

.highlights__grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}

.highlight-card{
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow:hidden;
  position:relative;
  border: 1px solid #2E2E2E;
  transition: transform .25s ease, border-color .25s ease;
}
.highlight-card:hover{ transform: translateY(-6px); border-color: var(--red); }

.highlight-card__media{ aspect-ratio: 4/3; overflow:hidden; position:relative; }
.highlight-card__media img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.highlight-card:hover .highlight-card__media img{ transform: scale(1.07); }

.demo-badge{
  position:absolute; top: 14px; right: -34px;
  background: var(--yellow); color: var(--bg);
  font-family: var(--font-body); font-weight: 800; font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 5px 40px;
  transform: rotate(35deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.highlight-card__body{ padding: 24px 22px 26px; }
.highlight-card__body h3{ font-size: 1.35rem; }
.highlight-card__body p{ margin-top: 10px; color:#B8B0A6; font-size: 0.92rem; line-height:1.55; }
.highlight-card__footer{ display:flex; align-items:center; justify-content:space-between; margin-top: 18px; }
.highlight-card__price{ font-family: var(--font-display); color: var(--yellow); font-size: 1.4rem; }

/* ---------------- DIFERENCIAL ---------------- */
.differentials{ background: var(--yellow); padding: 90px 0; }
.differentials__grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.differential-item{ text-align:center; }
.differential-item__icon{
  width: 74px; height:74px; border-radius:50%;
  background: var(--bg); color: var(--yellow);
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 18px;
}
.differential-item h3{ color: var(--bg); font-size: 1.1rem; }

/* ---------------- CARDÁPIO ---------------- */
.menu{ padding: 100px 0; }

.menu__tabs{
  display:flex; flex-wrap:wrap; justify-content:center; gap: 12px; margin-bottom: 48px;
}
.menu__tab{
  background: var(--bg-alt);
  border: 2px solid #2E2E2E;
  color: var(--white);
  font-family: var(--font-body); font-weight:700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  padding: 12px 24px; border-radius: 999px;
  cursor:pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.menu__tab:hover{ border-color: var(--red); }
.menu__tab.is-active{ background: var(--red); border-color: var(--red); }

.menu__panel{ display:none; }
.menu__panel.is-active{ display:block; animation: fadeIn .3s ease; }
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }

.menu__grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.menu-item{
  display:flex; gap: 18px;
  background: var(--bg-alt);
  border: 1px solid #2E2E2E;
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color .2s ease;
}
.menu-item:hover{ border-color: var(--red); }

.menu-item__media{ width: 96px; height: 96px; flex-shrink:0; border-radius: var(--radius); overflow:hidden; }
.menu-item__media img{ width:100%; height:100%; object-fit:cover; }

.menu-item__body{ flex:1; display:flex; flex-direction:column; }
.menu-item__top{ display:flex; justify-content:space-between; gap: 10px; align-items:flex-start; }
.menu-item__body h4{ font-family: var(--font-body); font-weight:700; font-size: 1.02rem; text-transform:none; }
.menu-item__body p{ margin-top: 6px; color:#A8A099; font-size: 0.85rem; line-height:1.5; }

.menu-item__footer{ margin-top:auto; padding-top: 12px; display:flex; align-items:center; justify-content:space-between; }
.menu-item__price-wrap{ display:flex; align-items:center; gap: 8px; }
.menu-item__price{ font-family: var(--font-display); color: var(--yellow); font-size: 1.15rem; }
.menu-item__demo{
  font-size: 0.62rem; font-weight:800; letter-spacing:0.05em;
  background: var(--yellow); color: var(--bg); padding: 2px 7px; border-radius: 3px;
}
.menu-item__order{
  background: var(--red); color: var(--white);
  border-radius: 999px; width: 34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, transform .2s ease;
}
.menu-item__order:hover{ background: var(--red-dark); transform: scale(1.08); }

/* ---------------- GALERIA ---------------- */
.gallery{ padding: 100px 0; background: var(--bg-alt); }
.gallery__grid{
  display:grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 16px;
}
.gallery__grid a:nth-child(1){ grid-column: span 2; grid-row: span 2; }
.gallery__grid a{ position:relative; border-radius: var(--radius); overflow:hidden; }
.gallery__grid img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease, filter .4s ease; filter: saturate(0.9); }
.gallery__grid a::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55));
  opacity:0; transition: opacity .3s ease;
}
.gallery__grid a:hover img{ transform: scale(1.06); filter: saturate(1.1); }
.gallery__grid a:hover::after{ opacity:1; }

/* ---------------- SOBRE ---------------- */
.about{ padding: 110px 0; text-align:center; }
.about__inner{ max-width: 680px; margin:0 auto; }
.about h2{ font-size: clamp(2rem, 4vw, 2.8rem); }
.about p{ margin-top: 22px; color:#B8B0A6; font-size: 1.1rem; line-height:1.7; }

/* ---------------- CTA ---------------- */
.cta{
  background: var(--red);
  background-image: linear-gradient(115deg, var(--red) 60%, var(--red-dark) 60%);
  padding: 100px 0;
  text-align:center;
}
.cta h2{ font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--white); }
.cta p{ margin-top: 16px; color: rgba(255,255,255,0.9); font-size: 1.1rem; }
.cta .btn{ margin-top: 32px; }

/* ---------------- LOCALIZAÇÃO ---------------- */
.location{ padding: 100px 0; }
.location__grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items:stretch; }
.location__panel{
  background: var(--bg-alt); border-radius: var(--radius);
  display:flex; align-items:center; justify-content:center; min-height: 260px;
}
.location__info h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 30px; }
.location__row{ display:flex; gap: 14px; margin-bottom: 22px; }
.location__row .icon{ color: var(--red); flex-shrink:0; margin-top:2px; }
.location__row p{ color:#B8B0A6; }
.location__row p:first-child{ color: var(--white); font-weight:600; }
.location__info .btn{ margin-top: 12px; }

/* ---------------- FOOTER ---------------- */
.footer{ background: #000000; padding: 70px 0 0; border-top: 3px solid var(--red); }
.footer__grid{ display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer__logo{ font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 14px; }
.footer__brand p:not(.footer__logo){ font-size: 0.92rem; color:#9C948B; max-width: 34ch; }
.footer__social{ display:flex; gap: 12px; margin-top: 20px; }
.footer__social a{
  width: 40px; height:40px; border-radius:50%;
  border: 1px solid #333; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, border-color .2s ease;
}
.footer__social a:hover{ background: var(--red); border-color: var(--red); }
.footer__col h3{ font-family: var(--font-body); font-size: 0.8rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom: 14px; color: var(--yellow); font-weight:700; }
.footer__col p{ font-size: 0.9rem; margin-bottom: 6px; color:#9C948B; }
.footer__bottom{ border-top: 1px solid #262626; padding: 20px 0; text-align:center; }
.footer__bottom p{ font-size: 0.76rem; color:#6B655F; }

/* ---------------- WHATSAPP FLOAT ---------------- */
.whatsapp-float{
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 60px; height:60px; border-radius:50%;
  background: var(--red); color: var(--white);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px -8px rgba(230,57,47,0.75);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ box-shadow: 0 10px 26px -8px rgba(230,57,47,0.75); }
  50%{ box-shadow: 0 10px 26px -4px rgba(230,57,47,1), 0 0 0 9px rgba(230,57,47,0.14); }
}

/* ================================================================
   RESPONSIVO
   ================================================================ */
@media (max-width: 980px){
  .nav{ display:none; }
  .nav-toggle{ display:block; }
  #header-whatsapp span{ display:none; }

  .highlights__grid{ grid-template-columns: 1fr 1fr; }
  .differentials__grid{ grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .menu__grid{ grid-template-columns: 1fr; }
  .location__grid{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr 1fr; }
  .footer__brand{ grid-column: span 2; }
}

@media (max-width: 640px){
  .highlights__grid{ grid-template-columns: 1fr; }
  .differentials__grid{ grid-template-columns: 1fr 1fr; }
  .gallery__grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__grid a:nth-child(1){ grid-column: span 2; grid-row: span 1; }
  .menu-item{ flex-direction:column; }
  .menu-item__media{ width:100%; height: 160px; }
  .footer__grid{ grid-template-columns: 1fr; }
  .footer__brand{ grid-column: span 1; }
}
