/* ==========================================================================
   Tabatini & Carneiro Advocacia — folha de estilo única
   Ordem: 1.Tokens  2.Reset  3.Tipografia  4.Layout  5.Componentes  6.Páginas
   ========================================================================== */

/* 1. TOKENS ================================================================ */

:root {
  /* Marca */
  --gold: #dcb675;
  --gold-strong: #c9a15c;
  --gold-deep: #a67c3c;

  /* Neutros escuros */
  --ink-900: #0b0b0b;
  --ink-800: #0f0f0f;
  --ink-700: #1a1a1a;
  --ink-600: #262626;

  /* Neutros claros */
  --paper: #ffffff;
  --paper-alt: #f7f4ef;
  --paper-alt-2: #efe9e0;

  /* Texto */
  --text: #23201c;
  --text-muted: #5b544a;
  --text-on-dark: #f0ece6;
  --text-on-dark-muted: #a9a29a;

  /* Linhas */
  --line: rgba(35, 32, 28, .12);
  --line-strong: rgba(35, 32, 28, .22);
  --line-on-dark: rgba(220, 182, 117, .22);

  /* Tipografia */
  --font-serif: 'Cardo', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --step--1: clamp(.8125rem, .78rem + .16vw, .875rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + .3vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.25rem + .6vw, 1.75rem);
  --step-3: clamp(1.625rem, 1.4rem + 1.1vw, 2.25rem);
  --step-4: clamp(2rem, 1.6rem + 2vw, 3.25rem);

  /* Espaçamento */
  --space-2xs: .5rem;
  --space-xs: .75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Estrutura */
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, .8rem + 2vw, 2.5rem);
  --header-h: 84px;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 11, .06), 0 4px 12px rgba(11, 11, 11, .05);
  --shadow-md: 0 8px 30px rgba(11, 11, 11, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .28s;
}

/* 2. RESET ================================================================= */

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

* { margin: 0; }

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

body {
  font-family: var(--font-serif);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img { height: auto; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a { color: inherit; }

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--gold);
  color: var(--ink-900);
  padding: .7rem 1.25rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* 3. TIPOGRAFIA ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.005em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }

p + p { margin-top: 1em; }

strong { font-weight: 700; }

/* Sobrescrito de seção: “[  TEXTO  ]” — motivo visual da marca */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before,
.eyebrow::after {
  color: var(--gold);
  font-weight: 400;
}

.eyebrow::before { content: "[\00a0\00a0"; }
.eyebrow::after { content: "\00a0\00a0]"; }

.on-dark .eyebrow,
.section--dark .eyebrow { color: var(--gold); }

.on-dark .eyebrow::before,
.on-dark .eyebrow::after,
.section--dark .eyebrow::before,
.section--dark .eyebrow::after { color: var(--text-on-dark-muted); }

.lede {
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--text-muted);
}

.text-center { text-align: center; }

/* Corpo de texto longo (artigos, política de privacidade) */
.prose {
  max-width: 68ch;
  font-size: var(--step-1);
  line-height: 1.78;
}

.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.2em;
  padding-top: .2em;
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: 1.8em;
  letter-spacing: .01em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li + li { margin-top: .45em; }

.prose li::marker { color: var(--gold-deep); }

.prose a {
  color: var(--gold-deep);
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}

.prose a:hover { color: var(--ink-800); }

.prose blockquote {
  margin: 2em 0;
  padding: .25em 0 .25em 1.5em;
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--text-muted);
}

.prose hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose figure { margin: 2em 0; }

.prose figure img { border-radius: var(--radius); }

.prose figcaption {
  margin-top: .6em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* 4. LAYOUT ================================================================ */

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

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }

.section--tight { padding-block: calc(var(--section-y) * .6); }

.section--alt { background: var(--paper-alt); }

.section--dark {
  background: var(--ink-800);
  color: var(--text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--paper); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-l);
}

.section-head--center {
  align-items: center;
  text-align: center;
}

.grid { display: grid; gap: var(--space-m); }

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 62em) {
  .split { grid-template-columns: 1fr 1fr; }
  /* Inverte as colunas no desktop mantendo a ordem de leitura no mobile. */
  .split--reverse > :first-child { order: 2; }
}

/* 5. COMPONENTES =========================================================== */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .95em 2em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold);
  color: var(--ink-900);
}

.btn--gold:hover { background: var(--gold-strong); }

.btn--outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--ink-900);
}

.btn--dark {
  background: var(--ink-800);
  color: var(--paper);
}

.btn--dark:hover { background: var(--ink-600); }

/* Link textual com o motivo “[ Mais ]” */
.link-more {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-deep);
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}

.link-more::before { content: "[\00a0 "; }
.link-more::after { content: " \00a0]"; }
.link-more:hover { color: var(--ink-800); }

