/* varejo.css - DR Sistemas (página varejo.html) */

/* === Variáveis (use as mesmas do site) === */
:root {
  --blue: #0a2463;
  --dark: #0a1a3a;
  --muted: #6b7280;
  --bg: #f9fafc;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 25px rgba(2,6,23,0.07);
  --transition: 0.28s ease;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* === Reset / básico === */
body {
  margin: 0;
  color: #111827;
  background: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.white-band {
  position: relative;
  background: #E8ECF7;
  padding: 1rem 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}


/* ====================
   Blue banner (hero)
   ==================== */
.blue-band.varejo-banner {
  position: relative;
  background: var(--blue);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blue-band.varejo-banner h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  max-width: 920px;
}

.blue-band.varejo-banner p {
  margin-top: 1rem;
  opacity: 0.95;
  max-width: 820px;
  font-size: 1.05rem;
}

/* decorative shapes */
.blue-band.varejo-banner::before,
.blue-band.varejo-banner::after {
  content: "";
  position: absolute;
  z-index: 1;
  opacity: 0.12;
  border-radius: 10px;
}

.blue-band.varejo-banner::before {
  width: 160px; height: 160px; top: -40px; left: -60px;
  border: 2px solid rgba(255,255,255,0.18);
  transform: rotate(12deg);
}

.blue-band.varejo-banner::after {
  width: 220px; height: 110px; bottom: -50px; right: -80px;
  border: 2px solid rgba(255,255,255,0.18);
  transform: rotate(-10deg);
}

/* ====================
   Features grid (cards)
   ==================== */
.features-section {
  padding: 4rem 0;
  background: #fff;
}

.features-intro h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue);
}

