/* ============================================================
   Quint — marketing.css
   Estilos das páginas de marketing: home, /solucoes, landings de
   serviço, contato, obrigado e 404. Só tokens --q-* de brand.css.
   ============================================================ */

/* ---------- Hero ---------- */
.q-hero {
  padding: 88px 0 64px;
}
.q-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .q-hero-grid { grid-template-columns: 1fr; }
  .q-hero { padding: 56px 0 40px; }
}
.q-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--q-success-soft);
  color: var(--q-success-dot);
  border: 1px solid rgba(32, 217, 100, .35);
  border-radius: 999px;
  padding: 6px 14px;
  font: 600 12px/16px var(--q-font);
  margin-bottom: 20px;
}
.q-hero-badge::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--q-success-dot);
  box-shadow: 0 0 0 3px rgba(32, 217, 100, .25);
}
.q-hero h1 {
  font-size: 48px;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--q-white);
}
.q-hero h1 .is-accent { color: var(--q-blue-200); }
@media (max-width: 640px) { .q-hero h1 { font-size: 32px; } }
.q-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.72);
  max-width: 46ch;
  margin-bottom: 32px;
}
.q-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ilustração de racks (SVG inline, sem foto/stock) */
.q-hero-art {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.q-hero-art svg { width: 100%; max-width: 420px; height: auto; }
.q-rack-led { animation: q-blink 2.6s ease-in-out infinite; }
.q-rack-led.q-led-2 { animation-delay: .6s; }
.q-rack-led.q-led-3 { animation-delay: 1.2s; }
.q-rack-led.q-led-4 { animation-delay: 1.8s; }
@keyframes q-blink {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

/* ---------- Stats ---------- */
.q-stats {
  background: var(--q-surface);
  border-bottom: 1px solid var(--q-border);
}
.q-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
}
@media (max-width: 640px) {
  .q-stats-row { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
}
.q-stat { display: flex; align-items: center; gap: 16px; }
.q-stat-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--q-accent-soft);
  color: var(--q-blue-900);
  display: flex; align-items: center; justify-content: center;
}
.q-stat-icon svg { width: 22px; height: 22px; }
.q-stat-number {
  font: 700 30px/1 var(--q-font);
  color: var(--q-blue-900);
  display: block;
}
.q-stat-label { color: var(--q-text-subtle); font-size: 14px; margin: 4px 0 0; }

/* ---------- Carrossel de ofertas ---------- */
.q-carousel { position: relative; }
.q-carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -4px;
  padding: 4px;
}
.q-carousel-viewport::-webkit-scrollbar { display: none; }
.q-carousel-track {
  display: flex;
  gap: 20px;
}
.q-offer-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: var(--q-radius);
  overflow: hidden;
  background: var(--q-ink-900);
  border: 1px solid var(--q-ink-800);
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--q-white);
  transition: transform 150ms, border-color 150ms;
}
.q-offer-card:hover { transform: translateY(-2px); border-color: var(--q-accent); }
@media (min-width: 640px) { .q-offer-card { flex: 0 0 calc(50% - 10px); } }
@media (min-width: 980px) { .q-offer-card { flex: 0 0 calc(33.333% - 14px); } }
.q-offer-card-media {
  position: relative;
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 30% 20%, rgba(41,135,249,.35), transparent 60%), linear-gradient(135deg, var(--q-blue-900), var(--q-ink-950));
}
.q-offer-card-media svg { width: 44px; height: 44px; color: var(--q-blue-200); }
.q-offer-card-badge { position: absolute; top: 12px; right: 12px; }
.q-offer-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.q-offer-card-body h3 { color: var(--q-white); font-size: 19px; margin-bottom: 8px; }
.q-offer-card-body p { color: rgba(255,255,255,.68); font-size: 14px; flex: 1; margin-bottom: 16px; }
.q-offer-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--q-blue-200); font: 600 14px/1 var(--q-font);
}
.q-offer-card:hover .q-offer-card-link { color: var(--q-white); }

.q-carousel-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--q-border);
  background: var(--q-surface);
  color: var(--q-text);
  cursor: pointer;
  transition: all 150ms;
}
.q-carousel-arrow:hover { border-color: var(--q-accent); color: var(--q-accent); }
.q-carousel-arrows { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 20px; }
.q-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.q-carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: var(--q-border-strong);
  cursor: pointer; padding: 0;
  transition: background 150ms, transform 150ms;
}
.q-carousel-dot:hover { background: var(--q-accent); }
.q-carousel-dot.is-active { background: var(--q-accent); transform: scale(1.25); }

/* ---------- Processo (timeline on-scroll) ---------- */
.q-process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: q-step;
}
@media (max-width: 900px) { .q-process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .q-process-list { grid-template-columns: 1fr; } }
.q-process-step {
  counter-increment: q-step;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.q-process-step.is-visible { opacity: 1; transform: translateY(0); }
.q-process-step:nth-child(2) { transition-delay: 80ms; }
.q-process-step:nth-child(3) { transition-delay: 160ms; }
.q-process-step:nth-child(4) { transition-delay: 240ms; }
.q-process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--q-accent-soft);
  color: var(--q-blue-900);
  font: 700 16px/1 var(--q-font);
  margin-bottom: 16px;
}
.q-process-num::before { content: counter(q-step); }
.q-process-step h3 { font-size: 17px; margin-bottom: 8px; }
.q-process-step p { color: var(--q-text-subtle); font-size: 14px; margin: 0; }

