/* Dú Lanches — redesign 2026-09-22
   Padrão da categoria (fast food/lanchonete), executado com capricho
   total — ver .impeccable/surfaces/saidas-site-index-html.md pro
   contrato de direção completo.

   Fontes: placeholder (Barlow Condensed/Barlow via Google Fonts) até
   confirmar licença de uso web das fontes da marca (identidade/FONTES).
   Trocar em @font-face assim que definido qual fica pra título e qual
   pra corpo.

   --vermelho é o vermelho oficial da marca (identidade/design-guide.md),
   usado em superfícies decorativas/ícones. --vermelho-cta é o mesmo
   matiz calibrado pra 4.5:1 de contraste em texto e botões sólidos —
   ajuste de acessibilidade, não uma cor nova da marca. */

:root {
  --vermelho: #ff0000;
  --vermelho-cta: #c40000;
  --marrom: #340000;
  --amarelo: #ffcc00;
  --branco: #ffffff;
  --creme: #fff6e6;
  --creme-2: #f7ead0;
  --texto-claro: #f3dfb8;
  --fonte-titulo: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fonte-corpo: "Barlow", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 26px;
  --sombra: 0 14px 32px -12px rgba(52, 0, 0, 0.32);
  --sombra-sm: 0 8px 18px -8px rgba(52, 0, 0, 0.28);
  --borda: 1px solid rgba(52, 0, 0, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fonte-corpo);
  color: var(--marrom);
  background: var(--branco);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Superfícies do navegador ---------- */

::selection { background: var(--vermelho-cta); color: var(--branco); }

:focus-visible {
  outline: 3px solid var(--vermelho-cta);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--creme); }
::-webkit-scrollbar-thumb { background: var(--marrom); border-radius: 8px; border: 3px solid var(--creme); }
html { scrollbar-color: var(--marrom) var(--creme); scrollbar-width: thin; }

/* ---------- Tipografia ---------- */

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  font-weight: 800;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: 0.02em; }

p { max-width: 62ch; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Ícones (SVG via mask, herdam currentColor) ---------- */

.icone {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  background-color: currentColor;
  flex-shrink: 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icone-estrela {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.7 7-6.3-3.9-6.3 3.9 1.7-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.7 7-6.3-3.9-6.3 3.9 1.7-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E");
}

.icone-pin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-7.2 7-12a7 7 0 1 0-14 0c0 4.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-7.2 7-12a7 7 0 1 0-14 0c0 4.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
}

.icone-telefone {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h4l2 5-2.5 1.5a12 12 0 0 0 6 6L15 14l5 2v4a2 2 0 0 1-2 2C9.7 22 2 14.3 2 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h4l2 5-2.5 1.5a12 12 0 0 0 6 6L15 14l5 2v4a2 2 0 0 1-2 2C9.7 22 2 14.3 2 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}

.icone-relogio {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");
}

.icone-camera {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.5-2h7L17 8h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.5' r='3.6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.5-2h7L17 8h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.5' r='3.6'/%3E%3C/svg%3E");
}

.icone-lapis {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4.5L15.5 5 19 8.5 8.5 19z'/%3E%3Cpath d='M13 7l4 4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4.5L15.5 5 19 8.5 8.5 19z'/%3E%3Cpath d='M13 7l4 4'/%3E%3C/svg%3E");
}

.icone-seta {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--marrom);
  border-bottom: 3px solid var(--amarelo);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: clamp(24px, 5vw, 56px);
  padding-right: clamp(24px, 5vw, 56px);
  gap: 24px;
}

.site-header .logo img { height: 48px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--texto-claro);
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--amarelo); border-color: var(--amarelo); }

.nav a.btn {
  border-bottom: none;
  padding: 4px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a.btn:hover { color: var(--branco); border-color: transparent; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid var(--texto-claro);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--branco);
}

.nav-toggle .icone { width: 20px; height: 20px; }
.nav-toggle .icone-fechar { display: none; }
.nav-toggle[aria-expanded="true"] .icone-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icone-fechar { display: inline-block; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--vermelho-cta);
  color: var(--branco);
  box-shadow: 0 10px 24px -8px rgba(196, 0, 0, 0.55);
}