/* 5.2 Cabeçalho e navegação ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(8px);
  transition: box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: var(--header-h);
}

.site-header__logo img {
  width: auto;
  height: clamp(38px, 3.4vw, 50px);
}

.nav__panel {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, .1rem + 1.4vw, 1.75rem);
  margin: 0;
}

.nav__link {
  position: relative;
  display: block;
  padding: .6rem .25rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: color var(--dur) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover { color: var(--gold-deep); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--gold-deep); }

.nav__cta { margin-left: var(--space-xs); }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav__toggle .icon-close,
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__backdrop { display: none; }

@media (max-width: 61.99em) {
  /* Fica acima do painel e do fundo escurecido para poder fechar o menu. */
  .nav__toggle {
    display: inline-flex;
    position: relative;
    z-index: 111;
  }

  .nav__toggle[aria-expanded="true"] {
    color: var(--gold);
    border-color: var(--gold);
  }

  .nav__panel {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 110;
    width: min(20rem, 82vw);
    padding: calc(var(--header-h) + 1.5rem) var(--space-m) var(--space-m);
    background: var(--ink-800);
    color: var(--text-on-dark);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility var(--dur);
  }

  .nav__panel.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list li + li { border-top: 1px solid var(--line-on-dark); }

  .nav__link {
    padding: 1rem .25rem;
    color: var(--text-on-dark);
  }

  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--gold); }

  .nav__cta {
    margin: var(--space-m) 0 0;
    display: block;
  }

  .nav__cta .btn { width: 100%; }

  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(11, 11, 11, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }

  .nav__backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  body.nav-open { overflow: hidden; }
}

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

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(22rem, 60vh, 34rem);
  padding-block: var(--space-xl);
  background: var(--ink-900) center / cover no-repeat;
  color: var(--text-on-dark);
  text-align: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 11, 11, .62) 0%, rgba(11, 11, 11, .48) 45%, rgba(11, 11, 11, .74) 100%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-m);
}

.hero__title {
  color: var(--paper);
  max-width: 18ch;
}

.hero__sub {
  max-width: 46ch;
  color: var(--text-on-dark-muted);
}

/* Cabeçalho compacto de páginas internas */
.page-hero {
  min-height: clamp(13rem, 30vh, 19rem);
  place-items: center;
}

.page-hero .hero__title {
  font-size: var(--step-3);
  max-width: 26ch;
}

/* Linha de autoria/data no topo de um artigo */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.breadcrumb {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  color: var(--text-on-dark-muted);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--gold);
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb li {
  display: inline;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 .5em;
  color: var(--line-on-dark);
}

/* 5.4 Cartões -------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-alt-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.card:hover .card__media img { transform: scale(1.04); }

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  flex: 1;
  padding: var(--space-m);
}

.card__title {
  font-size: var(--step-1);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card__text {
  color: var(--text-muted);
  font-size: var(--step-0);
}

/* 5.5 Valores numerados ---------------------------------------------------- */

.values {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.value {
  position: relative;
  padding-top: var(--space-m);
  border-top: 1px solid var(--line-strong);
}

.section--dark .value { border-top-color: var(--line-on-dark); }

.value__num {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.value__title {
  margin-top: var(--space-xs);
  font-size: var(--step-1);
}

.section--dark .value__title { color: var(--paper); }

.value__text {
  margin-top: var(--space-2xs);
  color: var(--text-muted);
}

.section--dark .value__text { color: var(--text-on-dark-muted); }

/* 5.6 Faixa de citação ----------------------------------------------------- */

.quote-band {
  position: relative;
  padding-block: var(--section-y);
  background: var(--ink-900) center / cover no-repeat;
  color: var(--text-on-dark);
  text-align: center;
  isolation: isolate;
}

.quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 11, 11, .68);
}

.quote-band blockquote {
  max-width: 52ch;
  margin-inline: auto;
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.45;
  color: var(--paper);
}

.quote-band blockquote::before,
.quote-band blockquote::after { color: var(--gold); }
.quote-band blockquote::before { content: "[\00a0\00a0"; }
.quote-band blockquote::after { content: "\00a0\00a0]"; }

.quote-band cite {
  display: block;
  margin-top: var(--space-m);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-style: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* 5.7 Carrossel ------------------------------------------------------------ */

.carousel { position: relative; }

.carousel__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: var(--space-s);
}

.carousel__dot {
  width: 34px;
  height: 3px;
  padding: 0;
  background: var(--line-strong);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.carousel__dot[aria-selected="true"] { background: var(--gold); }

/* 5.8 Equipe --------------------------------------------------------------- */

.team {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.member {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

/* As fotos são recortes com fundo branco: o degradê quente evita que fiquem
   "flutuando" sobre a página branca e enquadra o retrato. */
.member__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--paper-alt) 0%, var(--paper-alt-2) 100%);
}

.member__name {
  font-size: var(--step-2);
  margin-bottom: .1em;
}

