/* ==========================================================================
   Nossa Biblioteca — theme.css
   Editorial, print-inspired system built on the logo's own colors
   (coral #E66952 + teal #7DBABF) over warm paper tones.
   ========================================================================== */

/* — Fonts —
   Self-hosted Latin subsets (variable weight) downloaded from Google Fonts.
   Latin covers Portuguese; anything else falls back to the system stack. */
@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url("../fonts/literata-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FBF8F3;
  --paper-2: #F3ECE1;
  --rule: #E3D9CA;
  --rule-strong: #CDBFAB;
  --field-border: #8F8577;

  --ink: #1E1B2E;
  --ink-2: #474255;
  --ink-3: #6B6576;

  --plum: #2C1D4D;
  --coral: #E66952;
  --coral-deep: #C24A34;
  --coral-deeper: #A33C29;
  --teal: #7DBABF;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec-pad: clamp(72px, 9vw, 128px);
  --header-h: 80px;
}

/* — Base — */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.nb {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

.nb :where(a) { color: inherit; text-decoration: none; }
.nb h1, .nb h2, .nb h3, .nb h4 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.nb :where(p) { margin: 0; text-wrap: pretty; }
.nb :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.nb :where(figure) { margin: 0; }
.nb :where(img) { display: block; max-width: 100%; }
.nb :where(input, select, textarea, button) { font: inherit; }
.nb ::selection { background: var(--coral); color: #fff; }
.nb :focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 3px; }

.nb [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.nb-skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 600;
}
.nb-skip:focus { top: 12px; }

.nb-wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* — Type — */
.nb-h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.015em; }
.nb-h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.1; letter-spacing: -0.012em; }
.nb-h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.005em; }
.nb-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 40em; }

.nb-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.nb-head .nb-lead { margin-top: 18px; }
.nb-head--split {
  max-width: none; display: flex; flex-wrap: wrap; gap: 20px 48px;
  align-items: flex-end; justify-content: space-between;
}
.nb-head--split > div { max-width: 720px; }

