/* ==========================================================================
   Dra. Grace Leitão — style.css
   Paleta medida em hero-retrato.jpg (ver estudo/paleta.md)
   Polimento JOB 09 — ver estudo/polimento-09.md
   ========================================================================== */

:root {
  --fundo: #1E150D;
  --superficie: #2A1C0F;
  --superficie-2: #321F0B;
  --titulo: #F6EFE9;
  --corpo: #E2D0C3;
  --acento: #ECD3CC;
  --acento-2: #E0AF98;
  --linha: #A07852;
  --linha-forte: #ECD3CC;
  --botao-texto: #2A1C0F;
  --tinta: #2A1C0F;
  --tinta-corpo: #55402E;
  --tinta-suave: #63482F;
  --acento-papel: #815520;
  --acento-papel-forte: #6E4516;
  --cobre: #A07852;
  --cobre-claro: #C79672;

  --grad-hero: linear-gradient(130deg, #2A1C0F 0%, #1E150D 46%, #321F0B 100%);
  --grad-dark: linear-gradient(165deg, #2A1C0F 0%, #321F0B 45%, #1E150D 100%);
  --grad-soft: linear-gradient(130deg, #1E150D 0%, #2A1C0F 46%, #321F0B 100%);
  --grad-paper: linear-gradient(130deg, #F3E7E6 0%, #EDD5CE 46%, #E3C9C0 100%);
  --grad-metal: linear-gradient(115deg, #ECD3CC 0%, #F3DFD9 38%, #F6ECED 68%, #F3DFD9 100%);
  --grad-accent: linear-gradient(115deg, #E0AF98 0%, #ECD3CC 45%, #F3DFD9 85%);
  --grad-line: linear-gradient(90deg, transparent 0%, #A07852 18%, #ECD3CC 55%, transparent 100%);
  --grad-cover-shade: linear-gradient(180deg, rgba(18, 9, 3, .58) 0%, rgba(18, 9, 3, .16) 30%, rgba(18, 9, 3, .18) 58%, rgba(18, 9, 3, .62) 100%);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  --header-h: 76px;
  --cookie-h: 156px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --shadow-soft: 0 18px 50px -18px rgba(10, 5, 1, .55);
  --shadow-card: 0 10px 34px -12px rgba(10, 5, 1, .45);
  --ease-out: cubic-bezier(.22, .68, .26, 1);
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
  color: var(--corpo);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--titulo);
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.8rem + 3.2vw, 4.25rem); letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -.012em; }
h3 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); }
p { margin: 0 0 1em; }

a { color: inherit; text-decoration-color: rgba(160, 120, 82, .65); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

/* cobre como cor de interação: hover de links em cada contexto */
.bg-grad-main a:hover, .bg-grad-soft a:hover, .bg-dark a:hover,
.hero a:hover, .site-footer a:hover, .site-header a:hover { color: var(--cobre-claro); }
.bg-paper a:hover { color: var(--acento-papel-forte); }

button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
figure { margin: 0; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--cobre-claro);
  outline-offset: 3px;
  border-radius: 4px;
}
.bg-paper :focus-visible { outline-color: var(--acento-papel); }

::selection { background: rgba(224, 175, 152, .35); color: var(--titulo); }

/* ---------- Utilitárias ---------- */

.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;
}

.nowrap { white-space: nowrap; }

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--acento);
  color: var(--botao-texto);
  font-weight: 600;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Fundos de seção (gradiente Beleli em todas) ---------- */

.bg-grad-main { background: var(--grad-hero); }
.bg-grad-soft { background: var(--grad-soft); }
.bg-dark { background: var(--grad-dark); }
.bg-paper { background: var(--grad-paper); color: var(--tinta-corpo); }
.bg-paper h1, .bg-paper h2, .bg-paper h3, .bg-paper h4 { color: var(--tinta); }

/* Uma palavra em itálico: metal sobre escuro, cobre sobre papel */
h1 em, h2 em, h3 em { font-style: italic; }
.bg-grad-main em, .bg-grad-soft em, .bg-dark em {
  background: var(--grad-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-paper em { color: var(--acento-papel); }

/* ---------- Decorações ---------- */

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

.ghost-mark {
  position: absolute;
  top: 4%;
  right: -2%;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(12rem, 30vw, 26rem);
  line-height: .8;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 211, 204, .09);
  pointer-events: none;
  user-select: none;
}
.ghost-mark--center {
  top: auto; right: auto;
  left: 50%; bottom: -6%;
  transform: translateX(-50%);
  -webkit-text-stroke-color: rgba(236, 211, 204, .07);
}

/* ---------- Tipografia de apoio (piso: nada abaixo de 12px) ---------- */

.section-num {
  font-family: var(--font-num);
  font-size: clamp(.75rem, .7rem + .2vw, .85rem);
  letter-spacing: .28em;
  color: var(--cobre-claro);
  margin: 0 0 14px;
}
.bg-paper .section-num { color: var(--acento-papel-forte); }

.eyebrow {
  font-size: clamp(.75rem, .72rem + .2vw, .84rem);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--acento-2);
  margin: 0 0 14px;
}
.bg-paper .eyebrow { color: var(--acento-papel-forte); }

.section-lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  line-height: 1.6;
  max-width: 68ch;
  margin: 0 0 clamp(28px, 4vw, 48px);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-accent);
  color: var(--botao-texto);
  font-weight: 650;
  font-size: clamp(.95rem, .9rem + .25vw, 1.05rem);
  text-decoration: none;
  letter-spacing: .01em;
  box-shadow: 0 14px 34px -14px rgba(224, 175, 152, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), filter .25s var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 20px 44px -14px rgba(224, 175, 152, .65), inset 0 1px 0 rgba(255, 255, 255, .55);
  color: var(--botao-texto);
}
.btn:active { transform: translateY(0); }

