/* ==========================================================================
   INVERNOVAK - AIUX COMPONENTS & INTERACTIVE STYLES
   ========================================================================== */

/* Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 0.95rem var(--f);
  padding: 14px 26px;
  min-height: 46px; /* Touch target accessibility */
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--cyan);
  background: rgba(3, 8, 23, 0.7);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 18px rgba(0, 174, 239, 0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn:hover::after {
  left: 150%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan-strong);
  border-color: var(--cyan-bright);
}

.btn:active {
  transform: translateY(0);
}

.btn-solid {
  background: var(--cyan);
  color: #021021;
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.btn-solid:hover {
  background: var(--cyan-bright);
  box-shadow: var(--glow-cyan-strong);
}

.btn-ghost {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
  color: var(--muted);
  padding-inline: 12px;
}

.btn-ghost:hover {
  color: var(--fg);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
}

.link {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  min-height: 44px;
  transition: border-color 0.2s, color 0.2s;
}

.link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.link span {
  color: var(--cyan);
  transition: transform 0.2s;
}

.link:hover span {
  transform: translateX(4px);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Card System & Cursor Light Follow */
.card {
  --mx: 50%;
  --my: -200px;
  position: relative;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0, 174, 239, 0.12), transparent 55%), linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--r);
  padding: 30px;
  min-width: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}

.card.hov:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-bright);
  box-shadow: 0 14px 40px rgba(0, 174, 239, 0.16);
}

.ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 174, 239, 0.35);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 174, 239, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card.hov:hover .ico {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: var(--glow-cyan);
}

.ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico.sm {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.ico.sm svg {
  width: 19px;
  height: 19px;
}

/* Tabs & Filter Controls */
.tabs, .scen {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.tab {
  font: 600 0.9rem var(--f);
  color: var(--muted);
  background: rgba(11, 23, 48, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tab[aria-selected="true"] {
  background: var(--cyan);
  color: #021021;
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.tab:not([aria-selected="true"]):hover {
  color: var(--fg);
  border-color: var(--glass-border-bright);
  background: rgba(0, 174, 239, 0.08);
}

/* Form Controls & Checkboxes */
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field.full, .chk.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input, .field select, .field textarea {
  font: 400 0.92rem var(--f);
  color: var(--fg);
  background: rgba(3, 8, 23, 0.75);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  min-height: 44px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.chk {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
  min-height: 44px;
  padding-block: 4px;
}

.chk input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chk .bx {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: rgba(3, 8, 23, 0.7);
  display: grid;
  place-items: center;
  transition: all 0.2s;
  margin-top: 1px;
}

.chk input:checked + .bx {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.chk input:checked + .bx::after {
  content: "✓";
  color: #021021;
  font-weight: 800;
  font-size: 0.8rem;
}

.copy {
  font: 600 0.72rem var(--f);
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  min-height: 32px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

/* Mobile Toggle Hamburger Button Component */
.nav-toggle {
  display: none;
  background: rgba(3, 8, 23, 0.85);
  border: 1px solid var(--cyan);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  padding: 12px 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--glow-cyan);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 30;
  flex: none;
}

.nav-toggle:hover {
  background: var(--cyan-soft);
  transform: scale(1.05);
  box-shadow: var(--glow-cyan-strong);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--cyan);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Morph 3 lines into glowing red/cyan X when open */
.nav-toggle.open {
  border-color: var(--danger);
  box-shadow: 0 0 20px rgba(255, 92, 108, 0.4);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.mobile-menu-ctas {
  display: none;
}

/* Floating WhatsApp Control */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ok);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow-ok);
  z-index: 30;
  transition: transform 0.25s, box-shadow 0.25s;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.5);
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: -1;
}

@keyframes ping {
  75%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
