/* ============================================
   Reimann Advogados — styles.css
   Mobile-first, responsivo
   ============================================ */

:root {
  --navy: #37495c;
  --navy-2: #465a70;
  --gold: #a89476;
  --gold-light: #bcaa8d;
  --ivory: #f7f4ef;
  --white: #ffffff;
  --text: #2a2f36;
  --text-muted: #6b7280;
  --border: #e5e1d8;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 8px 30px rgba(55, 73, 92, .08);
  --shadow-lg: 0 16px 48px rgba(55, 73, 92, .14);
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.section { padding: 72px 0; }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--text-muted); margin-top: 12px; }
.center { text-align: center; }
.center.section-head { margin-left: auto; margin-right: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all .25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(55, 73, 92, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(168, 148, 118, .25);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header__logo img { height: 56px; width: auto; }
.nav { display: none; }
.nav a {
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--gold-light); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
}
.header__cta { display: none; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(168,148,118,.25);
  padding: 12px 20px 28px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,.9);
  padding: 15px 4px;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu a.active { color: var(--gold-light); }
.mobile-menu .btn { margin-top: 20px; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .22;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(55,73,92,.3) 0%, rgba(55,73,92,.85) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 88px 0 96px;
  max-width: 720px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(168,148,118,.6);
  color: var(--gold-light);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  font-weight: 600;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p {
  color: rgba(255,255,255,.82);
  font-size: 1.06rem;
  margin-bottom: 36px;
  max-width: 600px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Página interna: hero compacto */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.8); margin-top: 14px; max-width: 640px; font-size: 1.05rem; }

/* ---------- Cards genéricos ---------- */
.grid { display: grid; gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(168,148,118,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Sobre (split) ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.split__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__text p { color: var(--text-muted); margin: 16px 0; }

/* ---------- Números ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; text-align: center; }
.stats__num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1;
}
.stats__label {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ---------- Publicações ---------- */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__img { aspect-ratio: 16/9; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }
.post-card__meta strong { color: var(--gold); font-weight: 600; }
.post-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.post-card p { color: var(--text-muted); font-size: .92rem; flex: 1; }
.post-card__link {
  margin-top: 18px;
  color: var(--gold);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
}
.post-card__link:hover { color: var(--navy); }

/* ---------- Depoimento ---------- */
.quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
/* aspas decorativas desenhadas via CSS (glifo de fonte cortava no topo) */
.quote__mark::before { content: '\201C'; }
.quote__mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  height: .75em;
  overflow: hidden;
  margin-bottom: 14px;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
}
.quote cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
  color: var(--gold-light);
  font-size: .88rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Slider de depoimentos ---------- */
.quote-slider { position: relative; max-width: 880px; margin: 0 auto; touch-action: pan-y; }
.quote-slider__viewport { overflow: hidden; }
.quote-slider__track { display: flex; transition: transform .45s ease; }
.quote-slider__track .quote {
  flex: 0 0 100%;
  max-width: 100%; /* sem isso os slides ficam mais estreitos que o carrossel e a passagem desalinha */
  padding: 0 12px;
  display: flex;
  flex-direction: column; /* cite ancorado embaixo: nomes sempre na mesma altura */
}
.quote-slider__track .quote blockquote,
.quote-slider__track .quote cite { max-width: 720px; margin-left: auto; margin-right: auto; width: 100%; }
.quote-slider__track .quote cite { margin-top: auto; padding-top: 26px; }
.quote-slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.quote-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.quote-slider__dot.active { background: var(--gold); transform: scale(1.3); }

/* ---------- CTA final ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 32px; }

/* ---------- Áreas de atuação ---------- */
.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.area-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.area-card p { color: var(--text-muted); font-size: .92rem; }

/* ---------- Equipe ---------- */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card__img { aspect-ratio: 1/1; overflow: hidden; background: var(--ivory); }
.team-card__img img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 26px 24px; }
.team-card__role {
  color: var(--gold);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.team-card h3 { margin-bottom: 4px; }
.team-card__oab { font-size: .85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; }
.team-card ul { list-style: none; display: none; } /* currículo completo só em "Ver tudo" */
.team-card.open ul { display: block; }
.team-card__toggle {
  margin-top: 12px;
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .2s;
}
.team-card__toggle:hover { color: var(--navy); }
.team-card__toggle::after { content: ' ▾'; font-size: .8em; }
.team-card.open .team-card__toggle::after { content: ' ▴'; }
.team-card li {
  font-size: .88rem;
  color: var(--text-muted);
  padding: 5px 0 5px 18px;
  position: relative;
}
.team-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Equipe: grade de fotos clicáveis ---------- */
.team-tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: center;
}
.team-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-tile__img { aspect-ratio: 1/1; overflow: hidden; background: var(--ivory); }
.team-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.team-tile:hover .team-tile__img img { transform: scale(1.04); }
.team-tile__nome { font-family: var(--serif); color: var(--navy); font-size: 1.2rem; font-weight: 600; margin: 18px 20px 4px; }
.team-tile__cargo { color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 20px 20px; }

.team-tile--memoriam .team-tile__cargo { color: var(--text-muted); }
.perfil__memoriam { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 28px; }
.perfil__memoriam p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--navy); text-align: center; }
.perfil__memoriam-datas { margin-top: 14px; font-style: normal; font-size: 1rem; letter-spacing: .1em; color: var(--gold); }

