﻿:root{
  /* Tema institucional SG-Tecnologia — azul-marinho predominante,
     dourado como acento de conversão, teal/terracota/ardósia como
     secundárias para dar variedade sem fugir da família de marca. */
  --sg-navy-950: #071a30;   /* mais escuro: navbar, footer, rodapé */
  --sg-navy-900: #0b2545;   /* marca primária */
  --sg-navy-700: #123a68;   /* hover / superfícies elevadas */
  --sg-blue-600: #1f5fa8;   /* links e ícones secundários */
  --sg-blue-100: #eaf1fa;   /* tinta suave para fundos/cards */

  --sg-gold-500: #c9962c;   /* acento de conversão (CTA, destaques) */
  --sg-gold-600: #a97c1f;   /* hover do dourado */
  --sg-gold-100: #f7ecd4;   /* tinta suave do dourado */

  --sg-teal-600: #1f7a72;   /* secundária: tecnologia/saúde, variedade em ícones e categorias */
  --sg-teal-100: #e2f1ef;

  --sg-terracota-600: #b6552f; /* terciária: contraste quente, uso pontual em categorias */
  --sg-terracota-100: #f6e6dd;

  --sg-slate-500: #4f6172;  /* neutra secundária: texto/ícone mais suave que o navy puro */
  --sg-slate-100: #eaeef1;

  /* Compatibilidade com nomes usados no restante do CSS */
  --sg-primary: var(--sg-navy-900);
  --sg-accent:  var(--sg-navy-700);
  --sg-shadow:  rgba(11,37,69,0.12);
  --sg-gold: var(--sg-gold-500);
  --sg-gold-dark: var(--sg-gold-600);
  --sg-footer-bg: #f5f5f5;
  --sg-card-bg: #fafafa;
}

body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
.card-modern{
  background-color: var(--sg-card-bg);
  border-radius: .8rem;
  box-shadow: 0 6px 18px var(--sg-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.18);
}

