/*
Theme Name: Antônio Correa Churrasqueiro
Theme URI: https://antoniochurrasqueiro.com.br
Author: Autech Sistemas
Author URI: https://autechsistemas.com.br
Description: Tema de página única para Antônio Correa Churrasqueiro — churrasco de espeto, de chão e parrilha em Campo Grande-MS.
Version: 2.3.1
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: antonio-correa
*/

:root {
  --bg: #0f0d0b;
  --bg-2: #17130f;
  --card: #1e1914;
  --line: #3a2f22;
  --gold: #d4a548;
  --gold-2: #f0c46a;
  --fire: #d9541e;
  --text: #f3ece2;
  --muted: #b9ab98;
  --wa: #25d366;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
section[id], main[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: .5px;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-transform: uppercase;
}

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 13, 11, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--gold-2), var(--gold) 60%, #8a6522);
  color: #1a120a; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 20px;
}
.brand-logo { width: 52px; height: 52px; }
.footer-logo { width: 96px; height: 96px; margin-bottom: 14px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero-logo img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 480px; margin-left: auto;
  filter: drop-shadow(0 20px 60px rgba(217, 84, 30, .22));
}
.brand-name { font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 18px; line-height: 1.1; }
.brand-name small { display: block; color: var(--gold); font-size: 12px; letter-spacing: 2px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { background: #2fe174; }
.btn-ghost { border-color: var(--gold); color: var(--gold-2); }
.btn-ghost:hover { background: rgba(212, 165, 72, .12); }
.btn svg { width: 20px; height: 20px; }
.header-cta { padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 100px;
  background:
    radial-gradient(ellipse at 80% 110%, rgba(217, 84, 30, .45), transparent 55%),
    radial-gradient(ellipse at 10% -10%, rgba(212, 165, 72, .18), transparent 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold-2); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 820px; }
.hero h1 span { color: var(--gold); }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; color: var(--muted); font-size: 15px; }
.hero-badges strong { display: block; color: var(--text); font-family: "Oswald", sans-serif; font-size: 30px; letter-spacing: .5px; }

/* Sections */
section { padding: 90px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .kicker { color: var(--fire); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 6px; }
.section-head p { color: var(--muted); margin: 0; }

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

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(212, 165, 72, .12); color: var(--gold-2); margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); margin: 0; }

.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.extras { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: 0 0 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a120a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
}
.check-list strong { display: block; color: var(--text); }
.check-list span { color: var(--muted); }

.quote-box {
  background: linear-gradient(160deg, #2a1d12, var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px;
}
.quote-box h3 { font-size: 26px; }
.quote-box p { color: var(--muted); }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 22px; left: 28px;
  font-family: "Oswald", sans-serif; font-size: 22px; color: var(--fire);
}

.other .card { display: flex; gap: 18px; align-items: flex-start; }
.other .card .icon { margin: 0; flex: 0 0 52px; }

