@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Kaushan+Script&family=Lato:wght@300;400;700&display=swap');

:root {
  --ink: #0D2C3A;
  --ink-deep: #08202B;
  --ink-mid: #174254;
  --paper: #FBF7F4;
  --paper-warm: #F2EBE5;
  --gold: #C59B27;
  --gold-light: #DDB55F;
  --text: #3A4A52;
  --muted: #62757E;
  --line: rgba(13, 44, 58, .14);
  --content: 1180px;
  --side: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: Lato, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: #fff; }

.skip-link { position: fixed; left: 16px; top: -64px; z-index: 200; padding: 12px 16px; background: var(--gold); color: var(--ink); font-family: Jost, sans-serif; font-weight: 600; }
.skip-link:focus { top: 16px; }
.shell { width: min(var(--content), calc(100% - (var(--side) * 2))); margin: 0 auto; }
.section { padding: 80px 0; }
.section--warm { background: var(--paper-warm); }
.section--ink { background: var(--ink); color: var(--paper); }
.eyebrow { margin: 0 0 18px; color: var(--gold); font: 500 12px/1.2 Jost, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.display { margin: 0; color: var(--ink); font: 300 clamp(31px, 4vw, 50px)/1.14 Jost, sans-serif; }
.section--ink .display { color: var(--paper); }
.lead { max-width: 760px; margin: 24px 0 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(242, 235, 229, .95); backdrop-filter: blur(12px); }
.site-header__inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; }
.site-brand { display: flex; flex: 0 0 auto; align-items: center; }
.site-brand img { width: auto; height: 38px; }
.nav-toggle { display: none; padding: 9px 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 12px/1 Jost, sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.site-nav a { color: var(--ink); font: 500 12px/1.2 Jost, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold); }
.site-nav .nav-cta { padding: 10px 17px; background: var(--ink); color: var(--paper); }
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible { background: var(--gold); color: var(--ink); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; color: rgba(251, 247, 244, .7); font: 400 12px/1.5 Jost, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--gold); }
.page-hero { position: relative; overflow: hidden; padding: 80px 0; background: var(--ink); color: var(--paper); }
.page-hero::after { position: absolute; right: -120px; bottom: -140px; width: min(55vw, 640px); height: min(55vw, 640px); border: 1px solid rgba(197, 155, 39, .35); border-radius: 50%; content: ''; }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero .display { max-width: 840px; color: var(--paper); }
.page-hero .lead { max-width: 740px; color: rgba(251, 247, 244, .78); }
.page-hero--gold { background: var(--gold); color: var(--ink); }
.page-hero--gold .breadcrumb, .page-hero--gold .lead { color: rgba(13, 44, 58, .76); }
.page-hero--gold .display { color: var(--ink); }