.btn-sm { min-height: 44px; padding: 10px 22px; font-size: clamp(.85rem, .8rem + .2vw, .95rem); }
.btn-lg { min-height: 58px; padding: 16px 38px; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid rgba(236, 211, 204, .45);
  border-radius: 999px;
  background: transparent;
  color: var(--acento);
  font-weight: 600;
  font-size: clamp(.9rem, .86rem + .2vw, 1rem);
  text-decoration: none;
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease-out);
}
.btn-ghost:hover { border-color: var(--cobre-claro); color: var(--cobre-claro); background: rgba(167, 122, 84, .12); transform: translateY(-1px); }
.btn-ghost.btn-sm { min-height: 40px; padding: 8px 18px; }
.bg-paper .btn-ghost { border-color: rgba(110, 69, 22, .55); color: var(--acento-papel-forte); }
.bg-paper .btn-ghost:hover { border-color: var(--acento-papel-forte); color: var(--acento-papel-forte); background: rgba(110, 69, 22, .08); }

.btn-line {
  background: transparent;
  border: 1px solid rgba(110, 69, 22, .55);
  color: var(--acento-papel-forte);
  box-shadow: none;
}
.btn-line:hover { background: rgba(110, 69, 22, .08); filter: none; color: var(--acento-papel-forte); }
.bg-grad-main .btn-line, .bg-grad-soft .btn-line, .bg-dark .btn-line {
  border-color: rgba(236, 211, 204, .4);
  color: var(--acento);
}
.bg-grad-main .btn-line:hover, .bg-grad-soft .btn-line:hover, .bg-dark .btn-line:hover {
  background: rgba(236, 211, 204, .08);
  color: var(--cobre-claro);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(30, 21, 13, 0);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease-out), background .35s, border-color .35s, padding .35s;
}
.site-header.is-scrolled {
  background: rgba(30, 21, 13, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(160, 120, 82, .28);
}
.site-header.is-hidden { transform: translateY(-102%); }
/* o header nunca se esconde com o menu aberto */
.site-header.is-hidden:has(.nav-toggle[aria-expanded="true"]),
.site-header.is-hidden:has(.site-nav.is-open) { transform: none; }

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: padding .35s var(--ease-out);
}
.is-scrolled .header-inner { padding-block: 8px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--titulo);
  flex-shrink: 0;
}
.brand-mark { width: 42px; height: 42px; color: var(--acento); flex-shrink: 0; transition: transform .35s var(--ease-out); }
.is-scrolled .brand-mark { transform: scale(.88); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.brand-text strong { font-family: var(--font-display); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); font-weight: 650; }
.brand-text small { font-size: clamp(.75rem, .7rem + .15vw, .8rem); letter-spacing: .09em; text-transform: uppercase; color: var(--acento-2); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(6px, 1vw, 14px); }
.site-nav ul { display: flex; align-items: center; gap: clamp(6px, .8vw, 12px); }

/* item de menu NUNCA quebra em duas linhas */
.site-nav a,
.header-inner a,
.site-nav ul a {
  white-space: nowrap;
}
.site-nav ul a {
  display: inline-block;
  padding: 8px 1px;
  font-size: clamp(.78rem, .74rem + .2vw, .88rem);
  font-weight: 550;
  color: var(--corpo);
  text-decoration: none;
  position: relative;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 1px;
  background: var(--cobre-claro);
  transition: right .3s var(--ease-out);
}
.site-nav ul a:hover { color: var(--cobre-claro); }
.site-nav ul a:hover::after { right: 0; }

