:root {
    --ds-azul: #1d4ed8;
    --ds-azul-escuro: #1238b0;
    --ds-grad: linear-gradient(135deg, #1d4ed8 0%, #06b6d4 100%);
    --ds-card-rad: 20px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial;
    line-height: 1.6;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.navbar {
  min-height: 72px;
}

.navbar-logo {
  height: 100%;
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .navbar-logo {
    max-height: 48px;
  }
}

[data-bs-theme="light"] .logo-light {
  display: inline-block !important;
}
[data-bs-theme="light"] .logo-dark {
  display: none !important;
}

[data-bs-theme="dark"] .logo-light {
  display: none !important;
}
[data-bs-theme="dark"] .logo-dark {
  display: inline-block !important;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.25rem;
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
  display: block;
}

.dropdown-submenu > a::after {
  content: "›";
  float: right;
  margin-left: .5rem;
  font-weight: bold;
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

[data-bs-theme="dark"] .dropdown-menu {
  background-color: #1e1e2f;
  color: #f8f9fa;
}
[data-bs-theme="dark"] .dropdown-item:hover {
  background-color: #2a2a40;
  color: #fff;
}

.dropdown-submenu > a::after {
  content: "›";
  float: right;
  margin-left: 0.75rem;
  font-weight: bold;
  opacity: 0.6;
  font-size: 1rem;
  transform: translateY(1px);
}

[data-bs-theme="dark"] .dropdown-submenu > a::after {
  opacity: 0.8;
}
.dropdown-submenu > a::after {
  content: none !important;
}

.dropdown-item.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-item.dropdown-toggle::after {
  content: none;
}

.dropdown-submenu > a.dropdown-toggle::after {
  content: none;
}

.nav-blur {
    backdrop-filter: saturate(180%) blur(6px);
    background: rgba(0, 0, 0, 0.35);
}

[data-bs-theme="light"] .nav-blur {
    background: rgba(255, 255, 255, 0.7);
}

.navbar.nav-blur {
    --bs-navbar-padding-y: 0.6rem;
    --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.35);
    --bs-navbar-color: rgba(255, 255, 255, 0.75);
    --bs-navbar-hover-color: #fff;
    --bs-navbar-brand-color: #fff;
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.85%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-bs-theme="light"] .navbar.nav-blur {
    --bs-navbar-color: rgba(0, 0, 0, 0.65);
    --bs-navbar-hover-color: rgba(0, 0, 0, 0.85);
    --bs-navbar-brand-color: rgba(0, 0, 0, 0.85);
    --bs-navbar-toggler-border-color: rgba(0, 0, 0, 0.25);
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,.85%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero {
    background: var(--ds-grad);
    border-radius: 28px;
    padding: clamp(2rem, 4vw, 4rem);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(29, 78, 216, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero .badge {
    background: rgba(255, 255, 255, 0.15);
}

.hero-blob {
    position: absolute;
    inset: auto -10% -20% auto;
    width: 320px;
    height: 320px;
    filter: blur(50px);
    opacity: 0.25;
    background: #fff;
    border-radius: 50%;
}

[data-bs-theme="light"] .hero {
    color: #0b1220;
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ds-azul);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-hero-ghost:hover {
    transform: scale(1.05);
    background: #fff;
    color: var(--ds-azul-escuro);
}

.video-thumb {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: 340px;
    cursor: pointer;
}

.video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumb:hover img {
    transform: scale(1.02);
}

.video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.4));
}

[data-bs-theme="light"] .video-thumb::after {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
}

.video-thumb .play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb .play .btn {
    --bs-btn-padding-y: 0.8rem;
    --bs-btn-padding-x: 1.2rem;
    --bs-btn-font-size: 1.05rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ds-azul);
    border: none;
}

.video-thumb .play .btn:hover {
    transform: scale(1.07);
    background: #fff;
}

.card-section {
    border-radius: var(--ds-card-rad);
    border: 1px solid rgba(0, 0, 0, .14);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
}

.icon {
    font-size: 2.5rem;
    color: var(--ds-azul);
}

.highlight {
    background: rgba(29, 78, 216, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

[data-bs-theme="light"] .highlight {
    background: rgba(29, 78, 216, 0.1);
}

.pricing-card {
    border-radius: var(--ds-card-rad);
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .14) !important;
    box-shadow: none !important;
    transition: none !important;
}

.pricing-card h5 {
    font-weight: 700;
    margin-bottom: .35rem;
}

.pricing-card .pricing-value {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 800;
    color: var(--ds-azul);
    margin: .25rem 0 .25rem;
}

.pricing-card .text-muted,
.pricing-card .text-secondary {
    color: var(--bs-secondary-color) !important;
}

.pricing-card ul {
    margin: .75rem 0 1rem;
    padding-left: 0;
}

.pricing-card ul li {
    margin: .35rem 0;
}

.pricing-card:hover {
    transform: none !important;
    border-color: rgba(0, 0, 0, .14);
    box-shadow: none !important;
}

[data-bs-theme="dark"] .pricing-card {
    background-color: #1b1c21;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: none !important;
}

[data-bs-theme="dark"] .pricing-card:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, .16);
    box-shadow: none !important;
}

