/* =========================================================
   Yuri Besen · Psicóloga — estilos da página
   Mundo visual: cartaz em papel cinza, tinta preta e um azul de impressão.
   Para mudar cores ou fontes, edite só as variáveis abaixo.
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Papel e tintas */
  --stock: #B8B5AE;        /* papel cinza do cartaz (fundo principal) */
  --stock-light: #D9D6D0;  /* segunda folha, mais clara */
  --ink: #151413;          /* tinta preta */
  --ink-soft: #3A3835;     /* texto secundário */
  --spot: #2B3FCB;         /* azul de impressão: só para ações */
  --spot-ink: #2233A8;     /* azul para links de texto (mais contraste) */
  --spot-deep: #1E2D96;    /* azul do botão ao passar o mouse */
  --paper-on-spot: #ECEAE5;/* texto claro sobre azul */

  /* Tipografia */
  --sans: "Archivo", "Arial Narrow", sans-serif;
  --serif: "Spectral", Georgia, serif;

  /* Medidas */
  --gutter: clamp(20px, 4.5vw, 64px);
  --rule: 2px;
  --section: clamp(72px, 10vw, 152px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(17px, 0.35vw + 15.6px, 19px);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, dl, dd, blockquote, ul { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
strong { font-weight: 700; }

::selection { background: var(--ink); color: var(--stock-light); }
:focus-visible { outline: 3px solid var(--spot); outline-offset: 3px; }
html { scrollbar-color: var(--ink) var(--stock); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--stock-light); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Fotos impressas em tinta preta sobre o papel */
.hero__print img, .sheet img {
  mix-blend-mode: multiply;
  filter: contrast(1.12);
}

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--spot); color: var(--paper-on-spot);
  font-family: var(--sans); font-weight: 700; font-size: 1.1rem; letter-spacing: .01em;
  text-decoration: none;
  padding: 18px 26px;
  border: 0; border-radius: 0;
  transition: background-color .2s ease, transform .2s cubic-bezier(.2,.7,.2,1);
}
.btn:hover { background: var(--spot-deep); }
.btn:active { transform: translateY(1px); }
.btn__arrow { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.btn:hover .btn__arrow, .textlink:hover .btn__arrow { transform: translateX(4px); }
.btn--small { font-size: .95rem; padding: 11px 16px; gap: 0; white-space: pre; }
.btn--paper { background: var(--stock-light); color: var(--ink); }
.btn--paper:hover { background: #fff; }

.textlink {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--spot-ink); font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}

/* ---------- Cabeçalho ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--stock);
  border-bottom: var(--rule) solid var(--ink);
}
.masthead__row { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.lockup { display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; flex-wrap: wrap; row-gap: 0; }
.lockup__name {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: 1.75rem; line-height: 1; letter-spacing: .01em;
}
.lockup__crp { font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.masthead__nav { display: flex; gap: 28px; margin-left: auto; }
.masthead__nav a {
  font-weight: 600; font-size: .95rem; text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 2px;
  padding-bottom: 3px; transition: background-size .25s ease;
}
.masthead__nav a:hover { background-size: 100% 2px; }

/* ---------- 1. Abertura ---------- */
.hero { border-bottom: var(--rule) solid var(--ink); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: min(calc(100svh - var(--header-h)), 900px);
  padding-right: 0;
}
.hero__text {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: clamp(40px, 6vh, 72px) clamp(24px, 4vw, 64px) clamp(40px, 6vh, 64px) 0;
}
.hero__title {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.3rem, 8.4vw, 8.75rem);
  line-height: .95; letter-spacing: -.005em;
  text-wrap: balance;
}
.hero__lead { max-width: 34ch; font-size: clamp(1.1rem, .6vw + .9rem, 1.35rem); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 28px; }
.phone { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.phone__label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.phone__num { font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.phone:hover .phone__num { text-decoration: underline; text-underline-offset: 4px; }

.hero__print {
  position: relative; overflow: hidden;
  border-left: var(--rule) solid var(--ink);
  /* acima de 1440px o retrato continua sangrando até a borda da tela */
  margin-right: min(0px, calc((1440px - 100vw) / 2));
}
.hero__print img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.label-quote {
  position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px);
  background: var(--stock); border: var(--rule) solid var(--ink);
  padding: 10px 14px 12px;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.2vw, 1.4rem); line-height: 1.3;
  max-width: calc(100% - 32px);
}
.label-quote span { display: block; font-family: var(--sans); font-style: normal; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }

/* Assinatura: o retrato "imprime" no papel ao carregar */
@media (prefers-reduced-motion: no-preference) {
  .js .print-in { animation: print-in 1.4s cubic-bezier(.16,1,.3,1) both; }
  @keyframes print-in {
    from { opacity: .35; filter: contrast(2.2) brightness(1.5); }
    to   { opacity: 1; filter: contrast(1.12) brightness(1); }
  }
}

/* ---------- Folhas (seções) ---------- */
.sheet { padding-block: var(--section); border-bottom: var(--rule) solid var(--ink); }
.sheet--light { background: var(--stock-light); }
.sheet--light img { mix-blend-mode: multiply; }

.display {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 5.6vw, 5.75rem); line-height: .95; letter-spacing: -.003em;
  text-wrap: balance;
}
.display--small { font-size: clamp(2.2rem, 4vw, 4rem); }

/* 2. Como eu escuto */
.approach {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px;
  align-items: start;
}
.approach .display { grid-column: 1 / span 7; }
.approach__body { grid-column: 1 / span 6; display: grid; gap: 1em; max-width: 62ch; }
.approach__img { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: end; border: var(--rule) solid var(--ink); }

