/* ==========================================================================
   M.A. Restaurante e Espetaria
   Folha de estilo do site. Paleta de brasa: vermelho, milho e carvão
   sobre creme quente.
   ========================================================================== */

:root {
  --brasa: #C1442F;
  --brasa-esc: #A2331F;
  --milho: #E9A13B;
  --carvao: #221C18;
  --carvao-2: #2E2722;
  --creme: #FFF6EC;
  --creme-2: #FBE9D7;
  --texto: #5B4B41;
  --suave: #8A786C;
  --linha: #F0DCC7;

  --font-titulo: "Bitter", Georgia, serif;
  --font-corpo: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1160px;
  --raio: 14px;
  --raio-lg: 22px;
  --sombra-sm: 0 2px 6px rgba(34, 28, 24, .06), 0 12px 28px rgba(34, 28, 24, .07);
  --sombra-md: 0 4px 12px rgba(34, 28, 24, .09), 0 22px 46px rgba(34, 28, 24, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--texto);
  font-family: var(--font-corpo);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--brasa-esc); text-decoration: none; }
a:hover { color: var(--brasa); }
h1, h2, h3 { color: var(--carvao); font-family: var(--font-titulo); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--carvao); font-weight: 700; }

:focus-visible { outline: 3px solid var(--brasa); outline-offset: 3px; border-radius: 5px; }

.sprite { display: none; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--carvao); color: var(--creme); padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 700;
}
.skip-link:focus { left: 12px; color: var(--creme); }

.anchor { display: block; height: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.wrap.narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--font-corpo);
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brasa); margin: 0 0 12px;
}