.card,
.card-section {
    border: 1px solid rgba(0, 0, 0, .14);
    box-shadow: none !important;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card-section {
    border: 1px solid rgba(255, 255, 255, .16);
}

.card,
.card-section,
.pricing-card {
    border: 1px solid rgba(0, 0, 0, .14) !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card-section,
[data-bs-theme="dark"] .pricing-card {
    border: 1px solid rgba(255, 255, 255, .16) !important;
}

.highlight-planos {
    background: var(--ds-azul) !important;
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
    display: inline-block;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
}

.highlight-planos:hover {
    background: var(--ds-azul-escuro) !important;
    transform: scale(1.03);
}

[data-bs-theme="light"] .highlight-planos,
[data-bs-theme="dark"] .highlight-planos {
    background: var(--ds-azul) !important;
    color: #fff !important;
}

:target {
    scroll-margin-top: 90px;
}

.feature-card {
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: var(--ds-card-rad);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

[data-bs-theme="dark"] .feature-card {
  background: rgba(27, 28, 33, 0.7);
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--ds-azul) !important;
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.12) !important;
}

[data-bs-theme="dark"] .feature-card:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2) !important;
}

.feature-card .icon {
  font-size: 2rem;
  color: var(--ds-azul);
}

.hero h1,
.hero p {
  color: #fff !important;
}

#carouselHero {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

#carouselHero .carousel-item {
  height: 450px;
}

#carouselHero .carousel-caption {
  position: absolute;
  top: 50%;
  bottom: auto;
  left: 10%;
  right: 10%;
  transform: translateY(-50%);
  padding: 0;
  z-index: 10;
}

.reforma-hero-slide {
  background-size: cover;
  background-position: center;
  position: relative;
  height: 100%;
}

.reforma-hero-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75));
}

#carouselClientes .card {
  transition: all 0.3s ease;
}
#carouselClientes .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
#carouselClientes img {
  object-fit: cover;
}

/* ===== ANIMAÇÕES E TRANSIÇÕES DE PRODUTOS ===== */
.card-section img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-section:hover img {
  transform: scale(1.03);
}

.bi-cash-coin, .bi-box-seam, .bi-cart3, .bi-bag-check,
.bi-cloud-arrow-up, .bi-shield-fill-check, .bi-server, .bi-check-all,
.bi-award-fill, .bi-webcam, .bi-building-check, .bi-plug,
.bi-hash, .bi-shield-check-fill, .bi-link-45deg, .bi-wallet2 {
  transition: transform 0.3s ease;
}
.row:hover .bi-cash-coin, .row:hover .bi-box-seam, .row:hover .bi-cart3, .row:hover .bi-bag-check,
.row:hover .bi-cloud-arrow-up, .row:hover .bi-shield-fill-check, .row:hover .bi-server, .row:hover .bi-check-all,
.row:hover .bi-award-fill, .row:hover .bi-webcam, .row:hover .bi-building-check, .row:hover .bi-plug,
.row:hover .bi-hash, .row:hover .bi-shield-check-fill, .row:hover .bi-link-45deg, .row:hover .bi-wallet2 {
  transform: scale(1.15);
}

