/* ═══════════════════════════════════════════════════════════════
   SOLUTIONS PAGE — Página de soluções com layout de capítulos
   Cada solução é uma página filha do nó "Soluções" no Umbraco
   e ocupa uma faixa full-width com imagem de fundo
   ═══════════════════════════════════════════════════════════════ */


/* ─── OPENING ─────────────────────────────────────────────────── */
/* Hero de introdução da página de listagem de soluções */
.sol-opening {
  position: relative;
  background: #0D0D0D;
  color: #ffffff;
  padding-top: calc(var(--nav-height) + 5rem); /* compensa a nav fixa */
  padding-bottom: 5rem;
  overflow: hidden;
}
/* gradiente radial laranja subtil no canto direito */
.sol-opening__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(232,119,34,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.sol-opening__inner { position: relative; z-index: 1; } /* acima do gradiente */
.sol-opening__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem); /* fluido entre 48px e 112px */
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 0.75rem 0 1.5rem;
}
.sol-opening__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 560px;
}


/* ─── CHAPTERS ────────────────────────────────────────────────── */
/* Faixas full-width empilhadas — cada uma é uma solução */
.sol-chapters {
  display: block;
  width: 100%;
}

/* cada capítulo é um link <a> full-width */
.sol-chapter {
  position: relative;
  display: block;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  text-decoration: none;
}
/* alternância de fundo: escuro e claro */
.sol-chapter--dark  { background: #1A1A1A; }
.sol-chapter--light { background: #F5F4F0; }

/* número fantasma enorme em background — ex: "01", "02" */
.sol-chapter__ghost-num {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(12rem, 20vw, 18rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}
/* em fundos escuros: número à direita, branco transparente */
.sol-chapter--dark  .sol-chapter__ghost-num { color: #ffffff; opacity: 0.04; right: 4%; }
/* em fundos claros: número à esquerda, preto transparente */
.sol-chapter--light .sol-chapter__ghost-num { color: #000000; opacity: 0.04; left: 4%; }
/* hover: número fica ligeiramente mais visível */
.sol-chapter:hover .sol-chapter__ghost-num  { opacity: 0.08; }

/* imagem de fundo que "sangra" de um dos lados */
.sol-chapter__img {
  position: absolute;
  top: 0; bottom: 0;
  width: 42%;                    /* ocupa 42% da largura do capítulo */
  background-size: cover;
  background-position: center;
  z-index: 1;
}
/* imagem à direita — mascara a margem esquerda para fundir com o fundo */
.sol-chapter__img--right {
  right: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
  mask-image: linear-gradient(to right, transparent 0%, black 40%);
  opacity: 0.3;                  /* subtil por defeito */
  transition: opacity 0.5s ease;
}
/* imagem à esquerda — mascara a margem direita */
.sol-chapter__img--left {
  left: 0;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 40%);
  mask-image: linear-gradient(to left, transparent 0%, black 40%);
  opacity: 0.3;
  transition: opacity 0.5s ease;
}
/* hover: imagem fica mais visível */
.sol-chapter:hover .sol-chapter__img { opacity: 0.5; }

/* corpo do conteúdo (número + título + desc + CTA) */
.sol-chapter__body {
  position: relative;
  z-index: 2;                    /* acima da imagem e do número fantasma */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding-block: 4rem;
  gap: 1rem;
}
/* conteúdo à esquerda: padding à direita deixa espaço para a imagem */
.sol-chapter__body--left  { padding-right: 46%; }
/* conteúdo à direita: padding à esquerda deixa espaço para a imagem */
.sol-chapter__body--right { padding-left: 46%; }

/* número da solução em laranja */
.sol-chapter__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  display: block;
}

/* título da solução */
.sol-chapter__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.sol-chapter--dark  .sol-chapter__title { color: #ffffff; }
.sol-chapter--light .sol-chapter__title { color: #1A1A1A; }

/* descrição curta */
.sol-chapter__desc {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 460px;
  margin: 0;
}
.sol-chapter--dark  .sol-chapter__desc { color: rgba(255,255,255,0.55); }
.sol-chapter--light .sol-chapter__desc { color: #6B6860; }

/* link "Explorar →" com gap animado */
.sol-chapter__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 0.5rem;
  transition: gap 0.3s ease;
}
.sol-chapter:hover .sol-chapter__cta { gap: 0.9rem; } /* seta afasta-se do texto */

/* barra laranja vertical que cresce do fundo ao hover */
.sol-chapter::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--color-accent);
  transform: scaleY(0);          /* começa com escala zero (invisível) */
  transform-origin: bottom;      /* cresce a partir do fundo */
  transition: transform 0.4s ease;
  z-index: 3;
}
.sol-chapter:hover::after { transform: scaleY(1); } /* revela a barra ao hover */

/* mobile: remove as imagens e simplifica o layout */
@media (max-width: 768px) {
  .sol-chapter { min-height: auto; }
  .sol-chapter__body { min-height: auto; padding-block: 3rem; }
  .sol-chapter__body--left  { padding-right: 1.5rem; }
  .sol-chapter__body--right { padding-left: 1.5rem; }
  .sol-chapter__img { display: none; } /* esconde imagem em mobile */
}


/* ─── SOLUÇÃO INDIVIDUAL — editorial escuro ─────────────────── */
/* Página de detalhe de cada solução — fundo muito escuro */
.sol-detail { background: #0D0D0D !important; min-height: 100vh; color: #ffffff; }

/* hero da solução individual */
.sol-detail__hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5rem;
  overflow: hidden;
}
/* gradiente radial laranja no topo */
.sol-detail__hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(232,119,34,0.12) 0%, transparent 60%);
}
.sol-detail__hero-inner {
  position: relative;
  z-index: 1;
}
/* botão "← Soluções" de regresso */
.sol-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4); /* muito discreto */
  margin-bottom: 2.5rem;
  transition: color 0.3s ease;
}
.sol-detail__back:hover { color: var(--color-accent); }
/* título principal da solução */
.sol-detail__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 800px;
  margin-bottom: 1.5rem;
}
.sol-detail__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  line-height: 1.7;
}

