/* ==========================================================================
   AXIOMA : sections.css
   Componentes por secao. Ordem: filete-marca, header, hero.
   (secoes seguintes serao adicionadas incrementalmente)
   ========================================================================== */

/* ---------- Filete-assinatura fixo no topo (o "filete" da marca) ---------- */
.brand-rule {
  position: fixed; inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  z-index: 120;
}

/* ==========================================================================
   HEADER : fixo, discreto, vira compacto no scroll
   ========================================================================== */
.header {
  position: fixed; top: 3px; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.header.is-scrolled {
  height: 62px;
  border-bottom-color: var(--line);
}
.header__inner {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
}

/* Marca: lockup oficial (hexagono + wordmark), troca a versao por tema */
.brand { display: inline-flex; align-items: center; }
.brand__logo {
  height: 36px; width: auto; display: block;
  transition: height var(--dur) var(--ease);
}
.header.is-scrolled .brand__logo { height: 30px; }
.brand__logo--white { display: none; }
:root[data-theme="dark"] .brand__logo--color { display: none; }
:root[data-theme="dark"] .brand__logo--white { display: block; }

/* Navegacao */
.nav { display: flex; align-items: center; gap: var(--sp-4); }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: .3rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--grad);
  transition: right var(--dur) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--ink-strong); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { right: 0; }

/* Toggle de tema */
.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink-strong);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.theme-toggle:hover { border-color: var(--c-royal); transform: rotate(-12deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav__cta { display: inline-flex; }

/* Botao hamburguer (mobile) */
.nav-toggle { display: none; width: 42px; height: 42px; place-items: center; color: var(--ink-strong); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + var(--sp-6));
  padding-bottom: var(--sp-9);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }

.hero__eyebrow { margin-bottom: var(--sp-5); }

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: var(--sp-5);
}
/* palavra-chave assinada pelo gradiente */
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: var(--sp-7);
  line-height: 1.5;
}
.hero__lead strong { color: var(--ink-strong); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* Hexagono marca d'agua */
.hero__hex {
  position: absolute;
  right: clamp(-8rem, -6vw, -2rem);
  top: 50%;
  translate: 0 -50%;
  width: clamp(340px, 46vw, 660px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  opacity: .9;
}
.hero__hex img { width: 100%; height: 100%; object-fit: contain; }
/* no tema claro, o icone colorido fica muito suave; no dark usamos o branco */
.hero__hex .hex-color { display: block; opacity: .16; }
.hero__hex .hex-white { display: none; opacity: .06; }
:root[data-theme="dark"] .hero__hex .hex-color { display: none; }
:root[data-theme="dark"] .hero__hex .hex-white { display: block; }

/* faixa gradiente fina sob o hero, como divisor */
.hero::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px; background: var(--grad); opacity: .5;
}

/* indicador de rolagem */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.7rem; translate: -50% 0;
  z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue__dot {
  width: 22px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  position: relative;
}
.scroll-cue__dot::after {
  content: ""; position: absolute; left: 50%; top: 7px; translate: -50% 0;
  width: 3px; height: 6px; border-radius: 3px; background: var(--c-royal);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0%,100%{ opacity:0; transform:translate(-50%,0);} 50%{ opacity:1; transform:translate(-50%,7px);} }

/* ==========================================================================
   CABEÇALHO DE SEÇÃO (reutilizável)
   ========================================================================== */
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section-head h2 { margin-top: var(--sp-4); }
.section-lead { margin-top: var(--sp-4); color: var(--muted); font-size: var(--fs-lead); line-height: 1.5; }

/* ==========================================================================
   2. INSTITUTO : missão, visão, valores
   ========================================================================== */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.mv-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
}
.mv-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
}
.mv-card__label {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-strong); margin-bottom: var(--sp-4);
}
.mv-card__text { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }

.values { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.values__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-h3); color: var(--ink-strong); margin-bottom: var(--sp-6);
}
.values__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-5); }
.value { position: relative; border-top: 2px solid var(--line); padding-top: var(--sp-4); }
.value::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 42px; height: 2px; background: var(--grad);
}
.value__num {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  margin-bottom: var(--sp-2);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.value__name {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; color: var(--ink-strong); margin-bottom: var(--sp-2); line-height: 1.2;
}
.value__desc { font-size: var(--fs-small); color: var(--muted); line-height: 1.45; }

/* ==========================================================================
   3. POSICIONAMENTO : problema → solução
   ========================================================================== */
.ps-list { display: grid; gap: var(--sp-5); }
.ps-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ps-row:hover { box-shadow: var(--shadow); border-color: transparent; }
.ps-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-3);
}
.ps-tag--sol { color: var(--link); }
.ps-problem p { color: var(--muted); }
.ps-solution p { color: var(--ink); }
.ps-arrow {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad); color: #fff;
  box-shadow: 0 6px 18px rgba(27, 79, 156, .3);
}
.ps-arrow svg { width: 20px; height: 20px; }

/* ==========================================================================
   4. VERTICAIS : 5 pilares
   ========================================================================== */