/* — Links & buttons — */
.nb-link {
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--coral);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: color .15s;
}
.nb-link:hover { color: var(--coral-deep); }
.nb-link--light { color: #fff; }
.nb-link--light:hover { color: #fff; text-decoration-color: #fff; }

.nb-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2;
  padding: 15px 22px; border-radius: 3px; border: 1.5px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.nb-btn svg { flex: 0 0 auto; }
.nb-btn--primary { background: var(--coral-deep); color: #fff; }
.nb-btn--primary:hover { background: var(--coral-deeper); color: #fff; }
.nb-btn--dark { background: var(--ink); color: #fff; }
.nb-btn--dark:hover { background: var(--plum); color: #fff; }

/* — Sections — */
.nb-sec { padding: var(--sec-pad) 0; }
.nb-sec--paper2 { background: var(--paper-2); }
.nb-sec--plum { background: var(--plum); color: #fff; }
.nb-sec--teal { background: var(--teal); color: var(--ink); }

/* — Header — */
.nb-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nb-header-inner {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: 12px var(--gutter); min-height: var(--header-h);
  display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap;
}
.nb-logo { display: flex; align-items: center; flex: 0 0 auto; margin-right: auto; }
.nb-logo img { height: 54px; width: auto; }

.nb-nav-desktop { display: none; align-items: center; gap: 4px 22px; }
.nb-nav-desktop a, .nb-nav-mobile a {
  font-size: 15.5px; font-weight: 500; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 2px; text-underline-offset: 8px;
  transition: color .15s, text-decoration-color .15s;
}
.nb-nav-desktop a:hover, .nb-nav-mobile a:hover { color: var(--ink); text-decoration-color: var(--coral); }

.nb-header-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral-deep); color: #fff;
  font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: 3px;
  transition: background-color .15s;
}
.nb-header-cta:hover { background: var(--coral-deeper); color: #fff; }

.nb-menu-toggle {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 3px;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.nb-menu-toggle:hover { border-color: var(--ink); }

.nb-nav-mobile {
  flex: 1 1 100%; display: none; border-top: 1px solid var(--rule);
  padding: 8px 0 12px;
}
.nb-nav-mobile.is-open { display: grid; }
.nb-nav-mobile a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--rule); }
.nb-nav-mobile a:last-child { border-bottom: none; }

@media (min-width: 1060px) {
  .nb-nav-desktop { display: flex; }
  .nb-menu-toggle, .nb-nav-mobile { display: none !important; }
}
/* Phones: the floating WhatsApp button already covers this, so drop it from the header. */
@media (max-width: 767px) {
  .nb-header-cta { display: none; }
}
@media (max-width: 420px) {
  .nb-logo img { height: 46px; }
}

/* — Hero: full-bleed photo with the text over a plum shade — */
.nb-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 860px);
  display: flex; align-items: center;
  background: var(--plum); color: #fff;
}
.nb-hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--hero-pos, 50% 45%);
}
/* Darkens the left/bottom where the text sits, keeps the right side of the photo bright. */
.nb-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(44, 29, 77, .88) 0%, rgba(44, 29, 77, .7) 34%, rgba(44, 29, 77, .2) 68%, rgba(44, 29, 77, 0) 100%),
    linear-gradient(0deg, rgba(30, 27, 46, .55) 0%, rgba(30, 27, 46, 0) 50%);
}
.nb-hero-content { width: 100%; padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.nb-hero-title {
  max-width: 10.5em; color: #fff;
  font-size: clamp(44px, 6vw, 88px); line-height: 1.0; letter-spacing: -0.02em;
}
.nb-hero-sub { margin-top: 24px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: rgba(255,255,255,.9); max-width: 30em; }
.nb-hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.nb-hero .nb-link { font-size: 17px; }

@media (max-width: 880px) {
  /* On narrow screens the shade comes from the bottom, so the text stays anchored there. */
  .nb-hero { min-height: clamp(520px, calc(88svh - var(--header-h)), 760px); align-items: flex-end; }
  .nb-hero::after {
    background: linear-gradient(0deg, rgba(44, 29, 77, .92) 0%, rgba(44, 29, 77, .72) 45%, rgba(44, 29, 77, .25) 80%, rgba(44, 29, 77, .1) 100%);
  }
}

/* — Problemas — */
.nb-problems {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 6vw, 96px); align-items: start;
}
.nb-bigstat { margin-top: clamp(32px, 4vw, 56px); }
.nb-bigstat .num {
  font-family: var(--serif); font-weight: 600; line-height: .85; letter-spacing: -0.03em;
  font-size: clamp(96px, 12vw, 168px); color: var(--coral-deep);
}
.nb-bigstat .txt { margin-top: 18px; font-size: 19px; line-height: 1.45; max-width: 18em; }
.nb-problem-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.nb-problem-list li {
  border-top: 1px solid var(--rule-strong); padding: 16px 0 22px;
  font-family: var(--serif); font-size: 19px; line-height: 1.4;
}

/* — CTA patrocínio (plum) — */
.nb-cta .nb-h2 { max-width: 17em; }
.nb-cta-grid {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 6vw, 96px); align-items: start;
}
.nb-cta p { color: rgba(255,255,255,.84); font-size: 18px; }
.nb-cta p + p { margin-top: 16px; }
.nb-skills { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.nb-skills li {
  border-top: 1px solid rgba(255,255,255,.2); padding: 13px 0 15px;
  font-family: var(--serif); font-size: 20px; line-height: 1.35; color: #fff;
  text-wrap: balance;
}
.nb-cta-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* — Quem somos — */
.nb-about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px clamp(40px, 6vw, 96px); align-items: center;
}
.nb-about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nb-about-text .first {
  margin-top: 28px; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 24px); line-height: 1.5;
}
.nb-about-text .more { margin-top: 18px; color: var(--ink-2); }