/* linha separadora acima da lista de features */
.sol-detail__features {
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* cada feature: linha completa clicável */
.sol-feat {
  display: block;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: background 0.4s ease;
}
.sol-feat:hover { background: rgba(255,255,255,0.03); } /* fundo muito subtil */

/* grelha interior: número grande + conteúdo */
.sol-feat__inner {
  display: grid;
  grid-template-columns: 120px 1fr; /* coluna do número + coluna do texto */
  gap: 2rem;
  align-items: center;
  padding-block: 3.5rem;            /* muito espaçado — layout editorial */
}

.sol-feat__left {
  display: flex;
  align-items: flex-start;
  padding-top: 0.5rem;
}
/* número enorme semi-transparente que fica laranja ao hover */
.sol-feat__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: rgba(255,255,255,0.06);     /* quase invisível por defeito */
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.4s ease;
}
.sol-feat:hover .sol-feat__num { color: var(--color-accent); } /* laranja ao hover */

.sol-feat__right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
/* título da feature */
.sol-feat__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  transition: color 0.3s ease;
}
.sol-feat:hover .sol-feat__title { color: #ffffff; } /* fica totalmente branco */
/* descrição da feature */
.sol-feat__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
  transition: color 0.3s ease;
}
.sol-feat:hover .sol-feat__desc { color: rgba(255,255,255,0.6); }
/* CTA "Saber mais" que aparece ao hover */
.sol-feat__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0;                        /* invisível por defeito */
  transform: translateX(-8px);       /* deslocado para a esquerda */
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sol-feat:hover .sol-feat__cta {
  opacity: 1;
  transform: translateX(0);          /* desliza para a posição correcta */
}

/* linha laranja vertical que cresce do topo ao hover */
.sol-feat__line {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;             /* cresce a partir do topo */
  transition: transform 0.35s ease;
}
.sol-feat:hover .sol-feat__line { transform: scaleY(1); }

@media (max-width: 768px) {
  .sol-feat__inner { grid-template-columns: 60px 1fr; gap: 1rem; padding-block: 2.5rem; }
  .sol-feat__num { font-size: 2.5rem; }
  .sol-feat__cta { opacity: 1; transform: none; } /* sempre visível em mobile */
}


/* ─── SOLUÇÃO — TOPIC PANEL LAYOUT ─────────────────────────── */
/* Layout de painel com sidebar de abas — usado nas soluções utilitárias
   Paleta: hero escuro · sidebar bege · painel branco */

.sol-utility {
  background: #0D0D0D !important; /* garante fundo escuro mesmo com herança */
  min-height: 100vh;
}

/* hero da solução utilitária */
.sol-utility__hero {
  position: relative;
  background: #0D0D0D;
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 5rem;
  overflow: hidden;
}
/* dois gradientes radiais: azul à direita + laranja à esquerda */
.sol-utility__hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(0,110,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(232,119,34,0.10) 0%, transparent 50%);
  pointer-events: none;
}
/* link de regresso */
.sol-utility__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2.5rem;
  transition: color 0.3s ease;
}
.sol-utility__back:hover { color: var(--color-accent); }
.sol-utility__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}
.sol-utility__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.45);
  max-width: 560px;
  line-height: 1.8;
}

