/* ==========================================================================
   solucoes.css — Página Soluções (hub guarda-chuva NTWeb)
   Overview de todas as soluções organizadas em 3 categorias
   (Telefonia · Conectividade · Hospedagem & Cloud).
   Usa tokens globais (tokens.css). Componentes scoped: .nt-solucoes-*
   Cada card recebe inline --card-accent:<hex> (cor de marca) via template.
   ========================================================================== */

/* ── ANCHOR OFFSET (clear sticky header em jumps #solucoes/#faq/#contato) ──── */
#solucoes,
#faq,
#contato,
.nt-solucoes-section[id] {
  scroll-margin-top: calc(
    var(--nav-height) + var(--services-menu-height) + var(--space-4)
  );
}

/* ── SECTION ──────────────────────────────────────────────────────────────── */
.nt-solucoes-section {
  padding: var(--space-16) 0;
}

/* ── CATEGORIA (Telefonia / Conectividade / Hospedagem) ───────────────────── */
.nt-solucoes-cat {
  margin-top: var(--space-12);
}
.nt-solucoes-cat:first-of-type {
  margin-top: var(--space-10);
}
.nt-solucoes-cat__head {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.nt-solucoes-cat__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: var(--lh-tight);
  color: var(--text-1);
  margin: 0;
}
.nt-solucoes-cat__desc {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-2);
  line-height: var(--lh-body);
  margin: var(--space-2) 0 0;
  max-width: 70ch;
}

/* ── GRID ─────────────────────────────────────────────────────────────────── */
.nt-solucoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start; /* card expandido não estica os irmãos da linha */
}

/* ── CARD ─────────────────────────────────────────────────────────────────── */
.nt-solucoes-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-accent, var(--accent));
  border-radius: var(--radius-lg);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}
.nt-solucoes-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.nt-solucoes-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  /* logo/ícone SVG já vem na cor da marca via currentColor */
  color: var(--card-accent, var(--accent));
  /* tint sutil opcional, sem caixa accent forte (color-mix degrada gracioso) */
  background: color-mix(in srgb, var(--card-accent, var(--accent)) 9%, transparent);
  border-radius: var(--radius-md);
}
.nt-solucoes-card__icon svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
/* logo da marca (em vez do ícone SVG) — usa os logos de images/brands/ */
.nt-solucoes-card__brand {
  display: flex;
  align-items: center;
  min-height: 48px;
}
.nt-solucoes-card__brand img {
  height: 44px;
  width: auto;
  max-width: 100%;
  display: block;
}

.nt-solucoes-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-1);
  margin: 0;
}
.nt-solucoes-card__tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--lh-body);
  margin: 0;
}

/* ── "Como funciona" + "Workflow" blocks dentro do card ───────────────────── */
.nt-solucoes-how,
.nt-solucoes-workflow {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.nt-solucoes-how__title,
.nt-solucoes-workflow__title {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  /* labels mono discretos — text-3 garante contraste em qualquer card-accent */
  color: var(--text-3);
  margin: 0;
}

.nt-solucoes-how__list,
.nt-solucoes-workflow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.nt-solucoes-how__list li,
.nt-solucoes-workflow__list li {
  position: relative;
  padding-left: var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--text-2);
}
/* marcador custom (traço curto na cor da marca) — legível, sem bullets nativos */
.nt-solucoes-how__list li::before,
.nt-solucoes-workflow__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--card-accent, var(--accent));
}

/* ── CARD CTA (ghost full-width no rodapé do card) ────────────────────────── */
.nt-solucoes-card__cta {
  margin-top: auto;
  width: 100%;
}
/* fallback de skin caso o template não traga .nt-btn .nt-btn--ghost */
.nt-solucoes-card__cta:not(.nt-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  background: transparent;
  color: var(--accent-on-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.nt-solucoes-card__cta:not(.nt-btn):hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* Detalhe recolhível do card (<details> "Saiba mais") — encurta o scroll */
.nt-solucoes-card__details {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}
.nt-solucoes-card__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  cursor: pointer;
  list-style: none; /* remove marcador nativo (Firefox) */
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-on-light);
}
.nt-solucoes-card__more::-webkit-details-marker {
  display: none;
}
.nt-solucoes-card__more-chevron {
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}
.nt-solucoes-card__details[open] .nt-solucoes-card__more-chevron {
  transform: rotate(180deg);
}
.nt-solucoes-card__detail-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

/* ── FAQ (<details>/<summary> accordion) ──────────────────────────────────── */
.nt-solucoes-faq-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 880px;
  margin-inline: auto;
}
.nt-solucoes-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.nt-solucoes-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  list-style: none; /* remove marcador nativo (Firefox) */
}
/* remove marcador nativo (WebKit) */
.nt-solucoes-faq-q::-webkit-details-marker {
  display: none;
}
.nt-solucoes-faq-q:hover {
  background: var(--accent-soft);
}
/* chevron inline (SVG no markup) — gira 180° quando o item abre */
.nt-solucoes-faq-chevron {
  flex-shrink: 0;
  color: var(--accent-on-light);
  transform-origin: center;
  transition: transform var(--duration-fast) var(--ease-out);
}
.nt-solucoes-faq-item[open] .nt-solucoes-faq-q .nt-solucoes-faq-chevron {
  transform: rotate(180deg);
}
.nt-solucoes-faq-a {
  padding: 0 var(--space-5) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--lh-body);
}
.nt-solucoes-faq-a p {
  margin: 0 0 var(--space-3);
}
.nt-solucoes-faq-a p:last-child {
  margin-bottom: 0;
}

/* ── CTA FINAL ────────────────────────────────────────────────────────────── */
.nt-solucoes-cta {
  padding: var(--space-16) 0;
  text-align: center;
  background: transparent;
  border-top: 1px solid var(--border);
}
.nt-solucoes-cta__inner {
  max-width: 60ch;
  margin-inline: auto;
}
.nt-solucoes-cta__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: var(--lh-tight);
  color: var(--text-1);
  margin: var(--space-3) 0 0;
}
.nt-solucoes-cta__sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-2);
  line-height: var(--lh-body);
  margin: var(--space-4) auto 0;
  max-width: 56ch;
}
.nt-solucoes-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* ── FOCUS-VISIBLE (todos os interativos) ─────────────────────────────────── */
.nt-solucoes-card a:focus-visible,
.nt-solucoes-card__cta:focus-visible,
.nt-solucoes-card__more:focus-visible,
.nt-solucoes-faq-q:focus-visible,
.nt-solucoes-faq-item summary:focus-visible,
.nt-solucoes-cta a:focus-visible {
  outline: 2px solid var(--accent-on-light);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nt-solucoes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .nt-solucoes-grid {
    grid-template-columns: 1fr;
  }
}

/* ── REDUCED MOTION ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nt-solucoes-card,
  .nt-solucoes-faq-q,
  .nt-solucoes-faq-chevron,
  .nt-solucoes-card__more-chevron,
  .nt-solucoes-card__cta {
    transition: none !important;
    animation: none !important;
  }
  .nt-solucoes-card:hover {
    transform: none;
  }
}
