:root {
  --blue: #5880f5;
  --blue-dark: #355dcc;
  --blue-pale: #bdd0ff;
  --navy: #1f1646;
  --indigo: #1f1646;
  --lilac: #a680ff;
  --blue-soft: #5f83ee;
  --muted-soft: #65667a;
  --ink-deep: #15112b;
  --rule: #e5e5ed;
  --sea-deep: #071c46;
  --quote-lilac: #a895ff;
  --peach: #ffb28c;
  --ink: #1f1646;
  --muted: #55566b;
  --paper: #f2f2f2;
  --surface: #fafaff;
  --white: #fff;
  --line: rgba(31, 22, 70, 0.16);
  --line-strong: rgba(31, 22, 70, 0.28);
  --header-height: 78px;
  --shell: 1280px;
  --section-space: clamp(96px, 9vw, 148px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Type scale. Use these tokens, not raw sizes, so every page keeps the same hierarchy.
     xs: eyebrows, captions, legal (12px is the minimum anywhere) | sm: nav, buttons, secondary text
     base: body and form text | lg: lead paragraphs and article text | xl: subtitles
     2xl: card titles | h3/h2/h1: headings, smallest to largest
     hero: main title of a page or of the home hero | display: large section titles on the home */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-h2: clamp(1.75rem, 3vw, 2.6rem);
  --fs-h1: clamp(2.4rem, 4.4vw, 4rem);
  --fs-display: clamp(2.65rem, 4.5vw, 4.65rem);
  --fs-hero: clamp(2.8rem, 5vw, 5.2rem);

  /* Page header: the same top space, eyebrow gap and lead on every page. */
  --page-top: calc(var(--header-height) + clamp(40px, 5vw, 72px));
  --eyebrow-gap: clamp(38px, 4.5vw, 62px);
  --font-sans: "Pacaembu", "Hanken Grotesk", system-ui, sans-serif;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--peach);
  color: var(--indigo);
}

/* Focus ring: indigo on light grounds (peach is only 1.6:1 on paper), peach on indigo. */
:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 4px;
}

.footer-main :focus-visible,
.vb-tech :focus-visible {
  outline-color: var(--peach);
}

