/*
Theme Name: G.C. Reis - Advocacia & Consultoria Jurídica Empresarial
Theme URI: https://gcreisconsultoria.com.br
Author: Dr. Mateus Henrique Müller - OAB/SP 509.001 & Antigravity AI
Author URI: https://gcreisconsultoria.com.br
Description: Tema institucional sob medida para G.C. Reis Advocacia. Leve, sem dependências Node em runtime, acessível (WCAG AA), carrossel linear em 1 linha, tipografia editorial e adaptado para UOL Host / cPanel.
Version: 2.3.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary / G.C. Reis Advocacia
Text Domain: gcreis-theme
*/

:root {
  --ink: #151515;
  --ink-secondary: #2c2b29;
  --muted: #77756f;
  --muted-light: #a5a39d;
  --line: #e7e5e0;
  --line-dark: #3d3d3d;
  --paper: #f9f8f5;
  --paper-card: #f2f1ec;
  --cream: #efeee9;
  --white: #ffffff;
  --dark-bg: #171717;
  --dark-surface: #242321;
  --dark-border: #42413f;
  --gold-accent: #c49a45;
  --ease: cubic-bezier(.21, .67, .22, 1);
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .15s ease;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #151515;
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilitários e Grid */
.container {
  width: min(1340px, calc(100% - 88px));
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .23em;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -.05em;
  font-size: clamp(46px, 5vw, 84px);
  line-height: 1.05;
  margin: 20px 0;
}

.h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0 0 10px;
}

.desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 580px;
}

.line {
  border-top: 1px solid var(--line);
}

.btn {
  padding: 15px 26px;
  border: 1px solid #161616;
  background: #161616;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.btn:hover {
  background: #3b3a37;
  border-color: #3b3a37;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--cream);
}

.btn-whatsapp {
  background: #1e7e34;
  border-color: #1e7e34;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #155724;
  border-color: #155724;
}

.arrow {
  font-size: 18px;
  line-height: 1;
}

.sec {
  padding: 95px 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 248, 245, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  width: 250px;
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  height: auto;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 24px);
  margin-left: auto;
}

.navlinks a {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.navlinks a:hover {
  opacity: .6;
}

.navlinks a.active, .navlinks a[aria-current="page"] {
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
}

.navright {
  display: flex;
  align-items: center;
  gap: 14px;
}

.searchBtn, .menuBtn {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  padding: 8px;
  color: var(--ink);
}

.menuBtn {
  display: none;
}

.navmenu {
  display: none;
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.navmenu a {
  font-size: 16px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: #f7f6f2;
  min-height: 640px;
  display: grid;
  grid-template-columns: 52% 48%;
  border-bottom: 1px solid var(--line);
}

.heroleft {
  position: relative;
  padding: 95px 8% 70px max(44px, calc((100vw - 1340px)/2));
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.heroleft::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/isotipo-preto.png');
  background-repeat: no-repeat;
  background-position: -200px 140px;
  background-size: 640px;
  opacity: .018;
  z-index: -1;
  pointer-events: none;
}

.hero p {
  color: #55534e;
  line-height: 1.8;
  font-family: var(--font-serif);
  font-size: 19px;
  max-width: 460px;
  margin: 0 0 28px;
}

.heroactions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Indicador de rolagem (setinha animada para baixo) */
.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  margin-top: 50px;
  cursor: pointer;
  width: fit-content;
  transition: color .2s ease;
}

.scroll-indicator:hover {
  color: var(--ink);
}

.scroll-indicator .down-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

.heroright {
  min-height: 600px;
  background-image: url('assets/images/fachada-escritorio.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.concept-label {
  position: absolute;
  bottom: 14px;
  right: 18px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, .75);
  color: #f6f6f6;
  font-size: 10px;
  letter-spacing: .06em;
  border-radius: 2px;
}

.herofoot {
  margin-top: 55px;
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--muted);
  text-transform: uppercase;
}