.nav-cta {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: clamp(.8rem, .76rem + .2vw, .9rem);
  min-height: 40px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 1px solid rgba(236, 211, 204, .35);
  border-radius: 12px;
  background: rgba(42, 28, 15, .6);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.6px;
  background: var(--acento);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vw, 104px) 0 0;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
/* glow atrás do TEXTO */
.hero-glow-a {
  width: 720px; height: 640px;
  left: 24%; top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(224, 175, 152, .18) 0%, transparent 70%);
  animation: respira-glow 9s ease-in-out infinite;
}
/* glow radial QUENTE (cobre) atrás do arco/foto, com blur — a foto divide a mesma luz do fundo */
.hero-glow-b {
  width: 660px; height: 760px;
  left: 78%; top: 48%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(170, 122, 84, .22) 0%, transparent 70%);
  filter: blur(48px);
  animation: respira-glow 11s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  flex: 1;
}

.hero-copy { max-width: 56ch; }
.hero-copy > * { animation: sobe-reveal .9s var(--ease-out) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-copy > *:nth-child(6) { animation-delay: .4s; }
.hero-copy h1 { margin-bottom: .4em; }
.hero-sub {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem);
  line-height: 1.6;
  max-width: 56ch;
  color: var(--corpo);
  margin-bottom: clamp(20px, 3vw, 30px);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(22px, 3.2vw, 34px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: clamp(.78rem, .74rem + .2vw, .88rem);
  font-weight: 550;
  white-space: nowrap;
  color: var(--acento);
  background: rgba(236, 211, 204, .07);
  border: 1px solid rgba(160, 120, 82, .45);
  border-radius: 999px;
}
.chip span { color: var(--acento-2); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-figure {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

/* halo de grain cobre ao redor do arco — textura no contorno, nada sobreposto à foto */
.hero-figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -14px;
  border-radius: 999px 999px 30px 30px / 480px 480px 30px 30px;
  background-color: rgba(170, 122, 84, .12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: .5;
  pointer-events: none;
}

/* sombra difusa de contato sob a base do arco — a foto não flutua */
.hero-figure::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%; bottom: -32px;
  width: 78%; height: 64px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(6, 3, 1, .6) 0%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

/* moldura em arco, proporção real da foto 1199:1500 — foto inteira, sem cortes */
.portrait-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  aspect-ratio: 1199 / 1500;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: 999px 999px 18px 18px / 460px 460px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(236, 211, 204, .28);
  box-shadow: 0 30px 80px -30px rgba(10, 5, 1, .8), 0 0 0 10px rgba(236, 211, 204, .04);
  animation: flutua-sutil 9s ease-in-out infinite;
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center bottom;
  /* grade único: dessatura o verde e puxa a foto para a temperatura cobre do fundo */
  filter: saturate(.92) sepia(.12) hue-rotate(-6deg);
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(160, 120, 82, .3);
  border-bottom: 1px solid rgba(160, 120, 82, .3);
  overflow: hidden;
  padding: 14px 0;
  background: rgba(30, 21, 13, .35);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(.95rem, .9rem + .4vw, 1.15rem);
  color: var(--acento);
  white-space: nowrap;
}
.marquee-track i { color: var(--linha); font-style: normal; }

/* ---------- Animações nomeadas ---------- */

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes respira-glow {
  0%, 100% { opacity: .62; }
  50% { opacity: 1; }
}

@keyframes flutua-sutil {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes brilho-selo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 211, 204, 0); }
  50% { box-shadow: 0 0 26px 2px rgba(236, 211, 204, .22); }
}

@keyframes sobe-reveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Seções ---------- */

.section {
  position: relative;
  padding: clamp(72px, 10vw, 130px) 0;
}
.section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- A médica ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-copy p { max-width: 68ch; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: clamp(24px, 3.5vw, 40px) 0;
}
.pillars li {
  padding: 18px 16px;
  border: 1px solid rgba(129, 85, 32, .3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .28);
}
.pillars strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  color: var(--tinta);
  margin-bottom: 4px;
}
.pillars span { font-size: clamp(.82rem, .78rem + .2vw, .92rem); color: var(--tinta-suave); }

