/* ==========================================================================
   IBPLD Home finish — tokens, masthead, hero polish, credibility, doings,
   consulting desk/accordion, video film treatment
   ========================================================================== */

:root {
  --paper: #F5F2EC;
  --paper-soft: #FAF8F4;
  --white: #FFFFFF;
  --ink: #17191D;
  --graphite: #202328;
  --muted: #687078;
  --wine: #4C0911;
  --wine-soft: #741C28;
  --champagne: #CBB897;
  --champagne-soft: #E1D7C4;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.proto-mast__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.proto-mast__nav {
  display: none;
  flex: 1 1 auto;
}

.proto-mast__aside {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.proto-mast__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.proto-mast__link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.proto-mast__link:hover,
.proto-mast__link:focus-visible {
  color: var(--wine);
}

.proto-mast__langs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.proto-mast__lang {
  color: var(--muted);
  text-decoration: none;
}

.proto-mast__lang.is-active,
.proto-mast__lang:hover,
.proto-mast__lang:focus-visible {
  color: var(--ink);
}

.proto-mast__lang-sep {
  color: rgba(23, 25, 29, 0.25);
}

.proto-mast__student {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(23, 25, 29, 0.14);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink) !important;
  text-decoration: none !important;
}

.proto-mast__student:hover,
.proto-mast__student:focus-visible {
  border-color: var(--wine);
  color: var(--wine) !important;
}

.proto-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(23, 25, 29, 0.45);
}

.proto-drawer {
  z-index: 50;
}

.proto-drawer__list {
  display: grid;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.proto-drawer__link {
  display: block;
  padding: 0.95rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 25, 29, 0.08);
}

.proto-drawer__langs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.proto-drawer__lang {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.proto-drawer__lang.is-active {
  color: var(--wine);
}

.proto-drawer__student {
  display: inline-flex;
  margin-top: 1.25rem;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: var(--wine);
  color: #F7F6F2 !important;
  font-weight: 700;
  text-decoration: none !important;
}

body.is-drawer-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .proto-mast__nav,
  .proto-mast__aside {
    display: flex !important;
  }

  .proto-mast__toggle,
  .proto-drawer,
  .proto-drawer-backdrop {
    display: none !important;
  }
}

/* Compact desktop nav when space is tight */
@media (min-width: 1024px) and (max-width: 1280px) {
  .proto-mast__list {
    gap: 0.1rem 0.75rem;
  }

  .proto-mast__link {
    font-size: 0.8125rem;
  }
}

/* --------------------------------------------------------------------------
   Hero polish
   -------------------------------------------------------------------------- */

.immersion__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
}

.immersion__cta-sec {
  min-height: 48px;
}

.immersion__tertiary {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--wine);
  text-decoration: none;
}

.immersion__tertiary:hover,
.immersion__tertiary:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.immersion__title {
  font-size: clamp(3rem, 7vw, 6.5rem) !important;
  max-width: 10ch;
}

.immersion__sub {
  max-width: 36rem;
}

.inst-video__hover-hint {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 4.25rem;
  opacity: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 246, 242, 0.78);
  transition: opacity 240ms ease;
  pointer-events: none;
}

.inst-video__frame {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .inst-video:not(.is-embed):hover .inst-video__frame,
  .inst-video:not(.is-embed):focus-within .inst-video__frame {
    transform: scale(1.015);
  }

  .inst-video:hover .inst-video__play,
  .inst-video:focus-within .inst-video__play {
    transform: scale(1.08);
  }

  .inst-video:hover .inst-video__hover-hint,
  .inst-video:focus-within .inst-video__hover-hint {
    opacity: 1;
  }

  .inst-video:hover .inst-video__veil,
  .inst-video:focus-within .inst-video__veil {
    opacity: 0.92;
  }
}

/* --------------------------------------------------------------------------
   Credibility strip
   -------------------------------------------------------------------------- */

.credx {
  background: var(--paper-soft);
  border-top: 1px solid rgba(23, 25, 29, 0.06);
  border-bottom: 1px solid rgba(23, 25, 29, 0.06);
  padding: 1rem 0;
}

.credx__shell {
  width: min(calc(100% - 40px), 1360px);
  margin-inline: auto;
}

.credx__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.credx__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}

.credx__dot {
  color: var(--champagne);
  margin-right: 0.15rem;
}