/* CARROSSEL EM 1 LINHA SÓ (HORIZONTAL SMOOTH TRACK) */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.filters-wrapper {
  margin-bottom: 22px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  border: 1px solid var(--line);
  background: var(--white);
  color: #66645f;
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 30px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter .count-badge {
  font-size: 10px;
  background: #eee;
  padding: 2px 6px;
  border-radius: 10px;
  color: #555;
}

.filter:hover {
  border-color: #999;
  color: var(--ink);
}

.filter.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.filter.active .count-badge {
  background: #333;
  color: #fff;
}

.slideBtns {
  display: flex;
  gap: 10px;
}

.circlebtn {
  border: 1px solid #d9d7d2;
  background: var(--white);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  cursor: pointer;
}

.circlebtn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* CARROSSEL WRAPPER & TRACK — 1 LINHA SÓ */
.carousel-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform .45s var(--ease);
  will-change: transform;
}

.news-card {
  flex: 0 0 calc((100% - (3 * 18px)) / 4); /* Exatamente 4 cards por linha em desktop */
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  border-color: #bbb;
}

.news-art {
  height: 140px;
  position: relative;
  overflow: hidden;
  background: #111;
}

.news-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.news-card:hover .news-art img {
  transform: scale(1.03);
}

.news-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, .95);
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: .08em;
  font-weight: 700;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  color: #151515;
}

.news-content {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.news-date {
  font-size: 11px;
  color: var(--muted);
}

.news-content h3 {
  font: 400 17px/1.3 var(--font-serif);
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--ink);
}

.news-content p {
  font-size: 12px;
  line-height: 1.55;
  color: #706d67;
  margin-top: auto;
  margin-bottom: 14px;
}

.news-content a {
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #151515;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.carousel-indicators {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8d6d0;
  border: 0;
  padding: 0;
  transition: all .2s;
  cursor: pointer;
}

.dot.active {
  background: var(--ink);
  width: 22px;
  border-radius: 10px;
}

/* Áreas de Atuação */
.areas {
  background: var(--paper-card);
}

