/* =====================================================================
   PAREDE VIVA — ae! cozinha
   Direção: "Editorial Orgânico Sensorial" (clara / editorial)
   Tipografia: Fraunces (display, old-style soft) + Space Grotesk (corpo/legenda)
   Assinatura: atmosfera viva de blobs botânicos desfocados no herói
   ===================================================================== */

/* Fraunces (display) via Google Fonts — old-style com eixo SOFT/optical,
   escolhido por carregar calor artesanal sem o clichê do Playfair. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..80;1,9..144,300..700,0..80&display=swap');

/* Space Grotesk (corpo + legenda) servido localmente — a metade "técnica/estável"
   da dualidade da marca; funciona mesmo sem internet. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* =====================================================================
   TOKENS
   ===================================================================== */
:root {
  /* Paleta oficial do brandbook (terracota corrigido p/ #C75C39) */
  --folhas:    #3A4132;
  --oliva:     #F1E3B2;
  --linho:     #FCF7E9;
  --bordo:     #7A2E2E;
  --terracota: #C75C39;
  --citrico:   #A3B83A;
  --azulejo:   #5E6D72;
  --dourado:   #D9B64E;
  --noturno:   #23271F; /* escuro profundo esverdeado (correção do brief) */

  /* Semântica */
  --bg:        var(--linho);
  --surface:   #FFFBF1;       /* papel ligeiramente mais claro p/ tiles */
  --ink:       var(--folhas);
  --ink-soft:  var(--azulejo);
  --accent:    var(--terracota);
  --rule:      rgba(58, 65, 50, 0.14);
  --rule-gold: var(--dourado);

  /* Tipos */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;

  /* Ritmo / forma */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;
  --ring: 0 0 0 2px var(--linho), 0 0 0 4px var(--dourado);

  --shadow-soft: 0 18px 50px -28px rgba(58, 65, 50, 0.45);
  --shadow-lift: 0 30px 70px -30px rgba(58, 65, 50, 0.55);

  --header-h: 72px;
}

/* =====================================================================
   RESET & BASE
   ===================================================================== */
*, *::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-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Skip-link torna-se visível ao receber foco de teclado */
.visually-hidden:focus-visible {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  width: auto; height: auto; margin: 0; clip: auto; white-space: normal;
  background: var(--folhas); color: var(--oliva);
  padding: 10px 18px; border-radius: var(--radius);
  font-size: 0.8rem; letter-spacing: 0.08em;
}

/* Eyebrow / kicker — dispositivo estrutural recorrente */
.eyebrow {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--rule-gold);
  display: inline-block;
}

/* =====================================================================
   HEADER (masthead fino, transparente sobre o herói)
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 80;
  display: flex;
  align-items: center;
  transition: background-color .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(252, 247, 233, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(217, 182, 78, 0.4);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logotipo oficial "ae!" (asset com os 'a' e 'e' em fontes distintas, recolorido em terracota para o header claro) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  line-height: 1;
}
.brand-mark {
  display: block;
  height: 2rem;
  width: auto;
}
.brand-sub {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--azulejo);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  background: transparent;
  border: none;
  padding: 10px 4px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.menu-btn .bars {
  position: relative;
  width: 26px;
  height: 9px;
}
.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease;
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after  { bottom: 0; }
.menu-btn:hover { color: var(--terracota); }

/* =====================================================================
   HERO — a tese: wordmark sobre atmosfera viva (assinatura)
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4vh) 0 8vh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, var(--oliva) 0%, rgba(241,227,178,0) 55%),
    var(--linho);
}

/* Atmosfera viva: blobs botânicos desfocados (pétalas/folhas) à deriva */
.hero-atmos {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 55% 50% 50% 45%;
  filter: blur(46px);
  mix-blend-mode: multiply;
  opacity: 0.78;
  will-change: transform;
}
.blob.b1 { /* terracota */
  width: 42vw; height: 42vw; left: 50%; top: 6%;
  background: radial-gradient(circle at 35% 35%, var(--terracota), rgba(199,92,57,0) 70%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.blob.b2 { /* bordô / rosa */
  width: 36vw; height: 36vw; left: 62%; top: 28%;
  background: radial-gradient(circle at 40% 40%, var(--bordo), rgba(122,46,46,0) 70%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.blob.b3 { /* folhas (verde) */
  width: 34vw; height: 34vw; left: 78%; top: -4%;
  background: radial-gradient(circle at 50% 50%, var(--folhas), rgba(58,65,50,0) 68%);
  animation: drift3 30s ease-in-out infinite alternate;
}
.blob.b4 { /* dourado, brilho quente */
  width: 24vw; height: 24vw; left: 84%; top: 52%;
  background: radial-gradient(circle at 50% 50%, var(--dourado), rgba(217,182,78,0) 70%);
  animation: drift1 22s ease-in-out infinite alternate-reverse;
}
.blob.b5 { /* citrico, mínimo toque fresco */
  width: 16vw; height: 16vw; left: 46%; top: 60%;
  background: radial-gradient(circle at 50% 50%, var(--citrico), rgba(163,184,58,0) 72%);
  animation: drift2 28s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate3d(-6%, 5%, 0) scale(1.12) rotate(8deg); } }
@keyframes drift2 { to { transform: translate3d(7%, -6%, 0) scale(1.08) rotate(-10deg); } }
@keyframes drift3 { to { transform: translate3d(-5%, 8%, 0) scale(1.15) rotate(6deg); } }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 18ch;
}
.hero .eyebrow { margin-bottom: 28px; }

.hero-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 360;
  font-size: clamp(3.6rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--folhas);
  margin: 0;
}
.hero-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 70, "wght" 360;
  color: var(--terracota);
}