.nb-diff {
  margin-top: clamp(72px, 9vw, 128px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 6vw, 96px); align-items: start;
}
.nb-reasons { margin-top: 28px; counter-reset: reason; }
.nb-reasons li {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 8px;
  padding: 18px 0; border-top: 1px solid var(--rule); font-size: 18px; line-height: 1.5;
}
.nb-reasons li:last-child { border-bottom: 1px solid var(--rule); }
.nb-reasons li::before {
  counter-increment: reason; content: counter(reason);
  font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--coral-deep); line-height: 1.4;
}

/* Library catalog card — ruled lines and a red header rule. */
.nb-catalog {
  position: relative; background: #FFFEFA; border: 1px solid var(--rule-strong);
  padding: 26px 28px 32px; margin-top: 8px;
}
.nb-catalog .call { position: absolute; top: 18px; right: 20px; z-index: 2; }
.nb-catalog .call-num {
  padding: 4px; border: 0; background: none; cursor: help;
  font-family: var(--serif); font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums;
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.nb-catalog .call-num:hover { color: var(--ink); }
.nb-catalog .call-tip {
  position: absolute; top: calc(100% + 8px); right: 0; width: 248px;
  background: var(--ink); color: #fff; padding: 10px 12px; border-radius: 3px;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.45; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.nb-catalog .call-tip::before {
  content: ""; position: absolute; bottom: 100%; right: 14px;
  border: 6px solid transparent; border-bottom-color: var(--ink);
}
.nb-catalog .call:hover .call-tip,
.nb-catalog .call-num:focus-visible + .call-tip,
.nb-catalog .call.is-open .call-tip {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .15s, transform .15s, visibility 0s;
}
.nb-catalog .call.is-dismissed .call-tip { opacity: 0; visibility: hidden; }
.nb-catalog h3 {
  font-size: 20px; font-style: italic; font-weight: 500; padding: 0 56px 12px 0;
  border-bottom: 2px solid var(--coral);
}
.nb-catalog ol { counter-reset: crit; }
.nb-catalog li {
  display: grid; grid-template-columns: 26px 1fr;
  padding: 11px 0 10px; border-bottom: 1px solid rgba(125, 186, 191, .7);
  font-size: 16px; line-height: 1.45;
}
.nb-catalog li::before { counter-increment: crit; content: counter(crit) "."; color: var(--ink-3); }

/* — Benefícios — */
.nb .nb-benefits-title {
  text-align: center; max-width: 20em; margin: 0 auto clamp(36px, 4.5vw, 56px);
  font-size: clamp(34px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -0.015em;
}
/* One panel split by hairlines (the 1px gap shows the background through),
   so every column has the same height and edges line up. */
.nb-benefits {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  background: var(--rule-strong); border: 1px solid var(--rule-strong);
}
.nb-benefits li { position: relative; background: #FFFEFA; padding: 30px 24px 34px; transition: background-color .25s; }
.nb-benefits .ic { display: block; color: var(--coral-deep); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
/* Hover: a coral rule draws across the top, the cell brightens, the icon lifts. */
.nb-benefits li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--coral); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
  .nb-benefits li:hover { background: #fff; }
  .nb-benefits li:hover::before { transform: scaleX(1); }
  .nb-benefits li:hover .ic { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .nb-benefits li, .nb-benefits li::before, .nb-benefits .ic { transition: none; }
}
.nb-benefits h3 { margin-top: 22px; font-size: 20px; line-height: 1.25; min-height: 2.5em; }
.nb-benefits p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* — ODS — */
.nb-ods {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 6vw, 96px); align-items: center;
}
.nb-ods-text .nb-lead { margin-top: 20px; }
.nb-ods-text .nb-lead a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.nb-ods-icons { margin-top: 36px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.nb-ods-icons img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.nb-ods-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* — Nossas entregas (teal) — */
.nb-numbers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 28px; }
.nb-numbers > div { border-top: 1.5px solid var(--ink); padding-top: 20px; }
.nb-numbers .num {
  font-family: var(--serif); font-weight: 600; line-height: 1; letter-spacing: -0.02em;
  font-size: clamp(32px, 3.3vw, 46px); white-space: nowrap;
  font-variant-numeric: tabular-nums; /* keeps digits from jittering while counting */
}
.nb-numbers .txt { margin-top: 12px; font-size: 16px; line-height: 1.4; }

.nb-served {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px clamp(32px, 5vw, 72px); align-items: center;
}
.nb-served img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.nb-served p { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; }

/* — O que fazemos — */
.nb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(32px, 4vw, 56px); }
.nb-two img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.nb-two h3 { margin-top: 24px; }
.nb-two p { margin-top: 10px; color: var(--ink-2); max-width: 36em; }

.nb-events { margin-top: clamp(72px, 9vw, 120px); }
.nb-events-head { max-width: 640px; margin-bottom: 32px; }
.nb-events-head p { margin-top: 12px; color: var(--ink-2); }
.nb-events-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; }
.nb-events-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nb-events-grid figcaption { margin-top: 12px; font-size: 15.5px; font-weight: 500; line-height: 1.35; }

/* — Time — */
.nb-team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 20px; }
.nb-team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.nb-team h3 { margin-top: 14px; font-size: 18px; line-height: 1.25; }
.nb-team p { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--ink-3); }