.credx__value {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.credx__label {
  font-weight: 500;
}

@media (min-width: 1024px) {
  .credx__shell {
    width: min(calc(100% - (2 * clamp(32px, 6vw, 96px))), 1360px);
  }

  .credx__list {
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   O que fazemos
   -------------------------------------------------------------------------- */

.doings {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.doings__shell {
  width: min(calc(100% - 40px), 1360px);
  margin-inline: auto;
}

.doings__intro {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.doings__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 18ch;
}

.doings__lead {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
}

.doings__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid rgba(23, 25, 29, 0.12);
}

.doings-item {
  display: grid;
  gap: 0.55rem;
  padding: 1.5rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(23, 25, 29, 0.1);
  transition: background-color 240ms ease;
}

.doings-item__index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--champagne);
}

.doings-item__title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.doings-item__text {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}

.doings-item__cta {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--wine);
}

@media (min-width: 768px) {
  .doings__shell {
    width: min(calc(100% - (2 * clamp(32px, 6vw, 96px))), 1360px);
  }

  .doings__grid {
    grid-template-columns: 1fr 1fr;
  }

  .doings-item {
    padding: 1.75rem 1.5rem 1.75rem 0;
    border-right: 1px solid rgba(23, 25, 29, 0.1);
  }

  .doings-item:nth-child(2n) {
    border-right: 0;
    padding-left: 1.5rem;
    padding-right: 0;
  }
}

@media (min-width: 1200px) {
  .doings__grid {
    grid-template-columns: 1.15fr 0.95fr 1.05fr 0.95fr;
  }

  .doings-item {
    border-right: 1px solid rgba(23, 25, 29, 0.1);
    border-bottom: 0;
    padding: 1.75rem 1.35rem 0.5rem 0;
  }

  .doings-item:nth-child(2n) {
    padding-left: 0;
  }

  .doings-item:not(:first-child) {
    padding-left: 1.35rem;
  }

  .doings-item:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

/* --------------------------------------------------------------------------
   CPLD-IF title (long headline)
   -------------------------------------------------------------------------- */

.cpldif__title {
  font-size: clamp(2.1rem, 4.5vw, 3.75rem) !important;
  max-width: 16ch !important;
  line-height: 1.05 !important;
}

.cpldif__lead {
  max-width: 22ch !important;
}

/* --------------------------------------------------------------------------
   Consultoria — desk index + accordion
   -------------------------------------------------------------------------- */

.conx__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1.35rem;
}

.conx__cta-sec {
  color: var(--wine) !important;
}

.conx__grid {
  display: none !important;
}

.conx__desk {
  display: none;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.3fr);
  gap: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(23, 25, 29, 0.1);
  padding-top: 1.75rem;
}

.conx__index {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.conx__tab {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.25rem;
  border: 0;
  border-bottom: 1px solid rgba(23, 25, 29, 0.08);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  cursor: pointer;
}

.conx__tab.is-active,
.conx__tab:hover,
.conx__tab:focus-visible {
  color: var(--ink);
  outline: none;
}

.conx__tab.is-active {
  border-bottom-color: var(--wine);
}

.conx__tab-index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--champagne);
}

.conx__panel-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.conx__panel-text {
  margin: 0.9rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
}

.conx__panel-link {
  display: inline-flex;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--wine);
  text-decoration: none;
}

.conx__accordion {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
}

.conx__acc {
  border-bottom: 1px solid rgba(23, 25, 29, 0.1);
  padding: 0.35rem 0 0.85rem;
}

.conx__acc summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.65rem 0;
  list-style: none;
}

.conx__acc summary::-webkit-details-marker {
  display: none;
}

.conx__acc p {
  margin: 0.25rem 0 0.5rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (min-width: 900px) {
  .conx__desk {
    display: grid;
  }

  .conx__accordion {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Knowledge authority extras
   -------------------------------------------------------------------------- */

.knowx__layout--authority {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* --------------------------------------------------------------------------
   Academia CTA visibility
   -------------------------------------------------------------------------- */

.acadx-cert__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.acadx-trail__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

/* --------------------------------------------------------------------------
   Testimonials spacing
   -------------------------------------------------------------------------- */

.voicex-card__quote {
  max-width: 38rem;
}

.voicex-card__stars {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .inst-video__frame,
  .inst-video__play,
  .doings-item,
  .doings-item__cta::before {
    transition: none !important;
  }

  .inst-video:hover .inst-video__frame {
    transform: none;
  }
}
