/* =========================================================
   GMx — Componentes
   ========================================================= */

/* ---- Botões ---- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), background var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
  white-space: nowrap;
}
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary{
  background: var(--strategic-green);
  color: var(--white);
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}
.btn--primary:hover{ background: var(--emerald); transform: translateY(-1px); box-shadow: var(--shadow-hover); }

.btn--whatsapp{
  background: #25d366;
  color: var(--white);
  border-radius: 50px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}
.btn--whatsapp:hover{ background: #1ebe57; transform: translateY(-1px); box-shadow: var(--shadow-hover); }

.btn--outline{
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy-12);
}
.btn--outline:hover{ border-color: var(--navy); background: var(--navy-05); }

.btn--outline-light{
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline-light:hover{ background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.btn--ghost{
  background: transparent;
  color: var(--emerald);
  padding: 8px 4px;
}
.btn--ghost::after{
  content: "→";
  transition: transform var(--dur-s) var(--ease);
  display: inline-block;
}
.btn--ghost:hover::after{ transform: translateX(4px); }

.btn--lg{ padding: 16px 32px; font-size: 1rem; }

/* ---- Media / placeholders de imagem ---- */
/* Uso: <div class="media" data-image="assets/images/arquivo.jpg" data-label="Descrição"></div>
   O JS tenta carregar a imagem; se não encontrar o arquivo, mostra um placeholder elegante
   para que o time de design saiba exatamente o que vai ali. */
.media{
  position: relative;
  width: 100%;
  border-radius: var(--radius-m);
  overflow: hidden;
  background-color: var(--light-gray);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.media::before{
  content: "";
  display: block;
  padding-top: var(--media-ratio, 66%);
}
.media__label{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: var(--sp-3);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--navy-60);
  background:
    repeating-linear-gradient(135deg, rgba(0,31,63,0.035) 0 12px, transparent 12px 24px);
  transition: opacity var(--dur-s) var(--ease);
}
.media__label svg{ width: 28px; height: 28px; opacity: 0.55; }
.media__label strong{ font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 0.85rem; }
.media.media--loaded .media__label{ opacity: 0; pointer-events: none; }
.media.media--round{ border-radius: 999px; }

/* ---- Cards de teaser (Portfólio) ---- */
.teaser-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.teaser-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease);
}
.teaser-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--emerald-20);
}
.teaser-card__tag{
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
}
.teaser-card h3{ font-size: 1.2rem; }
.teaser-card p{ color: var(--graphite); font-size: 0.95rem; }
.teaser-card__pills{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.teaser-card__pills span{
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy-05);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
}
.teaser-card .btn--ghost{ margin-top: auto; align-self: flex-start; }

@media (max-width: 900px){
  .teaser-grid{ grid-template-columns: 1fr; }
}

/* ---- Stats (Autoridade) ---- */
.stats-row{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
}
.stat{
  text-align: center;
  padding: var(--sp-3) var(--sp-2);
  border-left: 1px solid var(--line);
}
.stat:first-child{ border-left: 0; }
.stat__num{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.4rem);
  color: var(--navy);
  display: block;
  white-space: nowrap;
}
.stat__label{
  font-size: 0.82rem;
  color: var(--graphite);
  margin-top: 4px;
  display: block;
}
.section--navy .stat__num{ color: var(--white); }
.section--navy .stat{ border-left-color: rgba(255,255,255,0.15); }
.section--navy .stat__label{ color: rgba(255,255,255,0.6); }

@media (max-width: 860px){
  .stats-row{ grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-4); }
  .stat{ border-left: 0; border-top: 1px solid var(--line); padding-top: var(--sp-3); }
  .section--navy .stat{ border-top-color: rgba(255,255,255,0.15); }
}

