/* ─── Variables ──────────────────────────────────────────────── */
:root {
  --color-primary: #1a3a5c;
  --color-accent: #2980b9;
  --color-cta: #27ae60;
  --color-dark: #12263a;
  --color-darker: #0d1c2a;
}

/* ─── 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: 52px;
  max-width: 240px;
  transition: opacity 0.2s ease;
}

#logo-header .logo-sis,
#logo-header .logo-serv {
  transition: fill 0.25s ease;
}

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

.navbar-brand:hover #logo-header .logo-sis {
  fill: #ffffff;
}

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

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

/* ─── 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: #219a52;
  border-color: #219a52;
  color: #fff;
}

/* ─── Hero Section ───────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
}

.hero-section h1 {
  line-height: 1.3;
}

/* ─── Feature 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;
}

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

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

/* ─── OS Gold Banner ─────────────────────────────────────────── */
.osgold-card {
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb, 13, 110, 253), 0.05) 0%,
    rgba(var(--color-accent-rgb, 13, 202, 240), 0.08) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--color-accent);
}

.osgold-features li {
  font-size: 0.95rem;
}

/* ─── Screenshot Gallery ─────────────────────────────────────── */
.screenshot-card {
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.screenshot-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ─── Pricing / Comparison 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;
}

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

.version-entry h2 small {
  font-weight: 400;
}

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

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

/* ─── Reports Accordion ──────────────────────────────────────── */
.relatorios-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-primary);
  box-shadow: none;
}

.relatorios-accordion .accordion-button .badge {
  font-weight: 500;
}

.relatorios-itens {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.25rem;
}

.relatorios-itens li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
  break-inside: avoid;
}

@media (max-width: 768px) {
  .relatorios-itens {
    columns: 1;
  }
}

/* ─── 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;
  }
}

/* ─── Screenshots gallery ────────────────────────────────────── */
.screenshots-gallery {
  max-width: 1000px;
}

.screenshots-carousel {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e9ef;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.35);
}

.screenshots-carousel .carousel-item {
  background: #fff;
}

.screenshots-carousel .carousel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
  display: block;
}

.screenshots-carousel .carousel-caption {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 4rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.screenshots-carousel .carousel-control-prev,
.screenshots-carousel .carousel-control-next {
  width: 7%;
  opacity: 0.85;
}

.screenshots-carousel .carousel-control-prev-icon,
.screenshots-carousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  padding: 1.25rem;
  background-size: 50% 50%;
}

.screenshots-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.625rem;
  margin-top: 0.9rem;
}

.screenshots-thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.screenshots-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.screenshots-thumb-label {
  display: block;
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screenshots-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.screenshots-thumb.active {
  opacity: 1;
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px -4px rgba(41, 128, 185, 0.5);
}

@media (max-width: 767px) {
  .screenshots-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  .screenshots-carousel .carousel-caption {
    font-size: 0.85rem;
    padding: 0.6rem 3rem;
  }
  .screenshots-thumb-label {
    font-size: 0.65rem;
  }
}

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

  .hero-section .btn-cta {
    margin-top: 1rem;
  }

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