.closing, .site-footer { background: #f8f8f6; color: #171717; }
.closing { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(112px, calc(9vw + 12px), 162px) clamp(88px, 8vw, 140px); color: #171717; background: linear-gradient(to bottom, #f8f8f6 0%, #fbf2ed 48%, #f8f8f6 100%); }
.closing__inner { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.closing__preview { position: absolute; z-index: 0; top: 53%; width: min(360px, 22vw, calc((min(100vw, var(--shell-width)) - var(--shell-gutter) - var(--shell-gutter) - 850px) / 2 - 24px)); aspect-ratio: 4 / 3; overflow: hidden; transform: translateY(-50%); mask-image: linear-gradient(to bottom, #000 32%, rgba(0,0,0,.8) 55%, transparent 94%); pointer-events: none; }
.closing__preview--left { left: max(var(--shell-gutter), calc((100% - var(--shell-width)) / 2 + var(--shell-gutter))); }
.closing__preview--right { right: max(var(--shell-gutter), calc((100% - var(--shell-width)) / 2 + var(--shell-gutter))); }
.closing__preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.closing__signature { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.closing__signature::before, .closing__signature::after { width: clamp(32px, 4vw, 58px); height: 1px; background: linear-gradient(90deg, transparent, rgba(164,61,37,.42)); content: ''; }
.closing__signature::after { transform: scaleX(-1); }
.closing__signature img { display: block; width: 30px; height: 30px; }
.closing h2 { max-width: 850px; margin: 0; font-size: clamp(38px, calc(2.6vw + 15px), 68px); font-weight: 400; line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
.closing h2 span { color: #c2381d; }
.closing__lead { max-width: 560px; margin: 24px 0 0; color: #615955; font-size: clamp(16px, 1vw, 18px); line-height: 1.55; text-wrap: balance; }
.closing__button.button { min-height: 56px; gap: 32px; margin-top: 32px; padding-inline: 22px; border-color: rgba(211,44,23,.28); font-size: 18px; }
.closing__button.button:hover { border-color: rgba(211,44,23,.48); }
.closing__button:focus-visible, .site-footer a:focus-visible { outline: 2px solid #a43d25; outline-offset: 4px; }
.closing__note { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 32px 0 0; padding: 0; color: #67605c; font-size: 14px; line-height: 1.5; list-style: none; }
.closing__note li { display: inline-flex; align-items: center; gap: 8px; }
.closing__note svg { width: 17px; height: 17px; flex: none; stroke: #bb5136; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__content { padding-top: clamp(24px, 3vw, 48px); padding-bottom: 32px; }
.site-footer__nav { position: relative; display: flex; justify-content: space-between; gap: 24px; padding: 28px 10px; }
.site-footer__nav::before { display: none; position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(98,92,89,.32) 14%, rgba(98,92,89,.32) 86%, transparent); content: ''; }
.site-footer__nav a, .site-footer__info a { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; color: #282320; font-size: 16px; font-weight: 500; transition: color 200ms ease; }
.site-footer__nav a span, .site-footer__info a span { display: inline-block; transition: transform 200ms ease; }
.site-footer__nav a:hover, .site-footer__info a:hover { color: #a43d25; }
.site-footer__nav a:hover span, .site-footer__info a:hover span { transform: translate(3px, -3px); }
.site-footer__nav a { font-size: 14px; text-transform: uppercase; }
.site-footer__info { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 20px; min-height: 80px; padding: 12px 22px; border: 1px solid #dedad7; border-radius: 12px; background: rgba(255,255,255,.42); }
.site-footer__info p { margin: 0; color: #625c59; font-size: 14px; line-height: 1.5; }
.site-footer__social { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__info .site-footer__social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.site-footer__social svg { width: 19px; height: 19px; flex: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__social a:last-child svg path:last-child { transform: translateY(-1px); }
.site-footer__legal { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 18px; }
.site-footer__legal button { min-height: 44px; padding: 0; border: 0; color: #282320; background: transparent; font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; transition: color 200ms ease; }
.site-footer__legal button:hover { color: #a43d25; }
.site-footer__legal button:focus-visible { outline: 2px solid #a43d25; outline-offset: 4px; }
.legal-inline-link { padding: 0; border: 0; color: #a43d25; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer__art-wrap { position: relative; margin-top: clamp(20px, 2vw, 32px); }
.site-footer__art { position: relative; overflow: hidden; isolation: isolate; width: 100%; aspect-ratio: 3 / 1; background: url('../../../assets/merco-site/images/footer/emblema-cascalho.webp') center bottom / 100% auto no-repeat fixed; }
.site-footer__landscape { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: contain; object-position: center; opacity: 0; }
.site-footer__art-info { position: absolute; z-index: 1; top: clamp(18px, 2.5vw, 44px); right: max(var(--shell-gutter), calc((100% - var(--shell-width)) / 2 + var(--shell-gutter))); left: max(var(--shell-gutter), calc((100% - var(--shell-width)) / 2 + var(--shell-gutter))); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; color: #413831; }
.site-footer__art-info img { width: clamp(80px, 6vw, 110px); height: auto; flex: none; }
.site-footer__art-info p { max-width: 360px; margin: 0; font-size: clamp(11px, .8vw, 14px); font-weight: 500; line-height: 1.4; text-align: right; }
.closing.has-reveal .closing__inner { opacity: 0; transform: translateY(16px); transition: opacity 650ms cubic-bezier(.22,1,.36,1), transform 650ms cubic-bezier(.22,1,.36,1); }
.closing.has-reveal.is-revealed .closing__inner { opacity: 1; transform: none; }
@media (max-width: 700px) {
  .closing { padding-block: 94px 80px; background: #f8f8f6; }
  .closing__signature { margin-bottom: 22px; }
  .closing__signature img { width: 26px; height: 26px; }
  .closing h2 { max-width: 460px; font-size: 32px; }
  .closing__lead { max-width: 420px; margin-top: 18px; }
  .closing__button.button { min-height: 52px; margin-top: 26px; gap: 26px; padding-inline: 20px; font-size: 16px; }
  .closing__note { max-width: 360px; gap: 10px 18px; }
  .site-footer__content { padding-bottom: 24px; }
  .site-footer__nav { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 0; padding: 30px 0 18px; border: 0; }
  .site-footer__nav::before { display: block; }
  .site-footer__nav a { min-height: 46px; justify-content: center; gap: 7px; padding-inline: 2px; font-size: 13px; white-space: nowrap; }
  .site-footer__nav a:nth-child(1) { grid-row: 1; grid-column: 1 / span 2; }
  .site-footer__nav a:nth-child(2) { grid-row: 1; grid-column: 3 / span 2; }
  .site-footer__nav a:nth-child(3) { grid-row: 1; grid-column: 5 / span 2; }
  .site-footer__nav a:nth-child(4) { grid-row: 2; grid-column: 2 / span 2; }
  .site-footer__nav a:nth-child(5) { grid-row: 2; grid-column: 4 / span 2; }
  .site-footer__info { display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 18px 16px; text-align: center; }
  .site-footer__info > p { order: 0; text-align: center; }
  .site-footer__social { order: 1; justify-content: center; }
  .site-footer__legal { order: 2; justify-content: center; }
  .site-footer__legal button { padding-inline: 6px; }
  .site-footer__art-info { top: 50%; right: max(var(--shell-gutter), calc((100% - var(--shell-width)) / 2 + var(--shell-gutter))); bottom: auto; left: max(var(--shell-gutter), calc((100% - var(--shell-width)) / 2 + var(--shell-gutter))); align-items: center; justify-content: space-between; gap: 12px; transform: translateY(-50%); }
  .site-footer__art-info img { width: 70px; }
  .site-footer__art-info p { max-width: 165px; font-size: 10px; text-align: right; }
  .site-footer__copyright-line { display: block; }
}
@media (max-width: 1500px) { .closing__preview { display: none; } }
@media (max-width: 700px) { .site-footer__art { background-attachment: scroll; } }
@media (min-aspect-ratio: 3/1) { .site-footer__art { background-attachment: scroll; } }
@media (prefers-reduced-motion: reduce) {
  .closing.has-reveal .closing__inner { opacity: 1; transform: none; transition: none; }
  .site-footer__art { background-attachment: scroll; }
  .site-footer__nav a, .site-footer__nav a span, .site-footer__info a, .site-footer__info a span { transition: none; }
}