/* — Projetos (catalog list) — */
.nb-projects { border-bottom: 1px solid var(--rule); }
.nb-project {
  display: grid; grid-template-columns: 88px minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr);
  gap: 12px 32px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--rule);
}
/* Most project logos are already round PNGs; the circle crop rounds the
   few that come as white squares so the column reads as a set. */
.nb-project img { width: 88px; height: 88px; object-fit: contain; border-radius: 50%; }
.nb-project h3 { font-size: 21px; line-height: 1.25; }
.nb-project .lei { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.nb-project .desc { color: var(--ink-2); font-size: 16px; }
.nb-project .status { font-size: 14px; font-weight: 600; color: var(--ink-3); text-align: right; }
.nb-project .status--active { color: var(--coral-deep); }

/* — Patrocinadores / parceiros — */
.nb-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 24px; }
.nb-logos li { height: 96px; display: grid; place-items: center; }
.nb-logos img {
  max-width: 82%; max-height: 50px; object-fit: contain;
  filter: grayscale(1); mix-blend-mode: multiply; opacity: .82;
  transition: filter .2s, opacity .2s;
}
.nb-logos li:hover img { filter: none; opacity: 1; }
.nb-partners { margin-top: clamp(56px, 7vw, 88px); padding-top: 40px; border-top: 1px solid var(--rule-strong); }
.nb-partners-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.nb-marquee-toggle {
  flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--rule-strong); border-radius: 50%; background: transparent;
  color: var(--ink-2); cursor: pointer; transition: border-color .15s, color .15s;
}
.nb-marquee-toggle:hover { border-color: var(--ink); color: var(--ink); }
.nb-marquee-toggle .i-play, .nb-marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
.nb-marquee-toggle[aria-pressed="true"] .i-play { display: block; }

/* Partners: infinite single-row carousel. */
.nb-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.nb-marquee-track { display: flex; width: max-content; animation: nb-marquee 40s linear infinite; }
.nb-marquee:hover .nb-marquee-track,
.nb-marquee.is-paused .nb-marquee-track { animation-play-state: paused; }
.nb-marquee-list { display: flex; flex: 0 0 auto; }
.nb-marquee-list li { width: 180px; height: 96px; margin-right: 32px; display: grid; place-items: center; }
.nb-marquee-list img {
  max-width: 82%; max-height: 50px; object-fit: contain;
  filter: grayscale(1); mix-blend-mode: multiply; opacity: .82;
  transition: filter .2s, opacity .2s;
}
.nb-marquee-list li:hover img { filter: none; opacity: 1; }
@keyframes nb-marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .nb-marquee { -webkit-mask-image: none; mask-image: none; }
  .nb-marquee-track { animation: none; width: auto; display: block; }
  .nb-marquee-list { flex-wrap: wrap; }
  .nb-marquee-list[aria-hidden="true"], .nb-marquee-toggle { display: none; }
}