.area-layout {
  display: grid;
  grid-template-columns: 32% 68%;
  gap: 36px;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.area-card {
  border: 1px solid #dcdad2;
  background: rgba(255, 255, 255, .55);
  min-height: 175px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .25s ease;
}

.area-card:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

.area-card i {
  font-size: 26px;
  font-family: var(--font-serif);
  font-style: normal;
  color: #3a3936;
}

.area-card h3 {
  font: 400 23px var(--font-serif);
  letter-spacing: -.03em;
  margin: 12px 0 6px;
  color: var(--ink);
}

.area-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* O Escritório */
.office {
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  background: var(--bg-alt, #f7f5f0);
}

.office-media-wrapper {
  position: relative;
  padding: 48px 32px 48px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.office-video-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: #0f1f18;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(18, 48, 38, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(181, 143, 73, 0.28);
}

.office-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.office-video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(15, 31, 24, 0.88);
  backdrop-filter: blur(8px);
  color: #dfcaa2;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 20px;
  border: 1px solid rgba(223, 202, 162, 0.35);
  pointer-events: none;
  z-index: 2;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #b58f49;
  border-radius: 50%;
  box-shadow: 0 0 6px #d8b26e;
}

.office-art {
  position: relative;
  background: linear-gradient(143deg, #e8e5dd, #aba9a4);
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.office-art img {
  position: absolute;
  width: 70%;
  height: 70%;
  object-fit: contain;
  opacity: .18;
  filter: grayscale(1);
}

.office-text {
  padding: 60px 8% 60px 4%;
  align-self: center;
}

.number {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font: 16px var(--font-serif);
  color: var(--muted);
}

/* Nossa Equipe */
.team-head {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: flex-end;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid #dcdad4;
  background: none;
  border-radius: 30px;
  padding: 9px 18px;
  font-size: 12px;
  transition: all .2s;
}

.tab[aria-selected="true"], .tab.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.person {
  border: 1px solid var(--line);
  background: var(--white);
  padding-bottom: 20px;
  transition: transform .2s ease;
}

.person:hover {
  transform: translateY(-3px);
}

.portrait {
  height: 210px;
  background: #e7e6e2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait.placeholder::before {
  content: '';
  height: 90px;
  width: 90px;
  position: absolute;
  border-radius: 50%;
  background: #d3d0c7;
  top: 28px;
}

.portrait.placeholder::after {
  content: '';
  width: 150px;
  height: 110px;
  border-radius: 80px 80px 0 0;
  position: absolute;
  bottom: -24px;
  background: #c2beb7;
}

.person .meta {
  padding: 16px 16px 0;
}

.person strong {
  font: 400 19px var(--font-serif);
  display: block;
  color: var(--ink);
}

.person small {
  font-size: 11px;
  color: #7e7b75;
  display: block;
  margin-top: 6px;
}

.person .oab {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Central Jurídica */
.hub {
  background: var(--dark-bg);
  color: var(--white);
}

.hub .eyebrow {
  color: var(--muted-light);
}

.hub .desc {
  color: #aaa7a1;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.hub-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dark-border);
  padding: 26px;
  transition: background .25s ease, border-color .25s ease;
  background: rgba(255, 255, 255, .02);
}

.hub-card:hover {
  background: var(--dark-surface);
  border-color: #5a5956;
}

.hub-card .ico {
  font-size: 28px;
}

.hub-card h3 {
  font: 400 27px var(--font-serif);
  margin: 14px 0 8px;
  color: var(--white);
}

.hub-card p {
  color: #a4a09a;
  font-size: 13px;
  line-height: 1.6;
}

.hub-card .more {
  margin-top: auto;
  font-size: 12px;
  color: #f1f0ee;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Publicações / Guias */
.publications {
  background: #f2f1ed;
}

.pub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pub {
  border: 1px solid #dedbd5;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  transition: transform .2s ease;
}

.pub:hover {
  transform: translateY(-2px);
}

.pub h3 {
  font: 400 24px/1.2 var(--font-serif);
  margin: 8px 0 10px;
}

.pub p {
  font-size: 12px;
  color: #77746e;
  line-height: 1.55;
  margin: 0;
}

/* NOVA SEÇÃO: TRABALHE CONOSCO (INFORMATIVA E OBJETIVA) */
.careers {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.careers-content {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 48px;
  align-items: start;
}

.vagas-box {
  background: #f9f8f5;
  border: 1px solid var(--line);
  padding: 30px;
}

.vaga-card {
  padding: 16px 0;
  border-bottom: 1px solid #e7e5e0;
}

.vaga-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.vaga-card strong {
  font: 400 20px var(--font-serif);
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.vaga-card span {
  font-size: 13px;
  color: #55534e;
  display: block;
  line-height: 1.6;
}

.vaga-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  margin-top: 6px;
  background: #e8e5dc;
  color: #333;
}

.instructions-card {
  background: var(--paper-card);
  border: 1px solid #dedcd5;
  padding: 34px;
}

.instructions-card h3 {
  font: 400 26px var(--font-serif);
  margin-top: 0;
  margin-bottom: 14px;
}

.instructions-steps {
  margin: 20px 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.instructions-steps li {
  margin-bottom: 8px;
}

.copy-box {
  background: var(--white);
  border: 1px solid #d5d3cb;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  font-family: monospace;
  font-size: 14px;
}

.alert-banner {
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 14px;
}

.alert-warning {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #6d4c41;
}

/* SEÇÃO CONTATO (LIMPA E DIRETA) */
.contact-clean {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-box {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-box h3 {
  font: 400 28px var(--font-serif);
  margin-top: 0;
}

.contact-channels {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Footer */
footer {
  background: #111111;
  color: var(--white);
  padding: 65px 0 32px;
}

footer img {
  max-width: 300px;
}

footer p {
  color: #a5a5a5;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 14px;
}

footer .credits-box {
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  padding: 14px 20px;
  border-radius: 4px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer .credits-box span {
  font-size: 12px;
  color: #dcdcd8;
}

footer .credits-box strong {
  color: #fff;
  letter-spacing: .02em;
}

footer .bottom {
  margin-top: 40px;
  border-top: 1px solid #292929;
  padding-top: 22px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 11px;
  color: #7e7d7a;
}

/* Diálogos e Modais */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.overlay.show {
  display: flex;
}

.dialog {
  background: #fbfaf8;
  width: min(580px, 100%);
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 2px;
}

.dialog h2 {
  font: 400 32px var(--font-serif);
  margin: 0;
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.close {
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
}

.dialog input, .dialog select {
  width: 100%;
  margin: 8px 0 16px;
  padding: 12px 14px;
  border: 1px solid #dcd9d2;
  background: var(--white);
}

.dialog label {
  font-size: 12px;
  font-weight: 500;
}

.results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.results a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

/* Animações e Acessibilidade */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.on {
  opacity: 1;
  transform: none;
}

@media (max-width: 1150px) {
  .navmenu {
    top: 80px;
  }
  .navmenu.open {
    display: flex;
  }
  .navlinks {
    display: none;
  }
  .menuBtn {
    display: block;
  }
  .nav {
    height: 80px;
  }
  .brand {
    width: 210px;
  }
  .hero {
    grid-template-columns: 1fr 44%;
  }
  .heroleft {
    padding: 80px 5% 50px 30px;
  }
  .news-card {
    flex: 0 0 calc((100% - 18px) / 2); /* 2 por vez em tablet */
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .careers-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-clean {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 690px) {
  .container {
    width: calc(100% - 32px);
  }
  .sec {
    padding: 60px 0;
  }
  .nav {
    height: 72px;
  }
  .brand {
    width: 180px;
  }
  .navright .btn {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .heroleft {
    padding: 60px 18px 30px;
  }
  .heroright {
    min-height: 250px;
    background-position: center 40%;
  }
  .herofoot {
    display: none;
  }
  .news-card {
    flex: 0 0 100%; /* 1 por vez no celular */
  }
  .area-layout {
    grid-template-columns: 1fr;
  }
  .area-grid {
    grid-template-columns: 1fr;
  }
  .office {
    grid-template-columns: 1fr;
  }
  .office-media-wrapper {
    padding: 32px 16px 12px;
  }
  .office-art {
    min-height: 240px;
  }
  .office-text {
    padding: 40px 16px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .pub-row {
    grid-template-columns: 1fr;
  }
  .navmenu {
    top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-indicator .down-arrow {
    animation: none !important;
  }
}

/* Revisão institucional 1.3: marca monocromática, leitura e ritmo consistentes. */
:root { --ink:#202624; --ink-secondary:#343d39; --muted:#59635e; --line:#dcded7; --paper:#f8f8f4; --paper-card:#eeefe9; --gold-accent:#82714c; }
body { font-size:16px; }
header:not(article header) { border-bottom-color:var(--line); }
.sec { padding-top:88px; padding-bottom:88px; scroll-margin-top:100px; }
.h2 { font-size:clamp(32px,3.8vw,52px); line-height:1.14; letter-spacing:-.035em; max-width:820px; }
.desc { font-size:16px; line-height:1.8; color:var(--muted); max-width:680px; }
.eyebrow { color:#686044; font-size:11px; letter-spacing:.17em; }
.section-head { align-items:flex-end; gap:28px; margin-bottom:30px; }
.filter { font-size:13px; padding:10px 16px; }
.filter.active { background:var(--ink); border-color:var(--ink); }
.count-badge { font-variant-numeric:tabular-nums; }
.news-card { border-radius:8px; min-height:420px; }
.news-art { height:180px; background:#e6e7df; }
.news-content { padding:22px; }
.news-content h3 { font-size:20px; line-height:1.35; margin-bottom:16px; }
.news-content p { font-size:14px; line-height:1.65; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.news-content a { font-size:13px; font-weight:600; padding-top:18px; }
.news-date { font-size:12px; color:var(--muted); }
.news-art.image-unavailable { display:none; }
.news-card:has(.image-unavailable) { min-height:300px; }
.feed-empty { width:100%; padding:32px; background:var(--paper-card); border:1px solid var(--line); border-radius:8px; line-height:1.8; }
.feed-empty a { text-decoration:underline; text-underline-offset:4px; }
.circlebtn:disabled { opacity:.3; cursor:default; }
.careers { background:#eeefe9; }
.careers-content { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; align-items:start; }
.vagas-box,.instructions-card,.contact-box { border:1px solid var(--line); border-radius:8px; padding:32px; background:white; }
.vaga-card { padding:20px 0; }
.vaga-card strong { font-size:17px; }
.vaga-card span { line-height:1.7; font-size:14px; }
.instructions-card h3,.contact-box h3 { font-family:var(--font-serif); font-size:26px; line-height:1.3; }
.instructions-steps { padding-left:22px; line-height:1.8; }
.copy-box { gap:10px; flex-wrap:wrap; overflow-wrap:anywhere; }
.contact-channels { overflow-wrap:anywhere; }
.alert-warning { background:#f3f3ed; color:var(--ink-secondary); border-color:var(--line); border-left-color:#82714c; font-size:14px; line-height:1.7; }
.map-panel { margin-top:40px; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:white; }
.map-panel iframe { display:block; }
.map-panel p { padding:12px 20px; margin:0; color:var(--muted); font-size:13px; }
.team-grid { grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); max-width:900px; }
.person .meta { padding:28px; border-top:3px solid #82714c; background:white; }
.person strong { font-size:21px; line-height:1.4; }
.person small { font-size:14px; margin-top:10px; }
.team-photo { width:100%; aspect-ratio:4/5; object-fit:cover; margin-bottom:20px; }
.pub { cursor:pointer; }
.pub:hover { background:var(--paper-card); }
@media(max-width:800px) { .careers-content { grid-template-columns:1fr; } .sec { padding-top:60px; padding-bottom:60px; } .vagas-box,.instructions-card,.contact-box { padding:24px; } .news-art { height:200px; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

[hidden] { display:none!important; }

/* Fotografia da sede: enquadramento completo, sem recortar o letreiro. */
.heroright { min-height:0; aspect-ratio:3 / 2; align-self:center; margin:32px 28px 32px 0; background-position:center; background-size:cover; border-radius:6px; overflow:hidden; box-shadow:0 16px 40px rgba(25,30,25,.12); }
.concept-label { bottom:16px; right:16px; font-size:11px; padding:9px 14px; background:rgba(24,28,24,.84); }
@media(max-width:690px) { .heroright { order:-1; min-height:0; width:100%; margin:0; border-radius:0; aspect-ratio:3 / 2; background-position:center; box-shadow:none; } .heroleft { padding-top:38px; } }


/* Office editorial pages */
.editorial-page .h2{margin:18px 0 36px}.article-content p,.article-content li{line-height:1.85}.article-content h2,.article-content h3{margin:36px 0 18px}.editorial-cover{width:100%;height:auto;margin-bottom:30px}.careers-contact{padding:32px;background:var(--soft);border:1px solid var(--line);margin:36px 0}.team-education{font-size:13px;line-height:1.65;color:var(--muted);margin:12px 0}.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:32px}.contact-card{padding:28px;border:1px solid var(--line);background:white}.contact-card p{margin:18px 0;line-height:1.7}@media(max-width:760px){.contact-grid{grid-template-columns:1fr}}
