/* ==========================================
   FONTES (hospedadas no site, sem depender do Google)
   Young Serif (títulos) + Libre Franklin (texto)
   ========================================== */

@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/young-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/young-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Libre Franklin é variável: o mesmo arquivo atende os pesos 400 e 500 */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/libre-franklin-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/libre-franklin-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================
   CUSTOM PROPERTIES
   Atualizar em /gerar-design
   ========================================== */

:root {
  /* Young Serif (a mais próxima da New Spirit do logo) + Libre Franklin (versão livre da Franklin Gothic) */
  --font-heading: 'Young Serif', Georgia, serif;
  --font-body: 'Libre Franklin', system-ui, sans-serif;

  /* Paleta da marca Anciã */
  --paper: #F4EEE1;
  --surface: #FBF8F1;
  --ink: #2E2F22;
  --olive: #424331;
  --olive-mid: #756B4E;
  --terracota: #AA5A39;
  --terracota-dark: #8F4A2E;
  --sand: #DABD9D;
  --beige: #DFD5BA;
  --mustard: #F2B617;
  --line: rgba(66, 67, 49, 0.16);
  --fio-claro: rgba(244, 238, 225, 0.3);
  --pauta: rgba(66, 67, 49, 0.12);

  /* Cores semanticas: verde é a casa, terracota o afeto, mostarda a luz */
  --color-bg: var(--paper);
  --color-text: var(--ink);
  --color-text-muted: var(--olive-mid);
  --color-primary: var(--olive);
  --color-primary-hover: var(--ink);
  --color-border: var(--line);
  --color-error: #B3261E;
  --color-success: #3F6B4F;

  /* Superficies */
  --radius: 6px;
  --shadow-card: 0 1px 2px rgba(46, 47, 34, 0.06), 0 22px 48px -22px rgba(46, 47, 34, 0.45);
  --ease-suave: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .18 0 0 0 0 .13 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Spacing */
  --header-h: 76px;
  --section-py: clamp(4rem, 10vw, 8rem);
  --container-px: clamp(1rem, 5vw, 2rem);
  --container-max: 1240px;
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }
}

/* ==========================================
   RESET
   ========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1, h2, h3 {
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Young Serif não tem itálico: o destaque é feito pela cor */
h1 em,
h2 em {
  font-style: normal;
}

main section[id] {
  scroll-margin-top: var(--header-h);
}

:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================
   LAYOUT
   ========================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

/* ==========================================
   FORMS
   ========================================== */

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.form-input.error {
  border-color: var(--color-error);
}

.form-feedback {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* intl-tel-input */
.iti {
  width: 100%;
}

.iti__country-list {
  z-index: 100;
}

/* ==========================================
   UTILITIES
   ========================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-muted {
  color: var(--color-text-muted);
}

/* ==========================================
   ACESSIBILIDADE
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   COMPONENTES GLOBAIS
   Compartilhados por todas as paginas
   ========================================== */

/* Botoes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.btn--primary {
  background: var(--olive);
  color: var(--paper);
  box-shadow: 0 12px 24px -14px rgba(46, 47, 34, 0.75);
}

.btn--primary:hover {
  background: var(--terracota-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--olive);
  box-shadow: inset 0 0 0 1.5px var(--olive);
}

.btn--ghost:hover {
  background: var(--olive);
  color: var(--paper);
}

.btn--claro {
  background: var(--paper);
  color: var(--olive);
}

.btn--claro:hover {
  background: var(--sand);
  color: var(--ink);
}

.btn--sm {
  min-height: 42px;
  padding: 0.6rem 1.15rem;
  font-size: 0.92rem;
}

/* Cabecalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.brand {
  flex: none;
  display: block;
}

.brand__logo {
  display: block;
  width: 152px;
  height: 54px;
  background: var(--olive);
  -webkit-mask: url("/.netlify/images?url=/images/marca-vector-03.png") left center / contain no-repeat;
  mask: url("/.netlify/images?url=/images/marca-vector-03.png") left center / contain no-repeat;
}

.brand__logo--cafe {
  -webkit-mask-image: url("/.netlify/images?url=/images/marca-vector-02.png");
  mask-image: url("/.netlify/images?url=/images/marca-vector-02.png");
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  position: relative;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: var(--olive);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current]::after {
  height: 2px;
  background: var(--mustard);
}

/* O menu tem só dois links (Cardápio e Buffet): fica visível em qualquer tela, sem botão "Menu" */
@media (max-width: 767px) {
  .site-nav ul {
    gap: 1.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1rem;
  }

  .site-nav a::after {
    bottom: 0.45rem;
  }

  .site-header__cta {
    display: none;
  }

  .brand__logo {
    width: 128px;
    height: 46px;
  }
}

/* Barra fixa no celular. O rodapé reserva o espaço dela (.rodape, padding-bottom) */
.mobile-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    gap: 0.5rem;
    padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }

  .mobile-bar .btn--primary {
    flex: 1;
  }

  .mobile-bar__whats {
    flex: none;
    width: 52px;
    min-height: 52px;
    padding: 0;
    background: transparent;
    color: var(--olive);
    box-shadow: inset 0 0 0 1px var(--olive);
  }

  .mobile-bar__whats svg {
    width: 24px;
    height: 24px;
  }

  /* A barra sai de cena quando já há botões de ação visíveis */
  .mobile-bar {
    transition: transform 0.35s var(--ease-suave), visibility 0.35s;
  }

  .mobile-bar.is-oculta {
    visibility: hidden;
    transform: translateY(110%);
  }
}

