/* ============================================================
   HOME — Chapa Quente Grill
   Paleta tirada do salão real: parede amarela, cadeiras carvão,
   mesas de madeira. Tipografia: Archivo (condensada nos títulos).
   Carregado só na página inicial (via $extraCss).
   ============================================================ */

:root {
  --h-parede:  #EDB61B;
  --h-carvao:  #27221E;
  --h-branco:  #FFFFFF;
  --h-madeira: #9C6B3E;
  --h-brasa:   #C2410C;
  --h-brasa-2: #9A3412;
  --h-fumaca:  #6A5F57;
  --h-linha:   #E7E1DA;
  --h-font:    'Bricolage Grotesque', system-ui, sans-serif;
}

/* Base da página */
.page-home {
  background: var(--h-branco);
  color: var(--h-carvao);
  font-family: var(--h-font);
}
.page-home main,
.h-page { font-family: var(--h-font); }

.h-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Resets com especificidade zero (:where) para não anular as margens
   definidas pelas classes de cada bloco. */
:where(.h-page) :where(h1, h2, h3) {
  font-family: var(--h-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
:where(.h-page) :where(p) { margin: 0; }
/* cor: o style.css global pinta h1–h6 de branco */
.h-page h1, .h-page h2, .h-page h3 { color: inherit; font-family: var(--h-font); text-wrap: balance; }

/* ---------- Botões ---------- */
.h-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 6px;
  font: 600 1rem/1 var(--h-font);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.h-btn--brasa { background: var(--h-brasa); color: #fff; }
.h-btn--brasa:hover { background: var(--h-brasa-2); color: #fff; }
.h-btn--linha { border-color: var(--h-carvao); color: var(--h-carvao); background: transparent; }
.h-btn--linha:hover { background: var(--h-carvao); color: var(--h-parede); }
.h-btn--claro { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.h-btn--claro:hover { background: #fff; color: var(--h-carvao); }
.h-btn:focus-visible,
.h-page a:focus-visible,
.h-faq summary:focus-visible {
  outline: 3px solid var(--h-carvao);
  outline-offset: 3px;
}
.h-eventos .h-btn:focus-visible,
.h-eventos a:focus-visible { outline-color: var(--h-parede); }

.h-link {
  color: var(--h-brasa);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.h-link:hover { color: var(--h-brasa-2); }

/* ============================================================
   NAVBAR (só na home: barra branca)
   ============================================================ */
.page-home .navbar,
.page-home .navbar.scrolled {
  background: var(--h-branco);
  border-bottom: 1px solid var(--h-linha);
  box-shadow: none;
  backdrop-filter: none;
  padding: 10px 0;
}
.page-home .navbar-logo img,
.page-home .navbar.scrolled .navbar-logo img { height: 52px; }
.page-home .nav-links a {
  color: var(--h-carvao);
  font-family: var(--h-font);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 1rem;
}
.page-home .nav-links a:hover,
.page-home .nav-links a.active { color: var(--h-brasa); }
.page-home .nav-links a::after { background: var(--h-brasa); }
.page-home .nav-toggle span { background: var(--h-carvao); }

/* Menu mobile (o site não tinha — os links estouravam a tela) */
@media (max-width: 900px) {
  .page-home .nav-toggle { display: flex; margin-left: 12px; }
  .page-home .nav-actions { margin-left: auto; }
  .page-home .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 16px;
    background: var(--h-branco);
    border-bottom: 1px solid var(--h-linha);
  }
  .page-home .nav-links.open { display: flex; }
  .page-home .nav-links li { list-style: none; }
  .page-home .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--h-linha);
  }
  .page-home .nav-links a::after { display: none; }
  .page-home .navbar-inner { position: relative; }
}

/* ============================================================
   HERO — a parede amarela
   ============================================================ */
.h-hero {
  margin-top: 73px; /* altura da navbar fixa */
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: min(84vh, 760px);
  background: var(--h-parede);
}
.h-hero__texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 64px 56px 64px max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.h-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--h-carvao);
}
.h-status__ponto {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--h-carvao);
  box-shadow: 0 0 0 3px rgba(39,34,30,.18);
  flex-shrink: 0;
}
.h-status--aberto .h-status__ponto { background: #1F7A3D; box-shadow: 0 0 0 3px rgba(31,122,61,.25); }

.h-hero h1 {
  font-size: clamp(2.5rem, 4.3vw, 4.1rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-wrap: balance;
}
.h-hero__sub {
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 36ch;
}
.h-hero__acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.h-nowrap { white-space: nowrap; }
.h-hero__endereco {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(39,34,30,.78);
}
.h-hero__foto { position: relative; overflow: hidden; background: #d9d2c8; }
.h-hero__foto img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 80%; /* menos teto, mais salão e parede amarela */
  display: block;
}

/* ============================================================
   ALMOÇO
   ============================================================ */
.h-almoco { padding: 104px 0 96px; background: var(--h-branco); }
.h-almoco__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 72px;
  align-items: start;
}
.h-almoco h2, .h-eventos h2, .h-faq h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 22px;
}
.h-almoco__lead {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 36px;
}
.h-horarios {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-top: 2px solid var(--h-carvao);
  max-width: 480px;
}
.h-horarios li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--h-linha);
  font-size: 1.02rem;
}
.h-horarios strong { font-weight: 700; }
.h-horarios span { color: var(--h-fumaca); text-align: right; }
.h-contato-linha {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--h-fumaca);
  margin-bottom: 26px;
}
.h-contato-linha strong { color: var(--h-carvao); font-weight: 600; }
.h-valores {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--h-linha);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--h-fumaca);
  max-width: 52ch;
}
.h-almoco__fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.h-almoco__fotos figure { margin: 0; overflow: hidden; border-radius: 6px; background: #eee; }
.h-almoco__fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-almoco__fotos .f1 { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.h-almoco__fotos .f2, .h-almoco__fotos .f3 { aspect-ratio: 3 / 4; }
.h-almoco__fotos .f1 img { object-position: 50% 70%; }
.h-almoco__fotos .f2 img, .h-almoco__fotos .f3 img { object-position: 50% 75%; }

/* ============================================================
   EVENTOS — o salão à noite
   ============================================================ */
.h-eventos {
  background: var(--h-carvao);
  color: #F6F2EC;
  padding: 104px 0 110px;
}
.h-eventos__topo {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.h-eventos h2 { max-width: 16ch; }
.h-eventos__lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(246,242,236,.82);
  max-width: 46ch;
}

.h-mosaico {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 12px;
  margin-bottom: 72px;
}
.h-mosaico figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; background: #3a332d; }
.h-mosaico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-mosaico figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), transparent);
}
.h-mosaico .m1 { grid-row: 1 / 3; }

