/* NordVaekst.net dynamic premium layer */

:root {
  --nv-accent: #33e6a0;
  --nv-accent-2: #38bdf8;
  --nv-gold: #f7c948;
  --nv-surface-glow: rgba(56, 189, 248, 0.16);
  --nv-green-glow: rgba(51, 230, 160, 0.16);
}

/* Subtle premium page background */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.10), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(51, 230, 160, 0.08), transparent 26rem),
    radial-gradient(circle at 50% 90%, rgba(120, 90, 255, 0.08), transparent 30rem),
    #07111f !important;
}

/* Reading/progress bar */
.nv-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 99999;
  background: linear-gradient(90deg, var(--nv-accent-2), var(--nv-accent), var(--nv-gold));
  box-shadow: 0 0 18px rgba(51, 230, 160, 0.55);
  pointer-events: none;
}

/* Premium glass header effect */
header,
.header,
.site-header,
.nv-header {
  backdrop-filter: blur(18px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  background: rgba(7, 17, 31, 0.78) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
}

/* Elite card depth */
.card,
.panel,
.guide-card,
.price-card,
.service-card,
article {
  position: relative;
  overflow: hidden;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease !important;
}

.card::before,
.panel::before,
.guide-card::before,
.price-card::before,
.service-card::before,
article::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.18), transparent 12rem),
    linear-gradient(135deg, rgba(255,255,255,0.045), transparent 42%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.card:hover,
.panel:hover,
.guide-card:hover,
.price-card:hover,
.service-card:hover,
article:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.34) !important;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(56, 189, 248, 0.08),
    0 0 32px rgba(51, 230, 160, 0.08) !important;
}

.card:hover::before,
.panel:hover::before,
.guide-card:hover::before,
.price-card:hover::before,
.service-card:hover::before,
article:hover::before {
  opacity: 1;
}

/* Premium buttons/links */
a.page-link,
.btn,
.button,
.card a,
.guide-card a,
.price-card a,
.service-card a {
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease !important;
}

a.page-link:hover,
.btn:hover,
.button:hover,
.card a:hover,
.guide-card a:hover,
.price-card a:hover,
.service-card a:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.36) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24) !important;
}

/* Scroll reveal */
.nv-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.nv-reveal.nv-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger card reveal */
.nv-reveal:nth-child(2) { transition-delay: 50ms; }
.nv-reveal:nth-child(3) { transition-delay: 100ms; }
.nv-reveal:nth-child(4) { transition-delay: 150ms; }
.nv-reveal:nth-child(5) { transition-delay: 200ms; }
.nv-reveal:nth-child(6) { transition-delay: 250ms; }

/* Hero headline polish */
h1,
h2 {
  text-wrap: balance;
}

h1 strong,
h2 strong {
  background: linear-gradient(90deg, var(--nv-accent-2), var(--nv-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Subtle animated gradient border for key panels */
.price-card,
.service-card,
.guide-card {
  isolation: isolate;
}

.price-card::after,
.service-card::after,
.guide-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56,189,248,0.28), rgba(51,230,160,0.18), rgba(247,201,72,0.12));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
  z-index: 0;
}

.price-card:hover::after,
.service-card:hover::after,
.guide-card:hover::after {
  opacity: 1;
}

/* Floating WhatsApp/help buttons should feel integrated */
.nv-bot,
.whatsapp,
.whatsapp-float,
[class*="whatsapp"] {
  box-shadow: 0 18px 50px rgba(0,0,0,0.30) !important;
}

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .nv-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile: keep it clean, no excessive movement */
@media (max-width: 760px) {
  .card:hover,
  .panel:hover,
  .guide-card:hover,
  .price-card:hover,
  .service-card:hover,
  article:hover {
    transform: none;
  }

  .nv-reveal {
    transform: translateY(10px);
  }
}

/* Premium trust markers */
.nv-trust-pulse {
  position: relative;
}

.nv-trust-pulse::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56,189,248,0.0), rgba(51,230,160,0.22), rgba(56,189,248,0.0));
  opacity: 0;
  transform: translateX(-35%);
  pointer-events: none;
}

.nv-visible.nv-trust-pulse::after {
  animation: nvTrustSweep 1.8s ease 0.35s 1;
}