/* ==========================================
   PEÇAS DA MARCA
   Compartilhadas pela home, pelo buffet e pelas filhas
   ========================================== */

/* ==========================================
   PEÇAS REAPROVEITADAS
   ========================================== */

.kicker {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracota-dark);
}

.kicker--claro {
  color: var(--mustard);
}

/* Fio duplo: abertura das seções claras, como filete de impresso */
.fio-duplo {
  --fio-cor: var(--line);
  position: relative;
}

.fio-duplo::before {
  content: "";
  position: absolute;
  top: clamp(2rem, 3.5vw, 3rem);
  left: 50%;
  width: min(calc(var(--container-max) - 2 * var(--container-px)), calc(100% - 2 * var(--container-px)));
  height: 6px;
  border-top: 1px solid var(--fio-cor);
  border-bottom: 1px solid var(--fio-cor);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Recorte de convite: cantos côncavos */
.recorte {
  --r: 34px;
  -webkit-mask:
    radial-gradient(circle var(--r) at 0 0, #0000 98%, #000) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 100% 0, #0000 98%, #000) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 0 100%, #0000 98%, #000) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 100% 100%, #0000 98%, #000) 100% 100% / 51% 51% no-repeat;
  mask:
    radial-gradient(circle var(--r) at 0 0, #0000 98%, #000) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 100% 0, #0000 98%, #000) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 0 100%, #0000 98%, #000) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 100% 100%, #0000 98%, #000) 100% 100% / 51% 51% no-repeat;
}

/*
  Moldura de 1px que acompanha os cantos côncavos.
  --m-inset: distância da borda; --m-r: raio do arco (raio do recorte + inset).
  O fundo desenha os quatro arcos e a máscara esconde os cantos da borda reta.
*/
.moldura {
  --m-cor: var(--olive);
  --m-inset: 12px;
  --m-r: 46px;
  --m-a: calc(-1 * var(--m-inset));
  --m-b: calc(100% + var(--m-inset));
  position: absolute;
  inset: var(--m-inset);
  z-index: 1;
  border: 1px solid var(--m-cor);
  pointer-events: none;
  background:
    radial-gradient(circle at var(--m-a) var(--m-a), #0000 calc(var(--m-r) - 0.5px), var(--m-cor) calc(var(--m-r) - 0.5px) calc(var(--m-r) + 0.5px), #0000 calc(var(--m-r) + 0.5px)) 0 0 / 51% 51% no-repeat border-box,
    radial-gradient(circle at var(--m-b) var(--m-a), #0000 calc(var(--m-r) - 0.5px), var(--m-cor) calc(var(--m-r) - 0.5px) calc(var(--m-r) + 0.5px), #0000 calc(var(--m-r) + 0.5px)) 100% 0 / 51% 51% no-repeat border-box,
    radial-gradient(circle at var(--m-a) var(--m-b), #0000 calc(var(--m-r) - 0.5px), var(--m-cor) calc(var(--m-r) - 0.5px) calc(var(--m-r) + 0.5px), #0000 calc(var(--m-r) + 0.5px)) 0 100% / 51% 51% no-repeat border-box,
    radial-gradient(circle at var(--m-b) var(--m-b), #0000 calc(var(--m-r) - 0.5px), var(--m-cor) calc(var(--m-r) - 0.5px) calc(var(--m-r) + 0.5px), #0000 calc(var(--m-r) + 0.5px)) 100% 100% / 51% 51% no-repeat border-box;
  -webkit-mask:
    radial-gradient(circle at var(--m-a) var(--m-a), #0000 calc(var(--m-r) - 0.5px), #000 calc(var(--m-r) - 0.5px)) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle at var(--m-b) var(--m-a), #0000 calc(var(--m-r) - 0.5px), #000 calc(var(--m-r) - 0.5px)) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle at var(--m-a) var(--m-b), #0000 calc(var(--m-r) - 0.5px), #000 calc(var(--m-r) - 0.5px)) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle at var(--m-b) var(--m-b), #0000 calc(var(--m-r) - 0.5px), #000 calc(var(--m-r) - 0.5px)) 100% 100% / 51% 51% no-repeat;
  mask:
    radial-gradient(circle at var(--m-a) var(--m-a), #0000 calc(var(--m-r) - 0.5px), #000 calc(var(--m-r) - 0.5px)) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle at var(--m-b) var(--m-a), #0000 calc(var(--m-r) - 0.5px), #000 calc(var(--m-r) - 0.5px)) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle at var(--m-a) var(--m-b), #0000 calc(var(--m-r) - 0.5px), #000 calc(var(--m-r) - 0.5px)) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle at var(--m-b) var(--m-b), #0000 calc(var(--m-r) - 0.5px), #000 calc(var(--m-r) - 0.5px)) 100% 100% / 51% 51% no-repeat;
}

/* Links com sublinhado desenhado */
.link-claro,
.link-escuro {
  align-self: flex-start;
  padding-bottom: 3px;
  font-weight: 500;
  background: linear-gradient(var(--link-linha), var(--link-linha)) 0 100% / 100% 1px no-repeat;
  transition: color 0.25s ease, background-size 0.45s var(--ease-suave);
}

.link-claro {
  --link-linha: var(--mustard);
  color: var(--paper);
}

.link-escuro {
  --link-linha: var(--terracota);
  color: var(--olive);
}

.link-claro span,
.link-escuro span {
  display: inline-block;
  transition: transform 0.35s var(--ease-suave);
}

.link-claro:hover {
  color: var(--mustard);
  background-size: 100% 2px;
}

.link-escuro:hover {
  color: var(--ink);
  background-size: 100% 2px;
}

.link-claro:hover span,
.link-escuro:hover span {
  transform: translateX(4px);
}

/* Selo "O amor é ancestral" */
.selo {
  position: relative;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(244, 238, 225, 0.55);
  border-radius: 50%;
  background: var(--terracota);
  box-shadow: 0 14px 30px -14px rgba(20, 21, 14, 0.7);
}

.selo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.selo__texto {
  transform-origin: 50% 50%;
  animation: girar 60s linear infinite;
}

.selo__texto text {
  font-family: var(--font-body);
  font-size: 8.4px;
  font-weight: 500;
  letter-spacing: 2px;
  fill: var(--surface);
}

.selo__coracao path {
  fill: var(--mustard);
}

@keyframes girar {
  to { transform: rotate(360deg); }
}

/* ==========================================
   CONTATO + PONTE
   Nested Frames: cartão-postal
   ========================================== */

.contato {
  padding: clamp(5rem, 9vw, 8rem) 0 0;
  background: var(--paper);
}

.postal {
  display: grid;
  grid-template-columns: 1.2fr 1px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 4px;
  background: var(--surface);
  outline: 1px solid var(--line);
  outline-offset: -10px;
  box-shadow:
    inset 0 0 0 16px var(--surface),
    inset 0 0 0 17px rgba(66, 67, 49, 0.1),
    0 18px 40px -26px rgba(46, 47, 34, 0.45);
}

.postal__endereco {
  display: grid;
  margin-top: 1.75rem;
  font-style: normal;
}

.postal__endereco span {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--pauta);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
}

.postal__endereco .postal__horario {
  font-family: var(--font-body);
  font-size: 1rem;
}

.postal__divisa {
  background: var(--line);
}

.postal__frente {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.selo--carimbo {
  align-self: flex-end;
  width: 96px;
  height: 96px;
  transform: rotate(-8deg);
}

.selo--carimbo .selo__texto {
  animation-duration: 90s;
}

.postal__acoes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.postal__acoes .btn {
  width: 100%;
  min-height: 54px;
}

.postal__insta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.postal__insta svg {
  width: 18px;
  height: 18px;
}

.ponte {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: 2rem 0;
  background: var(--mustard);
}

.ponte__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.ponte p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
}

.ponte .link-escuro {
  --link-linha: var(--ink);
  flex: none;
  font-size: 1rem;
  color: var(--ink);
}

.ponte .link-escuro:hover {
  color: var(--terracota-dark);
}

/* ==========================================
   RODAPÉ
   Balanced em tinta, com a guirlanda do hero
   ========================================== */

.rodape {
  position: relative;
  padding: clamp(5rem, 8vw, 6.5rem) 0 2rem;
  background: var(--ink);
  color: var(--paper);
}

.rodape__guirlanda {
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 100%;
  height: 90px;
  fill: none;
  stroke: var(--sand);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.35;
  pointer-events: none;
}

.rodape__grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.rodape .brand__logo {
  background: var(--paper);
}

.rodape__assinatura {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--paper);
}

.rodape__coracao {
  width: 14px;
  height: 14px;
  fill: var(--mustard);
}

.rodape__assinatura:hover .rodape__coracao {
  animation: pulsar 0.9s var(--ease-suave);
}

@keyframes pulsar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.rodape__col h2 {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.rodape__col p,
.rodape__links a {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--paper);
}

.rodape__links a {
  transition: color 0.2s ease;
}

.rodape__links a:hover {
  color: var(--sand);
}

.rodape__legal {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fio-claro);
  font-size: 0.8125rem;
  color: var(--paper);
}

/* ==========================================
   MODAL E FORMULÁRIO DE ORÇAMENTO
   O comportamento vem de initBudgetExperience() em /script.js
   ========================================== */

.budget-modal {
  width: min(680px, calc(100vw - 40px));
  max-height: calc(100svh - 40px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.budget-modal::backdrop {
  background: rgba(46, 47, 34, 0.68);
  backdrop-filter: blur(4px);
}

.budget-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}

.budget-modal__head h2 {
  font-size: 1.75rem;
  color: var(--olive);
}

.budget-modal__head p {
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.budget-modal__head button {
  align-self: flex-start;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
  color: var(--olive);
}

.budget-form {
  padding: 2rem;
  color: var(--ink);
}

.budget-form__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  color: var(--olive-mid);
}

.budget-form__top > div {
  flex: 1;
  height: 3px;
  background: var(--beige);
}

.budget-form__top i {
  display: block;
  width: 33.33%;
  height: 100%;
  background: var(--mustard);
  transition: width 0.3s ease;
}

.budget-step {
  animation: passo 0.32s var(--ease-suave);
}

@keyframes passo {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

.budget-step h3 {
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  color: var(--olive);
}

.budget-form label:not(.check) {
  display: block;
  margin: 1.1rem 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.budget-form input,
.budget-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}

.budget-form input:focus,
.budget-form select:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
}

.budget-form input:disabled {
  opacity: 0.55;
}

.field-error {
  min-height: 1rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-error);
}

.budget-next {
  margin-top: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  font-size: 0.85rem;
}

.check input {
  width: 18px;
  min-height: 18px;
}

.budget-form__actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.budget-summary {
  padding: 1rem 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.budget-summary div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 0.45rem 0;
}

.budget-summary dt {
  color: var(--olive-mid);
}

.budget-form__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--olive-mid);
}

.budget-form__fallback {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.budget-form__fallback a {
  color: var(--olive);
  text-decoration: underline;
  text-decoration-color: var(--terracota);
  text-underline-offset: 3px;
}

/* Responsivo das peças compartilhadas */
@media (max-width: 1023px) {
  .postal {
    position: relative;
    grid-template-columns: 1fr;
  }

  .postal__divisa {
    display: none;
  }

  /* Carimbo preso no canto do cartão */
  .selo--carimbo {
    position: absolute;
    top: -28px;
    right: 20px;
  }

  .rodape__grid {
    grid-template-columns: 1fr 1fr;
  }

  .rodape__marca {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .postal {
    padding: 1.75rem 1.25rem;
    box-shadow:
      inset 0 0 0 14px var(--surface),
      inset 0 0 0 15px rgba(66, 67, 49, 0.1),
      0 18px 40px -26px rgba(46, 47, 34, 0.45);
  }

  .selo--carimbo {
    width: 72px;
    height: 72px;
  }

  .ponte__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .rodape {
    padding-bottom: calc(2rem + 76px);
  }

  .rodape__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .budget-modal {
    width: 100vw;
    max-width: none;
    max-height: 92svh;
    margin: auto 0 0;
    border-radius: 12px 12px 0 0;
  }

  .budget-modal__head {
    padding: 1.25rem 1.25rem 1rem;
  }

  .budget-form {
    padding: 1.5rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .budget-form__actions {
    flex-direction: column-reverse;
  }

  .budget-form__actions .btn {
    width: 100%;
  }
}

/* Foco visível sobre o rodapé escuro */
.rodape :focus-visible {
  outline-color: var(--sand);
}

.contato h2 {
  margin-top: 1.1rem;
  font-size: clamp(1.875rem, 1rem + 2.2vw, 2.625rem);
  line-height: 1.15;
  color: var(--olive);
}

/* ==========================================
   CARDÁPIO IMPRESSO
   Moldura dupla com cantos de convite. Formatos do buffet e cardápio da cafeteria
   ========================================== */

.formatos {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--paper);
}

.cardapio-sombra {
  filter: drop-shadow(0 24px 40px rgba(46, 47, 34, 0.14));
}

.cardapio {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5.5rem);
  background: var(--surface);
}

/* Grão de papel atrás do texto */
.cardapio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.moldura--externa {
  opacity: 0.7;
}

.moldura--interna {
  --m-cor: var(--terracota);
  --m-inset: 19px;
  --m-r: 53px;
  opacity: 0.5;
}

.cardapio__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 4rem;
  align-items: start;
}

.cardapio__head h2 {
  margin-top: 1.1rem;
  font-size: clamp(1.875rem, 1rem + 2.2vw, 2.625rem);
  line-height: 1.15;
  color: var(--olive);
}

.cardapio__sub {
  max-width: 24rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
}

.cardapio__head {
  position: sticky;
  top: calc(var(--header-h) + 3rem);
}

.formato {
  margin: 0 -1rem;
  padding: 1.75rem 1rem;
  transition: background-color 0.3s var(--ease-suave);
}

.formato + .formato {
  border-top: 1px solid var(--line);
}

.formato__linha {
  display: flex;
  align-items: flex-end;
}

.formato h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--olive);
  white-space: nowrap;
}

/* Pontilhado que liga o formato à borda, como nome e preço num cardápio */
.formato__pontos {
  flex: 1;
  margin: 0 0 0.45em 0.75rem;
  border-bottom: 1px dotted rgba(170, 90, 57, 0.45);
  transition: border-color 0.3s var(--ease-suave);
}

.formato p {
  max-width: 34rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}

@media (hover: hover) {
  .formato:hover {
    background-color: rgba(242, 182, 23, 0.12);
  }

  .formato:hover .formato__pontos {
    border-bottom-color: rgba(170, 90, 57, 0.8);
  }
}

@media (max-width: 1023px) {
  .cardapio__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cardapio__head {
    position: static;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 767px) {
  .cardapio {
    --r: 26px;
    padding: 2rem 1.5rem;
  }

  .moldura--externa {
    --m-inset: 8px;
    --m-r: 34px;
  }

  .moldura--interna {
    --m-inset: 13px;
    --m-r: 39px;
  }

  .formato h3 {
    white-space: normal;
  }

  .formato__pontos {
    display: none;
  }
}

/* Guirlanda: ramo que cresce da esquerda para a direita na divisa do hero */
.guirlanda {
  position: absolute;
  left: 0;
  bottom: 26px;
  width: 100%;
  height: 110px;
  fill: none;
  stroke: var(--terracota);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.guirlanda--base {
  opacity: 0.2;
}

.guirlanda--viva {
  opacity: 0.65;
  animation: crescer 3.2s var(--ease-suave) 0.5s both;
}

@keyframes crescer {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@media (max-width: 767px) {
  .guirlanda {
    bottom: 18px;
    height: 90px;
  }
}

/* ==========================================
   PAGE STYLES
   Cada pagina tem o seu /pagina/style.css
   ========================================== */