/* ---------- Página de perfil do advogado ---------- */
.perfil { display: grid; gap: 32px; align-items: center; margin: 24px 0 44px; }
.perfil__foto { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 340px; }
.perfil__foto img { width: 100%; display: block; }
.perfil__info h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 6px 0 8px; }
.perfil__oab { font-size: .95rem; color: var(--text-muted); font-weight: 600; margin-bottom: 18px; }
.perfil__info p { color: var(--text-muted); margin-bottom: 24px; }
.perfil__contato { display: flex; flex-wrap: wrap; gap: 12px; }
.perfil__cols { display: grid; gap: 32px; border-top: 1px solid var(--border); padding-top: 36px; }
.perfil__bloco h2 { font-size: 1.4rem; margin-bottom: 16px; }
.perfil__lista { list-style: none; }
.perfil__lista li { position: relative; padding: 7px 0 7px 20px; color: var(--text-muted); }
.perfil__lista li::before { content: ''; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.perfil__contato-info { border-top: 1px solid var(--border); padding-top: 36px; margin-top: 36px; }
.perfil__contato-info h2 { font-size: 1.4rem; margin-bottom: 12px; }
.perfil__contato-info p { color: var(--text-muted); line-height: 1.9; }
.perfil__contato-info a:hover { color: var(--gold); }
.perfil__artigos { border-top: 1px solid var(--border); padding-top: 36px; margin-top: 36px; }
.perfil__artigos h2 { font-size: 1.4rem; margin-bottom: 24px; }
@media (min-width: 768px) {
  .perfil { grid-template-columns: 340px 1fr; gap: 48px; }
  .perfil__cols { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ---------- Valores (quem somos) ---------- */
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item__num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1.1;
  min-width: 42px;
}
.value-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.value-item p { color: var(--text-muted); font-size: .94rem; }

/* ---------- Logos clientes ----------
   Técnica: o card tem fundo azul (--navy) e a imagem recebe
   filter grayscale + mix-blend-mode screen. Resultado: o fundo
   branco/claro do logo "desaparece" e o desenho é renderizado
   em tom monocromático #37495c, sem precisar editar os PNGs. */
/* Celular: carrossel horizontal com 2 linhas — deslize para o lado para ver mais */
.logos {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-columns: calc(46% - 5px); /* ~2 colunas + espiada da próxima */
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.logos::-webkit-scrollbar { display: none; }
/* Ordem no carrossel do celular */
.logos__item[title="Grupo Nilko"] { order: -4; }    /* 1ª coluna, linha de cima */
.logos__item[title="Rocco Imóveis"] { order: -3; }  /* 1ª coluna, linha de baixo */
.logos__item[title="Kango Brasil"] { order: -2; }   /* 2ª coluna, linha de cima */
.logos__item[title="CRV"] { order: -1; }            /* 2ª coluna, linha de baixo */
.logos__item {
  background: transparent;
  overflow: hidden;
  width: auto; /* no celular a largura vem do carrossel */
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  transition: transform .25s ease;
}
.logos__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 34px;
}
.logos__item:hover { transform: scale(1.05); }

/* ---------- Newsletter (Reimann News) ---------- */
.newsletter { display: grid; gap: 32px; align-items: center; }
.newsletter__texto p { color: var(--text-muted); margin-top: 12px; }
.newsletter__form .btn { width: 100%; }
.newsletter__status { font-size: .9rem; margin-top: 14px; font-weight: 600; }
.newsletter__status.is-ok { color: #2e7d32; }
.newsletter__status.is-erro { color: #c0392b; }
@media (min-width: 860px) {
  .newsletter { grid-template-columns: 1fr 1.1fr; gap: 56px; }
}

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: 40px; }
.contact-info__item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-info__icon {
  width: 46px; height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: rgba(168,148,118,.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info__item h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin-bottom: 2px; }
.contact-info__item p, .contact-info__item a { color: var(--text-muted); font-size: .95rem; }
.contact-info__item a:hover { color: var(--gold); }

.form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow); }
.form__row { display: grid; gap: 16px; margin-bottom: 16px; }
.form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form input, .form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 16px; /* evita zoom no iOS */
  background: var(--ivory);
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; }

.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 64px 0 0; }
.footer__grid { display: grid; gap: 36px; padding-bottom: 44px; }
.footer__logo img { height: 80px; width: auto; margin-bottom: 16px; }
.footer h4 {
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--sans);
  font-weight: 600;
}
.footer a { transition: color .2s; }
.footer a:hover { color: var(--gold-light); }
.footer p, .footer li { font-size: .92rem; line-height: 1.9; }
.footer ul { list-style: none; }
.footer__social { display: flex; gap: 14px; margin-top: 4px; }
.footer__social a {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
}
.footer__social a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Variante clara do rodapé (áreas de atuação e equipe) */
.footer--light { background: var(--white); color: var(--text-muted); border-top: 1px solid var(--border); }
.footer--light h4 { color: var(--navy); }
.footer--light a:hover { color: var(--gold); }
.footer--light .footer__social a { border-color: var(--border); color: var(--navy); }
.footer--light .footer__social a:hover { border-color: var(--gold); color: var(--gold); }
.footer--light .footer__bottom { border-top: 1px solid var(--border); color: var(--text-muted); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ============================================
   Breakpoints
   ============================================ */
@media (min-width: 560px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  /* tablet/desktop: volta à grade normal, sem carrossel */
  .logos { display: flex; flex-wrap: wrap; justify-content: center; overflow: visible; padding-bottom: 0; gap: 2px; }
  .logos__item[title="Grupo Nilko"], .logos__item[title="Rocco Imóveis"],
  .logos__item[title="Kango Brasil"], .logos__item[title="CRV"] { order: 0; } /* desktop: ordem original */
  .logos__item { width: calc(14.285% - 2px); } /* 7 por linha: 2 linhas (7+7) */
  .logos__item img { padding: 16px; }
}

@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .logos__item { width: calc(14.285% - 2px); } /* 7 por linha: 2 linhas (7+7) */
  .hero__content { padding: 120px 0 130px; }
}

