/* ---------- Fontes (alojadas localmente, licença OFL) ---------- */
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/InterTight-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/InterTight-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --ink: #151515;
  --muted: #7b7874;
  --line: #e4e2de;
  --soft: #f5f4f1;
  --yellow: #ffe100;        /* amarelo vivo: links e CTAs */
  --yellow-deep: #f5c800;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow, .label {
  font: 500 11px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0;
}

/* Links de texto: sublinhado amarelo (amarelo sobre branco não se lê como cor de texto) */
.link {
  text-decoration: none;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-size: 100% .34em; background-position: 0 90%; background-repeat: no-repeat;
  transition: background-size .25s ease; padding: 0 .06em;
}
.link:hover, .link:focus-visible { background-size: 100% 100%; }

/* CTA — retangular, sóbrio */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 2.4em;
  background: var(--yellow); color: var(--ink); text-decoration: none;
  font: 500 13px/1 var(--sans); letter-spacing: .02em;
  padding: 1.15em 1.3em; border: 0; border-radius: 0; cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: var(--yellow-deep); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font: 400 20px/1 var(--serif); text-decoration: none; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav a.nav-link { font: 400 14px/1 var(--sans); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a.nav-link:hover { border-color: var(--ink); }
.lang { display: inline-flex; gap: 2px; }
.lang button { font: 400 13px/1 var(--sans); background: none; border: 0; padding: 6px 6px; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { color: var(--ink); background: var(--yellow); }
@media (max-width: 560px) { .nav .nav-link.hide-sm { display: none; } }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { font: 300 clamp(34px, 4vw, 56px)/1.05 var(--serif); margin: 0; letter-spacing: -.01em; }
.section-head .count { font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- About ---------- */
.about { padding: clamp(72px, 9vw, 140px) 0; border-top: 1px solid var(--line); }
.about .wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .about .wrap { grid-template-columns: 1fr 1fr; } }
.about p.lead { font: 300 clamp(24px, 2.6vw, 36px)/1.3 var(--serif); margin: 0; max-width: 28ch; }
.about .links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { padding: 24px 0 36px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.site-footer .link { color: var(--ink); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.98); display: none; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: 14px; right: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero (imagem contida + texto ao lado) ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 5vw, 72px) var(--gutter) clamp(64px, 9vw, 120px);
  display: grid; gap: 28px; grid-template-columns: 1fr; align-items: end;
}
.hero-media img { width: 100%; height: auto; display: block; background: var(--soft); }
.hero-copy { padding: 0; }
.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-title { font: 300 clamp(44px, 5.6vw, 92px)/1 var(--serif); letter-spacing: -.015em; margin: 0 0 28px; }
.hero-meta { display: grid; gap: 16px; margin: 0 0 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-meta dt { font: 500 11px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hero-meta dd { margin: 0; font-size: 15px; line-height: 1.5; }
.muted { color: var(--muted); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(40px, 5vw, 96px); }
}
.hero-media img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 30% center; }

/* ---------- Lista de obras ---------- */
.catalogue { padding: clamp(64px, 9vw, 130px) 0 clamp(72px, 10vw, 140px); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row {
  display: grid; gap: 14px 16px; padding: 24px 0; border-bottom: 1px solid var(--line);
  grid-template-columns: 112px 1fr;
  grid-template-areas: "media head" "media price" "text text" "side side";
  grid-template-rows: auto 1fr;
  scroll-margin-top: 80px;
}
.row-num { display: none; }
.row-media { grid-area: media; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; display: block; }
.row-media img { width: 100%; height: auto; transition: opacity .2s; }
.row-media:hover img { opacity: .88; }
.row-head { grid-area: head; align-self: start; }
.row-title { font: 300 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); margin: 0 0 8px; }
.row-specs { font-size: 13px; color: var(--muted); margin: 0 0 2px; }
.row-text { grid-area: text; font: 300 17px/1.6 var(--serif); margin: 0; max-width: 52ch; }
.row-side { grid-area: side; display: grid; gap: 14px; align-content: start; }

@media (min-width: 900px) {
  .row {
    grid-template-columns: 40px minmax(160px, 220px) 1fr minmax(280px, 360px);
    grid-template-areas: "num media head side" "num media text side" "num media price side";
    grid-template-rows: auto auto 1fr;
    gap: 14px clamp(20px, 3vw, 48px); padding: 32px 0;
  }
  .row-num { display: block; grid-area: num; font: 400 12px/2.2 var(--sans); color: var(--muted); }
}

.price { grid-area: price; align-self: end; line-height: 1; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.price-value { font: 300 26px/1 var(--serif); }
.price-value.is-sold { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.status { font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border: 1px solid var(--ink); white-space: nowrap; }
.status--vendida { background: var(--ink); color: #fff; }
.status--reservada { border-style: dashed; }
.btn--sm { padding: .95em 1.1em; width: 100%; }
.player iframe { display: block; width: 100%; height: 80px; border: 0; border-radius: 12px; background: #f0efec; }

.hero-intro { font: 300 clamp(17px, 1.3vw, 19px)/1.6 var(--serif); color: #3a3836; margin: -8px 0 28px; max-width: 46ch; }
.hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
@media (max-width: 420px) { .hero-meta { grid-template-columns: 1fr; } }
.about p.bio { font: 300 clamp(19px, 1.5vw, 22px)/1.55 var(--serif); margin: 0 0 1em; max-width: 44ch; }

/* Sobre: foto quadrada */
.about-media .eyebrow { margin-bottom: 18px; }
.about-media img { width: 100%; max-width: 520px; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
@media (min-width: 900px) { .about .wrap { align-items: start; gap: clamp(40px, 6vw, 110px); } .about .reveal { padding-top: 34px; } }

/* Hero: imagem com a mesma altura do bloco de texto (topo e base alinhados) */
@media (min-width: 900px) {
  .hero { align-items: stretch; }
  .hero-media { position: relative; min-height: 420px; }
  .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: 32% center; }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; }
}
@media (min-width: 900px) { .hero-copy .btn { align-self: flex-start; } }

/* Leitor de áudio (YouTube, vídeo escondido) */
#yt-host-wrap { position: fixed; left: -10000px; top: 0; width: 200px; height: 200px; overflow: hidden; pointer-events: none; }
.yt { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; }
.yt-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.yt-btn:hover { background: var(--yellow-deep); }
.yt-btn svg { margin-left: 2px; }
.yt.is-playing .yt-btn svg { margin-left: 0; }
.yt-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.yt-label { font: 500 11px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.yt-bar { position: relative; height: 3px; background: var(--line); cursor: pointer; }
.yt-bar::before { content: ""; position: absolute; inset: -8px 0; }
.yt-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); transition: width .4s linear; }
.yt-time { flex: none; font: 400 12px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.yt.is-loading .yt-btn { animation: ytpulse 1s ease-in-out infinite; }
@keyframes ytpulse { 50% { opacity: .55; } }
.yt.is-error .yt-label::after { content: " — indisponível"; }
@media (prefers-reduced-motion: reduce) { .yt.is-loading .yt-btn { animation: none; } }

/* ---------- Galeria 3 colunas ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 56px clamp(20px, 2.6vw, 40px); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 80px; }
.tile-media { padding: 0; border: 0; background: var(--soft); cursor: zoom-in; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; overflow: hidden; }
.tile-media img { max-width: 86%; max-height: 86%; width: auto; height: auto; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.08); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile-media:hover img { transform: scale(1.02); }
.tile-info { display: grid; gap: 6px; }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tile-title { font: 300 clamp(22px, 1.9vw, 28px)/1.15 var(--serif); margin: 0; }
.tile-num { font: 400 12px/1 var(--sans); color: var(--muted); margin-right: 10px; vertical-align: 4px; }
.tile-price { font: 300 clamp(20px, 1.6vw, 24px)/1 var(--serif); white-space: nowrap; }
.tile-specs { font-size: 13px; color: var(--muted); margin: 0; }
.tile-text { font: 300 16px/1.5 var(--serif); margin: 4px 0 0; }
.tile .yt { margin-top: auto; }
.tile .player iframe { display: block; width: 100%; height: 80px; border: 0; border-radius: 12px; }