.grid { display: grid; gap: 24px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); }
.grid--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(26px, 5vw, 60px); }
.service-card, .volume-card { display: flex; min-height: 100%; flex-direction: column; align-items: flex-start; border: 1px solid rgba(251, 247, 244, .15); padding: 32px; background: rgba(251, 247, 244, .05); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.service-card:hover, .service-card:focus-within { transform: translateY(-4px); border-color: var(--gold); background: rgba(251, 247, 244, .1); }
.service-card--gold { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.service-card--gold:hover, .service-card--gold:focus-within { background: var(--gold-light); }
.card-number { margin: 0 0 20px; color: var(--gold); font: 500 12px/1 Jost, sans-serif; letter-spacing: .2em; }
.service-card--gold .card-number { color: var(--ink); }
.card-title { margin: 0 0 13px; font: 400 23px/1.25 Jost, sans-serif; }
.card-copy { margin: 0 0 24px; color: rgba(251, 247, 244, .72); font-size: 16px; line-height: 1.7; }
.service-card--gold .card-copy { color: rgba(13, 44, 58, .8); }
.card-link { margin-top: auto; border-bottom: 1px solid currentColor; padding-bottom: 4px; color: var(--gold); font: 500 12px/1.2 Jost, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.service-card--gold .card-link { color: var(--ink); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, .85fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.prose { max-width: 780px; font-size: 17px; line-height: 1.78; }
.prose p { margin: 0 0 20px; }
.prose h2 { margin: 54px 0 18px; color: var(--ink); font: 300 clamp(26px, 3vw, 37px)/1.2 Jost, sans-serif; }
.prose h3 { margin: 34px 0 12px; color: var(--ink); font: 400 21px/1.3 Jost, sans-serif; }
.check-list { display: grid; gap: 11px; margin: 24px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { position: absolute; left: 0; color: var(--gold); content: '•'; font-size: 22px; line-height: .8; }
.aside-card { border-top: 4px solid var(--gold); padding: 28px; background: var(--paper-warm); }
.aside-card h2 { margin: 0 0 15px; color: var(--ink); font: 400 22px/1.3 Jost, sans-serif; }
.aside-card p { margin: 0 0 22px; line-height: 1.7; }
.note { border-left: 4px solid var(--gold); padding: 19px 22px; background: var(--paper-warm); color: var(--ink); font: 300 20px/1.55 Jost, sans-serif; }
.provisional { border: 1px dashed rgba(13, 44, 58, .42); padding: 14px 16px; background: rgba(197, 155, 39, .1); color: var(--ink); font-size: 14px; line-height: 1.5; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 14px 21px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 13px/1.2 Jost, sans-serif; letter-spacing: .1em; text-align: center; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button:hover, .button:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.button--gold { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.button--gold:hover, .button--gold:focus-visible { background: var(--gold-light); border-color: var(--gold-light); }
.button--outline { background: transparent; color: var(--ink); }
.button--disabled { border-color: var(--line); background: #d9d3cc; color: #6d7678; pointer-events: none; }

.volume-card { border-color: var(--line); background: #fff; color: var(--text); }
.volume-card:hover, .volume-card:focus-within { transform: translateY(-3px); border-color: var(--gold); }
.volume-card__tag { margin: 0 0 16px; color: var(--gold); font: 500 11px/1 Jost, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.volume-card .card-title { color: var(--ink); }
.volume-card .card-copy { color: var(--text); }
.bundle { padding: clamp(30px, 5vw, 52px); background: var(--ink-mid); color: var(--paper); }
.bundle .display { color: var(--paper); font-size: clamp(28px, 3.4vw, 40px); }
.bundle p { max-width: 710px; color: rgba(251, 247, 244, .78); font-size: 17px; line-height: 1.7; }

.site-footer { padding: 62px 0 34px; background: var(--ink-deep); color: var(--paper); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 38px; padding-bottom: 34px; border-bottom: 1px solid rgba(251, 247, 244, .14); }
.footer-brand { margin: 0; font: 300 30px/1 Jost, sans-serif; }
.footer-brand em { color: var(--gold); font-style: normal; }
.footer-copy { max-width: 390px; margin: 12px 0 0; color: rgba(251, 247, 244, .62); font: 400 12px/1.5 Jost, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links strong { margin-bottom: 4px; color: var(--gold); font: 500 12px/1.2 Jost, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.footer-links a { color: rgba(251, 247, 244, .78); }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 28px; color: rgba(251, 247, 244, .5); font-size: 13px; }

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
@media (max-width: 760px) {
  .site-header__inner { min-height: 62px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding: 0 0 18px; align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-top: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 8px; padding: 13px 16px; border: 0; text-align: center; }
  .content-grid { grid-template-columns: 1fr; }
  .service-card, .volume-card { padding: 28px 24px; }
}
@media (max-width: 380px) {
  :root { --side: 16px; }
  .site-brand img { height: 32px; }
  .button { width: 100%; }
}
.service-image-frame { margin: 0 0 clamp(28px, 4vw, 40px); background: var(--ink); }
.service-image { width: 100%; height: auto; }
.service-detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, .85fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.service-detail-layout > .service-image-frame { margin: 0; }
.service-detail-content { min-width: 0; }
.service-detail-content .aside-card { margin-bottom: clamp(28px, 4vw, 40px); }
.service-detail-content .prose { max-width: none; }
@media (max-width: 760px) {
  .service-detail-layout { grid-template-columns: 1fr; }
}
.espaco-cta-actions { display: inline-grid; max-width: 100%; gap: 12px; }
.espaco-cta-actions .button { width: 100%; }
.page-hero--espaco { isolation: isolate; }
.page-hero--espaco::before { position: absolute; inset: 0; z-index: 0; background: url('servicos/servico6-bg.jpg') center center / 100% auto no-repeat; content: ''; opacity: .16; pointer-events: none; }
.page-hero--espaco::after { z-index: 0; }
@media (max-width: 760px) {
  .page-hero--espaco::before { background-position: center center; background-size: 100% auto; opacity: .11; }
}
.service-detail-media { min-width: 0; }
.service-project-scope { max-width: none; }
.service-project-scope h2 { margin-top: 0; }

/* Cabeçalho global fixo: o wrapper do componente não limita mais a rolagem. */
:root { --site-header-height: 68px; }
html { scroll-padding-top: var(--site-header-height); }
body { padding-top: var(--site-header-height); }
.site-header { position: fixed; inset: 0 0 auto; width: 100%; }
@media (max-width: 760px) {
  :root { --site-header-height: 62px; }
}
.acervo-catalog-info { display: grid; gap: clamp(28px, 4vw, 40px); align-content: start; }
.acervo-catalog-info .prose { max-width: none; }
.acervo-page .lead, .acervo-page .prose p { text-align: justify; }

.home-knot-callout { padding: 64px 28px; }
.home-knot-callout__inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.home-knot-callout__bar { width: 4px; min-height: 70px; align-self: stretch; flex-shrink: 0; background: var(--gold); }

.home-about { padding: 110px 28px; }

@media (max-width: 760px) {
  .home-knot-callout__inner { flex-wrap: nowrap; }
  .home-knot-callout__text { flex: 1 1 0; min-width: 0; }
  .home-about { padding-top: 50px; }
  #historia, #proposito, #servicos, #contato { padding-top: 50px !important; }
  #contato .contact-channels { margin-left: auto; }
}

.partners-strip { overflow: hidden; padding: 42px 28px; background: var(--paper); }
.partners-strip__title { margin: 0 0 24px; color: var(--ink); font: 500 13px/1.2 Jost, sans-serif; letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.partners-strip__viewport { 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); }
.partners-strip__track { display: flex; width: max-content; animation: partners-scroll 48s linear infinite; will-change: transform; }
.partners-strip__group { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.partners-strip__logo { display: grid; flex: 0 0 150px; height: 52px; place-items: center; }
.partners-strip__logo img { width: auto; height: auto; max-width: 135px; max-height: 48px; object-fit: contain; filter: grayscale(0); opacity: .42; transition: filter .2s ease, opacity .2s ease; }
.partners-strip__logo img:hover { filter: grayscale(0); opacity: .78; }
.partners-strip__viewport:hover .partners-strip__track { animation-play-state: paused; }
@keyframes partners-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .partners-strip__viewport { overflow-x: auto; }
  .partners-strip__track { animation: none; }
}
@media (max-width: 760px) {
  .partners-strip { padding-block: 32px; }
  .partners-strip__title { margin-bottom: 20px; }
  .partners-strip__group { gap: 28px; padding-right: 28px; }
  .partners-strip__logo { flex-basis: 112px; height: 40px; }
  .partners-strip__logo img { max-width: 100px; max-height: 36px; }
}

/* Slots quadrados: logos altos aproveitam toda a altura; horizontais ficam centralizados. */
.partners-strip__logo { display: grid; flex: 0 0 150px; width: 150px; height: 150px; place-items: center; }
.partners-strip__logo img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
@media (max-width: 760px) {
  .partners-strip__logo { flex: 0 0 112px; width: 112px; height: 112px; }
}

#proposito .purpose-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-bottom: 64px; }
#proposito .purpose-values__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
#proposito .purpose-value { padding: 32px 28px; background: var(--ink); }
#proposito .purpose-value__name { margin: 0 0 8px; color: var(--gold); font: 400 21px/1.3 Jost, sans-serif; }
#proposito .purpose-value__descriptor { margin: 0 0 12px; color: rgba(251, 247, 244, .88); font-size: 16px; line-height: 1.5; }
#proposito .purpose-value__descriptor em { font-style: italic; }
#proposito .purpose-value__summary { margin: 0; color: rgba(251, 247, 244, .78); font-size: 15px; line-height: 1.65; }
@media (max-width: 1023px) {
  #proposito .purpose-values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #proposito .purpose-intro { grid-template-columns: 1fr; gap: 38px; margin-bottom: 48px; }
  #proposito .purpose-values__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Navegação móvel: painel de largura integral abaixo da barra da marca. */
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before,
.nav-toggle__icon::after { position: absolute; left: 0; content: ''; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  :root { --site-header-height: 68px; }
  .site-header { background: rgba(242, 235, 229, .98); box-shadow: 0 1px 0 rgba(13, 44, 58, .12); }
  .site-header__inner { min-height: 68px; flex-wrap: wrap; align-content: flex-start; gap: 0; }
  .site-brand { min-height: 68px; }
  .site-brand img { height: 34px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 48px;
    min-height: 44px;
    margin-left: auto;
    padding: 0 14px;
    border: 1px solid rgba(13, 44, 58, .52);
    color: var(--ink);
    font-size: 11px;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
  }
  .nav-toggle:hover,
  .nav-toggle:focus-visible,
  .nav-toggle[aria-expanded="true"] { border-color: var(--gold); background: var(--gold); color: var(--ink); }
  .site-nav {
    order: 3;
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    padding: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-top: 0 solid var(--line);
    transition: max-height .28s ease, padding .28s ease, visibility 0s linear .28s, border-width .28s ease;
  }
  .site-nav.is-open {
    max-height: calc(100dvh - 68px);
    visibility: visible;
    padding: 8px 0 20px;
    border-top-width: 1px;
    transition: max-height .28s ease, padding .28s ease, border-width .28s ease;
  }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 4px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    letter-spacing: .15em;
  }
  .site-nav a:first-child { border-top: 0; }
  .site-nav .nav-cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 14px;
    padding: 0 20px;
    border: 0;
    text-align: center;
  }
  body.has-open-nav { overflow: hidden; }
}

@media (max-width: 420px) {
  .site-brand img { height: 30px; }
  .nav-toggle { width: 48px; padding: 0; }
  .nav-toggle__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after,
  .nav-toggle,
  .site-nav { transition: none; }
}
