/* ==========================================================================
   Consultoria landing page (reference design).
   Loaded only on /consultoria/ via base.html's extra_head block. All rules are
   scoped under .consultoria-page so the shared component class names reused here
   (.section-block, .split-section, .process-list, .media-frame, .final-cta, ...)
   never affect other pages. Colors flip with the global dark/bright theme via the
   --consultoria-* tokens defined in site.css; photographic overlays stay dark in
   both themes for light-text legibility.
   ========================================================================== */
.consultoria-page {
  background: var(--consultoria-bg);
  color: var(--consultoria-text);
}

.consultoria-page h1,
.consultoria-page h2,
.consultoria-page h3 {
  margin: 0;
  font-weight: 300;
  line-height: 1.04;
  text-transform: uppercase;
}

.consultoria-page h1 {
  font-size: var(--text-display);
  letter-spacing: -0.025em;
  text-transform: none;
}

.consultoria-page h1 span,
.consultoria-page h2 span,
.consultoria-page .gold {
  color: var(--gold);
}

/* The hero masked reveal wraps the whole headline in .reveal-line (a span), so
   the rule above would paint the entire title gold. Reset the wrapper to the
   heading colour; the inner highlight span still matches h1 span and stays gold.
   (0,2,1) beats the (0,1,2) gold rule above. */
.consultoria-page h1 .reveal-line {
  color: inherit;
}

.consultoria-page .section-kicker,
.consultoria-page .card-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Kickers are <p>s, so the muted-paragraph rules below
   (.consultoria-page .section-heading p, .section-copy p, .quote-copy p,
   .application-copy p — all 0,3,0) outrank the gold kicker rule above and
   washed them to --consultoria-muted. Re-assert gold with (0,3,1) specificity
   (body[data-theme] adds the extra weight) so kickers read gold in both themes,
   matching the home page. */
body[data-theme] .consultoria-page .section-kicker,
body[data-theme] .consultoria-page .card-label {
  color: var(--gold);
}

.consultoria-page .solid-btn,
.consultoria-page .outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-control);
  padding: 13px 20px;
  color: var(--consultoria-text);
  background: transparent;
  font-size: var(--fs-xs);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.consultoria-page .solid-btn {
  background: var(--gold);
  color: var(--consultoria-bg);
}

.consultoria-page .solid-btn:hover,
.consultoria-page .outline-btn:hover {
  transform: translateY(-1px);
}

/* Hero ------------------------------------------------------------------- */
.consultoria-page .hero {
  position: relative;
  /* Fill the viewport on tall screens, but GROW when the application form is
     taller than the viewport (short desktop / mobile) instead of clipping it.
     The global .hero rule sets a fixed height: calc(100svh - 72px); override it
     to auto so min-height drives the fill and content can extend past it. */
  min-height: calc(100svh - 72px);
  height: auto;
  overflow: hidden;
  border-bottom: 1px solid var(--consultoria-line);
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.99) 0%, rgba(8, 9, 11, 0.88) 38%, rgba(8, 9, 11, 0.34) 68%, rgba(8, 9, 11, 0.14) 100%),
    url("../images/consultoria/59327288.jpg") center right / cover no-repeat;
}

.consultoria-page .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  /* Bottom vignette of the (always-dark) hero photo. Fade to the same dark the
     hero gradient is built on so it stays a dark shadow in both themes — using
     --consultoria-bg turned this into a light wash in bright mode. */
  background: linear-gradient(180deg, transparent, #08090b);
  pointer-events: none;
}

.consultoria-page .hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 430px);
  gap: clamp(30px, 4.5vw, 72px);
  align-items: center;
  align-content: center;
  min-height: calc(100svh - 72px);
  padding: 58px 0 76px;
}

.consultoria-page .hero-copy {
  max-width: 660px;
}

.consultoria-page .hero-copy h1 {
  /* .hero-copy is painted muted globally in site.css; the hero title must read
     in full text color (muted stays on .hero-lede / descriptions). */
  color: var(--consultoria-text);
  font-size: var(--text-display);
}

.consultoria-page .hero-lede {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--consultoria-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}

.consultoria-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}

.consultoria-page .micro-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: color-mix(in srgb, var(--consultoria-muted) 86%, var(--consultoria-text));
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.consultoria-page .micro-proof span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 52%, transparent);
  vertical-align: 1px;
}

