/* Rino & Coimbra — folha de estilo única. Sem JavaScript, sem recursos externos. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --papel: #ffffff;
  --pedra: #eef0f1;
  --linha: #d3d7d9;
  --grafite: #3a3b3d;
  --tinta: #232426;
  --rubi: #7a1c2a;
  --rubi-fundo: #5c1420;
  --rubi-claro: #f0dadd;

  --titulo: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --texto: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --margem: clamp(1.25rem, 5vw, 3rem);
  --respiro: clamp(4rem, 9vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--titulo); font-weight: 500; }

a { color: var(--rubi); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--rubi); outline-offset: 3px; border-radius: 2px; }

.pular {
  position: absolute; left: var(--margem); top: -4rem;
  background: var(--rubi-fundo); color: #fff; padding: 0.6rem 1rem; z-index: 20;
}
.pular:focus { top: 0.5rem; }

.miolo {
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--margem);
}

/* Cabeçalho ---------------------------------------------------------- */

.topo {
  background: var(--papel);
  border-bottom: 1px solid var(--linha);
}
.topo .miolo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}
.marca { display: block; flex: none; }
.marca img { width: clamp(13rem, 24vw, 17rem); }

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.6rem;
}
.menu a {
  display: block;
  padding-block: 0.3rem;
  color: var(--grafite);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.menu a:hover, .menu a:focus-visible { color: var(--rubi); border-bottom-color: var(--rubi); }

@media (min-width: 64rem) {
  .topo { position: sticky; top: 0; z-index: 10; }
  section[id] { scroll-margin-top: 5.5rem; }
}

/* Abertura ----------------------------------------------------------- */

.abertura { padding-block: clamp(3.5rem, 9vw, 7rem) var(--respiro); }

.losangos { display: block; width: 3.25rem; height: auto; color: var(--rubi); margin-bottom: 1.75rem; }

.abertura h1 {
  max-width: 19ch;
  color: var(--grafite);
  font-size: clamp(2.3rem, 6.1vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.abertura-corpo {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.abertura-texto { max-width: 62ch; }
.missao {
  margin: 0;
  max-width: 30ch;
  font-family: var(--titulo);
  font-style: italic;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  line-height: 1.38;
  color: var(--rubi);
}
.fone-abertura { margin-top: 2rem; font-weight: 600; }
.fone-abertura a { white-space: nowrap; }

@media (min-width: 56rem) {
  .abertura-corpo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4.5rem; align-items: start; }
  .missao { justify-self: end; }
}

/* Faixas com rubrica na margem ---------------------------------------- */

.faixa { padding-block: var(--respiro); }
.faixa-pedra { background: var(--pedra); }

.rubrica {
  color: var(--rubi);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
  text-wrap: balance;
  margin-bottom: 2.25rem;
}

@media (min-width: 56rem) {
  .faixa > .miolo {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 4.5rem;
    align-items: start;
  }
  .rubrica { position: sticky; top: 7.5rem; margin-bottom: 0; }
}

/* Perfil ------------------------------------------------------------- */

.socio + .socio { margin-top: 3.25rem; padding-top: 3.25rem; border-top: 1px solid var(--linha); }
.socio-cabeca { display: flex; align-items: flex-end; gap: 1.25rem; margin-bottom: 1.5rem; }
.socio-cabeca img { width: 100px; flex: none; border: 1px solid var(--linha); background: var(--papel); padding: 4px; }
.socio h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.12; color: var(--grafite); }
.oab { margin: 0.45rem 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--rubi); }
.socio p { max-width: 66ch; }

/* Valores (a faixa rubi) --------------------------------------------- */

.faixa-rubi { background: var(--rubi-fundo); color: var(--rubi-claro); }
.faixa-rubi .rubrica { color: #fff; }
.faixa-rubi :focus-visible { outline-color: #fff; }

.valores { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 3.5rem; }
.valores li {
  padding-block: 1.5rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  break-inside: avoid;
}
.valores h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; }
.valores p { margin-top: 0.55rem; max-width: 52ch; }

@media (min-width: 44rem) {
  .valores { grid-template-columns: 1fr 1fr; }
}

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

.diferenciais { list-style: none; margin: 0; padding: 0; }
.diferenciais li {
  position: relative;
  padding: 1.05rem 0 1.05rem 2.1rem;
  border-top: 1px solid var(--linha);
  max-width: 70ch;
}
.diferenciais li:last-child { border-bottom: 1px solid var(--linha); }
.diferenciais li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 1.62rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid var(--rubi);
  transform: rotate(45deg);
}

/* Modelo e âmbito ---------------------------------------------------- */

.destaque {
  font-family: var(--titulo);
  font-style: italic;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.18;
  color: var(--grafite);
  margin-bottom: 1.75rem;
  text-wrap: balance;
}
.prosa p { max-width: 66ch; }

/* Onde estamos ------------------------------------------------------- */

.faixa-grafite { background: var(--grafite); color: #e4e6e7; }
.faixa-grafite .rubrica { color: #fff; }
.faixa-grafite a { color: #fff; }
.faixa-grafite :focus-visible { outline-color: #fff; }

.endereco { font-style: normal; font-size: 1.125rem; line-height: 1.6; }
.endereco span { display: block; }
.telefone {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--titulo);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}
.telefone:hover { border-bottom-color: #fff; }
.telefone small { font-family: var(--texto); font-size: 1rem; font-weight: 500; margin-right: 0.6rem; }
.mapa { margin-top: 1.75rem; }

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

.rodape { background: #2b2c2e; color: #c3c7c9; font-size: 0.9375rem; padding-block: 2.75rem; }
.rodape .miolo { display: grid; gap: 1.5rem; align-items: center; }
.rodape img { width: 13rem; }
.rodape p { margin: 0; max-width: 60ch; }
@media (min-width: 56rem) {
  .rodape .miolo { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 4.5rem; }
}

/* Página 404 ---------------------------------------------------------- */

.erro { min-height: 70vh; display: grid; align-content: center; padding-block: var(--respiro); }
.erro h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.08; color: var(--grafite); max-width: 18ch; }
.erro p { margin-top: 1.5rem; font-size: 1.125rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .topo { position: static; }
  .faixa, .abertura { padding-block: 1.5rem; }
  .faixa-rubi, .faixa-grafite, .rodape { background: none; color: #000; }
  .faixa-rubi .rubrica, .faixa-grafite .rubrica, .valores h3, .faixa-grafite a { color: #000; }
  .rubrica { position: static; }
}