/* faixa de transição hero→body: linha de gradiente laranja→azul */
.sol-utility__bridge {
  height: 6px;
  background: linear-gradient(90deg, var(--color-accent) 0%, #006EFF 100%);
}

/* corpo da página: fundo claro */
.sol-utility__body {
  background: var(--color-bg);
  width: 100%;
}
/* layout sidebar + painel */
.sol-utility__layout {
  display: grid;
  grid-template-columns: 290px 1fr; /* sidebar fixa + painel ocupa o resto */
  min-height: 70vh;
}

/* sidebar de abas (tabs) */
.sol-utility__sidebar {
  background: var(--color-bg-alt);          /* bege ligeiramente mais escuro */
  border-right: 1px solid rgba(0,0,0,0.08); /* separador subtil */
  display: flex;
  flex-direction: column;
  padding: 2.5rem 0;
  gap: 0;
}
/* cada aba da sidebar */
.sol-utility__tab {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  text-align: left;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  border: none;
  border-left: 3px solid transparent;  /* reserva espaço para o indicador activo */
  width: 100%;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.sol-utility__tab:hover {
  background: rgba(0,0,0,0.04);
  color: var(--color-text);
}
/* aba activa: fundo branco + borda laranja à esquerda */
.sol-utility__tab.is-active {
  background: #ffffff;
  color: var(--color-dark);
  border-left-color: var(--color-accent);
}
/* número da aba em azul discreto */
.sol-utility__tab-num {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #006EFF;
  opacity: 0.45;
  flex-shrink: 0;
  margin-top: 0.2rem;
  transition: opacity 0.25s ease, color 0.25s ease;
}
/* número da aba activa: laranja e opaco */
.sol-utility__tab.is-active .sol-utility__tab-num {
  opacity: 1;
  color: var(--color-accent);
}
/* nome da aba */
.sol-utility__tab-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

/* área branca dos painéis de conteúdo */
.sol-utility__panels {
  background: #ffffff;
  position: relative;
  padding: 4rem 4rem;
  overflow: hidden;
}
/* cada painel está escondido por defeito — só o activo aparece */
.sol-utility__panel {
  display: none;
  position: relative;
}
/* painel activo: fade + subida com animação */
.sol-utility__panel.is-active {
  display: block;
  animation: solPanelIn 0.4s ease both;
}
/* keyframe local — só usado nestes painéis */
@keyframes solPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* número fantasma do painel em azul subtil */
.sol-utility__panel-ghost {
  position: absolute;
  top: -1.5rem;
  right: 0;
  font-family: var(--font-display);
  font-size: clamp(11rem, 20vw, 18rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #006EFF;
  opacity: 0.09;
  pointer-events: none;
  user-select: none;
}
/* conteúdo do painel com largura máxima para leitura confortável */
.sol-utility__panel-content {
  position: relative;
  z-index: 1;             /* acima do número fantasma */
  max-width: 660px;
}
.sol-utility__panel-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}
.sol-utility__panel-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* bloco de estatística opcional com borda laranja à esquerda */
.sol-utility__stat {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-accent); /* acento laranja */
  background: #FFF8F3;                         /* laranja muito claro */
}
/* número grande da estatística */
.sol-utility__stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  white-space: nowrap;       /* impede quebra de linha no número */
}
.sol-utility__stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 300px;
}

/* lista de funcionalidades com pontos de gradiente laranja→azul */
.sol-utility__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.sol-utility__feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: color 0.2s ease;
}
.sol-utility__feature:hover { color: var(--color-accent); }
/* ponto decorativo laranja→azul gerado com ::before */
.sol-utility__feature::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #006EFF);
}

/* mobile: sidebar passa a barra horizontal scrollável no topo */
@media (max-width: 900px) {
  .sol-utility__layout { grid-template-columns: 1fr; }
  .sol-utility__sidebar {
    flex-direction: row;                /* abas lado a lado */
    overflow-x: auto;                  /* scroll horizontal */
    -webkit-overflow-scrolling: touch; /* scroll suave em iOS */
    padding: 0;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    scrollbar-width: none;             /* esconde scrollbar no Firefox */
  }
  .sol-utility__sidebar::-webkit-scrollbar { display: none; } /* esconde scrollbar no Chrome */
  .sol-utility__tab {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    min-width: 120px;
    border-left: none;
    border-bottom: 3px solid transparent; /* indicador activo passa para baixo */
    text-align: center;
  }
  .sol-utility__tab.is-active {
    border-bottom-color: var(--color-accent);
    border-left-color: transparent;
    background: rgba(232,119,34,0.05);
  }
  .sol-utility__panels { padding: 2.5rem 1.5rem; }
  .sol-utility__features { grid-template-columns: 1fr; }
  .sol-utility__panel-ghost { display: none; } /* esconde o número fantasma em mobile */
}