.consultoria-page .decision-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 26px;
  border-top: 1px solid var(--consultoria-line);
}

.consultoria-page .decision-prompt p {
  max-width: 620px;
  margin: 0;
  color: var(--consultoria-text);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 300;
  line-height: 1.35;
}

.consultoria-page .decision-prompt p span {
  color: var(--gold);
}

.consultoria-page .decision-prompt .directional-line {
  max-width: 520px;
  color: var(--consultoria-text);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 800;
}

.consultoria-page .decision-prompt .directional-line span {
  color: var(--gold);
}

.consultoria-page .decision-prompt .solid-btn,
.consultoria-page .final-cta .hero-actions .solid-btn {
  min-width: 460px;
  min-height: 70px;
}

/* Generic section scaffolding ------------------------------------------- */
.consultoria-page .section-block {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--consultoria-line);
}

.consultoria-page .alt-section {
  background: var(--consultoria-surface);
}

.consultoria-page .section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.consultoria-page .section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.consultoria-page .section-heading h2,
.consultoria-page .section-copy h2 {
  font-size: var(--h2);
}

.consultoria-page .section-heading p,
.consultoria-page .section-copy p,
.consultoria-page .rich-copy {
  color: var(--consultoria-muted);
  font-size: var(--fs-base);
  line-height: 1.7;
}

.consultoria-page .section-heading > p:last-child,
.consultoria-page .section-copy > p:last-child {
  margin-bottom: 0;
}

.consultoria-page .split-section,
.consultoria-page .consultoria-grid {
  display: grid;
  gap: var(--gap-lg);
  align-items: center;
}

.consultoria-page .split-section {
  grid-template-columns: 0.9fr 1.1fr;
}

.consultoria-page .consultoria-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.consultoria-page .media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--consultoria-line);
  background: var(--consultoria-surface-2);
  box-shadow: var(--shadow);
}

.consultoria-page .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consultoria-page .media-frame.wide {
  aspect-ratio: 16 / 9;
}

.consultoria-page .media-frame.portrait {
  aspect-ratio: 4 / 5;
}

.consultoria-page .media-frame.low {
  aspect-ratio: 16 / 7;
}

.consultoria-page .soft-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 9, 11, 0.68));
  pointer-events: none;
}

/* Identification (situation cards) -------------------------------------- */
.consultoria-page .situation-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.consultoria-page .situation-card {
  min-height: 350px;
  display: grid;
  align-content: end;
  padding: var(--pad-card-sm);
  border: 1px solid var(--consultoria-line);
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.18), rgba(8, 9, 11, 0.88)),
    var(--consultoria-surface-2);
  background-size: cover;
  background-position: center;
  transition:
    transform var(--dur-base) var(--ease-smooth),
    border-color var(--dur-base) var(--ease-smooth),
    box-shadow var(--dur-base) var(--ease-smooth);
}

/* Hover mirrors the site card animation (produtos .pvc-lift / about-card):
   a small raise with a gold border and soft shadow. Keyboard parity via
   :focus-within; neutralized under reduced-motion. */
.consultoria-page .situation-card:hover,
.consultoria-page .situation-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: reduce) {
  .consultoria-page .situation-card {
    transition: none;
  }
  .consultoria-page .situation-card:hover,
  .consultoria-page .situation-card:focus-within {
    transform: none;
  }
}

.consultoria-page .situation-card h3 {
  color: var(--gold);
  font-family: var(--consultoria-display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.consultoria-page .situation-card p {
  margin: 10px 0 0;
  color: #f0f0f2;
  font-size: var(--fs-sm);
  line-height: 1.45;
}

/* Big idea (quote band) ------------------------------------------------- */
.consultoria-page .quote-band {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  min-height: 520px;
  border-top: 1px solid var(--consultoria-line);
  border-bottom: 1px solid var(--consultoria-line);
  background: var(--consultoria-deep);
}

.consultoria-page .quote-copy {
  display: grid;
  align-content: center;
  padding: clamp(48px, 7vw, 96px);
}

.consultoria-page .quote-copy h2 {
  max-width: 680px;
  font-size: var(--text-display);
  text-transform: none;
}

.consultoria-page .quote-copy p {
  max-width: 600px;
  color: var(--consultoria-muted);
  font-size: 17px;
  line-height: 1.7;
}

.consultoria-page .quote-image {
  min-height: 420px;
  background:
    linear-gradient(270deg, rgba(8, 9, 11, 0.05), rgba(8, 9, 11, 0.42)),
    url("../images/consultoria/59327281.jpg") center / cover no-repeat;
}

/* Truth strip ----------------------------------------------------------- */
.consultoria-page .truth-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
}

.consultoria-page .truth-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--consultoria-line);
  background: var(--consultoria-line);
}

