/* CAPSLOCK Business Consulting — v2
   Built for reading: 17px body, 65-character lines, text colours that pass
   WCAG AA on every background, and sections sized to their content.
   Palette comes from the logo: falcon navy, and the yellow of the eye (used once). */

:root {
  --navy: #1b1a5c;
  --navy-deep: #131247;
  --ink: #17163a;        /* headings */
  --text: #2c2b47;       /* body */
  --muted: #5a5975;      /* secondary text */
  --line: #dcdce8;
  --bg: #ffffff;
  --tint: #f4f4f9;
  --sun: #efc01f;
  --on-dark: #ffffff;
  --on-dark-muted: #c3c2dc;
  --line-dark: rgba(255, 255, 255, .2);

  --head: 4rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --sec: clamp(2.75rem, 6vw, 4.5rem);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: none; }
i { font-style: normal; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .foot :focus-visible { outline-color: #fff; }

html[lang="pt"] [lang="en"], html[lang="en"] [lang="pt"] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .6rem 1rem; background: var(--navy); color: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 73rem; margin-inline: auto; padding-inline: var(--pad); }

/* ── Logo crops ── */
.crop { display: block; position: relative; overflow: hidden; }
.crop img { position: absolute; height: auto; }
.crop-word { aspect-ratio: 625 / 395; }
.crop-word img { width: 320%; left: -11.2%; top: -163.3%; }
.crop-falcon { aspect-ratio: 935 / 895; clip-path: polygon(0 0, 100% 0, 100% 100%, 37.6% 100%, 37.6% 81%, 23.3% 62.6%, 0 62.6%); }
.crop-falcon img { width: 213.9%; left: -108.02%; top: -7.26%; }

/* ── Type ── */
h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; font-weight: 500; font-stretch: 108%; letter-spacing: -.022em; color: var(--ink); text-wrap: balance; }
.title { font-size: clamp(1.375rem, 2.1vw, 1.75rem); line-height: 1.22; font-weight: 500; font-stretch: 106%; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.label { font-size: .875rem; line-height: 1.4; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.eyebrow { font-size: .9375rem; font-weight: 600; color: var(--muted); margin-bottom: .9rem; }
.lede { font-size: 1.1875rem; line-height: 1.55; max-width: 34rem; }
.text { max-width: 36rem; }
.prose { max-width: 40rem; font-size: 1.125rem; line-height: 1.65; }
.prose + .prose { margin-top: 1rem; }
.note { margin-top: 1.5rem; font-size: .9375rem; color: var(--muted); }
.more { margin-top: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-top: 1.75rem; }

/* ── Buttons & links ── */
.btn {
  display: inline-flex; align-items: center; min-height: 2.875rem; padding: 0 1.35rem;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 1rem; border-radius: 3px;
  transition: background-color .18s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-small { min-height: 2.5rem; padding: 0 1rem; font-size: .9375rem; }
.link { display: inline-flex; gap: .45rem; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--navy); }
.arr { display: inline-block; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--navy-deep); }
  .link:hover .arr, .row:hover .arr, .menu-all a:hover .arr { transform: translateX(4px); }
}

/* ── Header ── */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { width: 3.9rem; flex: none; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav-list > li > a, .nav-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem;
  font-size: .9375rem; font-weight: 500; color: var(--text); transition: color .15s ease;
}
.nav-list > li > a[aria-current="page"], .nav-btn[data-current] { color: var(--navy); font-weight: 700; }
.chev { transition: transform .2s var(--ease-out); }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .nav-list > li > a:hover, .nav-btn:hover { color: var(--navy); } }
.nav-end { display: flex; align-items: center; gap: 1rem; }

.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + .25rem); left: -1rem; width: 24rem; padding: .4rem;
  background: #fff; border: 1px solid var(--line); border-radius: 5px;
  box-shadow: 0 16px 36px -16px rgba(19, 18, 71, .3);
  transform-origin: 2rem 0; opacity: 0; visibility: hidden; transform: scale(.97) translateY(-4px);
  transition: opacity .14s ease, transform .16s var(--ease-out), visibility 0s .16s;
}
.has-menu.is-open .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu a { display: flex; gap: .8rem; align-items: baseline; padding: .6rem .7rem; border-radius: 3px; font-size: .9375rem; font-weight: 500; line-height: 1.35; color: var(--text); }
.menu i { flex: none; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-all { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--line); }
.menu-all a { color: var(--navy); font-weight: 600; gap: .4rem; }
@media (hover: hover) and (pointer: fine) { .menu a:hover { background: var(--tint); color: var(--navy); } }