/* ---------- Consultoria (home) ---------- */
.q-consult {
  background: var(--q-bg-subtle);
}
.q-consult-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .q-consult-grid { grid-template-columns: 1fr; } }
.q-consult-form { display: grid; gap: 0; }
.q-consult-form .q-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 560px) { .q-consult-form .q-field-row { grid-template-columns: 1fr; } }

/* ---------- Landings de serviço ---------- */
.q-service-hero {
  background: var(--q-surface);
  border-bottom: 1px solid var(--q-border);
  padding: 56px 0;
}
.q-service-hero .q-eyebrow { margin-bottom: 8px; }
.q-service-hero h1 { font-size: 36px; margin-bottom: 16px; }
.q-service-hero p { color: var(--q-text-muted); max-width: 62ch; font-size: 16px; margin: 0; }

.q-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .q-benefits-grid { grid-template-columns: 1fr; } }

.q-note-panel {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--q-accent-soft);
  border: 1px solid rgba(41,135,249,.25);
  border-radius: var(--q-radius);
  padding: 20px 24px;
}
.q-note-panel p { margin: 0; color: var(--q-blue-900); font-size: 14px; max-width: 56ch; }

/* ---------- FAQ accordion ---------- */
.q-faq { max-width: 760px; }
.q-faq-item {
  border-bottom: 1px solid var(--q-border);
}
.q-faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer;
  padding: 20px 4px;
  text-align: left;
  font: 600 16px/1.4 var(--q-font);
  color: var(--q-text);
}
.q-faq-question:hover { color: var(--q-accent); }
.q-faq-question svg { flex-shrink: 0; width: 20px; height: 20px; transition: transform 200ms; color: var(--q-text-subtle); }
.q-faq-question svg.is-open { transform: rotate(180deg); }
.q-faq-answer { padding: 0 4px 20px; color: var(--q-text-muted); font-size: 15px; max-width: 68ch; }
.q-faq-answer a { text-decoration: underline; }

.q-cta-band {
  margin-top: 56px;
  text-align: center;
  padding: 48px 24px;
  background: var(--q-ink-900);
  border-radius: var(--q-radius);
  color: var(--q-white);
}
.q-cta-band h2 { color: var(--q-white); margin-bottom: 8px; }
.q-cta-band p { color: rgba(255,255,255,.7); margin-bottom: 24px; }

/* ---------- Soluções (filtros) ---------- */
.q-chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.q-solucoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .q-solucoes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .q-solucoes-grid { grid-template-columns: 1fr; } }
.q-solucao-card {
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.q-solucao-media {
  position: relative;
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 30% 20%, rgba(41,135,249,.22), transparent 60%), linear-gradient(135deg, var(--q-blue-900), var(--q-ink-950));
}
.q-solucao-media svg { width: 40px; height: 40px; color: var(--q-blue-200); }
.q-solucao-badge { position: absolute; top: 12px; right: 12px; }
.q-solucao-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.q-solucao-body h3 { font-size: 18px; margin-bottom: 8px; }
.q-solucao-body p { color: var(--q-text-subtle); font-size: 14px; flex: 1; margin-bottom: 18px; }
.q-solucao-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Contato ---------- */
.q-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .q-contact-grid { grid-template-columns: 1fr; } }
.q-contact-channels { display: grid; gap: 16px; }
.q-contact-channel {
  display: flex; align-items: flex-start; gap: 14px;
}
.q-contact-channel-icon {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--q-accent-soft); color: var(--q-blue-900);
  display: flex; align-items: center; justify-content: center;
}
.q-contact-channel-icon svg { width: 20px; height: 20px; }
.q-contact-channel h4 { margin: 0 0 2px; font-size: 15px; }
.q-contact-channel p { margin: 0; color: var(--q-text-subtle); font-size: 14px; }
.q-contact-channel a { color: var(--q-text); font-weight: 500; }
.q-contact-channel a:hover { color: var(--q-accent); }

/* ---------- Obrigado ---------- */
.q-thanks {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 0;
}
.q-thanks-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--q-success-soft); color: var(--q-success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.q-thanks-icon svg { width: 32px; height: 32px; }
.q-thanks h1 { font-size: 30px; margin-bottom: 12px; }
.q-thanks p { color: var(--q-text-muted); font-size: 16px; margin-bottom: 32px; }
.q-thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.q-thanks-next {
  margin-top: 48px;
  text-align: left;
  background: var(--q-bg-subtle);
  border-radius: var(--q-radius);
  padding: 24px 28px;
}
.q-thanks-next h2 { font-size: 16px; margin-bottom: 12px; }
.q-thanks-next ul { margin: 0; padding-left: 20px; color: var(--q-text-muted); font-size: 14px; }
.q-thanks-next li { margin-bottom: 6px; }

/* ---------- 404 ---------- */
.q-404 {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 96px 0;
}
.q-404-code {
  font: 700 88px/1 var(--q-font);
  color: var(--q-accent-soft);
  -webkit-text-stroke: 2px var(--q-accent);
  color: transparent;
  margin-bottom: 8px;
}
.q-404 h1 { font-size: 26px; margin-bottom: 12px; }
.q-404 p { color: var(--q-text-muted); margin-bottom: 32px; }
.q-404-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
