/* =========================================================
   Companhia do Churrasco — Stylesheet
   Paleta e tipografia conforme Manual de Identidade Visual:
   Preto #000000 · Bege Quente #e4c193 · Off-white #ece5da · Vermelho Brasa #c02927
   Fonte institucional: Inter Tight
   ========================================================= */

:root {
  --black: #000000;
  --black-soft: #161311;
  --beige: #e4c193;
  --beige-soft: #f1ddbf;
  --offwhite: #ece5da;
  --red: #c02927;
  --red-dark: #8f1e1c;
  --white: #ffffff;

  --text-main: #201b17;
  --text-muted: #6b6058;
  --text-on-dark: #f6f1e9;

  --font-body: "Inter Tight", "Segoe UI", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-card: 0 12px 30px rgba(20, 14, 8, 0.12);
  --shadow-soft: 0 4px 16px rgba(20, 14, 8, 0.08);

  --container-w: 1180px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--black); color: var(--text-on-dark); }
.section--dark p { color: #cfc6ba; }
.section--beige { background: var(--offwhite); }
.section--red { background: var(--red); color: var(--white); }
.section--red p { color: #ffe4e0; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section--dark .eyebrow,
.section--red .eyebrow { color: var(--beige); }

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

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

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #2b2521; }

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

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

.btn--beige { background: var(--beige); color: var(--black); }
.btn--beige:hover { background: var(--beige-soft); }

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================== HEADER =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--container-w);
  margin: 0 auto;
}

.brand-logo img { height: 44px; width: auto; }

.main-nav { display: flex; }
.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
  transition: right .2s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--red); }
.nav-franqueado { display: none; }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--black); border-radius: 2px; }

/* =========================== HERO =========================== */
.hero {
  position: relative;
  color: var(--white);
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.65) 55%, rgba(0,0,0,.85) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-content .eyebrow { color: var(--beige); }
.hero-content p { color: #eee4d8; font-size: 1.1rem; }
.hero-content h1 { color: var(--white); }

.hero--page {
  min-height: 46vh;
  align-items: flex-end;
  padding-bottom: 56px;
}
.hero--page .hero-content { max-width: 620px; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-stats strong { display: block; font-size: 1.8rem; color: var(--beige); }
.hero-stats span { font-size: 0.85rem; color: #ded3c4; }

/* =========================== CARDS / GRIDS =========================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,.05);
}
.feature-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--offwhite);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--red);
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 0.94rem; }

.photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-card);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-card:hover img { transform: scale(1.06); }
.photo-card .tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(0,0,0,.72);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--text-main);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}
.check-list--light li { color: var(--text-on-dark); }

/* Two column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* =========================== CARDÁPIO =========================== */
.menu-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.menu-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--offwhite);
  background: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.menu-tab.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

.menu-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 90px; }
.menu-block:last-child { margin-bottom: 0; }
.menu-block:nth-child(even) .menu-block-media { order: 2; }
.menu-block-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); aspect-ratio: 4/3; object-fit: cover; width:100%; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-pill {
  background: var(--offwhite);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
}

/* =========================== LOJAS =========================== */
.state-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.state-filter button {
  border: 2px solid var(--offwhite);
  background: var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-main);
}
.state-filter button.is-active { background: var(--black); border-color: var(--black); color: var(--white); }

.store-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.store-group {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-md);
  padding: 24px 24px 8px;
  box-shadow: var(--shadow-soft);
}
.store-group h3 {
  color: var(--red);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 2px solid var(--offwhite);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.store-group li {
  padding: 7px 0;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px dashed rgba(0,0,0,.08);
}
.store-group li:last-child { border-bottom: none; }
.store-group[hidden] { display: none; }

.map-wrap {
  position: relative;
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}
.map-wrap img { max-width: 420px; margin: 0 auto; }

/* Interactive Brazil map */
.br-map {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}
.br-state {
  fill: #cfc0ac;
  stroke: var(--offwhite);
  stroke-width: 1.2;
  transition: fill .15s ease;
}
.br-state:not(.has-stores):hover { fill: #b8a88f; cursor: pointer; }
.has-stores { fill: var(--red); cursor: pointer; }
.has-stores:hover, .has-stores.is-active { fill: var(--red-dark); }

.map-legend {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 22px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.map-dot--active { background: var(--red); }
.map-dot--empty { background: #cfc0ac; }

.map-credit { margin: 14px 0 0; font-size: 0.72rem; color: var(--text-muted); }
.map-credit a { text-decoration: underline; }

.map-tooltip {
  position: absolute;
  top: 0; left: 0;
  z-index: 20;
  background: var(--black);
  color: var(--text-on-dark);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  min-width: 190px;
  max-width: 260px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
  font-size: 0.85rem;
  text-align: left;
}
.map-tooltip.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.map-tooltip strong { display: block; color: var(--beige); font-size: 0.95rem; margin-bottom: 8px; }
.map-tooltip ul { margin: 0; padding-left: 18px; }
.map-tooltip li { list-style: disc; margin-bottom: 4px; }
.map-tooltip p { color: #cfc6ba; margin: 0; font-size: 0.82rem; }
.map-tooltip a { color: var(--beige); pointer-events: auto; }

@media (max-width: 640px) {
  .map-tooltip { max-width: 220px; font-size: 0.8rem; }
}

/* =========================== FRANQUIA =========================== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
}
.stat-box strong { display: block; font-size: 1.8rem; color: var(--beige); margin-bottom: 6px; }
.stat-box span { font-size: 0.85rem; color: #cfc6ba; }

.advantage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.85rem; }
.form-field input, .form-field select, .form-field textarea {
  border: 2px solid var(--offwhite);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-main);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }

/* =========================== CONTATO =========================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info-card {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-item .ic {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: var(--black);
  color: var(--beige);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-item strong { display: block; font-size: 0.95rem; }
.contact-item span, .contact-item a { font-size: 0.92rem; color: var(--text-muted); }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.social-row a:hover { background: var(--red); }

/* =========================== TIMELINE / HISTÓRIA =========================== */
.history-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.history-figure { text-align: center; }
.history-figure strong { display: block; font-size: 2.2rem; color: var(--red); }
.history-figure span { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* =========================== FOOTER =========================== */
.site-footer { background: var(--black); color: #cfc6ba; padding: 70px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid img { height: 40px; margin-bottom: 16px; }
.footer-grid p { color: #a89e92; font-size: 0.9rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--beige); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--red); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #857c72;
  flex-wrap: wrap;
  gap: 10px;
}
#current-year {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: default;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 90;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .store-groups { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 70px; left: 0; right: 0; height: calc(100vh - 70px); overflow-y: auto; background: var(--white); padding: 30px 24px; transform: translateY(-120vh); transition: transform .25s ease; z-index: 99; }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav-toggle { display: flex; }
  .header-cta .btn span.btn-text-full { display: none; }
  .franqueado-header-btn { display: none; }
  .nav-franqueado { display: block; width: 100%; margin-top: 6px; }
  .nav-franqueado .btn { width: 100%; justify-content: center; }
  .nav-franqueado .btn span { display: inline; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .menu-block { grid-template-columns: 1fr; gap: 24px; }
  .menu-block:nth-child(even) .menu-block-media { order: 0; }
  .advantage-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .store-groups { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 78vh; }
  .section { padding: 60px 0; }
  .history-figures { grid-template-columns: 1fr; gap: 30px; }
}
