/* ==========================================================================
   NS HEALTH SPACE × NEXUS DESIGN SYSTEM
   Fusion of Nexus HUD Architecture + NS Health Space Gold & Obsidian Palette
   ========================================================================== */

:root {
  /* NS Health Space — Official Palette */
  --ns-ouro-brilho: #FADD9B;
  --ns-ouro-claro: #F3CC8A;
  --ns-ouro: #E7B974;
  --ns-ouro-medio: #D5A25C;
  --ns-ouro-escuro: #B18441;
  --ns-bronze: #876B43;
  --ns-bronze-intenso: #884F14;
  --ns-caramelo: #9D5F1E;
  --ns-marrom-cafe: #422711;
  --ns-preto: #000000;
  --ns-preto-quente: #0C0A08;
  --ns-fundo-card: #0E0901;
  --ns-fundo-card-2: #140B02;
  --ns-bege: #E4CDB3;
  --ns-creme: #FCF0E4;
  --ns-branco: #FFFFFF;

  /* Brand Gradients */
  --ns-grad-titulo: linear-gradient(180deg, #FADD9B 0%, #E7B974 45%, #D5A25C 70%, #B18441 100%);
  --ns-grad-borda: linear-gradient(90deg, #876B43, #E7B974 50%, #876B43);
  --ns-grad-panel: linear-gradient(135deg, rgba(20, 11, 2, 0.94) 0%, rgba(12, 10, 8, 0.98) 100%);
  --ns-card-bg: rgba(14, 9, 1, 0.78);
}

html {
  scroll-behavior: smooth;
  background-color: var(--ns-preto);
}

body {
  font-family: 'Geist', 'Rajdhani', sans-serif;
  background-color: var(--ns-preto);
  color: var(--ns-branco);
  overflow-x: hidden;
}

.font-jakarta {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.font-geist {
  font-family: 'Geist', sans-serif !important;
}

.font-mono-hud {
  font-family: 'Geist', 'JetBrains Mono', ui-monospace, monospace !important;
}

/* Custom Gold Scrollbar (Nexus Style) */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--ns-preto);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ns-ouro-brilho), var(--ns-ouro-escuro));
}

/* Signature Nexus Metallic Display Title — Adapted to NS Champagne Gold */
.text-metallic-gold {
  background: linear-gradient(
    180deg,
    #FFFFFF 0%,
    #FADD9B 34%,
    #E7B974 46.5%,
    #140B02 49.5%,
    #140B02 51%,
    #B18441 54.5%,
    #E7B974 82%,
    #FADD9B 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(231, 185, 116, 0.38);
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.92))
    drop-shadow(0px 0px 24px rgba(231, 185, 116, 0.18));
}

/* NS Brand Official Gold Title Gradient */
.ns-titulo-dourado {
  background: var(--ns-grad-titulo);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hatched Obsidian Panel (Nexus Hatched Panel × NS Espresso/Gold Surfaces) */
.ns-panel {
  position: relative;
  background: var(--ns-grad-panel);
  border: 1px solid rgba(231, 185, 116, 0.22);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.85), inset 0 0 24px rgba(231, 185, 116, 0.045);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ns-panel-hatch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.032;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    #FADD9B 10px,
    #FADD9B 11px
  );
  z-index: 0;
}

/* Flashlight Glow Effect (Signature Nexus Interactive Card) */
.glow-card {
  position: relative;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    720px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
    rgba(231, 185, 116, 0.095),
    transparent 42%
  );
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
  border-radius: inherit;
}

.glow-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
    rgba(250, 221, 155, 0.82),
    transparent 42%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.glow-card:hover::before,
.glow-card:hover::after {
  opacity: 1;
}

/* Signature Nexus Sci-Fi Side-Rail Button (Gold Edition) */
.ns-btn-rail {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(66, 39, 17, 0.42);
  border: 1px solid rgba(250, 221, 155, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.65);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ns-btn-rail:hover {
  background: rgba(136, 79, 20, 0.45);
  border-color: rgba(250, 221, 155, 0.35);
}

.ns-btn-rail .rail-left,
.ns-btn-rail .rail-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ns-ouro);
  box-shadow: 0 0 12px rgba(231, 185, 116, 0.65);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.ns-btn-rail .rail-left { left: 0; }
.ns-btn-rail .rail-right { right: 0; }

.ns-btn-rail:hover .rail-left,
.ns-btn-rail:hover .rail-right {
  width: 6px;
  background: var(--ns-ouro-brilho);
}

.ns-btn-rail .rail-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(250, 221, 155, 0) 0%,
    rgba(250, 221, 155, 0.16) 50%,
    rgba(250, 221, 155, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}

.ns-btn-rail:hover .rail-sheen {
  opacity: 1;
}

/* Signature Nexus 4-Corner Tactical Brackets */
.corner-tl,
.corner-tr,
.corner-bl,
.corner-br {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 3;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.corner-tl { top: 0; left: 0; border-top: 1px solid rgba(231, 185, 116, 0.55); border-left: 1px solid rgba(231, 185, 116, 0.55); }
.corner-tr { top: 0; right: 0; border-top: 1px solid rgba(231, 185, 116, 0.55); border-right: 1px solid rgba(231, 185, 116, 0.55); }
.corner-bl { bottom: 0; left: 0; border-bottom: 1px solid rgba(231, 185, 116, 0.55); border-left: 1px solid rgba(231, 185, 116, 0.55); }
.corner-br { bottom: 0; right: 0; border-bottom: 1px solid rgba(231, 185, 116, 0.55); border-right: 1px solid rgba(231, 185, 116, 0.55); }

.group:hover .corner-tl,
.group:hover .corner-tr,
.group:hover .corner-bl,
.group:hover .corner-br {
  width: 22px;
  height: 22px;
  border-color: var(--ns-ouro-brilho);
}

/* Scroll Reveal (Nexus Choreography) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, filter;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* Orbital HUD Animations */
@keyframes spinSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

.orbit-cw {
  animation: spinSlow 46s linear infinite;
}

.orbit-ccw {
  animation: spinReverse 32s linear infinite;
}

/* Gold Gradient Hairline Divider */
.ns-hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 185, 116, 0.5), transparent);
}

/* Injetáveis Luxury Contrast Panel (honoring #E4CDB3, #884F14, #9D5F1E, #422711) */
.ns-injetaveis-accent {
  background: linear-gradient(135deg, rgba(228, 205, 179, 0.14) 0%, rgba(66, 39, 17, 0.65) 55%, rgba(14, 9, 1, 0.95) 100%);
  border: 1px solid rgba(228, 205, 179, 0.35);
}

/* Active Category Tab */
.cat-tab {
  position: relative;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.cat-tab.is-active {
  color: var(--ns-ouro-brilho);
  border-color: var(--ns-ouro);
  background: rgba(66, 39, 17, 0.55);
  box-shadow: inset 0 0 14px rgba(231, 185, 116, 0.18);
}

/* Active FAQ Button */
.faq-btn.is-active {
  background: #140B02;
  border: 1px solid var(--ns-ouro);
  color: var(--ns-ouro-brilho);
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  box-shadow: inset 0 0 12px rgba(231, 185, 116, 0.18);
}

/* Selected Service Card State */
.service-card.is-selected {
  border-color: var(--ns-ouro-brilho) !important;
  box-shadow: 0 0 28px rgba(231, 185, 116, 0.18), inset 0 0 24px rgba(231, 185, 116, 0.1) !important;
}

/* Hide scrollbars on horizontal filter strip */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
