/*
 * Paula · Medicina Tradicional Chinesa — demo (v3, conceito "Meridiano").
 * Uma linha fina percorre a coluna de leitura como um canal de acupunctura;
 * cada secção é um ponto (anel + centro cinábrio) nesse meridiano, que se
 * desenha no carregamento. Tudo serif, quente e íntimo: Fraunces para as vozes
 * grandes, Newsreader para leitura. Papel aveia, tinta castanha, um único acento
 * cinábrio (o vermelho do selo) reservado aos pontos. Sem mono, sem numeração de
 * secção, sem eyebrows em maiúsculas, sem o truque da palavra colorida. Restraint.
 */

:root {
  --paper:    #efe9dd;
  --paper-2:  #e8e1d1;
  --paper-3:  #e0d8c5;
  --ink:      #221c12;      /* texto display, contraste alto sobre papel */
  --ink-2:    #4c4334;      /* corpo — AA sobre papel (>7:1) */
  --ink-3:    #6c6150;      /* mutos / etiquetas — AA sobre papel (~4.7:1) */
  --accent:   #9c4128;      /* cinábrio — só nos pontos e rara ênfase */
  --accent-2: #b6532f;      /* cinábrio claro, para hover/realce sobre tinta */
  --line:     rgba(34, 28, 18, 0.16);
  --line-soft:rgba(34, 28, 18, 0.09);
  --paper-on-ink: #ece4d4;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text:    'Newsreader', Georgia, serif;

  /* escala tipográfica modular (~1.25) e ritmo de espaçamento (base 8) */
  --step--1: clamp(0.94rem, 0.90rem + 0.20vw, 1.05rem);
  --step-0:  clamp(1.06rem, 1.00rem + 0.30vw, 1.22rem);
  --step-1:  clamp(1.30rem, 1.18rem + 0.55vw, 1.60rem);
  --step-2:  clamp(1.60rem, 1.38rem + 1.05vw, 2.35rem);
  --step-3:  clamp(2.00rem, 1.55rem + 2.10vw, 3.45rem);
  --step-4:  clamp(2.55rem, 1.70rem + 3.90vw, 5.20rem);
  --space-s: clamp(14px, 2vw, 22px);
  --space-m: clamp(28px, 4vw, 48px);
  --space-l: clamp(56px, 8vw, 116px);

  --gutter:  clamp(22px, 5vw, 60px);
  --rail:    clamp(26px, 4.5vw, 58px);   /* recuo da coluna face à linha */
  --maxw:    1180px;
  --read:    980px;
  --measure: 66ch;                        /* comprimento de linha confortável */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text);
  font-size: clamp(17px, 0.95rem + 0.35vw, 19.5px); line-height: 1.62;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "clig", "onum", "pnum";
  hanging-punctuation: first last;
}
/* viúvas e órfãs: o corpo respira, as cabeças equilibram-se */
p { text-wrap: pretty; }
h1, h2, h3, blockquote { text-wrap: balance; }
/* tabela de figuras alinhada onde há números/dados */
.specs .v, .map-slot, time { font-feature-settings: "kern", "tnum", "lnum"; }
/* grão de papel, atmosfera */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.045; mix-blend-mode: multiply;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em, .it { font-style: italic; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.05;
  letter-spacing: -0.012em; font-optical-sizing: auto;
  font-feature-settings: "kern", "liga", "dlig", "lnum";
}
/* o display grande aperta-se opticamente; o pequeno solta-se */
h1 { letter-spacing: -0.028em; }
h2 { letter-spacing: -0.018em; }

/* foco visível coerente em toda a parte (acessibilidade) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }
/* scrollbar discreta, no tom do papel */
* { scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 3px solid var(--paper); border-radius: 999px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.tag {
  font-family: var(--display); font-style: italic; font-size: var(--step-0); color: var(--ink-3);
  line-height: 1.3;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 14px; top: 14px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; }

/* ============ MASTHEAD ============ */
.masthead { position: sticky; top: 0; z-index: 100; background: rgba(239,233,221,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.masthead .wrap { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: baseline; gap: 11px; }
.wordmark .name { font-family: var(--display); font-size: 25px; color: var(--ink); letter-spacing: -0.01em; }
.wordmark .sub { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.nav a.lk { font-family: var(--display); font-size: 1.05rem; color: var(--ink-2); position: relative; transition: color 0.22s ease; }
.nav a.lk::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px; background: var(--accent); transition: right 0.3s cubic-bezier(0.22,0.61,0.36,1); }
.nav a.lk:hover { color: var(--ink); }
.nav a.lk:hover::after, .nav a.lk[aria-current="page"]::after { right: 0; }
.nav a.lk[aria-current="page"] { color: var(--ink); }

.cta {
  font-family: var(--display); font-size: 1.05rem; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 24px; border-radius: 999px; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); cursor: pointer; white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.cta:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 20px -8px rgba(156,65,40,0.55); }
.cta:active { box-shadow: none; transform: translateY(0.5px); }
.cta.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.cta.ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); box-shadow: none; }
.cta.lg { padding: 15px 32px; font-size: 1.15rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }

/* ============ MERIDIANO (a linha + os pontos) ============ */
.rail { position: relative; max-width: var(--read); margin: 0 auto; padding-left: var(--rail); }
.rail::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 0; width: 1px; background: var(--line);
  transform: scaleY(0); transform-origin: top; animation: draw 1.2s 0.15s cubic-bezier(0.4, 0, 0.1, 1) forwards;
}
@keyframes draw { to { transform: scaleY(1); } }

/* ponto na linha: anel cinábrio com centro, fundo papel para "furar" a linha */
.point { position: relative; }
.point::before {
  content: ""; position: absolute; top: 0.34em; left: calc(-1 * var(--rail)); transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: radial-gradient(circle at center, var(--accent) 0 1.8px, var(--paper) 2.4px);
}

/* ============ blocos ============ */
.block { padding: var(--space-l) 0; }
.block.tight { padding-top: clamp(40px, 5vw, 72px); }
.lead { font-family: var(--text); font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 54ch; }
.lead.big { font-size: var(--step-2); line-height: 1.4; color: var(--ink); max-width: 24ch; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(20px, 3vw, 40px); }
.hero .tag { display: block; margin-bottom: clamp(22px, 3vw, 34px); }
.hero h1 { font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.03em; max-width: 15ch; }
.hero .lead { margin-top: clamp(28px, 4vw, 44px); }
.hero .acts { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: clamp(30px, 4vw, 46px); }
.hero .note { margin-top: clamp(28px, 4vw, 44px); font-family: var(--display); font-style: italic; font-size: var(--step-0); color: var(--ink-3); }

/* ---------- cabeça de secção ---------- */
.head { margin-bottom: clamp(34px, 4vw, 56px); }
.head h2 { font-size: var(--step-3); max-width: 17ch; }
.head .stand { margin-top: 20px; font-size: var(--step-0); line-height: 1.55; color: var(--ink-2); max-width: var(--measure); }
.head h2 .it { color: var(--ink); }

/* ---------- serviços: lista editorial ---------- */
.list { border-top: 1px solid var(--line); }
.list .it {
  display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(12px, 3vw, 48px);
  padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); align-items: baseline;
  transition: background 0.25s;
}
.list .it:hover { background: linear-gradient(90deg, transparent, rgba(156,65,40,0.04) 30%, transparent); }
.list .it h3 { font-size: clamp(23px, 2.8vw, 34px); letter-spacing: -0.015em; }
.list .it h3 .sub { display: block; font-family: var(--display); font-style: italic; font-size: 0.5em; color: var(--ink-3); margin-top: 4px; letter-spacing: 0; }
.list .it p { font-size: 17.5px; line-height: 1.5; color: var(--ink-2); }

/* ---------- indicações agrupadas ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(30px, 4vw, 56px) clamp(30px, 5vw, 64px); }
.area h3 { font-size: clamp(18px, 1.9vw, 22px); padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.area ul { list-style: none; }
.area li { font-size: 17.5px; line-height: 1.4; color: var(--ink); padding: 11px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 12px; align-items: baseline; }
.area li:last-child { border-bottom: 0; }
.area li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--accent); opacity: 0.6; }

/* ---------- processo ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.steps .s { border-top: 1px solid var(--ink); padding-top: 22px; }
.steps .s .k { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--accent); display: block; margin-bottom: 14px; }
.steps .s h3 { font-size: clamp(21px, 2.3vw, 27px); margin-bottom: 12px; }
.steps .s p { font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* ---------- citação ---------- */
.quote blockquote { font-family: var(--display); font-size: clamp(30px, 5.2vw, 68px); line-height: 1.14; letter-spacing: -0.025em; color: var(--ink); max-width: 16ch; }
.quote blockquote .it { color: var(--ink); }
.quote cite { display: block; margin-top: 26px; font-family: var(--display); font-style: italic; font-size: 18px; color: var(--ink-3); }

