/* ============================================================
   PRIVONIX TECHNOLOGIES: COMPONENTS v2
   Navigation · Buttons · Badges · Cards · Footer · Forms
   ============================================================ */


/* ============================================================
   NAVIGATION
   Dark frosted glass nav. Clean links. Prominent CTA.
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--tr-base), border-color var(--tr-base), background var(--tr-base);
}

.nav.scrolled {
  background: rgba(9, 10, 15, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: var(--s-6);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex: 1;
  justify-content: center;
}

.nav__link {
  font-size: var(--t-sm);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-md);
  transition: color var(--tr-fast), background var(--tr-fast);
  white-space: nowrap;
}

.nav__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav__link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Dropdown */
.nav__item {
  position: relative;
}

.nav__item:hover .nav__dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + var(--s-2));
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--c-bg-dark-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: var(--s-2);
  min-width: 200px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-base), transform var(--tr-base);
  z-index: 10;
}

.nav__dropdown-item {
  display: block;
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.75);
  border-radius: var(--r-md);
  transition: background var(--tr-fast), color var(--tr-fast);
}

.nav__dropdown-item:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Actions */
.nav__actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px; height: 38px;
  gap: 5px;
  border-radius: var(--r-md);
  transition: background var(--tr-fast);
}
.nav__hamburger:hover { background: rgba(255,255,255,0.1); }

.nav__bar {
  width: 20px; height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--tr-base), opacity var(--tr-base);
}

.nav__hamburger[aria-expanded="true"] .nav__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] .nav__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger[aria-expanded="true"] .nav__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #090A0F;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: var(--s-4) var(--gutter) var(--s-6);
  flex-direction: column;
  gap: var(--s-1);
  z-index: 99;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.nav__mobile.open { display: flex; }

.nav__mob-link {
  font-size: var(--t-base);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.8);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.nav__mob-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

.nav__mob-sep { height: 1px; background: rgba(255,255,255,0.1); margin: var(--s-2) 0; }
.nav__mob-cta { margin-top: var(--s-2); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__hamburger { display: flex; }
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font);
  font-weight: var(--fw-medium);
  font-size: var(--t-sm);
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--tr-fast),
    border-color var(--tr-fast),
    color var(--tr-fast),
    box-shadow var(--tr-fast),
    transform var(--tr-fast);
  user-select: none;
}

.btn:active { transform: translateY(1px); }

/* Primary: solid black */
.btn--primary {
  background: var(--c-text);
  border-color: var(--c-text);
  color: #fff;
}
.btn--primary:hover {
  background: #222;
  border-color: #222;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
}

/* Accent: dark monochrome */
.btn--accent {
  background: var(--c-text);
  border-color: var(--c-text);
  color: #fff;
}
.btn--accent:hover {
  background: #27272A;
  border-color: #27272A;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
}

/* Outline on light */
.btn--outline {
  background: transparent;
  border-color: var(--c-border-2);
  color: var(--c-text-2);
}
.btn--outline:hover {
  background: var(--c-bg-subtle);
  border-color: var(--c-text-3);
  color: var(--c-text);
}

/* Ghost on dark */
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

/* White button on dark sections */
.btn--white {
  background: #fff;
  border-color: #fff;
  color: var(--c-text);
}
.btn--white:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
}

/* Sizes */
.btn--sm { font-size: var(--t-xs); padding: 0.4375rem 1rem; }
.btn--lg { font-size: var(--t-base); padding: 0.875rem 1.75rem; }
.btn--xl { font-size: var(--t-md); padding: 1.0625rem 2rem; }

/* Arrow */
.btn__arrow {
  width: 14px; height: 14px;
  transition: transform var(--tr-base);
  flex-shrink: 0;
}
.btn:hover .btn__arrow { transform: translateX(3px); }


/* ============================================================
   TAGS / BADGES
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 0.25rem 0.625rem;
  font-size: var(--t-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  border-radius: var(--r-full);
}

.tag--accent { background: #F4F4F5; color: #18181B; border: 1px solid #E4E4E7; }
.tag--neutral { background: var(--c-bg-subtle); color: var(--c-text-3); border: 1px solid var(--c-border); }
.tag--dark { background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.13); }
.tag--black { background: var(--c-text); color: #fff; border: 1px solid var(--c-text); }


/* ============================================================
   SERVICE ICON
   ============================================================ */

.svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--r-xl);
  flex-shrink: 0;
}

.svc-icon--dark { background: var(--c-text); }
.svc-icon--subtle { background: #F4F4F6; }
.svc-icon--accent { background: #F4F4F6; }

.svc-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-icon--dark svg { stroke: #fff; }
.svc-icon--accent svg { stroke: var(--c-text); }
.svc-icon--subtle svg { stroke: var(--c-text-2); }


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--c-bg-dark);
  color: var(--c-text-inv-2);
  padding-top: var(--s-20);
  padding-bottom: var(--s-10);
}

.footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-8);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--c-bg-dark-border);
}