@keyframes nvTrustSweep {
  0% { opacity: 0; transform: translateX(-35%); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(35%); }
}

/* NordVaekst.net pro UX layer v3 */

/* Modern ambient mesh */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(56, 189, 248, 0.14), transparent 24rem),
    radial-gradient(circle at 82% 12%, rgba(45, 212, 191, 0.12), transparent 24rem),
    radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.10), transparent 28rem);
  filter: blur(8px);
  animation: nvMeshDrift 18s ease-in-out infinite alternate;
}

@keyframes nvMeshDrift {
  0% { transform: translate3d(-1%, -1%, 0) scale(1); }
  100% { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

/* Premium glass surface */
.card,
.panel,
.guide-card,
.price-card,
.service-card,
article {
  background:
    linear-gradient(180deg, rgba(17, 31, 58, 0.92), rgba(14, 27, 52, 0.88)) !important;
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

/* Subtle 3D tilt support */
.nv-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.nv-tilt:hover {
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(-4px) !important;
}

/* Magnetic CTA feel */
.nv-magnetic {
  will-change: transform;
}

/* Smart sticky CTA */
.nv-smart-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 40, 62, 0.88));
  color: #f8fafc;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(45, 212, 191, 0.10);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transform: translateY(120px);
  opacity: 0;
  transition: transform 260ms ease, opacity 260ms ease, border-color 220ms ease;
}

.nv-smart-cta.nv-show {
  transform: translateY(0);
  opacity: 1;
}

.nv-smart-cta:hover {
  border-color: rgba(94, 234, 212, 0.55);
  transform: translateY(-2px);
}

.nv-smart-cta-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.8);
}

/* FAQ accordion polish */
.nv-faq-toggle {
  cursor: pointer;
  position: relative;
}

.nv-faq-toggle::after {
  content: "+";
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(125, 211, 252, 0.95);
  transition: transform 180ms ease;
}

.nv-faq-toggle.nv-open::after {
  transform: rotate(45deg);
}

.nv-faq-toggle p {
  overflow: hidden;
  transition: max-height 260ms ease, opacity 220ms ease;
}

.nv-faq-toggle:not(.nv-open) p {
  max-height: 0 !important;
  opacity: 0;
  margin-bottom: 0 !important;
}

.nv-faq-toggle.nv-open p {
  max-height: 240px !important;
  opacity: 1;
}

/* Premium focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.9) !important;
  outline-offset: 4px !important;
}

/* Mobile safety */
@media (max-width: 760px) {
  body::before {
    animation: none;
    filter: blur(4px);
  }

  .nv-smart-cta {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
  }

  .nv-faq-toggle::after {
    top: 18px;
    right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none !important;
  }

  .nv-tilt:hover {
    transform: none !important;
  }

  .nv-smart-cta {
    transition: none !important;
  }
}

/* FIX: do not add extra sticky CTA over existing help/WhatsApp buttons */
.nv-smart-cta {
  display: none !important;
}

/* Keep existing floating help/WhatsApp buttons stable */
[class*="whatsapp"],
[class*="WhatsApp"],
[class*="help"],
[class*="Help"],
.nv-bot,
.whatsapp,
.whatsapp-float {
  transform: none !important;
  will-change: auto !important;
}

/* Prevent magnetic animation from affecting fixed/floating widgets */
[class*="whatsapp"] *,
[class*="WhatsApp"] *,
[class*="help"] *,
[class*="Help"] *,
.nv-bot *,
.whatsapp *,
.whatsapp-float * {
  transform: none !important;
}

/* Personalization panel */
.nv-interest-panel {
  padding: 22px !important;
  margin-bottom: 24px !important;
}

.nv-interest-kicker {
  margin: 0 0 8px 0 !important;
  color: #5eead4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nv-interest-panel h3 {
  margin-bottom: 14px !important;
}

.nv-interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nv-interest-options button {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #f8fafc;
  padding: 10px 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nv-interest-options button:hover,
.nv-interest-options button.nv-selected {
  border-color: rgba(94, 234, 212, 0.58);
  background: rgba(20, 184, 166, 0.14);
  transform: translateY(-1px);
}

.nv-interest-note {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  color: #c6d2e6;
}

@media (max-width: 720px) {
  .nv-interest-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nv-interest-options button {
    width: 100%;
  }
}
