/* ============================================================
   MAARTORI · Quem Somos v2 (rebuild sobre design system index.html)
   Correções rodada 2:
   - Hero 100svh com gutter visível e conteúdo centralizado vertical
   - qsNumbers: container + gutter
   - qsHist/qsDif: iconografia Tabler antes dos h2 + cards com círculo sage
   - qsDif direita: imagem topo com filter sage
   - Contraste H2 Fraunces (peso + cor escura)
   - data-reveal fade-in
   ============================================================ */

/* ---------------- MENU FLUTUANTE (pílula glass-blur · claro/escuro) ---------------- */
.floatnav {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 22px;
  background: rgba(15,17,20,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  box-shadow:
    0 12px 40px rgba(15,17,20,0.30),
    0 2px 8px rgba(15,17,20,0.15);
  max-width: calc(100vw - 32px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.floatnav-logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-l);
  padding-right: 18px;
  margin-right: 6px;
  position: relative;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.floatnav-logo::after {
  content: '';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px;
  background: rgba(255,255,255,0.20);
}
.floatnav-links { display: flex; align-items: center; gap: 2px; }
.floatnav-link {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.floatnav-link:hover { background: var(--sage-15); color: var(--white); text-shadow: none; }
.floatnav-link[aria-current="page"] { background: var(--sage-d); color: var(--white); text-shadow: none; }

.floatnav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--sage-d);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(74,85,50,0.40);
}
.floatnav-cta:hover {
  background: var(--sage);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(74,85,50,0.50);
}
.floatnav-cta i { font-size: 14px; }

.floatnav-hamburger { display: none; }

/* Tema CLARO · JS adiciona .floatnav--on-light quando o menu passa por seção clara */
.floatnav--on-light {
  background: var(--deep);
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    0 12px 40px rgba(15,17,20,0.25),
    0 2px 8px rgba(15,17,20,0.10);
}

@media (max-width: 960px) {
  .floatnav { padding: 8px 8px 8px 16px; top: 14px; }
  .floatnav-logo { font-size: 15px; padding-right: 12px; }
  .floatnav-logo::after { display: none; }
  .floatnav-links { display: none; }
  .floatnav-cta { display: none; }
  .floatnav-hamburger {
    display: flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--deep); color: var(--white);
    border: none; border-radius: 50%;
    font-size: 18px; cursor: pointer;
  }
}

/* ============================================================
   QS HERO · 100svh, container com gutter, conteúdo centralizado
   ============================================================ */
.qsHero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100svh;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}
.qsHero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(151,165,121,0.10), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(110,123,82,0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.qsHero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;        /* centro vertical */
  padding: 120px var(--gutter) 80px var(--gutter);
  position: relative;
  z-index: 1;
  max-width: 100%;                 /* respeita o gutter em vez de margin-left:auto */
  width: 100%;
}
.qsHero-right {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  z-index: 1;
}
.qsHero .text-hero {
  color: var(--white);
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-weight: 500;                 /* mais peso p/ legibilidade */
  font-variation-settings: 'opsz' 144;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.qsHero .label { color: var(--sage-l); }
.qsHero .label .label-dot { background: var(--sage-l); }
.qsHero .hero-sub {
  color: var(--on-dark-secondary);
  margin-bottom: 28px;
  max-width: 520px;
  line-height: var(--lh-body);
  font-size: 17px;
}
.qsHero-note {
  max-width: 420px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 16px 20px;
}
.qsHero-note p { color: var(--on-dark-secondary); margin: 0; }
.qsHero-note strong { color: var(--white); }

/* FOTO REAL do Gilmar como background com overlay gradient */
.qsHero-photo {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(15,17,20,0.55) 0%, rgba(15,17,20,0.20) 35%, rgba(74,85,50,0.35) 100%),
    url('../img/gilmar.png') center/cover no-repeat;
  filter: saturate(0.92) contrast(1.04);
}
.qsHero-photo-credit {
  position: absolute; right: 16px; bottom: 12px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); font-weight: 500;
  z-index: 2;
}

@media (max-width: 960px) {
  .qsHero { grid-template-columns: 1fr; min-height: auto; }
  .qsHero-right { min-height: 360px; }
  .qsHero-left { padding: 110px var(--gutter) var(--space-5); margin-left: 0; }
}

/* ============================================================
   QS NUMBERS · Fraunces + sage accent + counters animados
   ============================================================ */