/* — Blog — */
.nb-posts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 64px); align-items: start; }
.nb-post-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.nb-post-feature h3 { margin-top: 8px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.nb-post-feature p { margin-top: 12px; color: var(--ink-2); }
.nb-date { display: block; margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.nb-post-list li { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.nb-post-list li + li { margin-top: 24px; }
.nb-post-list a { display: grid; grid-template-columns: 132px 1fr; gap: 20px; }
.nb-post-list img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.nb-post-list .nb-date { margin-top: 0; }
.nb-post-list h3 { margin-top: 6px; font-size: 19px; line-height: 1.3; }
.nb-post-feature .nb-more { display: inline-block; margin-top: 16px; }
/* In the side list the whole item is the link, so "Leia mais" is just styled text. */
.nb-post-list .nb-more {
  display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--coral);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.nb-post-list a:hover .nb-more { color: var(--coral-deep); }
.nb-posts a:hover h3, .nb-post-grid a:hover h2 { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.nb-insta {
  margin-top: clamp(64px, 8vw, 104px); padding-top: 40px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 48px; align-items: center;
}
.nb-insta p { margin-top: 12px; color: var(--ink-2); }
.nb-insta .nb-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; }
.nb-insta-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.nb-insta-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* — Fale conosco — */
.nb-contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 6vw, 96px); align-items: start;
}
.nb-contact-wa { margin-top: 32px; }
.nb-contact-note { margin-top: 24px; color: var(--ink-2); font-size: 16px; max-width: 26em; }
.nb-contact-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }

.nb-form {
  background: #fff; border: 1px solid var(--rule-strong);
  padding: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.nb-form .full { grid-column: 1 / -1; }
.nb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nb-field label { font-size: 15px; font-weight: 600; }
.nb-field input, .nb-field select, .nb-field textarea {
  width: 100%; border: 1px solid var(--field-border); border-radius: 2px;
  padding: 12px 14px; font-size: 16px; color: var(--ink); background: #fff;
}
.nb-field input:focus, .nb-field select:focus, .nb-field textarea:focus {
  outline: 2px solid var(--coral-deep); outline-offset: 0; border-color: var(--coral-deep);
}
.nb-field textarea { resize: vertical; min-height: 120px; }
.nb-honey { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nb-checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.nb-checkbox-row input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--coral-deep); }
.nb-checkbox-row a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* — Form notices (Grav form plugin) — */
.nb .notices { grid-column: 1 / -1; padding: 14px 18px; font-size: 15px; border-left: 3px solid currentColor; }
.nb .notices p { margin: 0; }
.nb .notices.green { background: #e9f4ec; color: #1c5b35; }
.nb .notices.red { background: #fbeaea; color: #8f1f1f; }
.nb .notices.yellow { background: #fbf3dc; color: #74560f; }

/* — Footer — */
.nb-footer { background: var(--plum); color: rgba(255,255,255,.78); padding: 72px 0 32px; font-size: 15px; }
.nb-footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.nb-footer .logo { height: 77px; width: auto; }
.nb-footer .colophon { margin-top: 20px; line-height: 1.6; color: rgba(255,255,255,.62); }
.nb-footer .nb-footer-title { font-family: var(--serif); font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.nb-footer ul { display: grid; gap: 8px; }
.nb-footer ul a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
/* Bottom bar: copyright | agency signature (centered) | privacy link. */
.nb-footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px 24px; align-items: center;
  font-size: 13.5px; color: rgba(255,255,255,.55);
}
.nb-footer-bottom .copy { justify-self: start; }
.nb-footer-legal { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.nb-footer-privacy { color: rgba(255,255,255,.72); }
button.nb-footer-privacy { background: none; border: 0; padding: 0; font-size: inherit; cursor: pointer; }
.nb-footer-privacy:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.nb-footer-credits { grid-column: 2; display: flex; justify-content: center; align-items: center; }
@media (max-width: 700px) {
  .nb-footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .nb-footer-bottom .copy, .nb-footer-legal { justify-self: center; }
  .nb-footer-legal { justify-content: center; }
  .nb-footer-credits { grid-column: auto; order: 3; }
}
.nb-footer-credits img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: .6; transition: opacity .15s; }
.nb-footer-credits a:hover img { opacity: 1; }

/* — WhatsApp float button — */
.nb-whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px;
  border-radius: 50%; background: var(--coral-deep); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(30, 27, 46, .25); transition: background-color .15s;
}
.nb-whatsapp-float:hover { background: var(--coral-deeper); color: #fff; }

/* — Cookie consent — */
/* A card at the bottom left, clear of the WhatsApp button; a full-width
   sheet on phones, where the WhatsApp button steps aside until a choice. */
.nb-consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 70;
  width: min(440px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 4px;
  box-shadow: 0 12px 40px rgba(30, 27, 46, .22);
  padding: 24px; font-size: 15px; line-height: 1.55;
}
.nb-consent[hidden], .nb-consent [hidden] { display: none !important; }
.nb-consent-title { font-size: 21px; line-height: 1.25; }
.nb-consent p { margin-top: 8px; color: var(--ink-2); }
.nb-consent p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.nb-consent p a:hover { color: var(--coral-deep); }
.nb-consent-prefs { margin-top: 18px; display: grid; gap: 14px; }
.nb-consent-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.nb-consent-opt input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--coral-deep); cursor: pointer; }
.nb-consent-opt input:disabled { cursor: default; }
.nb-consent-opt strong { display: block; color: var(--ink); font-weight: 600; }
.nb-consent-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nb-consent-actions .nb-btn { flex: 1 1 auto; justify-content: center; padding: 12px 18px; font-size: 15px; }
.nb-consent-more {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px;
}
.nb-consent-more:hover { color: var(--coral-deep); }
@media (max-width: 640px) {
  .nb-consent {
    left: 0; bottom: 0; width: 100%; max-height: 85vh; border-radius: 0; border-width: 1px 0 0;
    padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  }
  body.nb-consent-open .nb-whatsapp-float { display: none; }
}

/* — Inner pages — */
.nb-page-head { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.nb-page-head .nb-lead { margin-top: 20px; }
.nb-page-head .nb-btn { margin-top: 32px; }
.nb-page-head + .nb-sec:not(.nb-sec--paper2) { padding-top: clamp(40px, 5vw, 72px); }

.nb-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 56px 32px; }
.nb-post-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.nb-post-grid h2 { margin-top: 8px; font-size: 21px; line-height: 1.3; }

.nb-article { max-width: 720px; margin: 0 auto; }
.nb-article-head { padding-top: clamp(48px, 7vw, 96px); }
.nb-article-head .nb-date { margin-top: 0; margin-bottom: 16px; }
.nb-article-head h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -0.01em; }
.nb-article-cover { max-width: 960px; margin: clamp(32px, 4vw, 48px) auto 0; }
.nb-article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nb-article-body { padding: clamp(32px, 4vw, 48px) 0 var(--sec-pad); }
.nb-article-back { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }

/* — Long-form content — */
.nb-prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink); }
.nb-prose > * + * { margin-top: 1.1em; }
.nb-prose h2 { font-size: 28px; line-height: 1.25; margin-top: 1.8em; }
.nb-prose h3 { font-size: 23px; line-height: 1.3; margin-top: 1.6em; }
.nb-prose h2 + *, .nb-prose h3 + * { margin-top: .6em; }
.nb-prose ul, .nb-prose ol { padding-left: 1.3em; display: grid; gap: .4em; }
.nb-prose ul { list-style: disc; }
.nb-prose ol { list-style: decimal; }
.nb-prose li::marker { color: var(--coral-deep); }
.nb-prose a { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.nb-prose a:hover { color: var(--coral-deep); }
.nb-prose strong { font-weight: 700; }
.nb-prose blockquote { margin: 1.4em 0; padding-left: 22px; border-left: 3px solid var(--coral); font-style: italic; color: var(--ink-2); }
.nb-prose img { margin: 0 auto; height: auto; }
.nb-prose figure { display: grid; gap: 8px; }
.nb-prose figcaption { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.nb-prose hr { border: none; border-top: 1px solid var(--rule); }
/* Tables scroll sideways inside .nb-table on narrow screens. */
.nb-prose .nb-table { overflow-x: auto; }
.nb-prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.5; }
.nb-prose th, .nb-prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.nb-prose th { font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.nb-prose td code { font-size: 14px; }
.nb-prose .nb-btn { font-family: var(--sans); }

/* — Error page — */
.nb-error { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: var(--sec-pad) 0; }
.nb-error-code {
  font-family: var(--serif); font-weight: 600; line-height: .9; letter-spacing: -0.04em;
  font-size: clamp(96px, 16vw, 200px); color: var(--coral);
}
.nb-error h1 { margin-top: 16px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; }
.nb-error p { margin: 20px auto 0; max-width: 34em; color: var(--ink-2); font-size: 18px; }
.nb-error .nb-hero-actions { justify-content: center; }

/* — Responsive — */
@media (max-width: 1100px) {
  .nb-team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nb-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nb-events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Benefits: 5 columns get too narrow below ~1180px. Use 3 + 2 on a 6-track
   grid so both rows are filled edge to edge. */
@media (max-width: 1180px) {
  .nb-benefits { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nb-benefits li { grid-column: span 2; }
  .nb-benefits li:nth-child(4), .nb-benefits li:nth-child(5) { grid-column: span 3; }
  .nb-benefits h3 { min-height: 0; }
}
@media (max-width: 760px) {
  .nb-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-benefits li, .nb-benefits li:nth-child(4) { grid-column: auto; }
  .nb-benefits li:nth-child(5) { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nb-problems, .nb-cta-grid, .nb-about, .nb-diff, .nb-ods,
  .nb-served, .nb-two, .nb-posts, .nb-insta, .nb-contact { grid-template-columns: minmax(0, 1fr); }
  .nb-footer-grid { grid-template-columns: 1fr 1fr; }
  .nb-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nb-about-media img { aspect-ratio: 3 / 2; }
  .nb-project { grid-template-columns: 64px minmax(0, 1fr); align-items: start; }
  .nb-project img { width: 64px; height: 64px; }
  .nb-project .desc, .nb-project .status { grid-column: 2; }
  .nb-project .status { text-align: left; }
}

@media (max-width: 600px) {
  body.nb { font-size: 16.5px; }
  .nb-problem-list, .nb-skills { grid-template-columns: minmax(0, 1fr); }
  .nb-benefits { grid-template-columns: minmax(0, 1fr); }
  .nb-benefits li:nth-child(5) { grid-column: auto; }
  .nb-benefits li { padding: 24px 20px 26px; }
  .nb-numbers, .nb-events-grid, .nb-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-ods-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 320px; }
  .nb-insta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nb-form { grid-template-columns: minmax(0, 1fr); }
  .nb-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .nb-post-list a { grid-template-columns: 96px 1fr; gap: 16px; }
  .nb-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
  .nb-logos li { height: 72px; }
  .nb-logos img { max-height: 36px; max-width: 90%; }
  .nb-marquee-list li { width: 130px; height: 76px; margin-right: 20px; }
  .nb-marquee-list img { max-height: 38px; }
  .nb-prose { font-size: 18px; }
}
