/* ── Tokens (dark, default) ───────────────────── */
:root {
  --ink: #0d0f15;
  --ink-2: oklch(12% 0.02 260);
  --surface: oklch(15% 0.025 260);
  --surface-alt: oklch(14% 0.022 260);
  --surface-hover: oklch(18% 0.03 260);
  --input-bg: oklch(15% 0.02 260);
  --paper: #f0ede8;
  --grey: #a09d98;
  --ash: #6b6864;
  --dim: #4a4845;
  --gold: #c9a96e;
  --gold-hover: #b8975a;
  --gold-text: #c9a96e;
  --on-gold: #14161c;
  --border: oklch(30% 0.03 260);
  --border-gold: oklch(55% 0.08 75 / 0.4);
  --error: #e06060;
  --nav-scrim: rgba(13, 15, 21, 0.96);
  --nav-scrim-mobile: rgba(13, 15, 21, 0.98);
  --hero-glow-1: oklch(25% 0.05 260 / 0.55);
  --hero-glow-2: oklch(18% 0.04 50 / 0.35);
  --hero-deco-color: oklch(55% 0.08 75 / 0.16);
  --font-display: 'Gambetta', Georgia, serif;
  --font-body: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  /* Neutrals shifted to the gold's own warm hue (~75) instead of a cool
     blue-violet (260) — the old values fought the accent and read as flat
     gray. Chroma stays low (0.008–0.02) so it reads as warm stone/paper,
     not the cream/sand AI-default band. */
  --ink: oklch(97% 0.008 80);
  --ink-2: oklch(94.5% 0.012 78);
  --surface: oklch(91.5% 0.016 76);
  --surface-alt: oklch(93% 0.014 77);
  --surface-hover: oklch(88.5% 0.02 75);
  --input-bg: oklch(95.5% 0.012 78);
  --paper: #201c14;
  --grey: #57503f;
  --ash: #6b6353;
  --dim: #8c8371;
  --gold: #c9a96e;
  --gold-hover: #b8975a;
  --gold-text: #7a5c2e;
  --on-gold: #201c14;
  --border: oklch(84% 0.02 75);
  --border-gold: oklch(50% 0.09 75 / 0.55);
  --error: #b23a3a;
  --nav-scrim: rgba(251, 248, 242, 0.92);
  --nav-scrim-mobile: rgba(251, 248, 242, 0.97);
  --hero-glow-1: oklch(25% 0.05 260 / 0.55);
  --hero-glow-2: oklch(18% 0.04 50 / 0.35);
  --hero-deco-color: oklch(75% 0.08 75 / 0.24);
  color-scheme: light;
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-text); }
::selection { background: #c9a96e33; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* ── Focus ────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 2px;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline-offset: -1px;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ── Animations ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cueBob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
}

/* ── Scroll progress bar ──────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-hover), var(--gold));
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}

/* ── Scroll Reveal ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); filter: blur(0); }

/* ── Hero Entrance ────────────────────────────── */
.hero-animate-1 { animation: fadeUp 0.9s var(--ease) 0.1s both; }
.hero-animate-2 { animation: fadeUp 0.9s var(--ease) 0.3s both; }
.hero-animate-3 { animation: fadeUp 0.9s var(--ease) 0.5s both; }
.hero-animate-4 { animation: fadeUp 1.2s var(--ease) 0.4s both; }

/* ── Section Heading ──────────────────────────── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.18;
  color: var(--paper);
}
.accent { color: var(--gold-text); }

/* ── NAV ──────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 60px;
  transition: background 0.4s, padding 0.4s, border-bottom 0.4s;
  background: transparent;
}
#nav.scrolled {
  background: var(--nav-scrim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 60px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Text lockup echoing the firm's print wordmark: tracked serif caps with a
   gold ampersand, and an "ADVOGADOS" tag flanked by thin gold hairlines. */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.nav-logo-line {
  display: block;
  font-family: 'EB Garamond', var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-logo-amp { color: var(--gold-text); }
.nav-logo-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.nav-logo-tag i {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  font-style: normal;
}
.nav-logo-tag span {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.nav-logo:hover .nav-logo-line { color: var(--gold-text); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-text); }
.nav-links .nav-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-links .nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.3) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.nav-links .nav-cta:hover::before { transform: translateX(120%); }
.nav-links .nav-cta:hover {
  background: var(--gold-hover);
  color: var(--on-gold);
  transform: translateY(-1px);
}
.nav-links .nav-cta:active { transform: translateY(0); }