.lang { display: flex; align-items: center; font-size: .875rem; font-weight: 500; }
.lang button { min-width: 2.25rem; min-height: 2.5rem; color: var(--muted); transition: color .15s ease; }
.lang button[aria-pressed="true"] { color: var(--navy); font-weight: 700; }
.lang button + button { position: relative; }
.lang button + button::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--line); }

.burger { display: none; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; margin-right: -.6rem; }
.burger-lines, .burger-lines::before { display: block; width: 1.4rem; height: 1.5px; background: var(--navy); transition: transform .22s var(--ease-out); }
.burger-lines { transform: translateY(-3.5px); }
.burger-lines::before { content: ""; transform: translateY(7px); }
.burger[aria-expanded="true"] .burger-lines { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines::before { transform: rotate(-90deg); }

/* ── Home hero ── */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); max-width: 14ch; animation: rise .7s var(--ease-out) .5s both; }
.hero h1 span span { color: var(--muted); }
.hero .eyebrow { animation: rise .7s var(--ease-out) .42s both; }
.hero .lede { margin-top: 1.25rem; animation: rise .7s var(--ease-out) .6s both; }
.hero .actions { animation: rise .7s var(--ease-out) .68s both; }
.hero-bird { mix-blend-mode: multiply; pointer-events: none; animation: eye 1.3s var(--ease-in-out) both; }
/* The mark opens from the eye, the way the logo itself resolves. */
@keyframes eye {
  0%, 28% { clip-path: circle(1.5% at 11.5% 41.95%); }
  100% { clip-path: circle(150% at 11.5% 41.95%); }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ── Motto strip ── */
.motto { border-block: 1px solid var(--line); }
.motto ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.motto li { padding: 1.4rem 1.5rem 1.5rem 0; color: var(--muted); font-size: 1rem; }
.motto li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.motto strong { display: block; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 500; font-stretch: 110%; letter-spacing: -.015em; line-height: 1.2; color: var(--navy); margin-bottom: .15rem; }

/* ── Sections ── */
.sec { padding: var(--sec) 0; }
.sec + .sec:not(.tint):not(.dark) { border-top: 1px solid var(--line); }
.tint { background: var(--tint); }
.tint + .sec { border-top: 0 !important; }
.dark { background: var(--navy); color: var(--on-dark-muted); }
.dark .title, .dark h3 { color: var(--on-dark); }
.dark .label, .dark .note { color: var(--on-dark-muted); }
.dark .link { color: #fff; }

.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(1.5rem, 4vw, 4rem); align-items: end; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.sec-head .title { margin-top: .5rem; max-width: 18ch; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1rem clamp(1.5rem, 4vw, 4rem); }
.sec-grid > .label { padding-top: .3rem; }
.sec-body > .title { max-width: 38rem; margin-bottom: 1.25rem; }
.label.gap { margin-top: 2.5rem; }
.main > .label { margin-bottom: .9rem; }

/* Numbered link rows (services, contact subjects) */
.rows { border-top: 1px solid var(--navy); }
.rows li { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 2.25rem minmax(0, 5fr) minmax(0, 6fr) 1.25rem; gap: .25rem 1.25rem; align-items: baseline;
  padding: 1rem .75rem; margin-inline: -.75rem; border-radius: 3px;
  color: var(--text); transition: background-color .15s ease;
}
.row.short { grid-template-columns: 2.25rem minmax(0, 1fr) 1.25rem; }
.row i, .cells i, .pairs i { font-size: .875rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.row strong { font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.row-sum { font-size: 1rem; line-height: 1.5; color: var(--muted); }
.row .arr { color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .row:hover { background: var(--tint); } .tint .row:hover { background: #fff; } }
.row:active { background: var(--tint); }

/* Industry cells */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.cells li { display: flex; gap: .9rem; align-items: baseline; padding: 1rem 1rem 1.05rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--ink); }

/* Theme / question pairs */
.pairs { border-top: 1px solid var(--navy); }
.dark .pairs { border-top-color: rgba(255, 255, 255, .55); }
.pairs li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .15rem clamp(1.5rem, 4vw, 4rem); align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.dark .pairs li { border-bottom-color: var(--line-dark); }
.pairs h3 { display: flex; gap: .9rem; align-items: baseline; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.dark .pairs h3 { color: var(--on-dark); }
.dark .pairs i { color: var(--on-dark-muted); }
.pairs p { font-size: 1.0625rem; line-height: 1.5; }
.dark .pairs p { color: var(--on-dark); }

/* Two teasers side by side */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 5vw, 5rem); }
.duo > div + div { padding-left: clamp(2rem, 5vw, 5rem); border-left: 1px solid var(--line); }
.duo .title { margin: .6rem 0 .75rem; font-size: clamp(1.25rem, 1.8vw, 1.5rem); max-width: 26ch; }

/* ── Inner pages ── */
.phead { background: var(--tint); padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(2rem, 5vw, 3rem); }
.crumb { font-size: .875rem; font-weight: 500; color: var(--muted); margin-bottom: .9rem; font-variant-numeric: tabular-nums; }
.crumb a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(27, 26, 92, .3); text-underline-offset: .2em; }
.phead h1 { max-width: 24ch; }
.intro { margin-top: .9rem; max-width: 40rem; font-size: 1.1875rem; line-height: 1.55; color: var(--text); }

.cols { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
.list { border-top: 1px solid var(--navy); counter-reset: n; max-width: 40rem; }
.list li { counter-increment: n; display: flex; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 500; line-height: 1.4; color: var(--ink); }
.list li::before { content: counter(n, decimal-leading-zero); flex: none; width: 1.5rem; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.prose + .list { margin-top: 1rem; }

.side { position: sticky; top: calc(var(--head) + 1.5rem); padding: 1.25rem 1.25rem 1rem; background: var(--tint); border-radius: 5px; }
.side ul { margin-top: .6rem; }
.side a { display: flex; gap: .6rem; align-items: baseline; padding: .5rem 0; font-size: .9375rem; line-height: 1.4; font-weight: 500; color: var(--text); border-top: 1px solid var(--line); }
.side a::before { content: ""; flex: none; width: .4rem; height: .4rem; border-radius: 50%; background: transparent; transform: translateY(-.1rem); }
.side a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.side a[aria-current="page"]::before { background: var(--sun); }
@media (hover: hover) and (pointer: fine) { .side a:hover { color: var(--navy); } }

.defs.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); margin-top: 1.5rem; border-top: 1px solid var(--navy); }
.defs.two > div { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.defs dt { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.defs dd { margin-top: .3rem; font-size: 1rem; line-height: 1.55; }

.contact { border-top: 1px solid var(--navy); max-width: 40rem; }
.contact > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact dt { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.contact dd { font-size: 1.25rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.contact a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(27, 26, 92, .35); text-underline-offset: .22em; transition: text-decoration-color .15s ease; }
@media (hover: hover) and (pointer: fine) { .contact a:hover { text-decoration-color: var(--navy); } }

/* ── Footer ── */
.foot { background: var(--navy); color: var(--on-dark-muted); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 4fr) minmax(0, 3fr); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.foot-logo { display: block; width: 4.5rem; margin-bottom: 1rem; mix-blend-mode: screen; }
.foot-logo img { filter: grayscale(1) invert(1) brightness(1.3); }
.foot-brand p { color: #fff; font-weight: 500; font-stretch: 110%; }
.foot-brand .foot-sub { margin-top: .35rem; max-width: 17rem; color: var(--on-dark-muted); font-weight: 400; font-stretch: 100%; line-height: 1.5; }
.foot h2 { font-size: .875rem; font-weight: 600; color: #fff; margin-bottom: .6rem; }
.foot li { padding: .22rem 0; line-height: 1.45; }
.foot a { color: var(--on-dark-muted); transition: color .15s ease; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: #fff; } }
.foot-base { margin-top: 2.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .875rem; }
.foot-credit a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: .2em; }

/* ── Narrow screens ── */
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(var(--head) + 1px) 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 2rem;
    padding: 1rem var(--pad) 1.5rem; background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s ease, transform .22s var(--ease-out), visibility 0s .22s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-open body { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .nav-btn { width: 100%; justify-content: space-between; min-height: 3.25rem; font-size: 1.125rem; }
  .menu { position: static; width: auto; padding: 0 0 .5rem; border: 0; box-shadow: none; background: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-menu.is-open .menu { display: block; }
  .menu a { padding: .6rem 0; font-size: 1rem; }
  .nav-end { justify-content: space-between; }

  .sec-head, .sec-grid, .cols { grid-template-columns: 1fr; }
  .sec-head { align-items: start; }
  .side { position: static; }
  .row { grid-template-columns: 2.25rem minmax(0, 1fr) 1.25rem; }
  .row-sum { grid-column: 2; grid-row: 2; }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-bird { order: -1; width: 62%; margin-left: auto; margin-right: -6%; margin-bottom: -1.5rem; }
  .motto ol { grid-template-columns: 1fr; }
  .motto li { padding: .9rem 0; display: flex; gap: .75rem; align-items: baseline; }
  .motto li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .motto strong { margin: 0; min-width: 6.5rem; }
  .cells, .defs.two, .duo, .pairs li { grid-template-columns: 1fr; }
  .duo > div + div { padding-left: 0; border-left: 0; padding-top: 2rem; border-top: 1px solid var(--line); }
  .contact > div { grid-template-columns: 1fr; gap: .1rem; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