.skip-link {
  position: fixed;
  left: 24px;
  top: 16px;
  z-index: 1000;
  padding: 11px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-160%);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.skip-link:focus {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.section-shell {
  width: min(calc(100% - 96px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  background: rgba(88, 128, 245, 0.96);
  color: var(--indigo);
  border-bottom: 1px solid rgba(31, 22, 70, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), box-shadow 0.25s ease;
}

body.admin-bar .site-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

/* The admin bar stops being fixed on small screens. */
@media (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0;
  }
}

/* Hides when scrolling down and comes back when scrolling up (see site.js). */
.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-pinned {
  box-shadow: 0 12px 34px rgba(31, 22, 70, 0.14);
}

.header-inner {
  width: min(calc(100% - 96px), var(--shell));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  position: relative;
  z-index: 3;
}

.brand img {
  width: clamp(184px, 15vw, 244px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.main-nav a {
  position: relative;
  padding-block: 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.015em;
  transition: opacity 0.2s ease;
  color: var(--paper);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 1px;
  background: var(--blue-dark);
  transition: right 0.35s var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="true"],
.main-nav a[aria-current="page"] {
  opacity: 1;
}

.main-nav a:hover::after,
.main-nav a[aria-current="true"]::after,
.main-nav a[aria-current="page"]::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 25px;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 0.3s var(--ease);
}

.button:hover svg {
  transform: translateX(5px);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 clamp(38px, 4.5vw, 62px);
  color: var(--blue-dark);
  font-size: var(--fs-xs);
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-index span {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Title (H1) of every page except the home hero */
.display-title {
  margin: 0;
  color: var(--blue);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.page-lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: var(--fs-lg);
  line-height: 1.6;
}

.pattern-band {
  height: clamp(120px, 13vw, 174px);
  display: grid;
  place-items: center;
  background: var(--blue) url("img/bg-pattern.webp") center / cover no-repeat;
  background-color: var(--blue);
  background-blend-mode: screen;
  overflow: hidden;
}

.pattern-band img {
  width: clamp(210px, 22vw, 330px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(31, 22, 70, 0.12));
}

.text-link {
  display: inline-flex;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--blue-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.text-link span {
  transition: transform 0.3s var(--ease);
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  background: var(--blue);
  color: var(--indigo);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.015em;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.section-index-light {
  margin-bottom: 70px;
  color: rgba(255, 255, 255, 0.76);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
  color: var(--white);
}

.button-light:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

.pattern-divider {
  height: 42px;
  background: var(--blue) url("img/bg-pattern.webp") center / cover no-repeat;
  background-color: var(--blue);
  background-blend-mode: screen;
}

.quote-mark {
  position: absolute;
  top: 24px;
  left: 0;
  color: var(--lilac);
  font-family: inherit;
  font-size: 3rem;
  line-height: 1;
  transform: translateY(-50%);
}

.contact-bar {
  padding-block: clamp(52px, 6vw, 74px);
  background: var(--blue);
  color: var(--indigo);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-title {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}

.contact-title span {
  font-weight: 350;
}

.contact-sub {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: var(--fs-lg);
  line-height: 1.5;
}

.contact-actions {
  display: flex;
  flex: none;
  gap: 16px;
}

.button-outline {
  min-width: 220px;
  border-color: var(--indigo);
  background: var(--indigo);
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--indigo);
}

.contact-bar .button:focus-visible {
  outline-color: var(--indigo);
}

.button-ghost {
  border-color: var(--indigo);
  background: transparent;
  color: var(--indigo);
}

.button-ghost:hover {
  border-color: var(--indigo);
  background: var(--indigo);
  color: var(--white);
}

.footer-main {
  padding-top: 78px;
  background: var(--indigo);
  color: var(--white);
}

.footer-grid {
  min-height: 280px;
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 0.6fr 1fr;
  gap: 64px;
}

.footer-brand img {
  width: 210px;
  height: auto;
}

.footer-brand p {
  max-width: 260px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm);
}

.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
}

.footer-nav > span,
.footer-social > span {
  margin-bottom: 16px;
  color: var(--blue-pale);
  font-size: var(--fs-xs);
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-social p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--blue);
}

.footer-signature strong {
  font-size: var(--fs-xl);
}

.footer-signature span {
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 3px;
  background: var(--blue-pale);
  color: var(--indigo);
  font-size: var(--fs-xs);
}

.footer-bottom {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 44px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--fs-xs);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--white);
}

@media (max-width: 1100px) {
  :root {
    --header-height: 74px;
  }

  .section-shell,
.header-inner {
    width: min(calc(100% - 64px), var(--shell));
  }

  }

@media (max-width: 840px) {
  :root {
    --header-height: 72px;
  }

  .section-shell,
.header-inner {
    width: min(calc(100% - 44px), var(--shell));
  }

  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .brand img {
    width: 165px;
  }

  .menu-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    padding: calc(var(--header-height) + 40px) 11vw 100px;
    background: rgba(88, 128, 245, 0.99);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.45s var(--ease);
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    padding-block: 12px;
    border-bottom: 1px solid rgba(31, 22, 70, 0.16);
    color: var(--indigo);
    font-size: clamp(1.7rem, 7vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    opacity: 0.9;
  }

  .main-nav a::after {
    display: none;
  }

  .section-index {
    margin-bottom: 38px;
  }

  .pattern-band {
    height: 108px;
  }

  .section-index-light {
    margin-bottom: 36px;
  }

  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-title {
    font-size: clamp(3.3rem, 13vw, 5.4rem);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    min-height: 360px;
  }

  .footer-signature {
    grid-column: 1 / -1;
    align-items: flex-start;
    margin-top: 14px;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding-block: 22px;
  }

  .footer-bottom a:first-of-type {
    display: none;
  }
}

@media (max-width: 560px) {
  .section-shell,
.header-inner {
    width: calc(100% - 36px);
  }

  .section-index {
    font-size: var(--fs-xs);
  }

  .contact-bar {
    padding-block: 64px;
  }

  .contact-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .contact-actions .button {
    width: 100%;
  }

  .footer-main {
    padding-top: 66px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 54px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 230px;
  }

  .footer-signature {
    margin-top: 0;
  }

  .footer-bottom {
    min-height: 100px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  }

/* Pending client data ([confirmar], [pedir ao cliente]): visible, neutral. Shared by the brand pages. */
.qs-tbd {
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(31, 22, 70, 0.07);
  color: var(--muted);
  font-size: 0.86em;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