.consultoria-page .truth-icons div {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 20px 22px;
  background: color-mix(in srgb, var(--consultoria-surface) 88%, transparent);
  color: var(--consultoria-text);
  font-size: var(--fs-sm);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.consultoria-page .truth-icons div::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 12px;
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 48%, transparent);
  flex: none;
}

.consultoria-page p.truth-closing {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--consultoria-line);
  color: var(--consultoria-text);
  font-size: var(--fs-xl);
  font-weight: 300;
  line-height: 1.25;
}

.consultoria-page .truth-closing span {
  color: var(--gold);
}

/* Process list (como funciona) ------------------------------------------ */
.consultoria-page .process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--consultoria-line);
  border: 1px solid var(--consultoria-line);
}

.consultoria-page .process-list article {
  padding: 26px 24px;
  background: var(--consultoria-bg);
}

.consultoria-page .process-list span {
  color: color-mix(in srgb, var(--gold) 68%, transparent);
  font-family: var(--consultoria-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.consultoria-page .process-list h3 {
  margin-top: 18px;
  color: var(--consultoria-text);
  font-size: var(--fs-base);
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.consultoria-page .process-list p {
  margin: 10px 0 0;
  color: var(--consultoria-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* Method (pillars) ------------------------------------------------------ */
.consultoria-page .pillar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--consultoria-line);
  border-bottom: 1px solid var(--consultoria-line);
}

.consultoria-page .pillar {
  display: grid;
  gap: 12px;
  padding: 28px 20px;
  text-align: center;
}

.consultoria-page .pillar + .pillar {
  border-left: 1px solid var(--consultoria-line);
}

.consultoria-page .pillar b {
  color: var(--gold);
  font-family: var(--consultoria-display);
  font-size: 34px;
  line-height: 1;
}

.consultoria-page .pillar h3 {
  color: var(--gold);
  font-size: var(--fs-sm);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.consultoria-page .pillar p {
  margin: 0;
  color: var(--consultoria-muted);
  font-size: var(--fs-xs);
  line-height: 1.55;
}

/* Proof (Sobre impacto carousels) --------------------------------------- */
/* The proof section reuses the Sobre page's .about-impacto-stack markup, so its
   styling comes from the shared .about-* rules in site.css. Only the per-view
   responsive overrides (in the media queries below) are added here, scoped to
   #prova, since the Sobre overrides are keyed to #sobre-impacto. */

/* Profile (quem e) — reference quem-e-o-vitor.html layout ---------------- */
.consultoria-page .profile-section {
  padding: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%),
    var(--consultoria-deep);
  border-bottom: 1px solid var(--consultoria-line);
}

.consultoria-page .profile-strip {
  position: relative;
  height: 340px;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.55), rgba(8, 9, 11, 0.94)),
    url("../images/consultoria/59327279.jpg") center 32% / cover no-repeat;
}

.consultoria-page .profile-strip .section-kicker {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  font-size: var(--fs-md);
  letter-spacing: 0.16em;
}

.consultoria-page .profile-body {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(36px, 4.5vw, 60px) 16px;
  text-align: center;
}

.consultoria-page .profile-body h2 {
  font-size: var(--h2);
  letter-spacing: -0.01em;
  text-transform: none;
}

.consultoria-page .profile-body h2 em {
  font-style: normal;
  color: var(--gold);
}

.consultoria-page .profile-body p {
  max-width: var(--measure);
  margin: 26px auto 0;
  color: var(--consultoria-muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
}

.consultoria-page .profile-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--consultoria-line);
}

.consultoria-page .profile-cards article {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 3.5vw, 48px) clamp(22px, 2.5vw, 36px) clamp(34px, 4vw, 54px);
}

.consultoria-page .profile-cards article + article {
  border-left: 1px solid var(--consultoria-line);
}