.v-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-5); }
.v-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1rem + 1.8vw, 2.2rem);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.v-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.v-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.v-card:hover::before { opacity: 1; }
.v-card__num {
  font-family: var(--font-display); font-weight: 800; font-size: .85rem;
  letter-spacing: .12em; color: var(--muted);
}
.v-card h3 { margin: var(--sp-3) 0; }
.v-card__desc { color: var(--muted); font-size: var(--fs-small); margin-bottom: var(--sp-5); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.chip {
  font-size: .8rem; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: .35rem .8rem;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.v-card:hover .chip { border-color: var(--line-strong); }

/* ==========================================================================
   5. PARA QUEM : segmentos
   ========================================================================== */
.seg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.seg-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2rem);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.seg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.seg-card__icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: var(--sp-5);
  border-radius: 13px; border: 1px solid var(--line-strong); color: var(--ink-strong);
}
.seg-card__icon svg { width: 24px; height: 24px; }
.seg-card h3 { font-size: 1.15rem; margin-bottom: var(--sp-3); }
.seg-card p { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }

/* ==========================================================================
   6. CREDIBILIDADE
   ========================================================================== */
.cred-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.diff-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 1rem + 2vw, 2.75rem) var(--sp-6); }
.diff__num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.diff h3 { font-size: 1.1rem; margin: var(--sp-3) 0 var(--sp-2); }
.diff p { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }

.cred-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 2.5vw, 2.5rem);
}
.partners { display: flex; flex-wrap: wrap; gap: .6rem; margin: var(--sp-4) 0 var(--sp-6); }
.partner {
  font-size: .82rem; font-weight: 500; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 100px; padding: .45rem .9rem;
}
/* Bloco "Como contratar" (substitui os cases, que empresa nova ainda nao tem) */
.contract-note {
  margin-top: var(--sp-5); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.contract-note__title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--ink-strong); margin-bottom: var(--sp-3);
}
.contract-note__lead {
  font-size: var(--fs-small); color: var(--muted); line-height: 1.5; margin-bottom: var(--sp-4);
}
.contract-note__list { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.contract-note__list li {
  position: relative; padding-left: 1.1rem;
  font-size: var(--fs-small); color: var(--ink); line-height: 1.45;
}
.contract-note__list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--grad);
}
.contract-note__list strong { color: var(--ink-strong); }
.contract-note__foot { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   7. CONTATO
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.contact-info h2 { margin-top: var(--sp-4); }
.channels { margin-top: clamp(1.75rem, 1rem + 2vw, 2.5rem); display: grid; gap: var(--sp-2); }
.channel { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) 0; }
.channel__icon {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--line-strong); color: var(--ink-strong);
}
.channel__icon svg { width: 20px; height: 20px; }
.channel__text { display: flex; flex-direction: column; font-weight: 500; color: var(--ink-strong); }
.channel__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

.contact-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-2);
}
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: var(--fs-small); font-family: var(--font-body);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--c-royal); box-shadow: 0 0 0 3px rgba(27, 79, 156, .16);
}
.contact-form .btn { margin-top: var(--sp-2); }
.form-status { margin-top: var(--sp-3); font-size: var(--fs-small); font-weight: 600; color: var(--link); }
.form-note { margin-top: var(--sp-3); font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   MANIFESTO : frase marcante em faixa navy (fixa nos dois temas)
   ========================================================================== */
.manifesto {
  position: relative; overflow: hidden;
  background: #0A1A3C;
  padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  text-align: center;
}
.manifesto::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
}
/* leve brilho do gradiente ao fundo, bem discreto */
.manifesto::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .10;
  background: radial-gradient(60% 120% at 50% 0%, var(--c-royal), transparent 70%);
  pointer-events: none;
}
.manifesto__quote {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 1rem + 3vw, 3rem);
  line-height: 1.22; letter-spacing: -.02em;
  color: #F4F6FA; text-wrap: balance;
  margin-inline: auto; max-width: 22ch;
}

/* ==========================================================================
   RODAPÉ : navy institucional em ambos os temas
   ========================================================================== */
.footer {
  position: relative;
  background: #071022; color: #C7D2E4;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) var(--sp-6);
}
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-6) var(--sp-5);
}
.footer__logo { height: 34px; width: auto; margin-bottom: var(--sp-4); }
.footer__tagline { font-size: var(--fs-small); color: #93A3C0; line-height: 1.6; max-width: 34ch; }
.footer__col h4 {
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #FFFFFF; margin-bottom: var(--sp-4);
}
.footer__col ul { display: grid; gap: var(--sp-2); }
.footer__col li, .footer__col a { font-size: .9rem; color: #A9B6D0; }
.footer__col a { transition: color var(--dur-fast) var(--ease); }
.footer__col a:hover { color: #FFFFFF; }
.footer__legal {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  font-size: .8rem; color: #7C8AA8;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 980px) {
  .cred-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .mv-grid { grid-template-columns: 1fr; }
  .values__list { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-5); }
  .seg-grid { grid-template-columns: 1fr 1fr; }
  .diff-list { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* problema → solução empilha; a seta aponta para baixo */
  .ps-row { grid-template-columns: 1fr; gap: var(--sp-4); justify-items: start; }
  .ps-arrow { rotate: 90deg; }
}

@media (max-width: 460px) {
  .values__list, .seg-grid, .diff-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav-toggle { display: grid; }

  /* menu mobile aberto: painel dropdown com links + CTA */
  .nav.is-open .nav__menu {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-4);
    position: fixed; top: calc(var(--header-h) + 3px); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-5) var(--gutter) var(--sp-6);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__list {
    flex-direction: column; align-items: flex-start; gap: var(--sp-2); width: 100%;
  }
  .nav.is-open .nav__link { font-size: 1.1rem; padding-block: .5rem; }
  .nav.is-open .nav__cta { align-self: flex-start; }
  .hero__hex { opacity: .5; right: -30%; }
}