.media-strip {
  margin-top: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(129, 85, 32, .3);
}
.media-strip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.media-strip figcaption {
  padding: 12px 16px;
  font-size: clamp(.78rem, .74rem + .2vw, .88rem);
  color: var(--tinta-suave);
  background: rgba(255, 255, 255, .35);
}

.side-portrait {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.side-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(129, 85, 32, .35);
  box-shadow: var(--shadow-card);
}

/* ---------- Modal de currículo ---------- */

.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.cv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 5, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.cv-card {
  position: relative;
  width: min(620px, 100%);
  max-height: 88svh;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 48px);
  background: var(--grad-paper);
  color: var(--tinta-corpo);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(236, 211, 204, .5);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7);
}
.cv-card h3 { color: var(--tinta); }
.cv-card .eyebrow { color: var(--acento-papel-forte); }
.cv-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(129, 85, 32, .4);
  background: rgba(255, 255, 255, .4);
  color: var(--tinta);
  font-size: 1.5rem;
  line-height: 1;
}
.cv-close:hover { background: rgba(255, 255, 255, .7); }

.cv-timeline { margin-top: 22px; }
.cv-timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(129, 85, 32, .28);
}
.cv-when {
  font-family: var(--font-num);
  font-size: clamp(.75rem, .72rem + .2vw, .85rem);
  letter-spacing: .1em;
  color: var(--acento-papel-forte);
  padding-top: 3px;
}
.cv-timeline strong { color: var(--tinta); display: block; margin-bottom: 2px; }
.cv-timeline p { margin: 0; font-size: clamp(.88rem, .84rem + .2vw, .98rem); }

/* ---------- Estante (padrão Zanetti) ---------- */

.shelf { position: relative; margin-top: clamp(8px, 2vw, 20px); width: 100%; }
.shelf-stage { position: relative; width: 100%; }

.shelf-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: end;
  justify-items: stretch;
  width: 100%;
}

.book-card {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1000px;
  -webkit-tap-highlight-color: transparent;
}

.book {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out);
  border-radius: 4px 10px 10px 4px;
}

.front-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 1.6vw, 20px);
  border-radius: 4px 10px 10px 4px;
  background-color: var(--cover-color, #2A1C0F);
  background-image: var(--grad-cover-shade), var(--cover-img);
  background-size: cover;
  background-position: center;
  box-shadow: inset 4px 0 10px -6px rgba(0, 0, 0, .5), var(--shadow-card);
  text-align: left;
  transition: box-shadow .35s var(--ease-out);
}
.cover-kicker {
  font-family: var(--font-num);
  font-size: clamp(.75rem, .7rem + .25vw, .85rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--acento);
  text-shadow: 0 1px 6px rgba(10, 5, 1, .8);
}
.cover-title {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1rem, .85rem + .8vw, 1.4rem);
  line-height: 1.15;
  color: var(--titulo);
  text-shadow: 0 2px 10px rgba(10, 5, 1, .85);
}
.cover-sub {
  margin-top: 5px;
  font-size: clamp(.78rem, .72rem + .25vw, .88rem);
  line-height: 1.35;
  color: var(--corpo);
  text-shadow: 0 1px 8px rgba(10, 5, 1, .85);
}

.page-block {
  position: absolute;
  top: 2%; bottom: 2%; right: -5px;
  width: 10px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #d8c9ba 0%, #f3eade 45%, #c9b7a4 100%);
  transform: translateZ(-12px);
  box-shadow: 2px 0 6px -2px rgba(10, 5, 1, .5);
}

.page-fan {
  position: absolute;
  top: 3%; bottom: 3%; right: -4px;
  width: 12px;
  transform-style: preserve-3d;
  pointer-events: none;
}
.page-fan i {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 9px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #efe4d4, #d9c8b2);
  transform-origin: left center;
  transition: transform .55s var(--ease-out);
  box-shadow: 1px 0 3px -1px rgba(10, 5, 1, .4);
}

.book-card:hover .book,
.book-card:focus-visible .book { transform: translateY(-8px) rotateY(-8deg); }

/* cobre como cor de interação nas capas */
.book-card:hover .front-cover,
.book-card:focus-visible .front-cover {
  box-shadow: inset 4px 0 10px -6px rgba(0, 0, 0, .5), var(--shadow-card),
    0 0 0 1.5px rgba(199, 150, 114, .55), 0 18px 40px -16px rgba(0, 0, 0, .6);
}