@media (min-width: 992px) {
  .hamburger { display: none; }
  .nav { display: flex; gap: 32px; }
  .header__cta { display: inline-block; padding: 11px 24px; font-size: .88rem; }
  .header__inner { height: 92px; }
  .header__logo img { height: 68px; }
  .grid--areas { grid-template-columns: repeat(3, 1fr); }
  .grid--team { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .nav { display: none; }
  /* logo centralizado no menu do celular/tablet (hambúrguer fica à direita) */
  .header__inner { position: relative; justify-content: flex-end; }
  .header__logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

@media (min-width: 560px) and (max-width: 991px) {
  .grid--areas { grid-template-columns: repeat(2, 1fr); }
  .grid--team { grid-template-columns: repeat(2, 1fr); }
}

/* Acessibilidade: foco visível */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

/* ---------- Página de artigo ---------- */
.article { max-width: 800px; }
.article-back { display: inline-block; color: var(--gold); font-weight: 600; font-size: .9rem; margin-bottom: 18px; }
.article-back:hover { color: var(--navy); }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; display: block; }
.article-lead { font-size: 1.12rem; color: var(--navy); }
.article h2 { font-size: 1.55rem; margin: 40px 0 14px; }
.article h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.article p { margin: 14px 0; text-align: justify; }
.article ul { margin: 14px 0 14px 22px; }
.article li { margin: 8px 0; text-align: justify; }
.article blockquote p { text-align: justify; }
.article a { color: var(--gold); font-weight: 600; }
.article a:hover { text-decoration: underline; }
.article blockquote { border-left: 3px solid var(--gold); padding: 6px 22px; margin: 22px 0; color: var(--text-muted); font-style: italic; }
.article sup { color: var(--gold); font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 22px 0; border-radius: var(--radius); border: 1px solid var(--border); }
.article table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.article th { background: var(--navy); color: var(--white); text-align: left; padding: 11px 14px; font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.article td { border-top: 1px solid var(--border); padding: 11px 14px; vertical-align: top; }
.article tbody tr:nth-child(even) td { background: var(--ivory); }
.callout { background: var(--ivory); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 22px; margin: 22px 0; }
.callout p { margin: 0; }
.footnotes { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .86rem; color: var(--text-muted); }
.footnotes p { margin: 10px 0; }