.hero-lede {
  max-width: 30ch;
  margin: 34px 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--folhas);
  font-weight: 300;
}
.hero-lede strong { font-weight: 600; color: var(--bordo); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azulejo);
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dourado); }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--azulejo);
}
.scroll-cue .line {
  width: 46px; height: 1px;
  background: linear-gradient(90deg, var(--terracota), var(--azulejo));
}
.scroll-cue:hover { color: var(--terracota); }

/* =====================================================================
   GALERIA
   ===================================================================== */
.gallery-section { padding: clamp(64px, 9vw, 130px) 0 110px; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 44px;
  /* Para no topo logo abaixo do header fixo ao rolar via filtro */
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.section-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 120, "SOFT" 40, "wght" 380;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--folhas);
  margin: 0;
}
.section-standfirst {
  max-width: 56ch;
  color: var(--azulejo);
  font-size: 1.02rem;
}

/* Índice de artistas (filtro) — como um índice de revista */
.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  align-items: baseline;
  margin: 0 0 48px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.filter {
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--azulejo);
  position: relative;
  transition: color .25s ease;
}
.filter::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 1.5px;
  background: var(--terracota);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.filter:hover { color: var(--folhas); }
.filter[aria-pressed="true"] { color: var(--bordo); font-weight: 600; }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.filter .count {
  font-size: 0.66em;
  vertical-align: super;
  color: var(--dourado);
  margin-left: 3px;
  letter-spacing: 0;
}

/* Masonry editorial via colunas — preserva a proporção real de cada obra */
.grid {
  column-count: 3;
  column-gap: clamp(20px, 2.4vw, 40px);
}
@media (max-width: 1000px) { .grid { column-count: 2; } }
@media (max-width: 560px)  { .grid { column-count: 1; } }

.card {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 clamp(28px, 3.2vw, 52px);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.card-figure {
  position: relative;
  overflow: hidden;
  background: var(--oliva);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .45s ease, transform .45s ease;
}
.card-figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.1s cubic-bezier(.16,.84,.44,1), filter .5s ease;
}
/* mata fina dourada que aparece no hover/foco */
.card-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 182, 78, 0);
  transition: border-color .4s ease;
  pointer-events: none;
}
.card:hover .card-figure,
.card:focus-visible .card-figure {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.card:hover .card-figure img { transform: scale(1.045); }
.card:hover .card-figure::after,
.card:focus-visible .card-figure::after { border-color: rgba(217, 182, 78, 0.85); }

.card-caption {
  display: grid;
  gap: 3px;
  padding: 16px 2px 0;
}
.card-artist {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azulejo);
}
.card-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 40, "SOFT" 30, "wght" 480;
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.2;
  color: var(--folhas);
}
.card-price {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--bordo);
  margin-top: 2px;
}
.card.is-sold .card-figure img { filter: grayscale(0.5) brightness(0.8); }
.card-price.sold { color: var(--azulejo); font-style: italic; }

/* =====================================================================
   PAINEL DE DETALHE DA OBRA (drawer escuro — "ficha de catálogo")
   ===================================================================== */
.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(35, 39, 31, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.detail-backdrop.open { opacity: 1; visibility: visible; }

.detail-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(660px, 100%);
  z-index: 200;
  background: var(--noturno);
  color: var(--linho);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,0.7);
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.16,.84,.44,1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.detail-panel.open { transform: translateX(0); }

.detail-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: var(--noturno);
  border: none;
  color: var(--oliva);
  padding: 18px 22px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 3;
}
.detail-close .x { font-size: 1.4rem; line-height: 0; }
.detail-close:hover { color: var(--terracota); }

.detail-media {
  padding: 0 28px;
}
.detail-media img {
  width: 100%;
  height: auto;
  max-height: 56vh;
  object-fit: contain;
  margin-inline: auto;
}
.detail-body { padding: 30px clamp(24px, 5vw, 48px) 56px; }

.detail-artist {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dourado);
  margin: 0 0 10px;
}
/* Nome do artista clicável -> abre o perfil (partial) */
.detail-artist-link {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s ease, color 0.25s ease;
}
.detail-artist-link:hover {
  color: var(--linho);
  text-decoration-color: currentColor;
}
.detail-artist-link:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
  border-radius: 2px;
}

.detail-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 110, "SOFT" 50, "wght" 380;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--linho);
  margin: 0;
}
.detail-price {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--oliva);
  margin: 14px 0 0;
}
.detail-price.sold { color: var(--terracota); font-style: italic; }