/* active section link (scrollspy) — a quiet gold marker under the current link */
.nav-links a:not(.nav-cta) {
  position: relative;
  padding-bottom: 3px;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-text); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ── Theme toggle ─────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-gold);
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--gold-text); background: color-mix(in oklab, var(--gold) 10%, transparent); }
.theme-icon { display: none; }
:root:not([data-theme="light"]) .theme-icon-moon { display: block; }
:root[data-theme="light"] .theme-icon-sun { display: block; }

/* ── Hamburger (mobile) ───────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Before scrolling, the nav sits transparent over the hero video — pin its
   text to the dark-mode reading colors regardless of the site theme, same
   reasoning as the hero copy. Once scrolled it gets its own opaque themed
   background, so the normal theme-aware colors below take over again.
   Guard the nav-links rule against nav-mobile-open: that state shows a
   full-screen themed scrim, not the video, so it must follow the theme. */
#nav:not(.scrolled) .nav-logo-line { color: #f0ede8; }
#nav:not(.scrolled) .nav-logo-amp,
#nav:not(.scrolled) .nav-logo-tag span { color: #c9a96e; }
#nav:not(.scrolled) .nav-hamburger span { background: #f0ede8; }
#nav:not(.scrolled) .theme-toggle { color: #a09d98; border-color: oklch(55% 0.08 75 / 0.4); }
#nav:not(.scrolled) .theme-toggle:hover { color: #c9a96e; }
#nav:not(.scrolled):not(.nav-mobile-open) .nav-links a:not(.nav-cta) { color: #a09d98; }
#nav:not(.scrolled):not(.nav-mobile-open) .nav-links a:not(.nav-cta):hover,
#nav:not(.scrolled):not(.nav-mobile-open) .nav-links a.active { color: #c9a96e; }

/* ── HERO ─────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 60px 80px;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
/* Looping background video — sits behind everything in the hero. */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* dark scrim over the video for text legibility — fixed values (not theme
   vars) since the hero copy above is also fixed to its dark-mode colors */
.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 15, 21, 0.696) 0%, rgba(13, 15, 21, 0.8) 55%, rgba(13, 15, 21, 0.92) 100%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap { display: none; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 78% 30%, var(--hero-glow-1) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 85%, var(--hero-glow-2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 3fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.2vw, 92px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 30px;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--grey);
  max-width: 480px;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 40px;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
/* diagonal light sweep on hover — a stamped-foil sheen, not a shadow */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.32) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover::before { transform: translateX(120%); }
/* trailing arrow — slides out from the label on hover */
.btn-primary::after {
  content: "→";
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.btn-primary:hover { background: var(--gold-hover); color: var(--on-gold); transform: translateY(-2px); }
.btn-primary:hover::after { transform: translateX(0); opacity: 1; }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--border); color: var(--dim); cursor: not-allowed; transform: none; }
.btn-primary:disabled::before,
.btn-primary:disabled::after { display: none; }

.hero-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
/* underline draws in from the left */
.hero-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.hero-link:hover { color: var(--gold-text); gap: 12px; }
.hero-link:hover::after { transform: scaleX(1); }

/* Decorative paragraph glyph */
.hero-deco {
  justify-self: center;
  align-self: center;
  font-family: var(--font-display);
  font-size: clamp(180px, 20vw, 360px);
  font-weight: 600;
  line-height: 1;
  color: var(--hero-deco-color);
  user-select: none;
  pointer-events: none;
  text-align: center;
}

/* The hero always reads over the background video, so its copy stays
   pinned to the dark-mode palette regardless of the site-wide light/dark
   toggle — flipping to light-theme ink here would be unreadable on video. */
#hero .hero-title { color: #f0ede8; }
#hero .accent { color: #c9a96e; }
#hero .hero-desc,
#hero .hero-link { color: #a09d98; }
#hero .hero-link:hover { color: #c9a96e; }
#hero .hero-deco { color: oklch(55% 0.08 75 / 0.16); }

.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-cue span {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--gold);
  animation: cueBob 2s var(--ease) infinite;
}

/* ── O ESCRITÓRIO ─────────────────────────────── */
#escritorio {
  padding: 140px 60px;
  max-width: 1300px;
  margin: 0 auto;
}
.escritorio-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 90px;
  align-items: start;
}
.escritorio-lead .section-heading { max-width: 420px; }