.member__oab {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.member__role {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.member__bio { color: var(--text-muted); }

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

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  height: 100%;
  padding: var(--space-l) var(--space-m) var(--space-m);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.testimonial::before {
  content: "\201C";
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: .6;
  color: var(--gold);
}

.testimonial__text { color: var(--text-muted); }

.testimonial__author {
  margin-top: auto;
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stars {
  color: var(--gold);
  letter-spacing: .15em;
}

/* 5.10 Artigos ------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-m);
  margin-bottom: var(--space-l);
  border-bottom: 1px solid var(--line);
}

.filters__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
}

.tag {
  padding: .45em 1em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.tag:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.tag[aria-pressed="true"] {
  background: var(--ink-800);
  border-color: var(--ink-800);
  color: var(--gold);
}

.search {
  position: relative;
  flex: 0 1 18rem;
}

.search input {
  width: 100%;
  padding: .7em 1em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}

.search input:focus { border-color: var(--gold); }

.article-grid {
  display: grid;
  gap: var(--space-l) var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

/* Com um ou dois artigos, centraliza em vez de deixar colunas vazias à direita. */
.article-grid:has(> :last-child:nth-child(1)) {
  max-width: 24rem;
  margin-inline: auto;
}

.article-grid:has(> :last-child:nth-child(2)) {
  max-width: 46rem;
  margin-inline: auto;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.article-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-800);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  flex: 1;
  padding: var(--space-m);
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-card__meta .is-tag { color: var(--gold-deep); font-weight: 600; }

.article-card__title {
  font-size: var(--step-1);
  line-height: 1.3;
}

.article-card__title a {
  text-decoration: none;
}

/* Torna o cartão inteiro clicável sem aninhar links */
.article-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.article-card { position: relative; }

.article-card__excerpt {
  color: var(--text-muted);
  font-size: var(--step-0);
}

.article-card__more {
  margin-top: auto;
  padding-top: var(--space-s);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.empty-state {
  padding: var(--space-xl) var(--space-m);
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

/* Cabeçalho e rodapé do artigo individual */
.article-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  max-width: 68ch;
  padding-bottom: var(--space-m);
  margin-bottom: var(--space-l);
  border-bottom: 1px solid var(--line);
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-footer {
  max-width: 68ch;
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.disclaimer {
  padding: var(--space-m);
  margin-top: var(--space-m);
  background: var(--paper-alt);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  line-height: 1.65;
  color: var(--text-muted);
}

/* 5.11 Formulário ---------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--space-m);
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.field label {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: .85em 1em;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(220, 182, 117, .25);
  outline: none;
}

.field input:user-invalid,
.field textarea:user-invalid { border-color: #b3261e; }

.field__error {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  color: #b3261e;
  min-height: 1.2em;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: .7rem;
}

.field--check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .3rem;
  flex: 0 0 auto;
  accent-color: var(--gold-deep);
}

.field--check label {
  font-size: var(--step-0);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.field--check a { color: var(--gold-deep); }

.form__note {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* Aviso de erro devolvido pelo servidor (?erro=… na URL) */
.alert {
  display: none;
  padding: var(--space-s) var(--space-m);
  margin-bottom: var(--space-m);
  border-left: 3px solid #b3261e;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fdf0ef;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  color: #7a1c15;
}

.alert.is-visible { display: block; }

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* 5.12 Blocos de contato --------------------------------------------------- */

.contact-list {
  display: grid;
  gap: var(--space-m);
  margin: 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding-left: var(--space-s);
  border-left: 2px solid var(--gold);
}

.contact-item__label {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item a {
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.contact-item a:hover { color: var(--gold-deep); }

.map {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* 5.13 Chamada final ------------------------------------------------------- */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: clamp(2rem, 1rem + 3vw, 3rem);
  background: var(--ink-800);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
}

.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--text-on-dark-muted); }

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

.site-footer {
  padding-block: var(--section-y) var(--space-l);
  background: var(--ink-800);
  color: var(--text-on-dark-muted);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  line-height: 1.75;
}

.site-footer a {
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.site-footer a:hover { color: var(--gold); }

.site-footer__grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.site-footer__logo img {
  width: auto;
  height: 85px;
  margin-bottom: var(--space-s);
}

.site-footer__title {
  margin-bottom: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer__list li + li { margin-top: .35rem; }

.social {
  display: flex;
  gap: .75rem;
  margin: 0;
}

.social a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.social img {
  width: 28px;
  height: 28px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: var(--space-s);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line-on-dark);
}

.site-footer__hours { color: var(--gold); }

/* 5.15 WhatsApp flutuante -------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease);
}

.whatsapp-float:hover { transform: scale(1.08); }

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* 5.16 Banner de cookies --------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
  padding: var(--space-s) var(--gutter);
  background: var(--ink-700);
  color: var(--text-on-dark);
  border-top: 1px solid var(--line-on-dark);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  text-align: center;
}

.cookie-banner.is-visible { display: flex; }

.cookie-banner a { color: var(--gold); }

.cookie-banner .btn { padding: .7em 1.5em; }

/* 6. UTILITÁRIOS E PREFERÊNCIAS ============================================ */

/* A animação de entrada só existe quando há JavaScript: o seletor depende da
   classe "js", aplicada no <head>. Sem JS (ou se o script falhar), o conteúdo
   aparece normalmente em vez de ficar invisível. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .cookie-banner,
  .nav__backdrop,
  .filters { display: none !important; }

  body { font-size: 11pt; }

  .prose { max-width: none; }

  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