/* ===== BOTÃO WHATSAPP FLUTUANTE ===== */
.btn-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-whatsapp-float i {
  font-size: 22px;
}

.btn-whatsapp-float:hover {
  transform: scale(1.05) translateY(-2px);
  background-color: #128c7e;
  color: #fff;
}

/* ===== DESTAQUES DO HEADER ===== */
.nav-link-suporte {
  font-weight: 700 !important;
}

[data-bs-theme="dark"] .nav-link-suporte {
  color: #ff9800 !important; /* Laranja no modo escuro */
}
[data-bs-theme="dark"] .nav-link-suporte:hover {
  color: #ffb74d !important;
}

[data-bs-theme="light"] .nav-link-suporte {
  color: #1d4ed8 !important; /* Azul no modo claro */
}
[data-bs-theme="light"] .nav-link-suporte:hover {
  color: #1e40af !important;
}

.btn-portal-cliente {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}
.btn-portal-cliente:hover {
  background-color: #1e40af !important;
  border-color: #1e40af !important;
}

.btn-portal-contador {
  background-color: #ff9800 !important;
  border-color: #ff9800 !important;
}
.btn-portal-contador:hover {
  background-color: #fb8c00 !important;
  border-color: #fb8c00 !important;
}

footer {
    border-top: 1px solid rgba(125, 125, 125, 0.2);
}

/* ===== ESTILOS CUSTOMIZADOS TEAL (dCIOT) ===== */
.btn-teal {
  background-color: #0d9488 !important;
  border-color: #0d9488 !important;
  color: #ffffff !important;
}
.btn-teal:hover {
  background-color: #0f766e !important;
  border-color: #0f766e !important;
  color: #ffffff !important;
}
.btn-outline-teal {
  color: #0d9488 !important;
  border-color: #0d9488 !important;
  background-color: transparent !important;
}
.btn-outline-teal:hover {
  color: #ffffff !important;
  background-color: #0d9488 !important;
  border-color: #0d9488 !important;
}
.text-teal {
  color: #0d9488 !important;
}
.text-teal-emphasis {
  color: #0f766e !important;
}
.bg-teal-subtle {
  background-color: #ccfbf1 !important;
}
.border-teal {
  border-color: #0d9488 !important;
}
[data-bs-theme="dark"] .bg-teal-subtle {
  background-color: #042f2e !important; /* Fundo escuro teal para modo dark */
}
[data-bs-theme="dark"] .text-teal-emphasis {
  color: #2dd4bf !important; /* Texto claro teal para modo dark */
}

/* Transição Premium para Cards de Setores */
.transition-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.transition-hover:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
[data-bs-theme="dark"] .transition-hover:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Cores e Bordas Indigo */
.text-indigo {
  color: #6366f1 !important;
}
.border-indigo {
  border-color: #6366f1 !important;
}

/* Responsividade do Carrossel Hero e Ajustes Gerais Mobile */
@media (max-width: 991.98px) {
  #carouselHero .carousel-item {
    height: 400px;
  }
  .hero {
    padding: 1.25rem 1rem !important;
    border-radius: 20px;
  }
  #carouselHero {
    border-radius: 20px;
  }
  .fs-6-mobile {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 768px) {
  #carouselHero h1, 
  #carouselHero .display-6 {
    font-size: 1.6rem !important;
  }
  #carouselHero p, 
  #carouselHero .fs-5 {
    font-size: 0.88rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.4 !important;
  }
  #carouselHero h5 {
    font-size: 1.2rem !important;
  }
  #carouselHero .carousel-caption p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
  }
  #carouselHero .btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.85rem !important;
  }
  .fs-6-mobile {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }
  .fs-6-mobile.fw-bold {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 576px) {
  #carouselHero .d-flex.flex-wrap {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  #carouselHero .btn {
    width: 100% !important;
    text-align: center;
  }
}