.escritorio-body p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--grey);
  font-weight: 400;
  max-width: 60ch;
}
.escritorio-body p + p { margin-top: 22px; }
.escritorio-body strong { color: var(--paper); font-weight: 600; }

.stats-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  color: var(--gold-text);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ash);
  font-weight: 500;
}
.stats-row .stat-item + .stat-item {
  padding-left: 40px;
  border-left: 1px solid var(--border);
}

/* ── ÁREAS DE ATUAÇÃO ─────────────────────────── */
#areas {
  padding: 140px 60px;
  background: var(--ink-2);
}
.areas-inner { max-width: 1300px; margin: 0 auto; }

.areas-header {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.areas-header p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ash);
  max-width: 400px;
}

.areas-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.area-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 36px 38px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 260px;
  overflow: hidden;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* gold accent line, drawn in from the left on hover */
.area-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.area-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-gold);
}
.area-card:hover::before { transform: scaleX(1); }

.area-icon {
  color: var(--gold-text);
  line-height: 0;
  transition: transform 0.4s var(--ease);
}
.area-icon svg { display: block; }
.area-card:hover .area-icon { transform: translateY(-2px); }

.area-card-body { margin-top: auto; }
.area-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 600;
  color: var(--paper);
  line-height: 1.15;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.area-card:hover h3 { color: var(--gold-text); }
.area-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ash);
  font-weight: 400;
  max-width: 42ch;
}

/* ── VALORES ──────────────────────────────────── */
#valores {
  padding: 140px 60px;
  max-width: 1300px;
  margin: 0 auto;
}
.valores-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 90px;
  align-items: start;
}
.valores-lead .section-heading { max-width: 380px; margin-bottom: 22px; }
.valores-lead p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ash);
  max-width: 38ch;
  font-weight: 400;
}

.valores-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.valor-item {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 36px 4px;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease);
}
.valor-item:hover { padding-left: 14px; }

.valor-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.valor-item:hover .valor-icon {
  background: var(--gold);
  border-color: var(--gold);
}
.valor-item:hover .valor-icon svg { stroke: var(--on-gold); }

.valor-body h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 10px;
  transition: color 0.3s var(--ease);
}
.valor-item:hover .valor-body h3 { color: var(--gold-text); }
.valor-body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ash);
  font-weight: 400;
  max-width: 54ch;
}

/* ── NOTÍCIAS ─────────────────────────────────── */
#noticias {
  padding: 140px 60px;
  background: var(--ink-2);
}
.noticias-inner { max-width: 1300px; margin: 0 auto; }

.noticias-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}
.noticias-ver-todas {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-text);
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 4px;
  white-space: nowrap;
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
}

.news-featured,
.news-card {
  display: flex;
  width: 100%;
  border: none;
  margin: 0;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.news-featured:hover,
.news-card:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.news-featured {
  background: var(--surface);
  padding: 48px 44px;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
}
.news-card {
  background: var(--surface-alt);
  padding: 36px 32px;
  flex-direction: column;
  justify-content: space-between;
}

.news-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-gold);
  background: var(--gold);
  padding: 4px 10px;
  margin-bottom: 22px;
  width: fit-content;
}
.news-card .news-tag { margin-bottom: 18px; }

.news-featured h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.3;
  margin-bottom: 18px;
}
.news-featured p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ash);
  margin-bottom: 26px;
  font-weight: 400;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.35;
  margin-bottom: 14px;
}
.news-card p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ash);
  font-weight: 400;
}

.news-read-more {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  transition: gap 0.2s;
}
.news-featured:hover .news-read-more,
.news-card:hover .news-read-more { gap: 10px; }
.news-card .news-read-more { margin-top: 26px; }

/* ── CONTATO ──────────────────────────────────── */
#contato {
  padding: 140px 60px;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
#contato .section-heading { margin-bottom: 32px; }

.contato-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ash);
  margin-bottom: 56px;
  font-weight: 400;
}

.contato-links { display: flex; flex-direction: column; gap: 26px; }
.contato-link {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--grey);
  transition: color 0.2s;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
}
.contato-link:hover { color: var(--gold-text); }
.contato-link-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── FORM ─────────────────────────────────────── */
#contact-form { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
#contact-form .form-row,
#contact-form .form-group { width: 100%; }
#contact-form .btn-primary {
  justify-content: center;
  margin-top: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ash);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--paper);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--dim); }
.form-group select { color: var(--grey); cursor: pointer; }
.form-group textarea { resize: none; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--border-gold); }

