/* ─── Variables ──────────────────────────────────────────────── */
:root {
  --color-primary: #1a3c5e;
  --color-accent: #2980b9;
  --color-cta: #72c02c;
  --color-dark: #122d47;
  --color-darker: #0d2236;
}

/* ─── Global ─────────────────────────────────────────────────── */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

a {
  color: var(--color-accent);
}

a:hover {
  color: var(--color-primary);
}

/* ─── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background-color: var(--color-dark) !important;
  font-size: 0.85rem;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar.bg-primary {
  background-color: var(--color-primary) !important;
}

.navbar-brand img {
  max-height: 40px;
}

/* Logo SVG inline */
#logo-header {
  display: block;
  width: auto;
  height: 56px;
  max-width: 320px;
  transition: opacity 0.2s ease;
}

#logo-header .logo-name,
#logo-header .logo-meu,
#logo-header .logo-tag,
#logo-header .logo-rule {
  transition: fill 0.25s ease, stroke 0.25s ease;
}

.navbar-brand:hover #logo-header,
.navbar-brand:focus #logo-header {
  opacity: 0.9;
}

@media (max-width: 575px) {
  #logo-header {
    height: 44px;
    max-width: 220px;
  }
}

.nav-link.active {
  font-weight: 600;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    white-space: nowrap;
    font-size: 0.95rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ─── CTA Button ─────────────────────────────────────────────── */
.btn-cta {
  background-color: var(--color-cta);
  border-color: var(--color-cta);
  color: #fff;
  font-weight: 600;
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: #5fb024;
  border-color: #5fb024;
  color: #fff;
}

/* ─── Hero Section ───────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at 85% 10%, rgba(114, 192, 44, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.hero h1 {
  line-height: 1.15;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 2.9rem);
}

.hero-selo {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
}

/* Screenshot do sistema numa "janela" de navegador */
.janela-sistema {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.janela-barra {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  background: #e9eef3;
}

.janela-barra span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c3ccd5;
}

.faixa-confianca .list-inline-item {
  margin: 0.25rem 1rem;
  color: #445;
}

/* ─── Vídeos ─────────────────────────────────────────────────── */
.video-moldura {
  border-radius: 12px;
  overflow: hidden;
  background: #0d2236;
  box-shadow: 0 12px 40px rgba(13, 34, 54, 0.22);
}

/* Capa do vídeo do YouTube (partials/video.php) e o player que entra no lugar dela. */
.video-yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

a.video-yt img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Alinhado com o texto da capa (o cartão de abertura tem 1000 px centralizados numa tela de 1440,
   gravacao/lib/overlay.js) e com as cores do selo verde dela. */
.video-yt-assistir {
  position: absolute;
  left: 15.28%;
  bottom: 9%;
  display: inline-flex;
  align-items: center;
  padding: 0.5em 1.3em;
  border-radius: 999px;
  background: #72c02c;
  color: #0d2236;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

a.video-yt:hover .video-yt-assistir,
a.video-yt:focus-visible .video-yt-assistir {
  transform: scale(1.06);
  background: #86d43c;
}

/* Home: chamada para a demonstração completa, logo abaixo da apresentação. */
.chamada-completa {
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  background: #f2f7fc;
}

.chamada-icone {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capitulos .btn-link {
  color: #344054;
  font-size: 0.95rem;
}

.capitulos .btn-link:hover {
  color: var(--color-accent);
}

.capitulo-tempo {
  display: inline-block;
  min-width: 3.2em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--color-accent);
}

/* ─── Home: recursos pequenos, telas, tutoriais ──────────────── */
.recurso-mini i {
  font-size: 1.5rem;
}

.tela-miniatura {
  aspect-ratio: 16 / 9;
}

.tela-miniatura img {
  object-fit: cover;
  object-position: top;
}

.card-tutorial {
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card-tutorial:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.card-tutorial .card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: auto;
}

.selo-video {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(13, 34, 54, 0.88);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.cta-final {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
}

.text-cta-claro {
  color: #9be15d;
}

/* ─── Conheça o sistema ──────────────────────────────────────── */
.indice-recursos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.indice-recursos .badge {
  color: #344054;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
}

.recurso {
  scroll-margin-top: 110px;
}

.recurso + .recurso {
  border-top: 1px solid #eef0f3;
}

/* ─── Tutorial ───────────────────────────────────────────────── */
.caminho-menu {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(41, 128, 185, 0.08);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
}

.passos {
  counter-reset: passo;
}

.passo {
  display: flex;
  gap: 1.1rem;
  padding-bottom: 2.25rem;
  scroll-margin-top: 110px;
}

.passo-numero {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passo-corpo {
  flex: 1;
  min-width: 0;
}

.passo-corpo ul {
  padding-left: 1.2rem;
}

.dica {
  background: #f4fbec;
  border-left: 4px solid var(--color-cta);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.dica i {
  color: #5fb024;
}

/* ─── Service Blocks ─────────────────────────────────────────── */
.service-block {
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.service-block:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  display: block;
  color: var(--color-accent);
}

.text-accent {
  color: var(--color-accent) !important;
}

/* ─── Pricing Cards ──────────────────────────────────────────── */
.pricing-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pricing-card .card-header {
  border-radius: 8px 8px 0 0;
  background-color: var(--color-primary) !important;
}

.pricing-price {
  line-height: 1.2;
}

/* ─── Accordion ──────────────────────────────────────────────── */
.accordion-button:not(.collapsed) {
  background-color: rgba(41, 128, 185, 0.08);
  color: var(--color-primary);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(41, 128, 185, 0.25);
}

/* ─── Version History ────────────────────────────────────────── */
.version-entry {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
}

.version-entry ul {
  padding-left: 1.25rem;
}

.version-entry li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer.bg-dark {
  background-color: var(--color-dark) !important;
}

.bg-darker {
  background-color: var(--color-darker);
}

footer a {
  color: var(--color-accent);
}

footer a:hover {
  color: #fff;
}

footer .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

footer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

footer .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(41, 128, 185, 0.25);
}

/* ─── Back to Top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 0.8;
  visibility: visible;
}

.back-to-top:hover {
  opacity: 1;
  color: #fff;
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  background: transparent;
  margin-bottom: 0;
}

/* ─── Print ──────────────────────────────────────────────────── */
@media print {
  .topbar,
  header,
  footer,
  .back-to-top,
  .breadcrumb,
  nav[aria-label] {
    display: none !important;
  }

  a[href]::after {
    content: none !important;
  }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    text-align: center;
  }

  .hero .d-flex {
    justify-content: center;
  }

  .passo {
    gap: 0.75rem;
  }

  .passo-numero {
    width: 2rem;
    height: 2rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }
}