.qsNumbers { border-bottom: 1px solid var(--gray-100); }
.qsNumbers .container { padding: var(--space-5) var(--gutter); }
.qsNumbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.qsNum {
  padding: var(--space-3) var(--space-4);
  border-right: 1px solid var(--gray-100);
}
.qsNum:first-child { padding-left: 0; }
.qsNum:last-child { border-right: none; padding-right: 0; }
.qsNum-val {
  font-family: var(--font-display);
  font-weight: 500;                 /* mais peso p/ contraste */
  font-variation-settings: 'opsz' 60;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: var(--deep);
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 2px;
  margin: 0 0 10px;
}
.qsNum-val .num-suf {
  font-size: 0.5em;
  color: var(--sage-d);
  font-weight: 700;
  display: inline-flex; align-items: center;
}
.qsNum-val .num-suf i { font-size: 1.6em; line-height: 1; }
.qsNum-label {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  .qsNumbers-grid { grid-template-columns: repeat(2, 1fr); }
  .qsNum { border-bottom: 1px solid var(--gray-100); }
  .qsNum:nth-child(odd) { border-right: 1px solid var(--gray-100); padding-right: var(--space-3); }
  .qsNum:nth-child(even) { border-right: none; padding-left: var(--space-3); }
  .qsNum:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============================================================
   QS SECTION · base para qsHist / qsSection método / qsDif / qsCtaBand
   ============================================================ */
.qsSection { padding: var(--space-7) 0; }
.qsSection .container { padding-left: var(--gutter); padding-right: var(--gutter); }
.qsSection h2 {
  font-family: var(--font-display);
  font-weight: 500;                 /* contraste: 500 em vez de 400 */
  font-variation-settings: 'opsz' 144;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--deep);
  margin: 14px 0 18px;
}
.qsSection h2.text-light { color: var(--white); }
.qsSection .text-muted { color: var(--gray-700); line-height: var(--lh-body); font-size: 16px; }
.qsSection .label { color: var(--sage-d); display: inline-flex; align-items: center; gap: 8px; }
.qsSection .label .label-dot { background: var(--sage-d); }
.qsSection .qsP { margin-bottom: 14px; }

/* Label eyebrow com icone Tabler antes. Padroniza qsHist/qsDif */
.qsEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-d);
  margin-bottom: 4px;
}
.qsEyebrow i {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sage-d);
  color: var(--white);
  border-radius: 50%;
  font-size: 16px;
}
.qsEyebrow--light { color: var(--sage-l); }
.qsEyebrow--light i { background: var(--sage-l); color: var(--deep); }

/* Highlight quote Fraunces italic */
.qsSection .highlight-block {
  border-left: 2px solid var(--sage-d);
  padding: 8px 0 8px 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 30;
  font-size: 20px;
  font-style: italic;
  color: var(--deep);
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin-top: 28px;
}

/* Grid-2 com gap consistente e responsivo */
.qsGrid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 960px) {
  .qsGrid-2 { grid-template-columns: 1fr; gap: var(--space-5); }
  .qsSection { padding: var(--space-6) 0; }
}

/* ============================================================
   QS HIST · layout assimétrico: ícone + h2 + parágrafos curtos
   ============================================================ */
.qsHist-block { display: flex; flex-direction: column; gap: 14px; }
.qsHist-block p.qsP { font-size: 16px; line-height: 1.65; color: var(--gray-700); }

/* ============================================================
   QS DIF · coluna esquerda: cards com ícone em círculo sage-d
   ============================================================ */
.qsCards { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.qsCard {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.qsCard:hover {
  border-color: var(--sage-30);
  box-shadow: 0 10px 28px rgba(74,85,50,0.12);
  transform: translateY(-2px);
}
.qsCard-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sage-d);
  color: var(--white);
  border-radius: 50%;
  font-size: 22px;
  flex-shrink: 0;
}
.qsCard-body { display: flex; flex-direction: column; gap: 4px; }
.qsCard h3 {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  color: var(--deep);
  margin: 0;
}
.qsCard p { margin: 0; color: var(--gray-700); line-height: 1.55; font-size: 15px; }
.qsCard .label { color: var(--sage-d); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin: 0; }
.qsCard .qsCard-strong {
  font-weight: 600;
  margin: 4px 0 0;
  color: var(--deep);
  font-size: 16px;
}
.qsCard .text-body-sm { font-size: 13px; color: var(--gray-700); }

/* Imagem topo (Formação) · foto do Gilmar com overlay sage + texto */
.qsDif-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(74,85,50,0.45), rgba(15,17,20,0.30)),
    url('../img/gilmar.png') center/cover no-repeat;
  filter: saturate(0.85) contrast(1.05) hue-rotate(-6deg);
}
.qsDif-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,17,20,0.55) 100%);
}
.qsDif-image-tag {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 36;
  font-style: italic;
  color: var(--white);
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 80%;
}
.qsDif-image-tag small {
  display: block;
  font-family: var(--font);
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-l);
  margin-bottom: 4px;
}

/* ============================================================
   CTA Band em bg-deep
   ============================================================ */
.qsCtaBand {
  background: transparent;
  padding: var(--space-5) 0;
}
.qsCtaBand h2 { color: var(--white); }
.qsCtaBand p { color: var(--on-dark-secondary); }

/* ============================================================
   Reveal · fade-up suave disparado por data-reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
