@font-face {
  font-family: "Libre Caslon Display";
  src: url("../fonts/caslon-display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-var.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --paper: #f4f1ed;
  --ink: #181716;
  --muted: #66615c;
  --line: #ded9d3;
  --red: #971521;
  --red-dark: #76101a;
  --green: #147a35;
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --shell: 1180px;
  --header-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  min-width: 320px;
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: clip;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

figure,
h1,
h2,
h3,
p {
  margin-top: 0;
}

svg {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(151, 21, 33, .32);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: none;
}

.brand > img {
  width: 34px;
  height: 43px;
  object-fit: contain;
}

.brand > span {
  display: grid;
  margin-left: 10px;
  padding-left: 11px;
  border-left: 1.5px solid var(--red);
  line-height: 1;
}

.brand strong {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand small {
  justify-self: end;
  margin-top: 5px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .4em;
  text-transform: uppercase;
}

.header-nav,
.header-cta {
  display: none;
}

.header-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.header-back svg {
  width: 19px;
  height: 19px;
}

.menu-hero {
  padding: 34px 0 50px;
  background: var(--white);
}

.menu-hero-grid {
  display: grid;
  gap: 32px;
}

.menu-hero-copy {
  max-width: 620px;
}

.menu-hero h1 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 11vw, 50px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.menu-hero-copy > p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 750;
  line-height: 1.15;
}

.button-primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.button-secondary {
  background: var(--white);
  border-color: #77716c;
}

.image-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.hero-photo {
  position: relative;
  order: -1;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  font-size: 12px;
  font-weight: 650;
}

.catalog-heading h2,
.return-section h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 8vw, 34px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.18;
}

.catalog-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.catalog-section {
  padding: 68px 0 80px;
  scroll-margin-top: 0;
  background: var(--paper);
}

.catalog-heading {
  display: grid;
  gap: 26px;
  margin-bottom: 38px;
}

.catalog-heading p {
  margin-top: 11px;
}

.catalog-search {
  margin: 0;
}

.catalog-search > label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.search-control {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: var(--white);
  border: 1px solid #9a948e;
  border-radius: 12px;
}

.search-control:focus-within {
  outline: 3px solid rgba(151, 21, 33, .22);
  outline-offset: 2px;
  border-color: var(--red);
}

.search-control > svg {
  width: 21px;
  height: 21px;
}

.search-control input {
  min-width: 0;
  min-height: 50px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.search-control input::placeholder {
  color: #817b75;
}

.search-control button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.search-control button svg {
  width: 18px;
  height: 18px;
}

.catalog-layout {
  display: grid;
  gap: 28px;
}

.catalog-sidebar {
  align-self: start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.group-nav-label {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.group-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.group-nav button {
  min-height: 52px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.group-nav button.is-active {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.catalog-content {
  min-width: 0;
  min-height: 360px;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.catalog-group-heading {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.catalog-group + .catalog-group {
  margin-top: 44px;
}

.menu-category {
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
}

.menu-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.menu-category-name {
  margin: 0;
  color: var(--red);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.menu-items {
  display: grid;
  gap: 0 30px;
}

.menu-item {
  min-width: 0;
  padding: 17px 0 18px;
  border-top: 1px solid #ebe7e2;
}

.menu-item-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.3;
}

.menu-item-description {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.catalog-empty,
.catalog-error {
  max-width: 620px;
  margin: 34px auto 0;
  padding: 34px 22px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
}

.catalog-empty h3,
.catalog-error h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.catalog-empty p,
.catalog-error p {
  margin-bottom: 20px;
  color: var(--muted);
}

.catalog-empty button,
.catalog-error button {
  min-height: 46px;
  padding: 0 18px;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  font-weight: 700;
}

.no-script {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.return-section {
  padding: 60px 0 64px;
  color: var(--white);
  background: var(--red-dark);
}

.return-grid {
  display: grid;
  gap: 28px;
}

.return-section h2 {
  color: var(--white);
}

.return-section p {
  max-width: 600px;
  margin: 13px 0 0;
  color: #eadadc;
  font-size: 17px;
}

.return-actions {
  display: grid;
  gap: 10px;
}

.button-light {
  color: var(--red-dark);
  background: var(--white);
  border-color: var(--white);
}

.button-outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, .7);
}

.site-footer {
  padding: 54px 0 24px;
  color: #d8d2cd;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  gap: 34px;
}

.brand-footer strong,
.brand-footer small {
  color: var(--white);
}

.footer-grid p {
  margin: 18px 0 0;
  color: #aba49e;
}

.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid nav > strong {
  margin-bottom: 3px;
  color: var(--white);
}

.footer-grid nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 42px;
  padding-top: 20px;
  color: #938c86;
  border-top: 1px solid #393532;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mobile-dock {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: calc(66px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white);
  box-shadow: 0 -7px 24px rgba(24, 23, 22, .15);
}

.mobile-dock a {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
}

.mobile-dock a + a {
  border-left: 1px solid rgba(255, 255, 255, .24);
}

.mobile-dock svg,
.mobile-dock img {
  width: 24px;
  height: 24px;
}

.mobile-dock .mobile-whatsapp {
  color: var(--white);
  background: var(--green);
}

@media (min-width: 560px) {
  .shell {
    width: min(calc(100% - 56px), var(--shell));
  }

  .hero-actions,
  .return-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .button {
    min-width: 190px;
  }

  .menu-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

@media (min-width: 820px) {
  :root {
    --header-height: 78px;
  }

  body {
    padding-bottom: 0;
    font-size: 17px;
  }

  .header-inner {
    gap: 26px;
  }

  .brand > img {
    width: 41px;
    height: 52px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 9px;
  }

  .header-back {
    display: none;
  }

  .header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 650;
  }

  .header-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .header-nav a[aria-current="page"] {
    color: var(--red);
  }

  .header-cta {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: var(--white);
    background: var(--red);
    border: 1px solid var(--red);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  .menu-hero {
    padding: 66px 0 76px;
  }

  .menu-hero-grid {
    grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
    align-items: center;
    gap: 68px;
  }

  .menu-hero h1 {
    font-size: clamp(46px, 5vw, 64px);
  }

  .menu-hero-copy > p {
    font-size: 19px;
  }

  .hero-photo img {
    aspect-ratio: 4 / 3;
  }

  .hero-photo {
    order: initial;
  }

  .catalog-heading h2,
  .return-section h2 {
    font-size: 42px;
  }

  .catalog-section {
    padding: 92px 0 108px;
  }

  .catalog-heading {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
    align-items: end;
    gap: 70px;
  }

  .catalog-layout {
    grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
    align-items: start;
    gap: 38px;
  }

  .catalog-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 22px);
    padding: 24px;
  }

  .group-nav {
    grid-template-columns: 1fr;
  }

  .group-nav button {
    min-height: 54px;
    padding-inline: 15px;
    font-size: 14px;
  }

  .catalog-content {
    padding: 34px 38px 42px;
  }

  .catalog-group-heading {
    font-size: 42px;
  }

  .menu-category-name {
    font-size: 20px;
  }

  .return-section {
    padding: 76px 0 80px;
  }

  .return-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 60px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr .7fr .8fr;
    gap: 70px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .mobile-dock {
    display: none;
  }
}

@media (min-width: 1080px) {
  .menu-hero-grid {
    gap: 100px;
  }

  .button-primary:hover,
  .header-cta:hover {
    color: var(--white);
    background: var(--red-dark);
    border-color: var(--red-dark);
  }

  .button-secondary:hover {
    color: var(--red);
    border-color: var(--red);
  }

  .header-nav a:hover,
  .footer-grid a:hover,
  .footer-bottom a:hover {
    color: var(--red);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media print {
  body {
    padding: 0;
  }

  .site-header,
  .menu-hero,
  .catalog-search,
  .catalog-sidebar,
  .return-section,
  .mobile-dock {
    display: none !important;
  }

  .catalog-section {
    padding: 20px 0;
  }

  .menu-category {
    break-inside: avoid;
  }

  .menu-category > .menu-items {
    display: grid !important;
  }
}

/* v12: mantém o mesmo lockup centralizado das demais páginas no mobile. */
@media (max-width: 819px) {
  .header-inner {
    position: relative;
    justify-content: center;
    gap: 0;
    min-height: 72px;
  }

  .header-inner > .brand {
    position: absolute;
    left: 50%;
    max-width: calc(100% - 104px);
    transform: translateX(-50%);
  }

  .header-back {
    position: relative;
    z-index: 2;
    margin-left: auto;
  }

  .brand > img {
    width: 34px;
    height: 43px;
  }

  .brand > span {
    margin-left: 9px;
    padding-left: 10px;
  }
}

/* v14: wordmark na mesma família editorial da headline principal. */
.brand strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .025em;
}

@media (max-width: 819px) {
  .brand strong { font-size: 15px; }
}
