/* Nash Tecnologia — dual theme layer (2026-09) */

.theme-toggle {
  position: relative;
  display: inline-grid;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 22, 50, 0.68);
  color: var(--cyan-300);
  box-shadow: inset 0 0 0 1px rgba(98, 231, 245, 0.03), 0 10px 28px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 231, 245, 0.48);
  background: rgba(11, 42, 84, 0.86);
  box-shadow: 0 14px 32px rgba(0, 113, 255, 0.18);
}

.theme-toggle .theme-icon {
  position: absolute;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  transition: opacity 0.22s ease, transform 0.32s ease;
}

.theme-toggle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

html[data-theme="dark"] .theme-icon-sun,
html:not([data-theme]) .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme="dark"] .theme-icon-moon,
html:not([data-theme]) .theme-icon-moon {
  opacity: 0;
  transform: rotate(-35deg) scale(0.7);
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.desktop-nav {
  margin-left: auto;
}

/* Central hero logo: transparent artwork integrated directly into the orbit. */
.logo-core {
  width: 70%;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.logo-core::after {
  border-radius: 1.4rem;
  background: linear-gradient(110deg, transparent 30%, rgba(77, 218, 255, 0.13) 49%, transparent 68%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.logo-core img,
.hero-logo-image {
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 198, 255, 0.42)) drop-shadow(0 0 44px rgba(0, 104, 255, 0.28));
}

/* WhatsApp: remove the empty child from layout and center the official masked icon geometrically. */
.whatsapp-float {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.whatsapp-float > span {
  display: none !important;
}

.whatsapp-float::before {
  position: static;
  display: block;
  width: 1.72rem;
  height: 1.72rem;
  margin: 0;
  flex: 0 0 auto;
  transform: none;
}

html[data-theme="light"] {
  color-scheme: light;
  --navy-950: #f5fbff;
  --navy-900: #edf7ff;
  --navy-850: #e5f2ff;
  --navy-800: #d9ebff;
  --blue-600: #006fe8;
  --blue-500: #078cff;
  --cyan-400: #00b8d7;
  --cyan-300: #067da6;
  --lime-400: #15985b;
  --white: #071b34;
  --slate-100: #173b5f;
  --slate-300: #385d7f;
  --slate-500: #607e9b;
  --line: rgba(15, 89, 158, 0.17);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --shadow: 0 24px 70px rgba(31, 91, 143, 0.14);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 84% 9%, rgba(0, 132, 255, 0.16), transparent 31rem),
    radial-gradient(circle at 10% 42%, rgba(0, 205, 230, 0.11), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f4faff 54%, #eef7ff 100%);
  color: var(--white);
}

html[data-theme="light"] ::selection {
  background: #80eaff;
  color: #071b34;
}

html[data-theme="light"] .skip-link {
  background: #071b34;
  color: #fff;
}

html[data-theme="light"] .text-gradient {
  background: linear-gradient(105deg, #092342 0%, #007fbe 52%, #00a9c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.9), rgba(247, 252, 255, 0.18));
}

html[data-theme="light"] .site-header.is-scrolled {
  border-bottom-color: rgba(11, 83, 149, 0.14);
  background: rgba(250, 253, 255, 0.88);
  box-shadow: 0 10px 34px rgba(25, 88, 139, 0.08);
}

html[data-theme="light"] .brand img {
  box-shadow: 0 0 0 1px rgba(0, 128, 196, 0.13), 0 0 30px rgba(0, 154, 215, 0.11);
}

html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .menu-button {
  border-color: rgba(12, 89, 154, 0.17);
  background: rgba(255, 255, 255, 0.78);
  color: #096d9b;
  box-shadow: 0 10px 26px rgba(30, 96, 149, 0.1);
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .menu-button:hover {
  border-color: rgba(0, 144, 196, 0.35);
  background: #fff;
}

html[data-theme="light"] .desktop-nav > a:not(.button) {
  color: #426681;
}

html[data-theme="light"] .desktop-nav > a:hover,
html[data-theme="light"] .desktop-nav > a[aria-current="page"] {
  color: #071b34;
}

html[data-theme="light"] .button-secondary {
  border-color: rgba(10, 89, 154, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: #123958;
  box-shadow: 0 10px 26px rgba(36, 94, 143, 0.07);
}

html[data-theme="light"] .button-secondary:hover {
  border-color: rgba(0, 151, 201, 0.42);
  background: #fff;
}

html[data-theme="light"] .mobile-menu {
  border-color: rgba(11, 87, 151, 0.16);
  background: rgba(250, 253, 255, 0.97);
  box-shadow: 0 24px 70px rgba(31, 91, 143, 0.18);
}

html[data-theme="light"] .mobile-menu a {
  color: #173b5f;
}

html[data-theme="light"] .mobile-menu a:hover,
html[data-theme="light"] .mobile-menu a[aria-current="page"] {
  background: rgba(0, 139, 235, 0.08);
  color: #007ba6;
}

html[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(28, 111, 181, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 111, 181, 0.07) 1px, transparent 1px);
}

html[data-theme="light"] .hero-home {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(239, 248, 255, 0.56)),
    radial-gradient(circle at 72% 42%, rgba(0, 140, 255, 0.17), transparent 31rem),
    #f8fcff;
}

html[data-theme="light"] .hero-home::before {
  background-image:
    linear-gradient(rgba(28, 112, 184, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 112, 184, 0.075) 1px, transparent 1px);
}

html[data-theme="light"] .hero-home::after {
  background:
    radial-gradient(circle 23rem at var(--pointer-x) var(--pointer-y), rgba(0, 183, 220, 0.14), transparent 70%),
    linear-gradient(105deg, rgba(252, 254, 255, 0.94) 8%, rgba(247, 252, 255, 0.12) 62%);
}

html[data-theme="light"] .hero-glow {
  background: radial-gradient(circle, rgba(0, 151, 230, 0.17), rgba(0, 181, 216, 0.07) 46%, transparent 70%);
}

html[data-theme="light"] .logo-orbit::before {
  border-color: rgba(0, 128, 196, 0.22);
  box-shadow: inset 0 0 70px rgba(0, 120, 218, 0.06), 0 0 80px rgba(0, 132, 218, 0.07);
}

html[data-theme="light"] .logo-orbit::after,
html[data-theme="light"] .orbit-line-one,
html[data-theme="light"] .orbit-line-two {
  border-color: rgba(0, 128, 196, 0.22);
}

html[data-theme="light"] .logo-core img,
html[data-theme="light"] .hero-logo-image {
  filter: drop-shadow(0 0 13px rgba(0, 167, 213, 0.28)) drop-shadow(0 0 38px rgba(0, 108, 209, 0.16));
}

html[data-theme="light"] .tech-label {
  border-color: rgba(0, 126, 183, 0.2);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(31, 91, 143, 0.1);
  color: #007da9;
}

html[data-theme="light"] .scroll-cue {
  border-color: rgba(14, 94, 156, 0.22);
}

html[data-theme="light"] .hero-pills span,
html[data-theme="light"] .feature-chips span {
  border-color: rgba(0, 128, 189, 0.17);
  background: rgba(255, 255, 255, 0.72);
  color: #355c79;
  box-shadow: 0 8px 22px rgba(31, 91, 143, 0.06);
}

html[data-theme="light"] .home-solutions,
html[data-theme="light"] .home-portfolio {
  background: linear-gradient(180deg, #f8fcff, #edf7ff 52%, #f8fcff);
}

html[data-theme="light"] .ibpm-home,
html[data-theme="light"] .ibpm-showcase {
  background:
    radial-gradient(circle at 84% 48%, rgba(0, 125, 236, 0.14), transparent 32rem),
    #f8fcff;
}

html[data-theme="light"] .home-solution-card,
html[data-theme="light"] .service-card {
  border-color: rgba(17, 91, 154, 0.14);
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 164, 225, 0.13), transparent 15rem),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 50px rgba(31, 91, 143, 0.1);
}

html[data-theme="light"] .home-solution-card:hover,
html[data-theme="light"] .service-card:hover {
  border-color: rgba(0, 148, 196, 0.32);
  box-shadow: 0 26px 64px rgba(31, 91, 143, 0.15);
}

html[data-theme="light"] .command-card,
html[data-theme="light"] .audesp-panel,
html[data-theme="light"] .contact-panel,
html[data-theme="light"] .cta-panel {
  border-color: rgba(11, 88, 150, 0.16);
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 183, 220, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 247, 255, 0.92));
  box-shadow: 0 24px 70px rgba(31, 91, 143, 0.1);
}

html[data-theme="light"] .command-screen,
html[data-theme="light"] .browser-frame {
  border-color: rgba(13, 89, 152, 0.16);
  background: #f7fbff;
  box-shadow: 0 28px 70px rgba(31, 91, 143, 0.14);
}

html[data-theme="light"] .metric,
html[data-theme="light"] .flow-item,
html[data-theme="light"] .module-card,
html[data-theme="light"] .audesp-item {
  border-color: rgba(12, 89, 153, 0.13);
  background: rgba(255, 255, 255, 0.74);
}

html[data-theme="light"] .floating-note,
html[data-theme="light"] .mini-card,
html[data-theme="light"] .window-status {
  border-color: rgba(0, 135, 183, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(31, 91, 143, 0.13);
  color: #365d7c;
}

html[data-theme="light"] .floating-note strong,
html[data-theme="light"] .flow-item b {
  color: #0b2947;
}

html[data-theme="light"] .proof-strip {
  background: rgba(246, 251, 255, 0.84);
}

html[data-theme="light"] .service-tags span,
html[data-theme="light"] .pill {
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .portfolio-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .testimonial,
html[data-theme="light"] .info-panel,
html[data-theme="light"] .founder-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .contact-form,
html[data-theme="light"] .faq-item {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(31, 91, 143, 0.07);
}

html[data-theme="light"] .portfolio-image {
  background: #e7f3ff;
}

html[data-theme="light"] .portfolio-image::after {
  background: linear-gradient(to top, rgba(7, 64, 109, 0.1), transparent 45%);
}

html[data-theme="light"] .portfolio-more {
  border-color: rgba(0, 133, 183, 0.2);
  background: rgba(242, 249, 255, 0.72);
}

html[data-theme="light"] .process-card {
  background: linear-gradient(180deg, rgba(223, 241, 255, 0.72), transparent);
}

html[data-theme="light"] .audesp-list {
  background: rgba(226, 242, 255, 0.42);
}

html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .field select {
  border-color: rgba(11, 88, 151, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: #0b2947;
}

html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder {
  color: #7891a7;
}

html[data-theme="light"] .site-footer {
  border-top-color: rgba(11, 85, 147, 0.13);
  background: #eaf5ff;
}

html[data-theme="light"] .footer-title {
  color: #173b5f;
}

html[data-theme="light"] .footer-links a,
html[data-theme="light"] .footer-brand p,
html[data-theme="light"] .footer-bottom {
  color: #5a7792;
}

html[data-theme="light"] .page-hero::after {
  border-color: rgba(0, 130, 190, 0.15);
  box-shadow: inset 0 0 90px rgba(0, 118, 218, 0.06);
}

html[data-theme="light"] .stars {
  color: #cc9000;
}

@media (max-width: 1040px) {
  .nav-wrap {
    gap: 0.7rem;
  }

  .brand {
    margin-right: auto;
  }

  .theme-toggle {
    width: 2.8rem;
    height: 2.8rem;
  }
}

@media (max-width: 720px) {
  .theme-toggle {
    width: 2.65rem;
    height: 2.65rem;
  }

  .theme-toggle .theme-icon {
    width: 1.08rem;
    height: 1.08rem;
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 3.45rem;
    height: 3.45rem;
  }

  .whatsapp-float::before {
    width: 1.66rem;
    height: 1.66rem;
  }

  .logo-core {
    width: 72%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle .theme-icon {
    transition: none;
  }
}