/* modo detalhe: palco vira grid, livros não selecionados saem */
#estante[data-mode="detail"] .shelf-stage {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}
#estante[data-mode="detail"] .shelf-row {
  display: flex;
  justify-content: center;
}
#estante[data-mode="detail"] .book-card {
  width: min(100%, 300px);
  flex: 0 0 auto;
}
#estante[data-mode="detail"] .book-card:not(.is-selected):not([aria-expanded="true"]) {
  display: none;
}
#estante[data-mode="detail"] .book-card:hover .book { transform: rotateY(-29deg) translateZ(22px); }

.book-card.is-selected .book,
.book-card[aria-expanded="true"] .book {
  transform: rotateY(-29deg) translateZ(22px);
}
.book-card.is-selected .page-fan .f1,
.book-card[aria-expanded="true"] .page-fan .f1 { transform: rotateY(-38deg) translateX(4px); }
.book-card.is-selected .page-fan .f2,
.book-card[aria-expanded="true"] .page-fan .f2 { transform: rotateY(-24deg) translateX(9px); }
.book-card.is-selected .page-fan .f3,
.book-card[aria-expanded="true"] .page-fan .f3 { transform: rotateY(-12deg) translateX(14px); }
.book-card.is-selected .page-fan .f4,
.book-card[aria-expanded="true"] .page-fan .f4 { transform: rotateY(-4deg) translateX(18px); }

.book-panel {
  position: relative;
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: var(--radius-lg);
  background: rgba(42, 28, 15, .72);
  border: 1px solid rgba(160, 120, 82, .4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}
.bp-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(236, 211, 204, .35);
  background: transparent;
  color: var(--acento);
  font-size: 1.4rem;
  line-height: 1;
}
.bp-close:hover { background: rgba(236, 211, 204, .1); color: var(--cobre-claro); }
.bp-kicker {
  font-family: var(--font-num);
  font-size: clamp(.75rem, .7rem + .2vw, .85rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--acento-2);
  margin-bottom: 8px;
}
.book-panel h3 { margin-bottom: .5em; outline: none; }
.bp-body p { max-width: 60ch; margin-bottom: .9em; }
.bp-body ul { margin: 0 0 1em; }
.bp-body li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.bp-body li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 1.5px;
  background: var(--acento-2);
}
.bp-note {
  font-size: clamp(.78rem, .74rem + .2vw, .88rem);
  color: var(--corpo);
  opacity: .85;
  border-top: 1px solid rgba(160, 120, 82, .3);
  padding-top: 14px;
  margin: 18px 0;
}
.bp-cta { margin-top: 4px; }

/* ---------- O cuidado / caderno ---------- */

.caderno-host {
  min-height: min(68vh, 560px);
  display: grid;
  place-items: center;
}
.caderno-host canvas {
  width: 100% !important;
  max-width: 980px;
  height: auto !important;
  border-radius: var(--radius-lg);
}
.caderno-fallback { max-width: 720px; margin-inline: auto; }
.caderno-host:not(:empty) + .caderno-fallback { display: none; }

/* ---------- Diferenciais ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
.feature-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: rgba(42, 28, 15, .55);
  border: 1px solid rgba(160, 120, 82, .35);
  transition: transform .35s var(--ease-out), border-color .35s, background .35s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 150, 114, .6);
  background: rgba(42, 28, 15, .75);
}
.feature-num {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem);
  color: var(--acento-2);
  margin-bottom: 12px;
}
.feature-card h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); }
.feature-card p { font-size: clamp(.88rem, .84rem + .2vw, .98rem); margin: 0; }

/* ---------- Depoimentos ---------- */

.testi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
  border-radius: 999px;
  border: 1px solid rgba(236, 211, 204, .4);
  background: rgba(236, 211, 204, .07);
  color: var(--acento);
  font-size: clamp(.85rem, .8rem + .2vw, .95rem);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .3s, border-color .3s, color .3s;
  animation: brilho-selo 6s ease-in-out infinite;
}
.testi-badge:hover { background: rgba(236, 211, 204, .13); border-color: var(--cobre-claro); color: var(--cobre-claro); }
.testi-badge span { color: var(--acento-2); }

.testi { position: relative; }

.testi-track {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 18px;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }

.testi-card {
  flex: 0 0 calc((100% - 2 * clamp(14px, 2vw, 24px)) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: rgba(30, 21, 13, .55);
  border: 1px solid rgba(160, 120, 82, .35);
}
.testi-card blockquote { margin: 0 0 18px; }
.testi-card blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, .95rem + .4vw, 1.22rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--titulo);
  margin: 0;
}
.testi-card figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.testi-card figcaption strong { color: var(--acento); font-size: clamp(.9rem, .85rem + .2vw, 1rem); }
.testi-card figcaption span { font-size: clamp(.75rem, .72rem + .2vw, .85rem); color: var(--cobre-claro); letter-spacing: .08em; text-transform: uppercase; }

.testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(236, 211, 204, .4);
  background: rgba(30, 21, 13, .8);
  color: var(--acento);
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .3s, border-color .3s, color .3s, opacity .3s;
}
.testi-arrow:hover { background: rgba(42, 28, 15, .95); border-color: var(--cobre-claro); color: var(--cobre-claro); }
.testi-arrow:disabled { opacity: .3; cursor: default; }
.testi-prev { left: -8px; }
.testi-next { right: -8px; }

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}
.testi-dots button {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  padding: 0;
}
.testi-dots button::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(236, 211, 204, .3);
  transition: background .3s, transform .3s;
}
.testi-dots button:hover::before { background: rgba(199, 150, 114, .7); }
.testi-dots button[aria-current="true"]::before,
.testi-dots button.is-active::before {
  background: var(--acento);
  transform: scale(1.4);
}

.testi-note {
  margin-top: 18px;
  font-size: clamp(.76rem, .72rem + .2vw, .86rem);
  color: var(--corpo);
  opacity: .75;
  text-align: center;
}

/* ---------- Perguntas ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-intro .btn { margin-top: 10px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-body {
  border: 1px solid rgba(129, 85, 32, .32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}
.bg-grad-soft .faq-body, .bg-dark .faq-body, .bg-grad-main .faq-body {
  background: rgba(42, 28, 15, .5);
  border-color: rgba(160, 120, 82, .35);
}
.faq-body summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  color: var(--tinta);
  position: relative;
}
.bg-grad-soft .faq-body summary, .bg-dark .faq-body summary, .bg-grad-main .faq-body summary { color: var(--titulo); }
.faq-body summary::-webkit-details-marker { display: none; }
.faq-body summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--acento-papel);
  transition: transform .3s var(--ease-out);
}
.bg-grad-soft .faq-body summary::after, .bg-dark .faq-body summary::after, .bg-grad-main .faq-body summary::after { color: var(--acento); }
.faq-body[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: clamp(.9rem, .86rem + .2vw, 1rem);
}

/* ---------- Onde atendo ---------- */

.where-grid { display: block; }

.loc-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(236, 211, 204, .3);
  background: rgba(30, 21, 13, .5);
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.loc-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  min-height: 44px;
  background: transparent;
  color: var(--corpo);
  font-weight: 600;
  font-size: clamp(.85rem, .8rem + .2vw, .95rem);
  white-space: nowrap;
  transition: background .3s, color .3s;
}
.loc-tab:hover { color: var(--cobre-claro); }
.loc-tab.is-active, .loc-tab[aria-selected="true"] {
  background: var(--grad-accent);
  color: var(--botao-texto);
}

.loc-panel {
  display: none;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(160, 120, 82, .35);
  background: rgba(42, 28, 15, .45);
}
.loc-panel.is-open, .loc-panel:not([hidden]) { display: block; }
.loc-panel h3 { margin-bottom: .4em; }
.loc-panel p { max-width: 68ch; }

/* galeria curada assimétrica: 1 foto grande + 3 pequenas com legenda */
.loc-gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 14px;
  margin: clamp(20px, 3vw, 32px) 0;
}
.loc-gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(160, 120, 82, .35);
  background: rgba(30, 21, 13, .5);
}
.loc-gallery .g-feature { grid-row: 1 / span 2; }
.loc-gallery figure:last-child { grid-column: 2 / -1; }
.loc-gallery img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* color grade uniforme: mesma temperatura nas quatro fotos */
  filter: saturate(.95) sepia(.06);
}
.loc-gallery .g-feature img { aspect-ratio: auto; }
.loc-gallery figure:last-child img { aspect-ratio: 8 / 3; }
.loc-gallery figcaption {
  padding: 9px 14px;
  font-size: clamp(.78rem, .74rem + .2vw, .88rem);
  letter-spacing: .04em;
  color: var(--corpo);
  background: rgba(30, 21, 13, .5);
  border-top: 1px solid rgba(160, 120, 82, .3);
}

.placa-figure {
  margin: clamp(20px, 3vw, 32px) 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(160, 120, 82, .35);
}
.placa-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.placa-figure figcaption {
  padding: 10px 16px;
  font-size: clamp(.78rem, .74rem + .2vw, .88rem);
  color: var(--corpo);
  background: rgba(30, 21, 13, .5);
}