/* ---------- placa / figura ---------- */
.plate { border: 1px solid var(--ink); aspect-ratio: 4/5; display: grid; grid-template-rows: 1fr auto; background: var(--paper-2); }
.plate .void { display: grid; place-items: center; text-align: center; padding: 26px; }
.plate .void p { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--ink-3); max-width: 20ch; line-height: 1.4; }
.plate .cap { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--ink-3); padding: 13px 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.plate img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- imagem editorial (hero / faixas) ---------- */
.media { position: relative; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media figcaption { position: absolute; left: 0; bottom: 0; font-family: var(--display); font-style: italic; font-size: 15px; color: var(--paper); background: rgba(34,28,18,0.62); padding: 8px 15px; }

/* ---------- sobre ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(34px, 5vw, 76px); align-items: start; }
.prose { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: var(--measure); }
.prose p { margin-bottom: 22px; }
.prose p:last-child { margin-bottom: 0; }
.prose p.first::first-letter { font-family: var(--display); font-size: 3.3em; line-height: 0.72; float: left; padding: 10px 14px 0 0; color: var(--accent); }
.specs { border-top: 1px solid var(--ink); }
.specs .ln { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(16px, 3vw, 40px); padding: 17px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.specs .ln .k { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--ink-3); }
.specs .ln .v { font-size: 18px; color: var(--ink); }
.specs .ln .v a:hover { color: var(--accent); }

/* ============ CTA — momento de chão (tinta quente) ============ */
.band { background: var(--ink); color: var(--paper-on-ink); }
.band .wrap { padding: clamp(60px, 9vw, 120px) var(--gutter); text-align: center; }
.band .tag { color: rgba(236,228,212,0.6); display: block; margin-bottom: 18px; }
.band h2 { color: var(--paper); font-size: clamp(34px, 6vw, 80px); letter-spacing: -0.025em; line-height: 1.07; max-width: 16ch; margin: 0 auto; }
.band p { font-size: var(--step-0); color: rgba(236,228,212,0.82); max-width: 50ch; margin: 22px auto 0; }
.band .acts { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: clamp(30px, 4vw, 48px); }
.band .cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band .cta:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.band .cta.ghost { background: transparent; color: var(--paper); border-color: rgba(236,228,212,0.35); }
.band .cta.ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
/* ponto cinábrio no centro, no topo da banda, como remate do meridiano */
.band .seal { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--accent); background: radial-gradient(circle at center, var(--accent) 0 1.8px, var(--ink) 2.4px); margin: 0 auto clamp(26px,4vw,40px); }

/* ============ page-hero interior ============ */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(16px, 3vw, 36px); }
.page-hero .tag { display: block; margin-bottom: clamp(20px, 3vw, 30px); }
.page-hero h1 { font-size: clamp(42px, 8vw, 96px); line-height: 1.04; letter-spacing: -0.03em; max-width: 15ch; }
.page-hero .lead { margin-top: clamp(24px, 3vw, 36px); }

/* ============ contacto ============ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); }
.field { margin-bottom: 26px; }
.field label { display: block; font-family: var(--display); font-style: italic; font-size: 17px; color: var(--ink-3); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--text); font-size: 19px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; transition: border-color 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; cursor: pointer; }
.map-slot { margin-top: 26px; aspect-ratio: 16/9; border: 1px solid var(--ink); background: var(--paper-2); display: grid; place-items: center; text-align: center; }
.map-slot p { font-family: var(--display); font-style: italic; color: var(--ink-3); }

/* ============ footer ============ */
.foot { background: var(--ink); color: rgba(236,228,212,0.62); padding: clamp(52px, 7vw, 92px) 0 30px; font-size: 17px; }
.foot a:hover { color: var(--paper); }
.foot .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(236,228,212,0.16); }
.foot .wordmark .name { color: var(--paper); }
.foot .wordmark .sub { color: rgba(236,228,212,0.55); }
.foot .blurb { font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.45; color: rgba(236,228,212,0.8); margin-top: 18px; max-width: 28ch; }
.foot .col h4 { font-family: var(--display); font-style: italic; font-size: 17px; color: rgba(236,228,212,0.55); margin-bottom: 15px; }
.foot .col a, .foot .col span { display: block; margin-bottom: 9px; }
.foot .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-family: var(--display); font-style: italic; font-size: 15px; color: rgba(236,228,212,0.5); }

/* salvaguarda: texto legível em qualquer fundo escuro */
.band .v, .band .lead, .foot .v { color: var(--paper-on-ink); }

/* ============ stagger no load ============ */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.18s; } .d2 { animation-delay: 0.30s; } .d3 { animation-delay: 0.42s; } .d4 { animation-delay: 0.54s; }

/* ============ responsive ============ */
@media (max-width: 880px) {
  .list .it { grid-template-columns: 1fr; gap: 10px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .split { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .foot .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --rail: 22px; }
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--ink); padding: 18px var(--gutter) 24px; gap: 16px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav .cta { justify-content: center; }
  .foot .top { grid-template-columns: 1fr; gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .rise { opacity: 1; }
  .rail::before { transform: scaleY(1); }
}