/* Brand col */
.footer__brand-logo {
  display: block;
  margin-bottom: var(--s-4);
}

.footer__brand-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer__brand-tagline {
  font-size: var(--t-sm);
  color: var(--c-text-inv-3);
  line-height: var(--lh-relaxed);
  max-width: 32ch;
  margin-bottom: var(--s-4);
}

.footer__badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--s-4);
}

.footer__reg-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-sm);
  padding: 3px 8px;
}

/* Columns */
.footer__col-title {
  font-size: var(--t-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-text-inv-3);
  margin-bottom: var(--s-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer__link {
  font-size: var(--t-sm);
  color: var(--c-text-inv-2);
  transition: color var(--tr-fast);
  width: fit-content;
}

.footer__link:hover { color: #fff; }

/* Bottom bar */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-8);
  gap: var(--s-6);
  flex-wrap: wrap;
}

.footer__copy { font-size: var(--t-xs); color: var(--c-text-inv-3); }

.footer__legal {
  display: flex;
  gap: var(--s-6);
}

.footer__legal a {
  font-size: var(--t-xs);
  color: var(--c-text-inv-3);
  transition: color var(--tr-fast);
}

.footer__legal a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 1120px) {
  .footer__top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--s-8);
  }
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}

@media (max-width: 520px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
  }
}


/* ============================================================
   FORMS
   ============================================================ */

.form-group { display: flex; flex-direction: column; gap: var(--s-2); }

.form-label {
  font-size: var(--t-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.6875rem var(--s-4);
  font-family: var(--font);
  font-size: var(--t-sm);
  color: var(--c-text);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  outline: none;
  line-height: var(--lh-normal);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--c-text-4); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--c-text);
  box-shadow: 0 0 0 3px rgba(9, 10, 15, 0.08);
}

.form-textarea { resize: vertical; min-height: 130px; }

.form-hint { font-size: var(--t-xs); color: var(--c-text-4); }
.form-error { font-size: var(--t-xs); color: var(--c-danger); display: none; }
.form-error.visible { display: block; }

.form-input.error,
.form-textarea.error,
.form-select.error { border-color: var(--c-danger); }


/* ============================================================
   PAGE / BOTTOM CTA (Universal Dark Action Section)
   ============================================================ */

.home-cta {
  background: var(--c-bg-dark);
  padding-block: var(--s-24);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.home-cta__inner {
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
  position: relative;
  z-index: 1;
}

.home-cta h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.home-cta p {
  font-size: var(--t-base);
  color: var(--c-text-inv-2);
  line-height: var(--lh-relaxed);
  max-width: 52ch;
  margin-bottom: var(--s-2);
}

.home-cta__actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--s-2);
}

/* ============================================================
   GLOBAL LUXURY INVERTED CURSOR STYLES (GPU Accelerated)
   ============================================================ */
.luxury-cursor-bubble,
.luxury-bubble {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FFFFFF;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 999999;
  opacity: 0;
  transform: translate3d(-200px, -200px, 0) translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.luxury-cursor-bubble.is-active,
.luxury-bubble.is-active {
  opacity: 1;
}

.luxury-cursor-dot,
.luxury-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #FFFFFF;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 1000000;
  opacity: 0;
  transform: translate3d(-200px, -200px, 0) translate(-50%, -50%);
  transition: opacity 0.15s ease;
}

.luxury-cursor-dot.is-active,
.luxury-dot.is-active {
  opacity: 1;
}

.luxury-cursor-dot.is-hovering,
.luxury-cursor-dot.is-reading,
.luxury-dot.is-hovering,
.luxury-dot.is-reading {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
  html.has-luxury-cursor,
  html.has-luxury-cursor body,
  html.has-luxury-cursor a,
  html.has-luxury-cursor button,
  html.has-luxury-cursor [role="button"],
  html.has-luxury-cursor [role="tab"],
  html.has-luxury-cursor .btn,
  html.has-luxury-cursor .work-card,
  html.has-luxury-cursor .work-filter-btn {
    cursor: none !important;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce), (max-width: 991px) {
  .luxury-cursor-bubble,
  .luxury-bubble,
  .luxury-cursor-dot,
  .luxury-dot {
    display: none !important;
  }
  html.has-luxury-cursor,
  html.has-luxury-cursor body,
  html.has-luxury-cursor a,
  html.has-luxury-cursor button,
  html.has-luxury-cursor [role="button"],
  html.has-luxury-cursor [role="tab"],
  html.has-luxury-cursor .btn,
  html.has-luxury-cursor .work-card,
  html.has-luxury-cursor .work-filter-btn {
    cursor: auto !important;
  }
}

