:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f8f9f9;
  background: #050907 url("fundo-mercado.svg") center top / 100% 100% no-repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.frame { width: min(1290px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 5; padding: 12px; background: #17232c; transform: translateY(-150%); }
.skip:focus { transform: none; }

.masthead {
  display: grid;
  justify-items: center;
  gap: clamp(17px, 2.6vw, 24px);
  padding: clamp(29px, 4.2vw, 58px) 16px;
  text-align: center;
  background: #000;
  box-shadow: inset 0 -1px #d4af3752;
}
.wordmark {
  margin: 0;
  color: #f5d76e;
  font-size: clamp(24px, 4.6vw, 40px);
  line-height: 1.16;
  font-weight: 630;
  letter-spacing: .055em;
  text-transform: uppercase;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .wordmark {
    background: linear-gradient(90deg, #8B6914, #D4AF37, #FFF2A6, #B8860B, #F5D76E);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .wordmark { color: CanvasText; }
}
.contact-section { display: flex; justify-content: center; padding-block: clamp(24px, 4vw, 44px) 8px; }
.contact-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: #f5d76e;
  color: #251b08;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.contact-shortcut:hover { background: #fff2a6; }
main.frame { padding-top: clamp(20px, 3.6vw, 44px); }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  width: 100%;
  border-radius: 22px;
  background: #19242d;
  box-shadow: 0 9px 22px #101a223d;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 76%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #101920 24%, #101920ed 38%, #101920bd 48%, #10192026 62%, transparent 77%);
}
.card::after { content: ""; grid-area: 1 / 1; aspect-ratio: 1.94; width: 100%; pointer-events: none; }
.card-body { grid-area: 1 / 1; align-self: center; width: 59%; padding: clamp(18px, 2.2vw, 30px); }
.card h2 { margin: 0; font-size: clamp(22px, 2.25vw, 32px); line-height: 1.14; font-weight: 650; letter-spacing: -.02em; }
.card-copy { max-width: 34ch; margin: 7px 0 3px; color: #ccd6df; font-size: 14px; line-height: 1.45; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
}
.card .cta::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.card--youtube { background: #0b1118; }
.card--youtube::before {
  background: radial-gradient(ellipse at bottom left, #c313284d, transparent 65%),
    linear-gradient(90deg, #0b1118 24%, #0b1118e0 39%, #0b111836 59%, transparent 75%);
}
.card--youtube .card-image { overflow: hidden; }
.youtube-title { text-transform: uppercase; }
.youtube-title strong { display: block; margin-block: 3px 7px; color: #ff514d; font-size: 1.4em; }
.youtube-play { width: 24px; height: 17px; flex: 0 0 24px; color: #e6212a; }
.card:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.cta:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px #101a225c; }
}

.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; font-size: 13px; color: #dce6ed; }
.footer > * { padding-inline: 12px; border-radius: 999px; background: #102C54; }
.footer span { padding-block: 7px; }
.back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
.back:hover { text-decoration: underline; }
.back .icon { transform: rotate(-90deg); }

@media (max-width: 820px) {
  .frame { width: min(580px, calc(100% - 32px)); }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .card { padding-top: clamp(155px, 46vw, 244px); }
  .card::after { display: none; }
  .card-image { width: 100%; object-position: center 19%; }
  .card::before { background: linear-gradient(180deg, transparent 23%, #101920b3 48%, #101920 75%); }
  .card-body { width: 100%; }
  .card--youtube::before {
    background: radial-gradient(ellipse at bottom left, #c313284d, transparent 55%),
      linear-gradient(180deg, transparent 26%, #0b1118ad 57%, #0b1118 86%);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

.card--consultoria { background: #000000; color: #f8f9f9; }
.card--consultoria::before { background: linear-gradient(90deg, #000000 24%, #000000ed 38%, #000000bd 48%, #00000026 62%, transparent 77%); }
.card--consultoria .card-copy { color: #ccd6df; }
.card--consultoria .cta { color: #f8f9f9; }
.card--consultoria .card-image { width: 62%; object-fit: cover; object-position: center 32%; }
@media (max-width: 820px) {
  .card--consultoria { padding-top: 0; min-height: 250px; }
  .card--consultoria .card-body { width: 59%; padding: 18px; }
  .card--consultoria .card-image { width: 62%; object-position: center 32%; }
  .card--consultoria .card-copy { font-size: 13px; }
  .card--consultoria .cta { font-size: 13px; }
}