.map-consent {
  margin-top: clamp(18px, 3vw, 28px);
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px dashed rgba(236, 211, 204, .35);
  border-radius: var(--radius);
}
.map-consent > p { font-size: clamp(.85rem, .8rem + .2vw, .95rem); }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.map-frame {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(160, 120, 82, .4);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: min(56vh, 420px);
  border: 0;
}

/* ---------- Contato ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .32);
  border: 1px solid rgba(129, 85, 32, .3);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-weight: 600;
  font-size: clamp(.85rem, .8rem + .2vw, .95rem);
  color: var(--tinta);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: clamp(.92rem, .88rem + .2vw, 1rem);
  color: var(--tinta);
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(129, 85, 32, .4);
  border-radius: 10px;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--acento-papel);
  box-shadow: 0 0 0 3px rgba(129, 85, 32, .18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-err {
  margin: 0;
  font-size: clamp(.78rem, .74rem + .2vw, .88rem);
  color: #8C2E1A;
  font-weight: 600;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: clamp(.82rem, .78rem + .2vw, .92rem);
  line-height: 1.5;
  cursor: pointer;
}
.consent input {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--acento-papel);
  flex-shrink: 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: var(--radius);
  border: 1px solid rgba(129, 85, 32, .3);
  background: rgba(255, 255, 255, .3);
  text-decoration: none;
  transition: transform .3s var(--ease-out), border-color .3s, background .3s;
}
a.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--acento-papel);
  background: rgba(255, 255, 255, .5);
}
.cc-label {
  font-size: clamp(.75rem, .72rem + .2vw, .82rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--acento-papel-forte);
  font-weight: 700;
}
.contact-card strong {
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  color: var(--tinta);
  font-family: var(--font-display);
}
.cc-hint { font-size: clamp(.78rem, .74rem + .2vw, .88rem); color: var(--tinta-suave); }

/* ---------- CTA final ---------- */

.section--cta {
  position: relative;
  overflow: hidden;
  min-height: 68vh;
  display: flex;
  align-items: center;
}
.cta-glow {
  width: 780px; height: 620px;
  left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(224, 175, 152, .16) 0%, transparent 70%);
  filter: blur(30px);
  animation: respira-glow 10s ease-in-out infinite;
}
.cta-inner { text-align: center; max-width: 780px; }
.cta-inner .section-lead { margin-inline: auto; }
.cta-inner .btn { margin-top: 8px; }
.cta-phone { margin-top: 22px; font-size: clamp(.9rem, .85rem + .25vw, 1rem); }
.cta-phone a { color: var(--acento); font-weight: 650; white-space: nowrap; }
.emergency-line {
  margin: 26px auto 0;
  max-width: 60ch;
  font-size: clamp(.78rem, .74rem + .2vw, .88rem);
  color: var(--corpo);
  opacity: .8;
  border-top: 1px solid rgba(160, 120, 82, .3);
  padding-top: 18px;
}
.emergency-line strong { color: var(--acento); }

/* ---------- Rodapé ---------- */