.btn-primary:hover { background: #a80000; box-shadow: 0 14px 28px -8px rgba(196, 0, 0, 0.6); }

.btn-secondary {
  background: var(--amarelo);
  color: var(--marrom);
  box-shadow: 0 10px 22px -10px rgba(52, 0, 0, 0.4);
}

.btn-secondary:hover { background: #e6b800; }

.btn-outline {
  background: transparent;
  color: var(--branco);
  border-color: var(--branco);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-small { padding: 13px 26px; font-size: 0.85rem; }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Placeholder de foto ---------- */

.foto-placeholder {
  position: relative;
  background: linear-gradient(150deg, var(--creme-2), var(--creme));
  border: 1.5px dashed rgba(52, 0, 0, 0.28);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: rgba(52, 0, 0, 0.65);
  padding: 20px;
  min-height: 220px;
}

.foto-placeholder .icone-camera { width: 30px; height: 30px; opacity: 0.55; }

.foto-placeholder span {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.center { text-align: center; }

/* ---------- Rating inline ---------- */

.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--vermelho-cta);
  font-size: 0.92rem;
}

.rating .icone-estrela { color: var(--vermelho-cta); }

/* ---------- Página de unidade ---------- */

.unidade-hero {
  background: var(--marrom);
  color: var(--branco);
  padding: 52px 0 46px;
}

.breadcrumb { font-size: 0.85rem; color: var(--texto-claro); margin-bottom: 16px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--amarelo); }

.unidade-hero h1 { color: var(--branco); font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 10px; }
.unidade-hero p { color: var(--texto-claro); font-size: 1.05rem; }

.unidade-detalhe { padding: 64px 0; }

.unidade-detalhe .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-box {
  background: var(--creme);
  border: var(--borda);
  border-radius: var(--radius);
  padding: 30px;
}

.info-box dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fonte-titulo);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vermelho-cta);
  margin-top: 18px;
}

.info-box dt:first-child { margin-top: 0; }
.info-box dd { margin: 4px 0 0 26px; font-size: 1rem; }

.mapa-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra); border: var(--borda); width: 100%; min-height: 340px; }

.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.galeria .foto-placeholder { min-height: 130px; }
.galeria .foto-placeholder .icone-camera { width: 22px; height: 22px; }
.galeria .foto-placeholder span { font-size: 0.72rem; }
.galeria-foto { width: 100%; height: 130px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--sombra); }

/* ---------- Cardápio completo ---------- */

.cardapio-completo { padding: 60px 0 76px; }

.aviso-preencher {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--creme);
  border: var(--borda);
  color: var(--marrom);
  font-size: 0.9rem;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 40px;
}

.categoria { margin-bottom: 52px; }
.categoria:last-child { margin-bottom: 0; }
.categoria h2 { color: var(--marrom); border-bottom: 3px solid var(--amarelo); padding-bottom: 12px; margin-bottom: 24px; }

.menu-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.menu-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--creme);
  border: var(--borda);
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-sm);
  border-color: rgba(52, 0, 0, 0.22);
}

.menu-item .foto-placeholder { width: 84px; height: 84px; min-height: 0; flex-shrink: 0; border-radius: var(--radius-sm); padding: 8px; gap: 4px; }
.menu-item .foto-placeholder .icone-camera { width: 18px; height: 18px; }
.menu-item .foto-placeholder span { display: none; }

.menu-item-corpo { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.menu-item h3 { font-size: 1.05rem; font-family: var(--fonte-titulo); text-transform: uppercase; letter-spacing: 0.01em; }
.menu-item p { font-size: 0.88rem; color: #6b3a3a; }
.menu-item .preco {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  color: var(--vermelho-cta);
  font-variant-numeric: tabular-nums;
}

/* ---------- Contato / footer ---------- */

.contato { background: var(--vermelho-cta); color: var(--branco); padding: 64px 0; text-align: center; }
.contato h2 { color: var(--branco); margin-bottom: 16px; }
.contato p { max-width: 50ch; margin: 0 auto 28px; color: #ffe4e4; font-size: 1.05rem; }

.site-footer { background: var(--marrom); color: var(--texto-claro); padding: 48px 0 26px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-grid .footer-titulo { color: var(--amarelo); font-size: 0.88rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-grid p, .footer-grid a { font-size: 0.92rem; display: block; margin-bottom: 8px; }
.footer-grid a { padding: 8px 0; margin-bottom: 0; }
.footer-grid a:hover { color: var(--amarelo); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  font-size: 0.8rem;
  opacity: 0.75;
  text-align: center;
}

.footer-credito {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.footer-credito-logo {
  height: 22px;
  width: auto;
  opacity: 0.9;
}

.footer-credito a {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.footer-credito a:hover .footer-credito-logo {
  opacity: 1;
}

/* ---------- Responsivo ---------- */

@media (max-width: 860px) {
  .unidade-detalhe .grid { grid-template-columns: 1fr; }

  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--marrom);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 3px solid var(--amarelo);
    transform: translateY(-150%);
    transition: transform 0.2s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .menu-lista { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: 1fr; }
}

/* ---------- Aviso de cookies ---------- */

.aviso-cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: var(--marrom);
  color: var(--texto-claro);
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5);
  animation: aviso-cookies-entra 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.aviso-cookies p { font-size: 0.92rem; line-height: 1.45; margin: 0; flex: 1; }
.aviso-cookies-acoes { display: flex; gap: 10px; flex-shrink: 0; }

.link-cookies {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-cookies:hover { color: var(--amarelo); }

@keyframes aviso-cookies-entra {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .aviso-cookies { flex-direction: column; align-items: stretch; gap: 14px; }
  .aviso-cookies-acoes .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .aviso-cookies { animation: none; }
}