.h-inclui {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  margin-bottom: 80px;
}
.h-inclui h3, .h-passos h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  color: var(--h-parede);
}
.h-inclui ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  border-top: 1px solid rgba(246,242,236,.2);
}
.h-inclui li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(246,242,236,.2);
  font-size: 1.03rem;
  line-height: 1.45;
}
.h-inclui li small { display: block; color: rgba(246,242,236,.62); font-size: 0.9rem; margin-top: 2px; }

.h-passos { margin-bottom: 48px; }
.h-passos h3 { margin-bottom: 26px; }
.h-passos ol {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: passo;
}
.h-passos li {
  counter-increment: passo;
  padding-top: 18px;
  border-top: 2px solid var(--h-parede);
  font-size: 1.03rem;
  line-height: 1.55;
  color: rgba(246,242,236,.88);
}
.h-passos li::before {
  content: counter(passo);
  display: block;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--h-parede);
  margin-bottom: 10px;
}

/* ---------- Reserva (calendário + formulário) ---------- */
.h-reserva {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  scroll-margin-top: 90px;
}
.h-painel {
  background: var(--h-branco);
  color: var(--h-carvao);
  border-radius: 8px;
  padding: 28px;
}
.h-painel__titulo {
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.05;
  margin-bottom: 6px;
}
.h-painel__nota { font-size: 0.95rem; color: var(--h-fumaca); margin-bottom: 20px; line-height: 1.5; }
.h-eventos__mais { margin-top: 28px; color: rgba(246,242,236,.8); font-size: 1rem; }
.h-eventos__mais a { color: var(--h-parede); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Calendário (FullCalendar) em fundo claro — o style.css global é escuro */
.h-painel .fc, .h-painel .fc *:not(.fc-icon) { font-family: var(--h-font) !important; }
.h-painel .fc { color: var(--h-carvao); }
.h-painel .fc-toolbar-title {
  color: var(--h-carvao) !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  text-transform: none !important;
}
.h-painel .fc-toolbar-title::first-letter { text-transform: uppercase; }
.h-painel .fc-weekday-badge {
  background: none !important;
  color: var(--h-fumaca) !important;
  font-size: 0.68rem !important;
  font-weight: 600;
}
.h-painel .fc-weekday-badge i { display: none; }
.h-painel .fc-button-primary {
  background: var(--h-branco) !important;
  border: 1px solid var(--h-linha) !important;
  color: var(--h-carvao) !important;
}
.h-painel .fc-button-primary:hover { background: #F4EFE8 !important; }
.h-painel .fc-theme-standard .fc-scrollgrid,
.h-painel .fc-scrollgrid,
.h-painel .fc-scrollgrid td,
.h-painel .fc-scrollgrid th { border-color: var(--h-linha) !important; }
.h-painel .fc-col-header { background: #F7F3EE !important; }
.h-painel .fc-col-header-cell-cushion { color: var(--h-fumaca) !important; text-transform: none !important; }
.h-painel .fc-daygrid-day-number { color: var(--h-carvao) !important; }
.h-painel .fc-day-other .fc-daygrid-day-number { color: #B3AAA1 !important; }
.h-painel .fc-day-today, .h-painel .fc-day-today .fc-daygrid-day-frame { background: #FDF3D3 !important; }
.h-painel .fc-day-available { background: #EEF7F0 !important; }
.h-painel .cal-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 0.9rem; color: var(--h-fumaca); }
.h-painel .cal-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.h-painel .cal-legend-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* Formulário em fundo claro */
.h-painel .form-group { margin-bottom: 16px; }
.h-painel .form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--h-carvao);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.h-painel .form-control {
  width: 100%;
  background: var(--h-branco) !important;
  color: var(--h-carvao) !important;
  border: 1.5px solid #D6CEC5 !important;
  border-radius: 6px !important;
  padding: 12px 13px !important;
  font: 400 1rem var(--h-font) !important;
  box-shadow: none !important;
}
.h-painel .form-control::placeholder { color: #9C938A; }
.h-painel .form-control:focus { border-color: var(--h-carvao) !important; outline: 2px solid var(--h-parede); outline-offset: 1px; }
.h-painel small { color: var(--h-fumaca) !important; font-size: 0.86rem !important; }
.h-painel .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.h-painel .time-picker { display: flex; align-items: center; gap: 8px; }
.h-painel .time-sep { color: var(--h-carvao); font-weight: 700; }
.h-painel .buffet-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.h-painel .buffet-option {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1.5px solid #D6CEC5;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  background: var(--h-branco);
  color: var(--h-carvao);
}
/* rádio visível: o global usa display:none e isso impede escolher pelo teclado */
.h-painel .buffet-option input[type="radio"] {
  display: inline-block;
  accent-color: var(--h-brasa);
  width: 18px; height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.h-painel .buffet-option:has(input:focus-visible) { outline: 3px solid var(--h-carvao); outline-offset: 2px; }
.h-painel .buffet-option-icon { display: none; }
.h-painel .buffet-option strong { display: block; font-weight: 700; font-size: 0.95rem; color: var(--h-carvao); }
.h-painel .buffet-option span { display: block; font-size: 0.85rem; color: var(--h-fumaca); }
.h-painel .buffet-option.active { border-color: var(--h-carvao); background: #FDF3D3; }
.h-painel .btn-primary {
  width: 100%;
  justify-content: center;
  background: var(--h-brasa) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font: 600 1.05rem var(--h-font) !important;
  padding: 16px !important;
  text-transform: none !important;
}
.h-painel .btn-primary:hover { background: var(--h-brasa-2) !important; transform: none !important; }
.h-painel .alert { border-radius: 6px; padding: 12px 14px; margin-bottom: 16px; font-size: 0.95rem; }
.h-painel .alert-success { background: #E7F4EA; color: #1F5F32; border: 1px solid #B9DEC3; }
.h-painel .alert-error { background: #FBEAE7; color: #8A2B17; border: 1px solid #F0C3B8; }
.h-painel .form-card-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--h-linha);
  font-size: 0.9rem; color: var(--h-fumaca);
}
.h-painel .form-card-footer a,
.h-painel .form-card-footer .btn {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #0E7A3B !important;
  font: 600 0.95rem var(--h-font) !important;
  text-transform: none !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.h-painel .form-card-footer .btn i { margin-right: 6px; }

/* ============================================================
   FAQ
   ============================================================ */
.h-faq { padding: 100px 0; background: var(--h-branco); }
.h-faq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.h-faq__intro { font-size: 1.05rem; line-height: 1.6; color: var(--h-fumaca); max-width: 34ch; }
.h-faq__lista { border-top: 2px solid var(--h-carvao); }
.h-faq details { border-bottom: 1px solid var(--h-linha); }
.h-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  position: relative;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after {
  content: '+';
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 500;
  color: var(--h-brasa);
}
.h-faq details[open] summary::after { content: '\2212'; }
.h-faq .h-faq__resp { padding: 0 0 22px; font-size: 1.02rem; line-height: 1.65; color: #4A423C; max-width: 64ch; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 980px) {
  .h-hero { grid-template-columns: 1fr; min-height: 0; margin-top: 73px; }
  .h-hero__texto { padding: 44px 24px 40px; gap: 22px; }
  .h-hero__foto { aspect-ratio: 4 / 3; }
  .h-hero__foto img { object-position: 50% 68%; }
  .h-hero h1 { max-width: none; }
  .h-almoco__grid, .h-eventos__topo, .h-inclui, .h-faq__grid, .h-reserva { grid-template-columns: 1fr; gap: 36px; }
  .h-almoco, .h-eventos, .h-faq { padding: 72px 0; }
  .h-mosaico { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; }
  .h-mosaico .m1 { grid-row: 1; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .h-wrap { padding: 0 18px; }
  .h-hero__texto { padding: 36px 18px 34px; }
  .h-hero h1 { font-size: 2.75rem; }
  .h-hero__acoes .h-btn { width: 100%; justify-content: center; }
  .h-inclui ul { grid-template-columns: 1fr; }
  .h-passos ol { grid-template-columns: 1fr; gap: 24px; }
  .h-mosaico { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 170px 170px; gap: 8px; }
  .h-mosaico figcaption { font-size: 0.82rem; padding: 22px 10px 9px; }
  .h-painel { padding: 20px 16px; }
  .h-painel .form-grid-2, .h-painel .buffet-options { grid-template-columns: 1fr; }
  .h-horarios li { flex-direction: column; gap: 2px; }
  .h-horarios span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .h-btn { transition: none; }
}