.consultoria-page .profile-cards .idx {
  color: var(--gold);
  font-family: var(--consultoria-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.2em;
}

.consultoria-page .profile-cards h3 {
  margin: 14px 0 0;
  color: var(--gold);
  font-size: var(--h4);
  line-height: 1.05;
  text-transform: none;
}

.consultoria-page .profile-cards p {
  margin: 10px 0 0;
  max-width: 26ch;
  color: var(--consultoria-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.consultoria-page .profile-cards .ghost {
  position: absolute;
  right: -6px;
  bottom: -28px;
  color: color-mix(in srgb, var(--gold) 6%, transparent);
  font-family: var(--consultoria-display);
  font-weight: 700;
  font-size: 150px;
  line-height: 1;
  pointer-events: none;
}

/* Final CTA ------------------------------------------------------------- */
.consultoria-page .final-cta {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--consultoria-line);
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.94), rgba(8, 9, 11, 0.62) 48%, rgba(8, 9, 11, 0.2)),
    url("../images/consultoria/59327288.jpg") center / cover no-repeat;
}

.consultoria-page .final-cta .section-copy {
  max-width: 720px;
}

.consultoria-page .final-cta h2 {
  max-width: 680px;
  font-size: var(--text-display);
  text-transform: none;
  color: #f0f0f2;
}

.consultoria-page .final-cta p {
  max-width: 560px;
  color: #b5b7be;
  font-size: 17px;
  line-height: 1.7;
}

/* Application form ------------------------------------------------------ */
.consultoria-page .application-section {
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--gold) 11%, transparent), transparent 34%),
    var(--consultoria-surface);
}

.consultoria-page .application-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(420px, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.consultoria-page .application-copy {
  position: sticky;
  top: 104px;
  max-width: 520px;
}

.consultoria-page .application-copy h2 {
  font-size: var(--h2);
}

.consultoria-page .application-copy p {
  color: var(--consultoria-muted);
  font-size: var(--fs-base);
  line-height: 1.7;
}

.consultoria-page .application-notes {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  color: var(--consultoria-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.consultoria-page .application-notes li {
  position: relative;
  padding-left: 22px;
}

.consultoria-page .application-notes li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 56%, transparent);
  transform: translateY(-50%);
}

.consultoria-page .application-panel {
  display: grid;
  gap: 16px;
  padding: var(--pad-card);
  border: 1px solid var(--consultoria-line);
  background: color-mix(in srgb, var(--consultoria-surface) 90%, transparent);
  box-shadow: var(--shadow);
}

.consultoria-page .application-panel h3 {
  font-size: 30px;
}

.consultoria-page .hero-application {
  align-self: center;
  gap: 12px;
  padding: 24px;
  background: color-mix(in srgb, rgba(23, 24, 27, 0.92) 82%, transparent);
  backdrop-filter: blur(16px);
}

.consultoria-page .hero-application h3 {
  font-size: var(--h4);
  line-height: 1.08;
}

.consultoria-page .hero-application textarea {
  min-height: 78px;
}

.consultoria-page .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.consultoria-page .application-panel label {
  display: grid;
  gap: 8px;
  color: var(--consultoria-muted);
  font-size: var(--fs-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.consultoria-page .preference-fieldset {
  display: grid;
  gap: 12px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}

.consultoria-page .preference-fieldset legend {
  /* A <legend> is not a grid item, so the fieldset's grid gap does not space it
     from the options below — add explicit margin so the title is not crowding
     the checkboxes. */
  margin-bottom: 10px;
  color: var(--consultoria-muted);
  font-size: var(--fs-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.consultoria-page .checkbox-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.consultoria-page .checkbox-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--consultoria-line);
  padding: 12px 13px;
  background: color-mix(in srgb, var(--consultoria-bg) 82%, transparent);
  color: var(--consultoria-text);
  font-size: var(--fs-xs);
  line-height: 1.35;
  text-transform: none;
}

.consultoria-page .checkbox-options input {
  width: 14px;
  height: 14px;
  accent-color: var(--gold);
  flex: none;
}

/* The hero application panel keeps a dark translucent background in both themes,
   so in bright mode its heading + field labels (using the flipped-dark
   --consultoria-text / --consultoria-muted) turned dark-on-dark and unreadable.
   Force them light, matching the dark-theme panel. The checkbox chips have their
   own light box, so their label text stays dark. */
body[data-theme="bright"] .hero-application h3 {
  color: #f0f0f2;
}

body[data-theme="bright"] .hero-application label,
body[data-theme="bright"] .hero-application legend {
  color: #b5b7be;
}

body[data-theme="bright"] .hero-application .checkbox-options label {
  color: var(--consultoria-text);
}

.consultoria-page .application-panel input:not([type="checkbox"]),
.consultoria-page .application-panel textarea {
  width: 100%;
  border: 1px solid var(--consultoria-line);
  border-radius: var(--radius-control);
  background: var(--consultoria-bg);
  color: var(--consultoria-text);
  padding: 13px 14px;
  font: 500 15px/1.4 Inter, Arial, Helvetica, sans-serif;
}

.consultoria-page .application-panel textarea {
  min-height: 120px;
  resize: vertical;
}

/* Placeholders read subtler than entered text, in both themes. opacity:1 stops
   Firefox/UA from dimming the already-low-alpha color further. */
.consultoria-page .application-panel input::placeholder,
.consultoria-page .application-panel textarea::placeholder {
  color: color-mix(in srgb, var(--consultoria-muted) 32%, transparent);
  opacity: 1;
}

.consultoria-page .application-panel .errorlist {
  margin: 0;
  padding-left: 18px;
  color: #e2a0a0;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: none;
}

.consultoria-page .application-panel .nonfield {
  color: #e2a0a0;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: none;
}

.consultoria-page .application-panel .full-btn {
  width: 100%;
}

/* Inline success state — shown in place of the form after a valid submit.
   Reuses .application-panel (and .hero-application) so it fills the same box. */
.consultoria-page .consultoria-success-panel {
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(30px, 4vw, 48px) 30px;
}

.consultoria-page .consultoria-success-panel .section-kicker {
  margin: 0;
}

.consultoria-page .success-badge {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold);
}

.consultoria-page .success-title {
  margin: 0;
  font-weight: 300;
  line-height: 1;
  font-size: var(--h2);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.consultoria-page .success-rule {
  display: block;
  width: 48px;
  height: 2px;
  margin: 2px 0;
  background: var(--gold);
}

.consultoria-page .success-lede {
  margin: 0;
  max-width: 40ch;
  color: var(--consultoria-muted);
  font-size: 15px;
  line-height: 1.65;
}

.consultoria-page .success-lede strong {
  color: var(--consultoria-text);
  font-weight: 600;
}

.consultoria-page .success-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 2px;
  color: color-mix(in srgb, var(--consultoria-muted) 86%, var(--consultoria-text));
  font-size: var(--fs-xs);
}

.consultoria-page .success-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.consultoria-page .success-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 52%, transparent);
}