#form-feedback {
  display: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gold-text);
  margin-top: 4px;
}
#form-feedback.error { color: var(--error); }

/* ── FOOTER ───────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--ink-2);
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 60px 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
}

/* Same text lockup as the nav logo, scaled up for the footer's wider column. */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  gap: 4px;
  margin-bottom: 20px;
}
.footer-logo .nav-logo-line { font-size: 13px; }
.footer-logo .nav-logo-tag i { width: 44px; }
.footer-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ash);
  max-width: 34ch;
  font-weight: 400;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 6px;
}
.footer-col a,
.footer-col span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--grey);
}
.footer-col a { transition: color 0.2s; width: fit-content; }
.footer-col a:hover { color: var(--gold-text); }

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding: 26px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
}
.footer-oab {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ── News dots (carousel) ─────────────────────── */
.news-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.news-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.news-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* ── ARTICLE MODAL ─────────────────────────────── */
.article-modal {
  width: min(640px, 92vw);
  max-height: 85vh;
  margin: auto;
  padding: 0;
  border: none;
  background: var(--surface);
  color: var(--paper);
  overflow: hidden;
}
.article-modal::backdrop {
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@supports (transition-behavior: allow-discrete) {
  .article-modal {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
  }
  .article-modal[open] {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  @starting-style {
    .article-modal[open] {
      opacity: 0;
      transform: translateY(16px) scale(0.98);
    }
  }
  .article-modal::backdrop {
    opacity: 0;
    transition: opacity 0.3s var(--ease), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
  }
  .article-modal[open]::backdrop {
    opacity: 1;
  }
  @starting-style {
    .article-modal[open]::backdrop {
      opacity: 0;
    }
  }
}

.article-modal-inner {
  padding: 56px 48px;
  max-height: 85vh;
  overflow-y: auto;
}

.article-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  background: var(--surface);
  color: var(--grey);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.article-modal-close:hover {
  color: var(--gold-text);
  background: color-mix(in oklab, var(--gold) 10%, transparent);
}

.article-modal-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--on-gold);
  background: var(--gold);
  padding: 4px 10px;
  margin-bottom: 22px;
}

.article-modal-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--paper);
  margin-bottom: 28px;
  padding-right: 40px;
}

.article-modal-body p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ash);
  font-weight: 400;
  max-width: 66ch;
}
.article-modal-body p + p { margin-top: 20px; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-deco { display: none; }
  .escritorio-grid { grid-template-columns: 1fr; gap: 48px; }
  .escritorio-lead .section-heading { max-width: none; }
  .areas-list { grid-template-columns: repeat(2, 1fr); }
  .area-card { min-height: 220px; }
  .valores-layout { grid-template-columns: 1fr; gap: 40px; }
  .valores-lead .section-heading,
  .valores-lead p { max-width: none; }
}

@media (max-width: 900px) {
  #nav { padding: 20px 24px; }
  #nav.scrolled { padding: 16px 24px; }
  .nav-hamburger { display: flex; }

  .article-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
  .article-modal-inner { padding: 72px 24px 40px; max-height: 100dvh; }

  /* Full-screen menu overlay. Stays in the DOM/layout at all times (never
     display:none) so opacity/transform can transition instead of snapping —
     visibility + pointer-events keep it inert and untabbable while closed. */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100dvh;
    overflow-y: auto;
    background: var(--nav-scrim-mobile);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 100px 24px 48px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
    pointer-events: none;
  }
  .nav-mobile-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-mobile-open .nav-links a { font-size: 19px; }
  .nav-mobile-open .nav-links .nav-cta { margin-top: 8px; }

  #hero { padding: 120px 24px 72px; }

  #escritorio { padding: 88px 24px; }
  .stats-row { flex-wrap: wrap; gap: 28px; }

  #areas { padding: 88px 24px; }
  .areas-header { grid-template-columns: 1fr; }
  .areas-list { grid-template-columns: 1fr; }

  #valores { padding: 88px 24px; }
  .valor-item:hover { padding-left: 4px; }

  #noticias { padding: 88px 24px; }

  /* carrossel */
  .news-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .news-grid::-webkit-scrollbar { display: none; }
  .news-featured,
  .news-card {
    flex: 0 0 85vw;
    scroll-snap-align: start;
    min-height: 280px;
  }
  .news-dots { display: flex; }

  #contato {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 88px 24px;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    padding: 56px 24px 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    padding: 24px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .stats-row .stat-item + .stat-item { padding-left: 28px; }
}