.pull {
  margin-top: clamp(64px, 8vw, 120px);
  padding: clamp(28px, 4vw, 56px) 0;
  border-block: var(--rule) solid var(--ink);
}
.pull footer { margin-top: 18px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pull p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 3.1vw, 3rem); line-height: 1.3;
  max-width: 30ch; text-wrap: balance;
}

.tenets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); }
.tenets li { padding: 0 28px 0 0; }
.tenets li + li { padding-left: 28px; border-left: 1px solid var(--ink); }
.tenets h3 { font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1; margin-bottom: 14px; }
.tenets p { color: var(--ink-soft); max-width: 36ch; }

/* 3. Como funciona: quadro réguado */
.board { margin-top: clamp(36px, 5vw, 64px); border-top: var(--rule) solid var(--ink); }
.board__row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--ink);
  position: relative;
}
.board dt { font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1; }
.board dd { max-width: 62ch; }
.board--tight .board__row { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); padding: 18px 0; }
.board--tight dt { font-size: clamp(1.3rem, 1.6vw, 1.6rem); }
.board__cta { margin-top: 40px; }

/* régua que "corre" ao entrar na tela */
@media (prefers-reduced-motion: no-preference) {
  .js .board__row { border-bottom-color: transparent; }
  .js .board__row::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
    transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.16,1,.3,1);
  }
  .js .board__row.is-in::after { transform: scaleX(1); }
}

/* 4. Temas: escalação de cartaz */
.lineup {
  margin-top: clamp(32px, 4vw, 56px);
  display: flex; flex-wrap: wrap; gap: 4px 0;
  font-stretch: 62%; font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: 1.08;
}
.lineup li { display: inline; }
.lineup li:not(:last-child)::after { content: "/"; font-weight: 400; color: var(--ink); margin: 0 .38em; }
.lineup__note { margin-top: clamp(32px, 4vw, 56px); max-width: 44ch; font-size: clamp(1.1rem, .5vw + .95rem, 1.3rem); }

/* 5. Trajetória */
.path { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.path__img { border: var(--rule) solid var(--ink); position: sticky; top: calc(var(--header-h) + 24px); }
.path__lead { margin-top: 28px; max-width: 52ch; }
.path .board { margin-top: 40px; }

/* 6. Consultório */
.place {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px;
}
.place figure img { border: var(--rule) solid var(--ink); }
.place figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }
.place__a { grid-column: 1 / span 5; }
.place__b { grid-column: 6 / span 4; margin-top: clamp(48px, 8vw, 140px); }
.place__side { grid-column: 10 / span 3; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.place__info { display: grid; gap: 18px; }
.place__info address { font-style: normal; font-weight: 600; font-size: 1.1rem; line-height: 1.45; }
.place__info address strong {
  display: block; font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin-bottom: 10px;
}
.place__info p { color: var(--ink-soft); }
.place__c img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 60%; width: 100%; }

/* ---------- 7. Fechamento (folha azul) ---------- */
.close { background: var(--spot); color: var(--paper-on-spot); padding-block: clamp(80px, 11vw, 168px); }
.close__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.close__title {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 7.4vw, 7.75rem); line-height: .95;
}
.close__side { display: grid; gap: 24px; justify-items: start; }
.close__side p { max-width: 34ch; }
.close__num { font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.close :focus-visible { outline-color: var(--paper-on-spot); }

/* ---------- Rodapé ---------- */
.foot { background: var(--ink); color: var(--stock-light); padding: 56px 0 120px; font-size: .95rem; }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.foot a { text-underline-offset: 4px; }
.foot__care { color: #BDB9B2; }
.lockup--foot { flex-direction: column; gap: 6px; }
.foot :focus-visible { outline-color: var(--stock-light); }

/* ---------- Barra fixa do celular ---------- */
.dock { display: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .masthead__nav { display: none; }
  .masthead .btn--small { margin-left: auto; }
  .place__a { grid-column: 1 / span 6; }
  .place__b { grid-column: 7 / span 6; }
  .place__side { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; }
  .place__info, .place__c { flex: 1 1 0; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  :root { --header-h: 60px; }
  .lockup__name { font-size: 1.45rem; }
  .lockup__crp { font-size: .74rem; letter-spacing: .1em; }

  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-right: var(--gutter); }
  .hero__text { padding: 36px 0 40px; gap: 32px; }
  .hero__print {
    border-left: 0; border-top: var(--rule) solid var(--ink);
    margin-inline: calc(-1 * var(--gutter));
    aspect-ratio: 4 / 5;
  }

  .approach .display, .approach__body, .approach__img { grid-column: 1 / -1; grid-row: auto; }
  .tenets { grid-template-columns: 1fr; }
  .tenets li, .tenets li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--ink); }

  .board__row, .board--tight .board__row { grid-template-columns: 1fr; gap: 8px; }

  .path { grid-template-columns: 1fr; }
  .path__img { position: static; max-width: 520px; }

  .place { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 16px; }
  .place__a { grid-column: 1 / span 4; }
  .place__b { grid-column: 3 / span 4; margin-top: 0; }
  .place__side { flex-direction: column; }
  .place__c { max-width: 70%; }

  .close__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 20px; }

  /* barra fixa com o botão principal */
  .dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--stock); border-top: var(--rule) solid var(--ink);
    transform: translateY(110%); transition: transform .35s cubic-bezier(.16,1,.3,1);
  }
  .dock .btn { width: 100%; justify-content: center; }
  .dock.is-on { transform: none; }
}

@media (max-width: 520px) {
  .hero__title { font-size: clamp(3.2rem, 14.2vw, 4.4rem); }
  .masthead .btn--small { display: none; }
  .lineup { flex-direction: column; font-size: clamp(1.6rem, 7.6vw, 2.2rem); }
  .lineup li:not(:last-child)::after { content: none; }
  .lockup__crp { flex-basis: 100%; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
