/* 1. Tokens do design: altere aqui os valores compartilhados. */
:root {
  --pp-brand: #4a2c1d;
  --pp-accent: #874822;
  --pp-text: #252321;
  --pp-muted: #625b56;
  --pp-border: #e8e5e1;
  --pp-surface: #fff;
  --pp-subtle: #f4f4f3;
  --pp-radius: 12px;
  --pp-body: 'DM Sans', Arial, sans-serif;
  --pp-heading: 'Playfair Display', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--pp-surface); color: var(--pp-text); font: 400 16px/1.5 var(--pp-body); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--pp-brand); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--pp-brand); font-family: var(--pp-heading); font-weight: 400; }
h1 { font-size: clamp(36px, 4vw, 48px); line-height: 1.21; }
h2 { font-size: 32px; line-height: 1.3125; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; background: white; z-index: 10; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { color: var(--pp-accent); font-size: 14px; line-height: 20px; font-weight: 600; }

/* 2. Cabeçalho e navegação: funciona mesmo sem JavaScript. */
.site-header__inner { min-height: 104px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 12px; }
.brand { flex-shrink: 0; }
.brand img { width: 132px; height: 77.27px; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 8px; width: 568px; }
.site-nav a { min-width: 136px; padding: 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; }
.site-nav a:hover, .footer-nav a:hover { background: var(--pp-subtle); }
.menu-toggle { display: none; border: 1px solid var(--pp-border); border-radius: 8px; min-height: 44px; padding: 8px 16px; background: white; color: var(--pp-brand); font-weight: 600; }

/* 3. Home: as seções crescem junto com seu conteúdo. */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; padding-block: 64px; }
.hero__content { display: grid; gap: 24px; }
.hero__description { color: var(--pp-muted); }
.hero__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--pp-radius); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 24px; border: 1px solid var(--pp-brand); border-radius: 8px; background: var(--pp-brand); color: white; text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; transition: background .15s; }
.button:hover { background: #382014; }
.button:active { background: #29170e; }
.hero .button { width: 180px; }
.products { padding-block: 64px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 24px 0 0; list-style: none; }
.product-grid li { min-width: 0; }
.product-card { display: flex; flex-direction: column; gap: 8px; min-height: 100%; padding: 8px; border: 1px solid var(--pp-border); border-radius: var(--pp-radius); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.product-card:hover { border-color: #8b817a; box-shadow: 0 4px 16px #4a2c1d0a; }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.product-card h3 { font-size: 16px; line-height: 24px; }
.product-card p { font-size: 14px; line-height: 20px; color: var(--pp-muted); min-height: 20px; }
.location { display: grid; grid-template-columns: 632fr 456fr; gap: 32px; padding-block: 64px; }
.location__heading, .location__info { display: grid; align-content: start; gap: 16px; }
address { font-style: normal; color: var(--pp-muted); }
.hours { width: min(342px, 100%); padding: 16px; border: 1px solid var(--pp-border); border-radius: var(--pp-radius); display: grid; gap: 8px; color: var(--pp-muted); }
.hours h3 { font-size: 20px; line-height: 28px; }
.hours__contact { font-size: 14px; line-height: 20px; }
.phone { width: fit-content; color: var(--pp-muted); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.location .button { width: min(280px, 100%); }
.site-footer { padding-block: 32px 112px; }
.site-footer__inner { display: grid; gap: 16px; }
.footer-brand { font: 400 20px/28px var(--pp-heading); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-left: -8px; }
.footer-nav a { padding: 12px 8px; min-height: 48px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.instagram { width: fit-content; text-underline-offset: 4px; font-size: 14px; }
.copyright { font-size: 14px; line-height: 20px; }
.whatsapp { position: fixed; z-index: 3; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); min-height: 48px; width: 120px; display: flex; align-items: center; justify-content: center; border-radius: 24px; border: 1px solid transparent; color: #111b21; background: #25d366; font-size: 14px; font-weight: 600; text-decoration: none; }
.whatsapp:hover { border-color: #111b21; }
.whatsapp:focus-visible { outline-color: #111b21; }

/* 4. Detalhes: os dados ainda não cadastrados não viram ofertas fictícias. */
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 32px; border: 1px solid var(--pp-border); border-radius: 16px; color: var(--pp-text); background: white; }
dialog::backdrop { background: #25232180; }
.dialog-close { display: block; margin: -12px -12px 16px auto; border: 0; background: var(--pp-subtle); color: var(--pp-brand); border-radius: 8px; padding: 10px 16px; min-height: 44px; font-size: 14px; }
.dialog-content { display: grid; gap: 20px; }
.dialog-content p { color: var(--pp-muted); }
.dialog-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.dialog-note { font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 767px) {
  .site-header__inner { flex-wrap: wrap; gap: 8px; }
  .site-nav { width: 100%; flex-wrap: wrap; }
  .site-nav a { min-width: auto; }
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .hero { grid-template-columns: 1fr; padding-block: 40px; gap: 32px; }
  .products, .location { padding-block: 40px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location { grid-template-columns: 1fr; gap: 32px; }
  h2 { font-size: 28px; line-height: 1.3; }
  dialog { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* Imagens responsivas: a foto da home conserva sua proporção natural. */
picture { display: block; min-width: 0; }
.hero__image { display:block; width:100%; max-width:100%; height:auto; aspect-ratio:auto; object-fit:contain; }
.menu-item { display:grid; grid-template-columns:88px 1fr; gap:16px; padding-block:16px; border-bottom:1px solid var(--pp-border); }
.menu-item:not(:has(picture)) { grid-template-columns:1fr; }
.menu-item__image { width:88px; height:88px; object-fit:cover; border-radius:8px; }
.menu-item h3 { font-size:20px; }
.menu-item strong { display:block; margin-top:8px; color:var(--pp-brand); }

.brand img { object-fit:contain; }
.hero__content { min-width:0; overflow-wrap:anywhere; }