/* CTA band */
.cta-band {
  padding: 70px 0; text-align: center;
  background: radial-gradient(ellipse at 50% 120%, rgba(217, 84, 30, .5), transparent 60%), var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band p { color: var(--muted); margin: 0 auto 28px; max-width: 560px; }

/* Footer */
.site-footer { padding: 56px 0 30px; background: #0a0907; border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin: 0 0 12px; font-weight: 500; }
.site-footer p, .site-footer address { color: var(--muted); margin: 0 0 6px; font-style: normal; }
.legal a.dev-credit { color: var(--gold); }
.legal a.dev-credit:hover { color: var(--gold-2); }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: #8a7d6c; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.wa-float:hover { transform: scale(1.05); text-decoration: none; }
.wa-float svg { width: 32px; height: 32px; }

/* Lista do orçamento */
.quote-list { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 10px; }
.quote-list li { counter-increment: q; display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.quote-list li::before {
  content: counter(q); flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(212, 165, 72, .15); color: var(--gold-2); font-family: "Oswald", sans-serif; font-size: 15px;
}

/* Botão de menu (celular/tablet) */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn:focus-visible, .nav a:focus-visible, .nav-toggle:focus-visible, .wa-float:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* Galeria do Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ig-grid--preview { grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-tile {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; cursor: pointer;
  border-radius: 10px; overflow: hidden; background: var(--card); color: #fff; font: inherit;
}
.ig-tile[hidden] { display: none; }
.ig-tile-ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #2a1d12, #120e0a); color: var(--gold); }
.ig-tile-ph svg { width: 34px; height: 34px; opacity: .8; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ig-tile:hover img, .ig-tile:focus-visible img { transform: scale(1.05); }
.ig-tile:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.ig-badge {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff;
}
.ig-badge svg { width: 16px; height: 16px; }
.ig-hover {
  position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; font-size: 13px; line-height: 1.4; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); opacity: 0; transition: opacity .25s ease;
}
.ig-tile:hover .ig-hover, .ig-tile:focus-visible .ig-hover { opacity: 1; }
.ig-fallback {
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 40px 28px; text-align: center; color: var(--muted);
}
.ig-fallback p { margin: 0; }
.ig-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ig-actions .btn svg { width: 20px; height: 20px; }

/* Página da galeria */
.gallery-hero { padding: 64px 0 24px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.gallery-hero .kicker { color: var(--fire); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.gallery-hero h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 6px; }
.gallery-hero p { color: var(--muted); margin: 0; }
.gallery-body { padding: 36px 0 90px; }
.ig-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.ig-filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.ig-filter:hover { color: var(--text); border-color: var(--gold); }
.ig-filter.is-active { background: var(--gold); border-color: var(--gold); color: #1a120a; }
.nav a[aria-current="page"] { color: var(--gold-2); }

/* Visualizador (lightbox) */
html.ig-lock, html.ig-lock body { overflow: hidden; }
html.ig-lock .wa-float { display: none; }
.ig-lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 4, 3, .98);
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: auto minmax(0, 1fr);
  align-items: center; padding: 0 8px 16px;
}
.ig-lightbox[hidden] { display: none; }
.ig-lb-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 10px 4px; }
.ig-lb-count { color: var(--muted); font-size: 14px; }
.ig-lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff; justify-self: center;
}
.ig-lb-btn:hover { background: rgba(255, 255, 255, .2); }
.ig-lb-btn[hidden] { visibility: hidden; display: grid; }
.ig-lb-btn svg { width: 24px; height: 24px; }
.ig-lb-btn:focus-visible, .ig-lb-link:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.ig-lb-figure { margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.ig-lb-media { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.ig-lb-media img, .ig-lb-media video { max-width: 100%; max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); border-radius: 8px; background: #000; }
.ig-lb-caption { width: 100%; max-width: 720px; text-align: center; }
.ig-lb-text { margin: 0 0 8px; color: var(--text); font-size: 15px; max-height: 66px; overflow-y: auto; white-space: pre-line; }
.ig-lb-link { color: var(--gold-2); font-weight: 600; font-size: 14px; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 260px; margin: 0 auto 20px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .extras { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ig-grid--preview { grid-template-columns: repeat(3, 1fr); }

  .site-header .container { position: relative; }
  .nav-toggle { display: inline-flex; order: 3; }
  .header-cta { margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    background: rgba(15, 13, 11, .98); border-bottom: 1px solid var(--line);
  }
  .nav a { padding: 14px 4px; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .menu-open .nav { display: flex; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .site-header .container { height: 62px; gap: 10px; }
  .brand { gap: 10px; min-width: 0; }
  .brand-logo { width: 46px; height: 46px; }
  .brand-name { font-size: 15px; white-space: nowrap; }
  .brand-name small { font-size: 11px; }
  .header-cta { padding: 10px 12px; }
  .header-cta span { display: none; }

  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }
  .hero { padding: 40px 0 56px; }
  .hero .eyebrow { margin-bottom: 16px; }
  .hero p.lead { margin-bottom: 26px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; font-size: 14px; }
  .hero-badges strong { font-size: 24px; }
  .hero-badges div:last-child { grid-column: 1 / -1; }

  .card { padding: 24px 20px; }
  .steps .card { padding-top: 52px; }
  .quote-box { padding: 26px 20px; }
  .quote-box .btn, .cta-band .btn, .ig-actions .btn { width: 100%; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .ig-grid--preview { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .ig-tile { border-radius: 4px; }
  .ig-badge { top: 5px; right: 5px; width: 24px; height: 24px; }
  .ig-hover { display: none; }
  .gallery-hero { padding: 40px 0 20px; }
  .gallery-body { padding: 24px 0 70px; }
  .ig-lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr) auto; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); }
  .ig-lb-figure { grid-column: 1 / -1; grid-row: 2; }
  .ig-lb-prev { grid-column: 1; grid-row: 3; justify-self: start; }
  .ig-lb-next { grid-column: 2; grid-row: 3; justify-self: end; }
  .ig-lb-media img, .ig-lb-media video { max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px); }
  .cta-band { padding: 56px 0 90px; }
  .site-footer { padding-bottom: 96px; }
  .legal { flex-direction: column; }
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Dúvidas frequentes */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 22px; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Destaque: poucas vagas para o fim de ano */
.hero-alert {
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%;
  margin-bottom: 22px; padding: 10px 12px 10px 10px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(217, 84, 30, .28), rgba(212, 165, 72, .16));
  border: 1px solid rgba(240, 196, 106, .55); color: var(--text); text-decoration: none;
  box-shadow: 0 10px 30px rgba(217, 84, 30, .18);
}
.hero-alert:hover { text-decoration: none; border-color: var(--gold-2); }
.hero-alert-icon {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fire); color: #fff; animation: ac-pulse 2s ease-in-out infinite;
}
.hero-alert-icon svg { width: 20px; height: 20px; }
.hero-alert-text { font-size: 15px; line-height: 1.35; color: var(--text); }
.hero-alert-text strong { color: var(--gold-2); }
.hero-alert-cta {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: var(--gold); color: #1a120a;
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
@keyframes ac-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 84, 30, .55); }
  50% { box-shadow: 0 0 0 8px rgba(217, 84, 30, 0); }
}
@media (prefers-reduced-motion: reduce) { .hero-alert-icon { animation: none; } }
@media (max-width: 560px) {
  .hero-alert { flex-wrap: wrap; width: 100%; }
  .hero-alert-text { flex: 1 1 0; min-width: 0; }
  .hero-alert-cta { width: 100%; text-align: center; padding: 9px 14px; }
}