/* ===== Card de produto (home > "Conheça nossos produtos") ===== */
.card-product{
  transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card-product:hover{
  background-color: var(--sg-navy-900);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11,37,69,.28);
}
.card-product:hover h6{ color: #fff; }
.card-product:hover .display-6,
.card-product:hover .display-6 i{ color: #fff !important; }
.card-product:hover .badge-soft{
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
}
.card-product:hover .icon-box{ color: var(--sg-gold-500) !important; }
.card-product:hover .text-muted{ color: rgba(255,255,255,.85) !important; }

/* ===== Título de destaque para cada área/cliente em "Sistemas em ação" ===== */
.area-heading{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--sg-navy-900);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(11,37,69,.2);
}
.area-heading i{ color: var(--sg-gold-500); font-size: 1.05rem; }

/* ===== Cards de categoria (portal_transparencia > "Categorias Disponíveis") ===== */
.card-category{
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card-category:hover,
.card-category:focus{
  background-color: var(--sg-navy-900);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11,37,69,.28);
  outline: none;
}
.card-category:hover h6,
.card-category:focus h6{ color: #fff; }
.card-category:hover .display-6,
.card-category:focus .display-6{ color: var(--sg-gold-500); }

/* Popover das categorias — mesma paleta do site em vez do padrão Bootstrap */
.popover.category-popover{ max-width: 280px; }
.popover.category-popover .popover-header{
  background: var(--sg-navy-900);
  color: #fff;
  font-size: .82rem;
  border-bottom: none;
}
.popover.category-popover .popover-header::before{ display: none; }
.popover.category-popover .popover-body{ font-size: .82rem; color: var(--sg-slate-500); }

/* ===== Paleta secundária: utilitários de cor ===== */
.text-navy{ color: var(--sg-navy-900) !important; }
.text-teal{ color: var(--sg-teal-600) !important; }
.text-gold{ color: var(--sg-gold-600) !important; }
.text-terracota{ color: var(--sg-terracota-600) !important; }
.text-slate{ color: var(--sg-slate-500) !important; }

.badge-soft{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 999px;
}
.badge-soft.navy{ background: var(--sg-blue-100); color: var(--sg-navy-900); }
.badge-soft.teal{ background: var(--sg-teal-100); color: var(--sg-teal-600); }
.badge-soft.gold{ background: var(--sg-gold-100); color: var(--sg-gold-600); }
.badge-soft.terracota{ background: var(--sg-terracota-100); color: var(--sg-terracota-600); }
.badge-soft.slate{ background: var(--sg-slate-100); color: var(--sg-slate-500); }

/* ===== Molduras de screenshot (efeito "janela de sistema") ===== */
.shot-frame{
  border-radius: .7rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11,37,69,0.08);
  box-shadow: 0 10px 28px rgba(11,37,69,0.16);
  transition: transform .3s ease, box-shadow .3s ease;
}
.shot-frame .shot-bar{
  height: 24px;
  background: var(--sg-navy-950);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}
.shot-frame .shot-bar span{
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.shot-frame img{ display: block; width: 100%; height: 150px; object-fit: cover; object-position: top; }
.shot-frame-cover img{ height: 320px; }
a:hover .shot-frame{
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(11,37,69,0.24);
}

/* ===== Vitrine de sistema (carrossel dentro da janela de navegador) ===== */
.shot-bar-label{
  margin-left: auto;
  color: rgba(255,255,255,.55);
  font-size: .7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot-carousel .carousel-item img{
  width: 100%;
  height: 500px;
  object-fit: contain;
  background: #f4f6f9;
}
.shot-carousel .shot-caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .6rem .9rem;
  background: linear-gradient(0deg, rgba(7,26,48,.72) 0%, rgba(7,26,48,0) 100%);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  text-align: left;
}
.shot-carousel .carousel-control-prev,
.shot-carousel .carousel-control-next{ width: 8%; opacity: 0; transition: opacity .25s ease; }
.shot-carousel:hover .carousel-control-prev,
.shot-carousel:hover .carousel-control-next,
.shot-carousel .carousel-control-prev:focus,
.shot-carousel .carousel-control-next:focus{ opacity: 1; }
.shot-carousel .carousel-control-prev-icon,
.shot-carousel .carousel-control-next-icon{
  background-color: rgba(11,37,69,.55);
  border-radius: 50%;
  padding: 14px;
  background-size: 50%;
}
.shot-carousel .sg-indicators{ position: absolute; bottom: 10px; margin: 0; gap: .3rem; }
.shot-carousel .sg-indicators [data-bs-target]{
  width: 7px; height: 7px; border-radius: 50%;
  background-color: rgba(255,255,255,.55);
  border: 0; opacity: 1;
}
.shot-carousel .sg-indicators .active{ background-color: var(--sg-gold-500); }

.sg-pills .nav-link{
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--sg-navy-900);
  background: var(--sg-blue-100);
  margin-right: .4rem;
  padding: .4rem 1rem;
}
.sg-pills .nav-link.active{ background: var(--sg-navy-900); color: #fff; }

@media (max-width: 576px){
  .shot-carousel .carousel-item img{ height: 310px; }
}

/* ===== Banner de CTA (contraste navy entre seções claras) ===== */
.cta-banner{
  background: linear-gradient(135deg, var(--sg-navy-900) 0%, var(--sg-navy-950) 100%);
  border-radius: .8rem;
  box-shadow: 0 10px 28px rgba(7,26,48,0.28);
  padding: 1.75rem;
}
.cta-banner h2, .cta-banner p{ color: #fff; }
.cta-banner p{ color: rgba(255,255,255,.75); }
.hero{
  background: linear-gradient(135deg, var(--sg-blue-100) 0%, rgba(234,241,250,0.35) 100%);
  padding: 2rem;
  border-radius: .6rem;
  border-left: 4px solid var(--sg-gold-500);
}
.footer-logo{ font-weight:700; color:var(--sg-primary); }
.icon-box{ font-size:1.6rem; color: var(--sg-primary); }
a { color: var(--sg-blue-600); }
.btn-sg { background: var(--sg-primary); border-color: var(--sg-accent); color:#fff; }
.btn-sg:hover{ background: var(--sg-accent); border-color: var(--sg-primary); }
.btn-gold {
  background: var(--sg-gold-500);
  border-color: var(--sg-gold-600);
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}
.btn-gold:hover {
  background: var(--sg-gold-600);
  border-color: var(--sg-gold-500);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 150, 44, 0.35);
}
.logo-navbar {
  width: 12vw;      /* escala com a tela */
  max-width: 200px; /* limite */
  height: auto;
}

/* ===== NAVBAR STYLING =====*/
.navbar {
  padding: 0.5rem 0;
}

.bg-navbar {
  background: linear-gradient(135deg, var(--sg-navy-950) 0%, var(--sg-navy-900) 100%);
  box-shadow: 0 2px 10px rgba(7, 26, 48, 0.35);
  padding: 0.5rem 0;
  margin: 0;
}

.navbar-brand-spacer {
  display: block;
  width: 0;
  height: auto;
}

.bg-navbar .navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 0.3rem 1rem !important;
}

.bg-navbar .navbar-nav .nav-link:hover {
  color: var(--sg-gold-500) !important;
}

.bg-navbar .navbar-brand {
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .bg-navbar {
    padding: 0;
  }

  .bg-navbar .navbar-nav .nav-link {
    padding: 0.3rem 0.8rem !important;
    font-size: 0.95rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #1fa855 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-float:hover {
  background: linear-gradient(135deg, #1fa855 0%, #15a145 100%);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  transform: scale(1.1);
  text-decoration: none;
  color: #fff;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 28px;
  }
}

.bg-footer {
  background: linear-gradient(135deg, var(--sg-blue-100) 0%, #f5f8fb 100%);
  border-top: 3px solid var(--sg-gold-500);
}

.bg-footer a {
  color: var(--sg-navy-900);
  text-decoration: none;
  transition: color 0.3s ease;
}

.bg-footer a:hover {
  color: var(--sg-gold-600);
}

/* ========== APP HEADER COM GALERIA SKEWED ==========*/
.app-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background-color: #ffffff;
  padding: 0;
  margin: 0;
  height: 110px;
  width: 100%;
  position: relative;
  flex-wrap: nowrap;
  line-height: 0;
  font-size: 0;
}

.app-header-wrapper {
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
  border-bottom: none;
  padding: 0;
  margin: 0;
  display: flex;
}

/* ===== EFEITOS DE ANIMAÇÃO =====*/
.fadeIn {
  animation-name: fadeIn;
  animation-duration: 1s;
}

.animated {
  animation-duration: 1s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== FIGURA SLOTS - GALERIA DE IMAGENS =====*/
section.figure-slots {
  display: flex;
  width: 42.5%;   /* metade do restante (75% / 2) */
  height: 100%;
  align-items: stretch;
  justify-content: stretch;
  margin: 0;
  padding: 0;
}

section.figure-slots figure {
  flex: 1;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: #eee;
  overflow: hidden;
  justify-content: center;
  filter: grayscale(35%);
  transition: filter 0.3s ease;
  position: relative;
  transform-origin: center;

}


section.figure-slots figure:hover {
  filter: grayscale(0);
}

section.figure-slots figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

/* ===== LAYOUT DIREITA (LR - LEFT ROTATE) =====*/
section.figure-slots.lr figure {
  transform: skewX(-25deg);
  box-shadow:
    3px 0 8px rgba(0, 0, 0, 0.4),
    inset -2px 0 0 rgba(255,255,255,0.6);
}

section.figure-slots.lr figure img {
   transform: skewX(25deg) scaleX(1.28);
}

section.figure-slots.lr figure img:hover {
  transform: skewX(25deg) scaleX(1.35);
}

section.figure-slots.lr figure::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: 100%;
  pointer-events: none;
  background: rgba(255,255,255,0.4);
  box-shadow:
    0 0 4px rgba(255,255,255,0.6),
    0 0 8px rgba(255,255,255,0.3);
}

section.figure-slots.lr figure:first-child {
  z-index: 3;
}

section.figure-slots.lr figure:nth-child(2) {
  z-index: 2;
}

section.figure-slots.lr figure:nth-child(3) {
  z-index: 1;
}

section.figure-slots.lr figure:nth-child(4) {
  z-index: 0;
}

/* ===== LAYOUT ESQUERDA (RL - RIGHT ROTATE) =====*/
section.figure-slots.rl figure {
  transform: skewX(25deg);
  box-shadow:
    -3px 0 8px rgba(0, 0, 0, 0.4),
    inset 2px 0 0 rgba(255,255,255,0.6);
}

section.figure-slots.rl figure img {
  transform: skewX(-25deg) scaleX(1.28);
}

section.figure-slots.rl figure img:hover {
  transform: skewX(-25deg) scaleX(1.35);
}

section.figure-slots.rl figure::after {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 2px;
  height: 100%;
  pointer-events: none;
  background: rgba(255,255,255,0.4);
  box-shadow:
    0 0 4px rgba(255,255,255,0.6),
    0 0 8px rgba(255,255,255,0.3);
}

section.figure-slots.rl figure:first-child {
  z-index: 3;
}

section.figure-slots.rl figure:nth-child(2) {
  z-index: 2;
}

section.figure-slots.rl figure:nth-child(3) {
  z-index: 1;
}

section.figure-slots.rl figure:nth-child(4) {
  z-index: 0;
}

/* ===== LOGO CENTRALIZADA =====*/
.app-header a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20%;   /* AJUSTA TAMANHO DO ESPAÇO DA LOGO */
  height: 100%;
  overflow: visible; /* <-- ESSENCIAL */
  position: relative;
}

.app-header a img {
  height: 100%;
  width: auto;
  max-height: none;     /* REMOVE a trava */
  filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transform: scale(1.18); /* aumenta só a logo */
  transform-origin: center;
  display: block; 

}

.app-header a:hover img {
  transform: scale(1.22);
}

/* ===== RESPONSIVIDADE =====*/
@media (max-width: 1024px) {
  section.figure-slots {
    max-height: 95px;
    height: 100%;
    min-height: 47px;
  }

.app-header a img {
    height: 100%;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 0rem 0;
    gap: 0;
  }
  .app-header a {
  width: 35%;
}

  section.figure-slots.lr figure img {
  transform: skewX(25deg) scaleX(1.35);
  }

   section.figure-slots.rl figure img {
  transform: skewX(-25deg) scaleX(1.35);
 }

section.figure-slots {
  display: flex;
  flex: 1;
  height: 100%;
  width: 32.5%;
  align-items: stretch;
  justify-content: stretch;
}

  .app-header a img {
  height: 90%;
}

  .navbar-brand-spacer {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Esconde as laterais */
  .app-header {
    height: 90px;
  }

  section.figure-slots {
    display: none;
  }

  .app-header a {
    width: 100%;
    justify-content: center;
  }

  .app-header a img {
    height: 85%;
    max-height: none;
  }
}