/* ---- Progressão / Jornada (ex.: IDENTIFICAR • DECIDIR • AGIR) ---- */
.progression{
  display: flex;
  align-items: center;
  gap: 0;
}
.progression__step{
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.progression__pill{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--navy-12);
  border-radius: 999px;
  padding: 12px 20px;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.progression__step:nth-child(odd) .progression__pill{
  border-color: var(--emerald-20);
  background: var(--emerald-10);
  color: var(--navy);
}
.progression__arrow{
  flex-shrink: 0;
  width: 28px;
  height: 14px;
  color: var(--navy-60);
}
.progression__arrow svg{ width: 100%; height: 100%; }

@media (max-width: 760px){
  .progression{ flex-direction: column; align-items: center; }
  .progression__step{ flex-direction: column; width: 100%; }
  .progression__pill{ width: 100%; }
  .progression__arrow{ width: 14px; height: 24px; transform: rotate(90deg); }
}

/* ---- Jornada com marcador de etapa atual (Advisory) ---- */
.journey{
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  scrollbar-width: thin;
}
.journey__stage{
  flex: 1 1 0;
  min-width: 140px;
  position: relative;
  padding: var(--sp-3) var(--sp-2) 0;
  text-align: center;
}
.journey__stage::before{
  content: "";
  position: absolute;
  top: 6px; left: 0; right: 0;
  height: 3px;
  background: var(--navy-12);
}
.journey__stage:first-child::before{ left: 50%; }
.journey__stage:last-child::before{ right: 50%; }
.journey__stage.is-highlight::before{ background: var(--emerald); }
.journey__dot{
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy-12);
}
.journey__stage.is-highlight .journey__dot{ border-color: var(--emerald); background: var(--emerald); }
.journey__label{
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--navy);
}

@media (max-width: 700px){
  .journey{ flex-direction: column; overflow-x: visible; gap: var(--sp-3); }
  .journey__stage{ padding-left: 28px; text-align: left; }
  .journey__stage::before{ top: 0; bottom: 0; left: 6px; right: auto; width: 3px; height: auto; }
  .journey__stage:first-child::before{ top: 6px; }
  .journey__stage:last-child::before{ bottom: 6px; }
  .journey__dot{ top: 0; left: 6px; }
  .journey__label{ margin-top: 0; margin-left: 8px; display: inline; }
}

/* ---- Pilares / princípios (linhas definição) ---- */
.pillar-list{
  display: flex;
  flex-direction: column;
}
.pillar-row{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.pillar-row:last-child{ border-bottom: 1px solid var(--line); }
.pillar-row__term{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--emerald);
}
.pillar-row__desc{ color: var(--graphite); }

@media (max-width: 700px){
  .pillar-row{ grid-template-columns: 1fr; gap: 6px; }
}

/* ---- De/Para (transformação) ---- */
.transform{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
}
.transform__card{
  padding: var(--sp-4);
  border-radius: var(--radius-m);
  height: 100%;
}
.transform__card--from{
  background: var(--light-gray);
  border: 1px solid var(--line);
}
.transform__card--to{
  background: var(--navy);
  color: var(--white);
}
.transform__card--to h4{ color: var(--white); }
.transform__tag{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.transform__card--from .transform__tag{ color: var(--graphite); }
.transform__card--to .transform__tag{ color: var(--strategic-green); }
.transform__arrow{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--emerald-10);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}
.transform__arrow svg{ width: 18px; height: 18px; }

@media (max-width: 700px){
  .transform{ grid-template-columns: 1fr; }
  .transform__arrow{ transform: rotate(90deg); margin-inline: auto; }
}

/* ---- Checklist de identificação (bullets com ícone) ---- */
.check-list{ display: flex; flex-direction: column; gap: var(--sp-2); }
.check-list li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.02rem;
  color: var(--navy);
}
.check-list li svg{
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  color: var(--emerald);
}

/* ---- Bloco de assinatura / frase de fechamento ---- */
.signature-line{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  color: var(--navy);
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

/* ---- Grid genérico de 2 colunas ---- */
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (max-width: 860px){
  .two-col{ grid-template-columns: 1fr; gap: var(--sp-4); }
}
.two-col--reverse{ direction: rtl; }
.two-col--reverse > *{ direction: ltr; }
@media (max-width: 860px){
  .two-col--reverse{ direction: ltr; }
}

/* ---- Formulário de Contato Inline (CTA) ---- */
.cta-form {
  margin: 24px auto 0;
  width: 75%;
  grid-column: 1 / span 2;
  grid-row: 4;
}
.cta-form__title {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}
.cta-form__row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}
.cta-form__input {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  border: none;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  outline: none;
}
.cta-form__input::placeholder {
  color: #999;
}
.cta-form__btn {
  background: var(--strategic-green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-s);
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex: 0 0 auto;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}
.cta-form__btn:hover {
  background: var(--emerald);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Fallback para var(--shadow-hover) */
}
.cta-form__terms {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--white);
  font-family: var(--font-body);
}
.cta-form__checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #B6922E;
  flex-shrink: 0;
}
@media (max-width: 700px){
  .cta-form {
    width: 100%;
  }
  .cta-form__row {
    flex-direction: column;
  }
  .cta-form__btn {
    width: 100%;
  }
}