.consultoria-page .consultoria-success-panel .solid-btn {
  margin-top: 8px;
}

/* The hero panel is dark glass in both themes, so force light text on it
   (the bottom panel follows the theme via --consultoria-* tokens). */
.consultoria-page .hero-application.consultoria-success-panel .success-title {
  color: #f0f0f2;
}

.consultoria-page .hero-application.consultoria-success-panel .success-lede {
  color: #b5b7be;
}

.consultoria-page .hero-application.consultoria-success-panel .success-lede strong {
  color: #f0f0f2;
}

/* Mobile-only floating CTA that jumps to the application form. Hidden on desktop,
   where the hero already carries the form. */
.consultoria-apply-fab {
  display: none;
}

/* Reveal-on-scroll is now the global primitive in site.css (U2); the
   consultoria page inherits it. Signature tuning lives in U4. */

@media (max-width: 920px) {
  .consultoria-page .hero,
  .consultoria-page .hero-content {
    min-height: auto;
  }

  .consultoria-page .hero {
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.62) 0%, rgba(8, 9, 11, 0.96) 68%),
      url("../images/consultoria/59327288.jpg") center / cover no-repeat;
  }

  .consultoria-page .split-section,
  .consultoria-page .hero-content,
  .consultoria-page .consultoria-grid,
  .consultoria-page .application-layout,
  .consultoria-page .truth-strip,
  .consultoria-page .quote-band {
    grid-template-columns: 1fr;
  }

  .consultoria-page .quote-image {
    min-height: 420px;
  }

  /* Two cards per view on tablet; JS measures the real card width. */
  .consultoria-page #prova .about-carousel-item {
    flex-basis: calc((100% - 20px) / 2);
  }

  .consultoria-page .application-copy {
    position: static;
  }

  .consultoria-page .situation-grid,
  .consultoria-page .process-list,
  .consultoria-page .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .consultoria-page .profile-cards {
    grid-template-columns: 1fr;
  }

  .consultoria-page .profile-cards article + article {
    border-left: 0;
    border-top: 1px solid var(--consultoria-line);
  }

  .consultoria-page .pillar + .pillar {
    border-left: 0;
    border-top: 1px solid var(--consultoria-line);
  }

}

