:root {
  --navy: #1a2238;
  --navy-soft: #2b3655;
  --graphite: #64748b;
  --ink: #0f172a;
  --ice: #f8fafc;
  --white: #ffffff;
  --line: #e2e8f0;
  --green: #128c7e;
  --green-dark: #0d6e63;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 68px;
  --shadow: 0 8px 22px rgba(26, 34, 56, .08);
  --shadow-hover: 0 18px 38px rgba(26, 34, 56, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font: 400 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; color: var(--navy); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid #4f7cff; outline-offset: 3px; border-radius: 4px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  padding: 10px 16px; border-radius: 8px;
  background: var(--navy); color: var(--white);
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(26, 34, 56, .1); }

.header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; object-fit: contain; }

.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__link { position: relative; font-size: .92rem; font-weight: 600; color: var(--navy); padding-block: 6px; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--navy); transition: right .25s var(--ease);
}
.nav__link:hover::after, .nav__link:focus-visible::after { right: 0; }
.nav__cta { margin-left: 4px; }
.nav__toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 18px; border: 1px solid transparent;
  border-radius: 9px; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 6px 16px rgba(26, 34, 56, .2); }
.btn--primary:hover { background: var(--navy-soft); box-shadow: 0 10px 22px rgba(26, 34, 56, .26); }
.btn--whats { background: var(--green); color: var(--white); }
.btn--whats:hover { background: var(--green-dark); }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: .82rem; border-radius: 8px; }

.intro {
  position: relative; overflow: hidden;
  padding: clamp(18px, 3vw, 30px) 0 clamp(26px, 4vw, 40px);
  background:
    radial-gradient(820px 360px at 88% -18%, rgba(100, 116, 139, .14), transparent 68%),
    radial-gradient(620px 320px at 2% 118%, rgba(26, 34, 56, .07), transparent 70%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.intro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image: linear-gradient(to right, rgba(26, 34, 56, .045) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(26, 34, 56, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.intro__inner { position: relative; z-index: 1; }
.intro__head { max-width: 940px; margin-bottom: clamp(18px, 2.6vw, 26px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 10px; font-size: .7rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; color: var(--graphite);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--navy); }

.intro h1 {
  max-width: 30ch; margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.12;
}
.intro__lead {
  max-width: 78ch; margin-bottom: 8px;
  font-size: clamp(.95rem, 1.35vw, 1.05rem); color: #475569;
}
.intro__note { margin-bottom: 0; font-size: .78rem; color: var(--graphite); }

.section { padding: clamp(40px, 6vw, 64px) 0; }
.section--institucional { background: var(--white); border-block: 1px solid var(--line); }
.section--contato { background: var(--white); }

.section__head { max-width: 720px; margin-bottom: 26px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }
.section__head h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 800; }
.section__lead { margin-bottom: 0; color: var(--graphite); font-size: .96rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 12px 12px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover, .card:focus-within {
  transform: translateY(-4px); border-color: rgba(26, 34, 56, .38); box-shadow: var(--shadow-hover);
}
.card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }

.card__logo {
  height: 92px; display: grid; place-items: center;
  padding: 10px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
}
.card__logo img { max-height: 68px; width: auto; object-fit: contain; }
.card__logo--light { background: var(--white); border: 1px solid var(--line); }
.card__logo--light img { filter: none; }

.card--matrizes .card__logo img,
.card--bordados .card__logo img {
  mix-blend-mode: multiply;
  filter: contrast(1.22) brightness(1.06);
}

.card--matrizes .card__logo img[data-bg-cleaned="1"],
.card--bordados .card__logo img[data-bg-cleaned="1"] {
  mix-blend-mode: normal;
  filter: none;
}

.card__cmyk {
  height: 3px; margin: 10px 0 -4px; border-radius: 3px; opacity: .72;
  background: linear-gradient(90deg, #00aeef 0 33.33%, #ec008c 33.33% 66.66%, #ffd200 66.66% 100%);
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 4px 0; }
.card__body h2 { margin-bottom: 6px; font-size: 1.02rem; font-weight: 800; }
.card__body > p { margin-bottom: 10px; color: var(--graphite); font-size: .84rem; line-height: 1.5; }

.btn--card {
  margin-top: auto; align-self: flex-start; min-height: 36px;
  padding: 7px 12px; background: var(--ice); color: var(--navy);
  border-color: var(--line); font-size: .78rem;
}
.card:hover .btn--card { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn__arrow { font-size: 1.1em; line-height: 1; transition: transform .2s var(--ease); }
.card:hover .btn__arrow { transform: translateX(4px); }

.institucional { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.institucional__texto h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 800; }
.institucional__texto p:not(.eyebrow) { color: var(--graphite); font-size: .95rem; }
.institucional__texto p:last-child { margin-bottom: 0; }

.pillars { display: grid; gap: 10px; margin: 0; }
.pillars li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.pillars__num { font-size: .78rem; font-weight: 800; color: var(--graphite); padding-top: 3px; }
.pillars strong { display: block; color: var(--navy); font-size: .92rem; }
.pillars small { display: block; margin-top: 3px; color: var(--graphite); font-size: .82rem; line-height: 1.45; }

.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.channel {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; background: var(--ice); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.channel:hover { transform: translateY(-3px); border-color: rgba(26, 34, 56, .32); box-shadow: var(--shadow); }
.channel__icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.channel small { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--graphite); }
.channel strong { display: block; margin-top: 3px; color: var(--navy); font-size: 1rem; overflow-wrap: anywhere; }
.channel__arrow { margin-left: auto; color: var(--graphite); font-size: 1.2rem; }

.footer { background: var(--navy); color: #cbd5e1; padding: 36px 0 0; }
.footer__top { display: grid; grid-template-columns: 1fr auto; gap: 28px; padding-bottom: 28px; }
.footer__brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.footer__brand span { color: #93a4c4; }
.footer__top p { margin: 8px 0 0; font-size: .88rem; }
.footer__links h2 { margin-bottom: 10px; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #93a4c4; }
.footer__links ul { display: grid; gap: 8px; }
.footer__links a { font-size: .88rem; border-bottom: 1px solid transparent; }
.footer__links a:hover { color: var(--white); border-bottom-color: currentColor; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: #cbd5e1; }
.footer__bottom a:hover { color: var(--white); }

.fab-whats {
  position: fixed; right: 24px; bottom: 24px; z-index: 110;
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green); color: var(--white);
  box-shadow: 0 10px 24px rgba(18, 140, 126, .38);
  transition: transform .25s var(--ease), background .2s;
}
.fab-whats:hover { transform: translateY(-3px) scale(1.05); background: var(--green-dark); }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { height: 42px; }

  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line);
    border-radius: 9px; background: var(--white); cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: grid; max-height: 0; overflow: hidden;
    background: var(--white); border-bottom: 1px solid var(--line);
    transition: max-height .3s var(--ease);
  }
  .nav.is-open { max-height: 420px; box-shadow: var(--shadow); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 18px; }
  .nav__link { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 14px 0 0; }
  .nav__cta .btn { width: 100%; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .institucional { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .card__logo { height: 86px; }
  .card__logo img { max-height: 62px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--container)); }
  .intro { padding-top: 18px; }
  .intro h1 { font-size: clamp(1.8rem, 8vw, 2.15rem); }
  .intro__lead { font-size: .94rem; }
  .footer__top { grid-template-columns: 1fr; }
  .fab-whats { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}