.features-intro .muted {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card i {
  font-size: 2.2rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.feature-card h4 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: #5b616b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(2,6,23,0.08);
}

/* ====================
   Product visual & bullets
   ==================== */
.product-visual {
  padding: 3rem 0 4rem;
  background: var(--bg);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.visual-image {
  width: 100%;
  max-width: 520px;
  display: block;
  margin: 0 auto;
}

.visual-right h3 {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.checklist {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  color: #333;
}

.checklist li {
  margin-bottom: 0.9rem;
  font-size: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checklist li i {
  color: var(--blue);
  margin-top: 4px;
}

/* CTA button inside visual */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(90deg, #0056b3 0%, #00aaff 100%);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 1.4rem;
  box-shadow: 0 10px 30px rgba(2,6,23,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cta-button:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(2,6,23,0.12); }

/* ====================
   Integrations section
   ==================== */
.integrations-section {
  padding: 3.6rem 0;
  background: #fff;
}

.integration-list { list-style: none; padding: 0; margin-top: 1rem; }
.integration-list li { margin-bottom: 0.8rem; display:flex; gap:0.75rem; align-items:flex-start; color:#333; }
.integration-image { width: 100%; max-width:480px; display:block; margin-left:auto; }

/* ====================
   Numbers section
   ==================== */
.numbers-section { padding: 2.8rem 0; background: var(--bg); }
.numbers-grid { display:flex; gap:1.2rem; justify-content:center; flex-wrap:wrap; }
.number-card { background: #fff; padding: 1.4rem 2rem; border-radius:10px; box-shadow: var(--shadow); text-align:center; min-width:140px; }
.number-card strong { display:block; font-size:1.6rem; color:var(--blue); }
.number-card span { color:#666; font-size:0.95rem; }

/* ====================
   CTA final
   ==================== */
.cta-final { padding: 3.2rem 0; background: var(--blue); color: #fff; text-align:center; }
.cta-box { max-width:900px; margin:0 auto; }
.cta-box h3 { font-size:1.6rem; margin-bottom:0.5rem; }
.cta-box p { margin-bottom:1.2rem; opacity:0.95; }

/* large CTA */
.cta-large { padding: 0.95rem 1.8rem; font-size:1.05rem; border-radius:999px; }

/* ====================
   Footer (simplified)
   ==================== */
.site-footer { background:#0f1724; color:#cbd5e1; padding:2.5rem 0; }
.site-footer a { color: inherit; text-decoration: none; }

/* ====================
   Decorative background elements (subtle)
   ==================== */
.blue-band .dots::before,
.blue-band .dots::after { content:""; position:absolute; width:6px; height:6px; background:rgba(255,255,255,0.45); border-radius:50%; }
.blue-band .dots::before { top:30%; left:10%; } .blue-band .dots::after { bottom:25%; right:15%; }

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 992px) {
  .grid-two { grid-template-columns: 1fr; }
  .visual-image { max-width: 420px; margin-bottom: 1.2rem; }
}

@media (max-width: 540px) {
  .blue-band.varejo-banner h3 { font-size: 1.4rem; padding: 0 1rem; }
  .features-grid { gap: 1rem; }
  .feature-card { padding: 1.1rem; }
  .visual-right { padding: 0 1rem; }
}

/* ====================
   ✨ ANIMAÇÕES (CSS-first) + fallback
   ==================== */

/* keyframes */
@keyframes fadeUp{ from{opacity:0; transform:translateY(26px);} to{opacity:1; transform:none;} }
@keyframes fadeLeft{ from{opacity:0; transform:translateX(-26px);} to{opacity:1; transform:none;} }

/* default hidden (will animate either on view-timeline or on load fallback) */
.features-grid .feature-card,
.product-visual .visual-image,
.product-visual .visual-right h3,
.product-visual .visual-right p,
.integration-image,
.number-card,
.cta-box {
  opacity: 0;
  transform: translateY(10px);
}

/* ============ modern browsers (animation-timeline: view()) ============ */
@supports (animation-timeline: view()) {
  .features-grid .feature-card { animation: fadeUp 700ms ease both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .features-grid .feature-card:nth-child(1){ animation-delay: 0ms; }
  .features-grid .feature-card:nth-child(2){ animation-delay: 80ms; }
  .features-grid .feature-card:nth-child(3){ animation-delay: 160ms; }
  .features-grid .feature-card:nth-child(4){ animation-delay: 240ms; }

  .product-visual .visual-image { animation: fadeLeft 900ms ease both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .product-visual .visual-right h3,
  .product-visual .visual-right p,
  .product-visual .checklist li { animation: fadeUp 800ms ease both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .integration-image { animation: fadeLeft 900ms ease both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .number-card { animation: fadeUp 700ms ease both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  .cta-box { animation: fadeUp 800ms ease both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
}

/* ============ fallback (no view timeline) ============ */
@supports not (animation-timeline: view()) {
  .features-grid .feature-card { animation: fadeUp 700ms ease both; }
  .features-grid .feature-card:nth-child(2){ animation-delay: 80ms; }
  .features-grid .feature-card:nth-child(3){ animation-delay: 160ms; }
  .features-grid .feature-card:nth-child(4){ animation-delay: 240ms; }
  .product-visual .visual-image { animation: fadeLeft 900ms ease both; }
  .product-visual .visual-right h3,
  .product-visual .visual-right p,
  .product-visual .checklist li { animation: fadeUp 800ms ease both; }
  .integration-image { animation: fadeLeft 900ms ease both; }
  .number-card { animation: fadeUp 700ms ease both; }
  .cta-box { animation: fadeUp 800ms ease both; }

  @media (prefers-reduced-motion: reduce) {
    .features-grid .feature-card,
    .product-visual .visual-image,
    .product-visual .visual-right h3,
    .product-visual .visual-right p,
    .integration-image,
    .number-card,
    .cta-box {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }
}

/* ==============================
   ✨ ANIMAÇÕES GERAIS DE ENTRADA
   ============================== */

/* Animação suave ao aparecer */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bodyFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/*
 fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}*/

/* Animação dos títulos e textos principais */
.varejo-banner h3, 
.varejo-banner p {
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

.varejo-banner h3 {
  animation-delay: 0.2s;
}

.varejo-banner p {
  animation-delay: 0.5s;
}

/* Animação dos cards de diferenciais */
.features-grid .feature-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

/* Efeito em sequência — cada card entra com leve atraso */
.features-grid .feature-card:nth-child(1) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.6s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.9s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 1.2s; }

/* Animação da imagem e texto principal */
.product-visual img {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeIn 1s ease forwards 0.6s;
}

.product-visual .visual-right {
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 1s;
}

/* Integrações */
.integrations-section {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 1s ease forwards 1.5s;
}

/* CTA final */
.cta-final .cta-box {
  opacity: 0;
  transform: translateY(60px);
  animation: fadeUp 1s ease forwards 1.8s;
}

/* ==============================
   🎬 Transições sutis ao rolar (mobile ou reload)
   ============================== */
html {
  scroll-behavior: smooth;
}

body {
  animation: bodyFade 0.8s ease;
}

/* Navbar nunca anima com o body — evita pulo do header fixo */
.navbar {
  animation: none !important;
  transform: none !important;
}

/* ==============================
   🧭 Pequeno hover de destaque nos cards
   ============================== */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ══════════════════════════════════
   SEÇÃO: SEGMENTOS ATENDIDOS
   Carrossel contínuo infinito
══════════════════════════════════ */

.seg-section {
  padding: 3.5rem 0;
  background: #f8faff;
  overflow: hidden;
  border-top: 1px solid #e0e8ff;
  border-bottom: 1px solid #e0e8ff;
}

.seg-title {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .3rem;
}

.seg-sub {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.seg-row { margin-bottom: 12px; }

/* Fade nas bordas */
.seg-track-wrap {
  overflow: hidden;
  position: relative;
}
.seg-track-wrap::before,
.seg-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.seg-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, #f8faff, transparent);
}
.seg-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, #f8faff, transparent);
}

/* Trilha */
.seg-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: segScrollLeft 35s linear infinite;
}
.seg-track-reverse {
  animation: segScrollRight 45s linear infinite;
}

@keyframes segScrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes segScrollRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Cards */
.seg-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  border: 2px solid;
  transition: transform .2s;
  cursor: default;
}
.seg-card:hover { transform: scale(1.07); }

.seg-emoji { font-size: 1.1rem; }

/* Paleta de cores dos cards */
.c1 { background: #e8f0ff; border-color: #b8d0ff; color: #0a2463; }
.c2 { background: #e6fff2; border-color: #9fe4c4; color: #0a5c36; }
.c3 { background: #fff3e8; border-color: #ffc99e; color: #7a3500; }
.c4 { background: #fce8ff; border-color: #e4a9ff; color: #5a0a7a; }
.c5 { background: #fff8e0; border-color: #ffe080; color: #7a5c00; }
.c6 { background: #ffe8e8; border-color: #ffb0b0; color: #7a0a0a; }
.c7 { background: #e8fffd; border-color: #9fe4df; color: #0a5a5c; }
.c8 { background: #f0ffe8; border-color: #b0e89f; color: #1a5a0a; }

/* Mobile: velocidade reduzida */
@media (max-width: 768px) {
  .seg-track  { animation-duration: 20s; }
  .seg-track-reverse { animation-duration: 28s; }
}