@media (max-width: 640px) {
  .consultoria-page .section-block {
    padding: 64px 0;
  }

  .consultoria-page .hero-actions,
  .consultoria-page .decision-prompt .solid-btn,
  .consultoria-page .solid-btn,
  .consultoria-page .outline-btn {
    width: 100%;
  }

  .consultoria-page .decision-prompt .solid-btn,
  .consultoria-page .final-cta .hero-actions .solid-btn {
    min-width: 0;
  }

  .consultoria-page .hero-content {
    padding: 62px 0 76px;
  }

  /* On phones the hero is a pure pitch — the long application form would dominate
     and previously overflowed the viewport-locked hero. The form lives in the
     dedicated #aplicacao section, one tap away via the floating CTA below. */
  .consultoria-page .hero-application {
    display: none;
  }

  .consultoria-apply-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 39;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: #1d150a;
    font-size: var(--fs-sm);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  /* JS adds .is-hidden while the application form is on screen, so the CTA never
     covers the fields. */
  .consultoria-apply-fab.is-hidden {
    opacity: 0;
    transform: translateY(140%);
    pointer-events: none;
  }

  .consultoria-page .hero-copy h1 {
    font-size: clamp(40px, 12.2vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.018em;
    max-width: 9.4ch;
  }

  .consultoria-page .hero-lede {
    max-width: 31ch;
    font-size: 15px;
  }

  .consultoria-page .micro-proof {
    display: grid;
    gap: 8px;
  }

  .consultoria-page .situation-grid,
  .consultoria-page .process-list,
  .consultoria-page .pillar-grid,
  .consultoria-page .truth-icons,
  .consultoria-page .form-row,
  .consultoria-page .checkbox-options {
    grid-template-columns: 1fr;
  }

  /* One card per view with a small peek of the next one. */
  .consultoria-page #prova .about-carousel-item {
    flex-basis: 82%;
  }

  .consultoria-page .quote-copy,
  .consultoria-page .profile-body {
    padding: 56px 16px;
  }

  .consultoria-page .application-panel {
    padding: 22px;
  }
}

/* ===== Application success moment (U7) =====
   Plays on render of the server-rendered success panel. Authored only under
   no-preference, so reduced-motion users get the panel fully formed (the
   checkmark naturally drawn, content naturally visible). */
@media (prefers-reduced-motion: no-preference) {
  .consultoria-success-panel .success-badge svg path {
    stroke-dasharray: 32;
    stroke-dashoffset: 32;
    animation: success-check-draw var(--dur-slow) var(--ease-out) 0.2s forwards;
  }
  .consultoria-success-panel > * {
    animation: success-rise var(--dur-slow) var(--ease-athletic) backwards;
  }
  .consultoria-success-panel > *:nth-child(1) {
    animation-delay: 0.05s;
  }
  .consultoria-success-panel > *:nth-child(2) {
    animation-delay: 0.15s;
  }
  .consultoria-success-panel > *:nth-child(3) {
    animation-delay: 0.25s;
  }
  .consultoria-success-panel > *:nth-child(4) {
    animation-delay: 0.35s;
  }
  .consultoria-success-panel > *:nth-child(5) {
    animation-delay: 0.45s;
  }
  .consultoria-success-panel > *:nth-child(6) {
    animation-delay: 0.55s;
  }
  .consultoria-success-panel > *:nth-child(7) {
    animation-delay: 0.65s;
  }
}

@keyframes success-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes success-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== Mobile usability fixes (2026-06-29) =====
   The application form is scoped under .consultoria-page, so the touch-target
   and zoom fixes live here (not in site.css). Each selector mirrors the desktop
   rule above, so the mobile media query wins by source order at equal
   specificity. */
@media (max-width: 640px) {
  /* 16px is the iOS Safari threshold below which focusing a field auto-zooms the
     viewport; raise the application inputs to 16px on phones. */
  .consultoria-page .application-panel input:not([type="checkbox"]),
  .consultoria-page .application-panel textarea {
    font-size: 16px;
  }

  /* Comfortable tap target for the preference checkboxes. */
  .consultoria-page .checkbox-options input {
    width: 20px;
    height: 20px;
  }
}