.site-footer {
  background: linear-gradient(180deg, #1E150D 0%, #150D06 100%);
  border-top: 1px solid rgba(160, 120, 82, .3);
  padding: clamp(48px, 7vw, 84px) 0 calc(var(--cookie-h) + 40px);
}
.footer-grid {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
}
.fbrand {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  color: var(--titulo);
  margin-bottom: 6px;
}
.fcol p { font-size: clamp(.85rem, .8rem + .2vw, .95rem); margin-bottom: 8px; }
.fcol-t {
  font-size: clamp(.75rem, .72rem + .2vw, .82rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--acento-2);
  font-weight: 700;
  margin-bottom: 14px;
}
.fcol ul { display: flex; flex-direction: column; gap: 8px; }
.fcol a {
  color: var(--corpo);
  text-decoration: none;
  font-size: clamp(.85rem, .8rem + .2vw, .95rem);
}
.fcol a:hover { color: var(--cobre-claro); text-decoration: underline; }
.footer-base {
  max-width: var(--container);
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 22px var(--gutter) 0;
  border-top: 1px solid rgba(160, 120, 82, .25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-base p { margin: 0; font-size: clamp(.76rem, .72rem + .2vw, .86rem); color: var(--corpo); opacity: .75; }
.footer-base a { color: var(--acento); text-decoration: none; }

/* ---------- FAB WhatsApp ---------- */

.fab-wa {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-accent);
  color: var(--botao-texto);
  box-shadow: 0 14px 34px -10px rgba(10, 5, 1, .65), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .3s var(--ease-out), bottom .3s var(--ease-out), box-shadow .3s;
}
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa:hover { transform: translateY(-3px) scale(1.04); color: var(--botao-texto); }
/* sobe quando a cookie bar está visível — zero colisão */
body:has(.cookie-bar:not([hidden])) .fab-wa,
body.cookie-on .fab-wa {
  bottom: calc(var(--cookie-h) + 28px + env(safe-area-inset-bottom, 0px));
}

/* ---------- Cookie bar: cartão fixo no rodapé ---------- */

.cookie-bar {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  margin-inline: auto;
  width: min(680px, calc(100% - 32px));
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(30, 21, 13, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(160, 120, 82, .45);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
}
.cookie-bar[hidden] { display: none !important; }
.cookie-text { flex: 1 1 320px; }
.cookie-text p {
  margin: 0;
  font-size: clamp(.8rem, .76rem + .2vw, .9rem);
  line-height: 1.5;
  color: var(--corpo);
}
.cookie-text strong { color: var(--titulo); }
.cookie-prefs {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(.78rem, .74rem + .2vw, .88rem);
}
.cookie-prefs[hidden] { display: none !important; }
.cookie-prefs label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cookie-prefs input { accent-color: var(--acento-2); width: 18px; height: 18px; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */

/* — 1200px — */
@media (max-width: 1200px) {
  .testi-prev { left: 0; }
  .testi-next { right: 0; }
  .shelf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* — 1020px — */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portrait-frame { width: min(100%, 440px); }
}

/* — 900px: menu mobile — */
@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100svh - var(--header-h) - 16px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 18px;
    background: rgba(30, 21, 13, .97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(160, 120, 82, .45);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
  }
  .nav-toggle[aria-expanded="true"] + .site-nav,
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav ul a {
    display: block;
    padding: 13px 14px;
    font-size: 1.02rem;
    border-radius: 10px;
  }
  .site-nav ul a:hover { background: rgba(236, 211, 204, .08); color: var(--cobre-claro); }
  .site-nav ul a::after { display: none; }
  .nav-cta { margin-top: 10px; justify-content: center; }

  .about-grid { grid-template-columns: 1fr; }
  .side-portrait { position: static; max-width: 520px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* — 760px: hero empilha, estante em 2 colunas — */
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
  .hero-glow-a {
    width: 360px; height: 420px;
    left: 35%; top: 22%;
  }
  .hero-glow-b {
    width: 340px; height: 420px;
    left: 60%; top: 78%;
    filter: blur(32px);
  }
  .portrait-frame { width: min(100%, 380px); max-height: 64vh; }
  .hero-figure::after { bottom: -24px; height: 48px; }

  .shelf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  #estante[data-mode="detail"] .shelf-stage {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  #estante[data-mode="detail"] .book-card { width: min(100%, 240px); }

  .testi-card { flex-basis: 100%; }
  .testi-arrow { display: none; }

  .contact-cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }

  .loc-gallery { grid-template-columns: repeat(2, 1fr); }
  .loc-gallery .g-feature { grid-column: 1 / -1; grid-row: auto; }
  .loc-gallery .g-feature img { aspect-ratio: 16 / 10; }
  .loc-gallery figure:last-child { grid-column: 1 / -1; }
  .loc-gallery figure:last-child img { aspect-ratio: 16 / 9; }

  .cv-timeline li { grid-template-columns: 1fr; gap: 4px; }
}

/* — 620px — */
@media (max-width: 620px) {
  :root { --cookie-h: 240px; }
  .brand-text small { display: none; }
  .loc-tabs { display: flex; width: 100%; }
  .loc-tab { flex: 1; padding-inline: 10px; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn, .cookie-actions .btn-ghost { flex: 1 1 auto; }
}

/* — 480px — */
@media (max-width: 480px) {
  .hero-chips { gap: 8px; }
  .chip { padding: 7px 12px; }
  .hero-cta .btn, .hero-cta .btn-ghost { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .marquee-track { gap: 18px; }
}

/* — 380px — */
@media (max-width: 380px) {
  .shelf-row { gap: 10px; }
  .front-cover { padding: 10px; }
  .book-panel { padding: 20px 16px; }
  .fab-wa { width: 52px; height: 52px; right: 14px; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .hero-glow-a,
  .hero-glow-b,
  .cta-glow,
  .portrait-frame,
  .testi-badge,
  .hero-copy > * {
    animation: none !important;
  }
  .testi-track { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .book-card:hover .book,
  .book-card:focus-visible .book { transform: none; }
}