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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Pages opted-in hide the nav until the first scroll. */
body.nav-hides nav {
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
body.nav-hides.nav-shown nav {
  transform: translateY(0);
  pointer-events: auto;
}
.nav-logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #000;
  text-decoration: none;
}
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity .15s;
}
.nav-links a:hover,
.nav-links a.is-current { opacity: 1; }
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  background: #FFDB01;
  padding: 8px 18px;
  border-radius: 100px;
  transition: opacity .15s;
}
.nav-cta:hover { opacity: 0.8; }

/* LANG SWITCHER — dropdown */
.lang-switcher {
  position: relative;
  margin-right: 14px;
}
.lang-current {
  background: transparent;
  border: 0;
  padding: 4px 6px;
  font: 400 11px/1 'DM Sans', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
  transition: opacity .15s ease;
}
.lang-current:hover { opacity: 1; color: rgba(0,0,0,0.85); }
.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  list-style: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
  padding: 4px 0;
  min-width: 120px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 110;
}
.lang-switcher.is-open .lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.lang-menu li { margin: 0; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 14px;
  font: 400 13px/1.3 'DM Sans', sans-serif;
  color: #333;
  cursor: pointer;
  transition: background .12s ease;
}
.lang-menu button:hover { background: #f5f5f5; }
.lang-menu button.is-active { font-weight: 500; color: #000; }

@media (max-width: 768px) {
  .lang-switcher { margin-right: 10px; }
  .lang-current { font-size: 10px; }
}

/* CHIPS — used in filters and on cards */
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1;
  color: #000;
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  user-select: none;
}
.chip:focus-visible { outline: 2px solid #FFDB01; outline-offset: 2px; }

/* Filled chips = Disciplinas */
.chip--filled {
  background: #f0f0f0;
  color: #000;
}
.chip--filled:hover { background: #e3e3e3; }
.chip--filled.is-active {
  background: #000;
  color: #fff;
}

/* Outline chips = Ferramentas */
.chip--outline {
  background: transparent;
  border-color: #d8d8d8;
  color: #000;
}
.chip--outline:hover { border-color: #000; }
.chip--outline.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Static chips (card labels, expertise list) — no hover, no cursor */
.chip.is-static { cursor: default; }
.chip.is-static:hover {
  background: #f0f0f0;
  border-color: #d8d8d8;
}
.chip--filled.is-static:hover { background: #f0f0f0; }
.chip--outline.is-static:hover { border-color: #d8d8d8; }

/* CONTACT SECTION (formerly final-cta) */
.final-cta {
  background: #FFDB01;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 32px;
  gap: 36px;
}
.final-cta h2 {
  font-size: clamp(44px, 7.5vw, 104px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: #000;
  margin: 0;
}
.final-cta .lead {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 300;
  color: rgba(0,0,0,0.75);
  max-width: 480px;
  line-height: 1.45;
  margin: -16px 0 0;
}
.final-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 34px;
  background: #000;
  color: #FFDB01;
  font-size: 16px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.final-cta-primary:hover {
  transform: translateY(-2px);
  background: #1a1a1a;
}
.final-cta-primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.final-cta-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 8px 11px 20px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.25);
  color: #000;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .2s ease;
}
.copy-btn:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.5);
}
.copy-btn .label { font-weight: 500; }
.copy-btn .action {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.6);
  transition: background .2s ease, color .2s ease;
}
.copy-btn.is-copied {
  border-color: #0a0a0a;
  background: rgba(0,0,0,0.04);
}
.copy-btn.is-copied .action {
  background: #0a0a0a;
  color: #FFDB01;
}
.copy-btn .action::before { content: ""; }
.copy-btn.is-copied .action::before {
  content: "✓ ";
}

@media (max-width: 768px) {
  .final-cta { padding: 72px 20px; gap: 28px; min-height: 60vh; }
  .final-cta .lead { margin-top: -8px; }
  .copy-btn { font-size: 12px; padding: 10px 8px 10px 16px; gap: 10px; }
  .copy-btn .label { max-width: none; word-break: break-word; text-align: left; }
}

/* FOOTER */
footer {
  padding: 40px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ebebeb;
}
footer p, footer a {
  font-size: 12px;
  color: #999;
  text-decoration: none;
}
footer a:hover { color: #000; }

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: flex; gap: 0; }
  .nav-links li { display: none; }
  .nav-links li.nav-sobre { display: block; }
  footer { flex-direction: column; gap: 12px; padding: 32px 20px; }
}

/* CASE PAGES */
.case-hero {
  width: 100%;
  padding: 18px;
  background: #fff;
}
.case-hero-inner {
  position: relative;
  width: 100%;
  height: min(78vh, 760px);
  border-radius: 28px;
  overflow: hidden;
  background: #0a0a0a;
}
.case-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.92);
}
.case-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.30) 0%,
      rgba(0,0,0,0.05) 40%,
      rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.case-hero-meta {
  position: absolute;
  left: 60px;
  right: 60px;
  bottom: 60px;
  color: #fff;
  z-index: 2;
}
.case-hero-meta .case-num {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.case-hero-meta h1 {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 14px 0;
}
.case-hero-meta .case-subtitle {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300;
  line-height: 1.35;
  color: rgba(255,255,255,0.9);
  margin: 0;
  max-width: 640px;
}
.case-hero-meta .case-disciplines {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.case-body {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 32px 0;
}
.case-section {
  padding: 56px 0;
  border-bottom: 1px solid #ebebeb;
}
.case-section:first-of-type { padding-top: 0; }
.case-section:last-of-type { border-bottom: none; }
.case-section h2 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #999;
  font-weight: 500;
  margin-bottom: 24px;
}
.case-section p {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 300;
  line-height: 1.55;
  color: #222;
  max-width: 680px;
  margin-bottom: 18px;
}
.case-section p:last-child { margin-bottom: 0; }
.case-section p strong {
  font-weight: 500;
  color: #000;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.case-meta-grid .case-group h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #555;
  font-weight: 500;
  margin-bottom: 14px;
}
.case-meta-grid .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-next {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 32px;
  border-top: 1px solid #ebebeb;
}
.case-next a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.case-next .label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #999;
  font-weight: 500;
  margin-bottom: 14px;
}
.case-next .title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #000;
}
.case-next .arrow {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.2s ease;
}
.case-next a:hover .arrow { transform: translateX(6px); }

@media (max-width: 768px) {
  .case-hero { padding: 14px; }
  .case-hero-inner { border-radius: 22px; height: min(68vh, 560px); }
  .case-hero-meta { left: 24px; right: 24px; bottom: 36px; }
  .case-hero-meta .case-num { margin-bottom: 14px; }
  .case-hero-meta .case-disciplines { margin-top: 14px; font-size: 10px; letter-spacing: 0.14em; }
  .case-body { padding: 56px 20px 0; }
  .case-section { padding: 44px 0; }
  .case-meta-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-next { padding: 48px 20px; }
}