/* Ficha técnica (técnica · dimensões · ano) */
.detail-ficha {
  font-family: var(--body);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--oliva);
  opacity: 0.66;
  margin: 12px 0 0;
  max-width: 48ch;
}

.detail-rule {
  border: none;
  height: 1px;
  background: rgba(217, 182, 78, 0.28);
  margin: 26px 0;
}

.detail-tag {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azulejo);
  margin: 0 0 8px;
}
.detail-desc {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 28, "SOFT" 40, "wght" 360;
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--oliva);
  margin: 0;
}
.detail-provisional {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azulejo);
  margin: 12px 0 0;
}

.pay-title {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dourado);
  margin: 0 0 14px;
}
/* Condição de pagamento específica da obra (desconto à vista, combo etc.) */
.pay-note {
  font-family: var(--body);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--oliva);
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 2px solid var(--dourado);
  background: rgba(217, 182, 78, 0.08);
  border-radius: 0 6px 6px 0;
}

.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(241, 227, 178, 0.12);
}
.pay-name { font-weight: 500; color: var(--linho); }
.pay-detail { font-size: 0.9rem; color: var(--azulejo); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  margin-top: 30px;
  background: var(--terracota);
  color: var(--linho);
  padding: 16px 28px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-color .3s ease, transform .3s ease;
}
.cta:hover { background: var(--bordo); transform: translateY(-2px); }
.cta .arrow { transition: transform .3s ease; }
.cta:hover .arrow { transform: translateX(4px); }

/* =====================================================================
   VISTA DE ARTIGO (bios / sobre — partials carregados via fetch)
   ===================================================================== */
.info-section { padding: clamp(96px, 12vw, 150px) 0 110px; }

.article {
  max-width: 720px;
  margin-inline: auto;
}
.article h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 110, "SOFT" 40, "wght" 380;
  font-size: clamp(2.2rem, 5.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--folhas);
  margin: 0 0 8px;
}
.article h2 em { font-style: italic; color: var(--terracota); }
.article h3 {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 30, "wght" 540;
  font-size: 1.35rem;
  color: var(--bordo);
  margin: 40px 0 10px;
}
.article h4 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azulejo);
  margin: 28px 0 8px;
}
.article p { margin: 0 0 1.25em; color: var(--folhas); }
.article p.lead {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--folhas);
}
.article strong { color: var(--bordo); font-weight: 600; }
.article em { font-style: italic; }
.article a {
  color: var(--terracota);
  border-bottom: 1px solid rgba(199, 92, 57, 0.4);
  transition: color .25s ease, border-color .25s ease;
}
.article a:hover { color: var(--bordo); border-bottom-color: var(--bordo); }
.article .rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--dourado), rgba(217,182,78,0));
  margin: 36px 0;
}
.article .contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.article .contact li { color: var(--azulejo); }
.article .signature {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 60, "wght" 420;
  font-size: 1.4rem;
  color: var(--bordo);
  margin-top: 32px;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: transparent;
  border: 1px solid var(--folhas);
  color: var(--folhas);
  padding: 12px 22px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-color .3s ease, color .3s ease;
}
.btn-ghost:hover { background: var(--folhas); color: var(--oliva); }
.btn-ghost.solid { background: var(--terracota); border-color: var(--terracota); color: var(--linho); }
.btn-ghost.solid:hover { background: var(--bordo); border-color: var(--bordo); }

/* =====================================================================
   MENU LATERAL
   ===================================================================== */
.menu-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(360px, 86vw);
  background: var(--folhas);
  color: var(--oliva);
  z-index: 210;
  padding: 30px 38px 48px;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.16,.84,.44,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.menu-panel.open { transform: translateX(0); }

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.menu-top img { height: 30px; width: auto; }
.close-btn {
  background: none; border: none; color: var(--oliva);
  font-size: 1.6rem; line-height: 1; padding: 8px;
}
.close-btn:hover { color: var(--terracota); }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { margin-bottom: 6px; }
.menu-list a {
  display: block;
  padding: 9px 0;
  font-family: var(--display);
  font-variation-settings: "opsz" 30, "SOFT" 40, "wght" 420;
  font-size: 1.2rem;
  color: var(--oliva);
  transition: color .25s ease, padding-left .25s ease;
}
.menu-list a:hover { color: var(--dourado); padding-left: 8px; }
.menu-divider {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dourado);
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(217, 182, 78, 0.25);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 39, 31, 0.5);
  z-index: 205;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.menu-overlay.open { opacity: 1; visibility: visible; }

/* =====================================================================
   RODAPÉ
   ===================================================================== */
.site-footer {
  background: var(--folhas);
  color: var(--oliva);
  padding: 56px 0 48px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer img { height: 34px; width: auto; }
.footer-note {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(241, 227, 178, 0.72);
  margin: 0;
}
.footer-note strong { color: var(--dourado); font-weight: 600; }

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .menu-btn span.label { display: none; }
  .hero-inner { max-width: 100%; }
  .detail-media { padding: 0 16px; }
}

/* =====================================================================
   MOVIMENTO REDUZIDO
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .blob { animation: none; }
}