.ico { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------- botões -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-corpo); font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brasa); color: #fff; box-shadow: 0 10px 24px rgba(193, 68, 47, .32); }
.btn-primary:hover { background: var(--brasa-esc); color: #fff; }

.btn-ghost { background: transparent; color: var(--carvao); border-color: var(--linha); }
.btn-ghost:hover { background: #fff; color: var(--brasa-esc); border-color: var(--brasa); }
.btn-ghost .ico { width: 18px; height: 18px; }
.section-escura .btn-ghost { color: var(--creme); border-color: rgba(255, 246, 236, .25); }
.section-escura .btn-ghost:hover { background: rgba(255, 246, 236, .1); color: #fff; border-color: var(--creme); }

/* ------------------------------------------------------------ cabeçalho -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 246, 236, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--linha);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(34, 28, 24, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--carvao); }
.brand:hover { color: var(--carvao); }
.brand-mark { display: block; width: 46px; height: 46px; flex: 0 0 auto; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-text strong { font-family: var(--font-titulo); font-size: 23px; font-weight: 700; letter-spacing: .02em; color: var(--carvao); }
.brand-text small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brasa); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav > a:not(.btn) { font-size: 15.5px; font-weight: 600; color: var(--texto); position: relative; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 3px; border-radius: 3px;
  background: var(--milho); transition: right .25s var(--ease);
}
.nav > a:not(.btn):hover, .nav > a.is-active:not(.btn) { color: var(--carvao); }
.nav > a:not(.btn):hover::after, .nav > a.is-active:not(.btn)::after { right: 0; }
.nav-cta { margin-left: 4px; }

.nav-toggle { display: none; width: 48px; height: 44px; padding: 0; border: 2px solid var(--linha); border-radius: 12px; background: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2.5px; margin: 4px auto; background: var(--carvao); border-radius: 3px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero -- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 90px) 0 clamp(52px, 8vw, 96px); isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(720px 420px at 82% 10%, rgba(233, 161, 59, .28), transparent 62%),
    radial-gradient(560px 380px at 6% 92%, rgba(193, 68, 47, .14), transparent 66%),
    var(--creme);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; margin-bottom: 20px; text-wrap: balance; }
.destaque { color: var(--brasa); }
.hero .lede { font-size: clamp(17px, 2vw, 19.5px); max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: var(--carvao);
  background: #fff; border: 2px solid var(--linha); border-radius: 999px; padding: 8px 16px;
}
.hero-chips .ico { width: 18px; height: 18px; color: var(--brasa); }
.hero-art svg { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------- seções -- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-creme { background: var(--creme-2); }
.section-escura { background: var(--carvao); color: #D6C9BE; }
.section-escura h2, .section-escura h3 { color: var(--creme); }
.section-escura .eyebrow { color: var(--milho); }
.section-escura .section-sub { color: #C9BAAD; }

.section-head { max-width: 730px; margin-bottom: clamp(34px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(29px, 4vw, 43px); margin-bottom: 14px; text-wrap: balance; }
.section-sub { font-size: 17.5px; margin: 0; }

/* --------------------------------------------------------------- cards -- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 2px solid var(--linha); border-radius: var(--raio-lg);
  padding: 28px 26px; box-shadow: var(--sombra-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sombra-md); border-color: var(--milho); }
.card h3 { font-size: 22px; margin: 16px 0 8px; }
.card p { font-size: 16px; margin: 0; }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(193, 68, 47, .1); color: var(--brasa); border: 2px solid rgba(193, 68, 47, .2);
}
.card-ico .ico { width: 27px; height: 27px; }
.card-ico.grande { width: 66px; height: 66px; margin-bottom: 16px; }
.card-ico.grande .ico { width: 32px; height: 32px; }

.nota-cardapio {
  margin: 30px 0 0; text-align: center; font-size: 15.5px; color: var(--suave);
  font-family: var(--font-titulo); font-style: italic;
}

/* -------------------------------------------------------- como pedir -- */
.modos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.modo {
  background: rgba(255, 246, 236, .06); border: 1px solid rgba(255, 246, 236, .14);
  border-radius: var(--raio-lg); padding: 28px 26px;
}
.modo-n {
  display: inline-block; font-family: var(--font-titulo); font-size: 30px; font-weight: 700;
  color: var(--milho); line-height: 1; margin-bottom: 14px;
}
.modo h3 { font-size: 21px; margin-bottom: 8px; }
.modo p { font-size: 16px; margin: 0; color: #C9BAAD; }

/* --------------------------------------------------------- para empresas -- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 58px); align-items: center; }
.split-text h2 { font-size: clamp(28px, 3.8vw, 40px); }

.lista-check { display: grid; gap: 11px; margin: 24px 0 28px; }
.lista-check li { position: relative; padding-left: 30px; font-size: 16.5px; }
.lista-check li::before {
  content: ""; position: absolute; left: 3px; top: 9px; width: 12px; height: 7px;
  border-left: 3px solid var(--brasa); border-bottom: 3px solid var(--brasa); transform: rotate(-45deg);
}

.split-card {
  background: #fff; border: 2px solid var(--linha); border-radius: var(--raio-lg);
  padding: clamp(26px, 3.4vw, 36px); box-shadow: var(--sombra-sm);
}
.split-card h3 { font-size: 23px; margin-bottom: 16px; }
.passos-curtos { display: grid; gap: 12px; }
.passos-curtos li { font-size: 16px; }
.passos-curtos strong { color: var(--brasa); }

/* ------------------------------------------------------------------ faq -- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 2px solid var(--linha); border-radius: var(--raio); overflow: hidden; transition: border-color .2s var(--ease); }
.faq details[open] { border-color: var(--milho); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 58px 20px 24px; position: relative;
  font-family: var(--font-titulo); font-size: 18.5px; font-weight: 600; color: var(--carvao);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 3px solid var(--brasa); border-bottom: 3px solid var(--brasa); border-radius: 2px;
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq-body { padding: 0 24px 22px; }
.faq-body p { margin: 0; font-size: 16.5px; }

/* -------------------------------------------------------------- contato -- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 58px); align-items: start; }
.contact-text h2 { font-size: clamp(28px, 3.8vw, 42px); }
.contact-text > p { font-size: 17.5px; max-width: 46ch; color: #C9BAAD; }
.contact-list { display: grid; gap: 16px; margin-top: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  background: rgba(233, 161, 59, .16); color: var(--milho); border: 1px solid rgba(233, 161, 59, .3);
}
.contact-info { display: flex; flex-direction: column; font-size: 16px; color: #D6C9BE; }
.contact-info strong { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--milho); margin-bottom: 2px; }
.contact-list a { color: var(--creme); }
.contact-list a:hover { color: var(--milho); }

.contact-form, .sem-canal {
  background: var(--creme); border-radius: var(--raio-lg);
  padding: clamp(24px, 3.2vw, 36px); box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.contact-form h3, .sem-canal h3 { font-size: 24px; margin-bottom: 4px; }
.form-intro { font-size: 15.5px; margin-bottom: 22px; }
.sem-canal p { font-size: 16.5px; }
.endereco-destaque {
  font-family: var(--font-titulo); font-size: 19px; font-weight: 600; color: var(--carvao);
  background: #fff; border: 2px dashed var(--linha); border-radius: var(--raio); padding: 18px 20px; margin: 0;
}

.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--carvao); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-corpo); font-size: 16px; color: var(--carvao);
  background: #fff; border: 2px solid var(--linha); border-radius: 12px; padding: 12px 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #B3A497; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brasa); box-shadow: 0 0 0 4px rgba(193, 68, 47, .14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C0392B; box-shadow: 0 0 0 4px rgba(192, 57, 43, .12); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235B4B41' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}

.check { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 20px; font-size: 13.8px; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brasa); flex: 0 0 auto; }
.check a { text-decoration: underline; text-underline-offset: 2px; }

.form-help { margin: 14px 0 0; font-size: 14px; color: var(--suave); text-align: center; }
.form-status { margin: 12px 0 0; font-size: 15px; font-weight: 700; text-align: center; min-height: 1px; }
.form-status.is-error { color: #B3341F; }
.form-status.is-ok { color: #1F7A52; }

/* -------------------------------------------------------------- rodapé -- */
.site-footer { background: #1B1613; color: #A2938A; padding: clamp(44px, 6vw, 66px) 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 246, 236, .1); }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand p { margin: 0; font-size: 15px; line-height: 1.7; }
.footer-brand strong { color: var(--creme); }
.site-footer h2 { font-family: var(--font-corpo); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--milho); margin-bottom: 14px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { color: #B9AAA0; font-size: 15.5px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--creme); }
.footer-bottom { padding-top: 22px; }
.footer-bottom .copy { margin: 0; font-size: 13.5px; color: #7D6F66; }

/* --------------------------------------------------------- botão fixo -- */
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 999px;
  background: var(--brasa); color: #fff; font-size: 15.5px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(193, 68, 47, .38);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease), background .2s var(--ease);
}
.float-cta.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.float-cta:hover { background: var(--brasa-esc); color: #fff; }

/* ------------------------------------------------------------- animação -- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* usado quando a aba está em segundo plano, onde o navegador congela as
   transições e o conteúdo ficaria invisível */
.sem-animacao .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* -------------------------------------------------- páginas internas -- */
.page-hero { background: var(--creme-2); padding: clamp(44px, 6vw, 74px) 0 clamp(32px, 4vw, 50px); border-bottom: 1px solid var(--linha); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 10px; }
.page-hero p { margin: 0; font-size: 17px; max-width: 58ch; }

.legal { padding: clamp(44px, 6vw, 70px) 0 clamp(52px, 7vw, 84px); }
.legal h2 { font-size: clamp(22px, 2.8vw, 28px); margin-top: 38px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 16.5px; }
.legal ul { display: grid; gap: 9px; margin: 0 0 20px; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--milho); }
.legal .legal-box { background: var(--creme-2); border: 2px solid var(--linha); border-left: 4px solid var(--brasa); border-radius: var(--raio); padding: 22px 24px; margin: 26px 0; }
.legal .legal-box p:last-child { margin-bottom: 0; }
.legal .legal-date { font-size: 14px; color: var(--suave); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; margin-bottom: 24px; }
.back-link .ico { width: 18px; height: 18px; transform: rotate(180deg); }

.erro-page { text-align: center; padding: clamp(70px, 11vw, 130px) 0; }
.erro-page .codigo { font-family: var(--font-titulo); font-size: clamp(70px, 14vw, 130px); line-height: 1; color: var(--brasa); margin: 0 0 8px; }
.erro-page h1 { font-size: clamp(26px, 4vw, 36px); }
.erro-page p { max-width: 44ch; margin-inline: auto; }
.erro-page .btn { margin-top: 14px; }

/* ---------------------------------------------------- foto do topo -- */
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(34, 28, 24, .2);
  border: 6px solid #fff;
}

/* o nome da marca agora aparece sozinho, sem o quadrado de logo ao lado */
.brand-text strong { letter-spacing: 0; }

/* ---------------------------------------------------------- responsivo -- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin-inline: auto; order: -1; }
  .split, .contact { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  html { scroll-padding-top: 78px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 66px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px 24px 26px; background: var(--creme); border-bottom: 2px solid var(--linha);
    box-shadow: 0 20px 40px rgba(34, 28, 24, .16);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--linha); font-size: 17px; }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 18px 0 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .float-cta span { display: none; }
  .float-cta { padding: 16px; right: 16px; bottom: 16px; }
  .faq summary { font-size: 17px; padding-right: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .float-cta, .contact-form-wrap, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  .section-escura, .site-footer { background: #fff !important; color: #000 !important; }
  .section-escura h2, .section-escura h3 { color: #000 !important; }
}
