/*
Theme Name: Nerion Private Group
Author: Nerion Private Group
Description: Premium private technology and business group theme.
Version: 1.5.0
Requires at least: 6.0
*/

:root {
  --ink: #0d1117;
  --ink-2: #151b23;
  --panel: #1d242d;
  --text: #f7f4ee;
  --muted: #b8b4aa;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #c8a45d;
  --gold-soft: rgba(200, 164, 93, 0.18);
  --paper: #f7f5f0;
  --paper-2: #ebe7dd;
  --paper-text: #1d232b;
  --paper-muted: #646970;
  --green: #6e8f82;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--paper-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  background: rgba(13, 17, 23, 0.98);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.site-main > *,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 340px;
  min-height: 72px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-logo {
  width: 100%;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-menu a:hover {
  color: var(--text);
}

.site-main {
  min-height: 72vh;
}

.npg-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--text);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.npg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.98), rgba(13, 17, 23, 0.78) 42%, rgba(13, 17, 23, 0.28)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.npg-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, rgba(13, 17, 23, 0.92));
}

.npg-hero-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: end;
  gap: 42px;
  padding: 86px 0 52px;
  position: relative;
  z-index: 2;
}

.npg-eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.npg-hero h1,
.npg-page-title h1 {
  margin: 0;
  max-width: 830px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.npg-hero p {
  max-width: 730px;
  color: var(--muted);
  font-size: 20px;
  margin: 24px 0 0;
}

.npg-hero-panel {
  border: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.62);
  padding: 24px;
  border-radius: 8px;
  align-self: end;
}

.npg-hero-panel h2 {
  font-size: 22px;
  margin: 0 0 12px;
}

.npg-hero-panel ul,
.npg-checklist,
.npg-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.npg-hero-panel li,
.npg-checklist li,
.npg-feature-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  color: var(--muted);
}

.npg-hero-panel li:first-child,
.npg-checklist li:first-child,
.npg-feature-list li:first-child {
  border-top: 0;
}

.npg-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.npg-button,
.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: #141414;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.npg-button.secondary {
  background: transparent;
  color: var(--text);
}

.npg-button.dark-secondary {
  background: transparent;
  color: var(--paper-text);
}

.npg-section {
  padding: 86px 0;
}

.npg-section.tight {
  padding: 58px 0;
}

.npg-section h2,
.entry-content h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  margin: 0 0 18px;
}

.npg-section p,
.entry-content p {
  color: var(--paper-muted);
  max-width: 790px;
}

.npg-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.npg-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.npg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.npg-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.npg-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.npg-grid.contact {
  grid-template-columns: 2fr 1fr;
}

.npg-card,
.npg-portal-panel {
  border: 1px solid rgba(13, 17, 23, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(13, 17, 23, 0.07);
}

.npg-portal-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

.npg-portal-panel h2 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  margin: 0 0 24px;
}

.npg-portal-panel .login-remember {
  margin: 18px 0;
  color: var(--paper-muted);
}

.npg-portal-panel .login-submit {
  margin-bottom: 0;
}

.npg-form-note {
  font-size: 14px;
  color: var(--paper-muted);
  margin-top: 10px;
}

.npg-card.dark {
  background: var(--ink-2);
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.npg-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.2;
}

.npg-card p {
  margin: 0;
  color: var(--paper-muted);
}

.npg-card.dark p {
  color: var(--muted);
}

.npg-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 18px;
}

.npg-media-band,
.npg-band {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--ink);
  color: var(--text);
}

.npg-media-inner,
.npg-band-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0;
}

.npg-media-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}

.npg-media-inner.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.npg-photo {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.npg-photo img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.npg-media-copy p,
.npg-band p {
  color: var(--muted);
}

.npg-feature-list {
  margin-top: 22px;
}

.npg-feature-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.npg-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(13, 17, 23, 0.14);
  border: 1px solid rgba(13, 17, 23, 0.12);
  margin-top: 34px;
}

.npg-metric {
  background: #fff;
  padding: 22px;
}

.npg-metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
}

.npg-metric span {
  display: block;
  color: var(--paper-muted);
  margin-top: 9px;
  font-size: 14px;
}

.npg-page-title {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--ink);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.npg-page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.96), rgba(13, 17, 23, 0.74)),
    var(--page-image, none);
  background-position: center;
  background-size: cover;
  opacity: 0.98;
}

.npg-page-title-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0 76px;
  position: relative;
  z-index: 2;
}

.entry-content {
  padding: 0;
}

.entry-content > .npg-section:first-child {
  padding-top: 78px;
}

.npg-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.npg-field label {
  display: block;
  font-weight: 800;
  margin-bottom: 7px;
}

.npg-field input,
.npg-field select,
.npg-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(13, 17, 23, 0.18);
  border-radius: 4px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

.npg-field textarea {
  min-height: 130px;
}

.npg-full {
  grid-column: 1 / -1;
}

.npg-alert {
  border-left: 4px solid var(--gold);
  background: #fff9eb;
  padding: 14px 16px;
  margin: 0 0 20px;
  color: var(--paper-text);
}

.npg-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.npg-status strong,
.npg-status span {
  display: block;
}

.npg-status span {
  color: var(--paper-muted);
  margin-top: 5px;
}

.site-footer {
  background: var(--ink);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 42px 0;
  font-size: 14px;
}

.npg-cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(200, 164, 93, 0.38);
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.96);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.npg-cookie-banner[hidden],
.npg-cookie-modal[hidden] {
  display: none;
}

.npg-cookie-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 720px;
}

.npg-cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.npg-cookie-links a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.npg-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.npg-cookie-actions .npg-button {
  min-height: 42px;
}

.npg-cookie-banner .npg-button.dark-secondary {
  color: var(--text);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.npg-cookie-banner .npg-button.dark-secondary:hover {
  background: rgba(200, 164, 93, 0.16);
}

.npg-cookie-banner .npg-button {
  color: #101419;
}

.npg-cookie-dialog .npg-button.dark-secondary {
  color: var(--paper-text);
  border-color: var(--gold);
  background: transparent;
}

.npg-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 17, 23, 0.72);
}

.npg-cookie-dialog {
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(200, 164, 93, 0.28);
  border-radius: 8px;
  background: var(--paper);
  color: var(--paper-text);
  padding: 26px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

.npg-cookie-dialog h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.npg-cookie-dialog p {
  color: var(--paper-muted);
}

.npg-cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(13, 17, 23, 0.12);
}

.npg-cookie-option span {
  display: block;
  color: var(--paper-muted);
  margin-top: 3px;
}

.npg-cookie-option input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.npg-language-switcher {
  position: fixed;
  right: 18px;
  top: 96px;
  z-index: 1500;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(200, 164, 93, 0.32);
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.npg-language-switcher button {
  width: auto;
  min-height: 30px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.npg-language-switcher button.active,
.npg-language-switcher button:hover {
  background: var(--gold);
  color: #111;
}

.npg-language-prompt {
  position: fixed;
  right: 20px;
  top: 146px;
  z-index: 1600;
  width: min(420px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid rgba(200, 164, 93, 0.34);
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.96);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.npg-language-prompt[hidden] {
  display: none;
}

.npg-language-prompt p {
  margin: 7px 0 0;
  color: var(--muted);
}

.npg-language-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.npg-language-actions .npg-button.dark-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-logo {
  width: 300px;
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.footer-links a,
.npg-footer-link {
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  min-height: auto;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-links a:hover,
.npg-footer-link:hover {
  color: var(--text);
}

@media (max-width: 920px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 14px;
  }

  .npg-hero-inner,
  .npg-intro,
  .npg-media-inner,
  .npg-media-inner.reverse {
    grid-template-columns: 1fr;
  }

  .npg-hero-inner {
    min-height: 680px;
  }

  .npg-grid,
  .npg-grid.two,
  .npg-grid.four,
  .npg-grid.contact,
  .npg-status,
  .npg-form-grid,
  .npg-metrics,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .site-main > *,
  .footer-inner,
  .npg-hero-inner,
  .npg-media-inner,
  .npg-band-inner,
  .npg-page-title-inner {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: auto;
    gap: 14px;
  }

  .brand {
    width: 230px;
    min-height: 58px;
  }

  .brand-logo {
    max-height: 64px;
  }

  .footer-logo {
    width: 230px;
    max-height: 64px;
  }

  .nav-menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-menu a {
    display: block;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    text-align: center;
  }

  .npg-hero::before {
    background:
      linear-gradient(180deg, rgba(13, 17, 23, 0.96), rgba(13, 17, 23, 0.82) 58%, rgba(13, 17, 23, 0.64)),
      var(--hero-image);
    background-position: center top;
    background-size: cover;
  }

  .npg-hero-inner {
    min-height: auto;
    padding: 58px 0 42px;
    gap: 24px;
  }

  .npg-hero h1,
  .npg-page-title h1 {
    font-size: 42px;
    line-height: 1;
  }

  .npg-hero p {
    font-size: 17px;
  }

  .npg-hero-panel,
  .npg-card,
  .npg-portal-panel {
    padding: 18px;
  }

  .npg-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .npg-button,
  .button,
  button,
  input[type="submit"] {
    width: 100%;
    min-height: 50px;
  }

  .npg-section {
    padding: 54px 0;
  }

  .npg-section.tight {
    padding: 40px 0;
  }

  .npg-section h2,
  .entry-content h2 {
    font-size: 31px;
  }

  .npg-media-inner,
  .npg-media-inner.reverse,
  .npg-band-inner {
    padding: 56px 0;
  }

  .npg-photo img {
    aspect-ratio: 4 / 3;
  }

  .npg-metric {
    padding: 18px;
  }

  .npg-page-title-inner {
    padding: 64px 0 48px;
  }

  .npg-portal-panel h2 {
    font-size: 36px;
  }

  .npg-field input,
  .npg-field select,
  .npg-field textarea {
    min-height: 50px;
    font-size: 16px;
  }

  .npg-status {
    gap: 10px;
  }

  .npg-cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  .npg-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .npg-cookie-dialog {
    padding: 20px;
  }

  .npg-cookie-option {
    align-items: flex-start;
  }

  .npg-language-switcher {
    position: static;
    margin: 10px auto 0;
    width: fit-content;
  }

  .npg-language-prompt {
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 14px;
    width: auto;
  }

  .npg-language-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .nav-menu {
    grid-template-columns: 1fr;
  }

  .npg-hero h1,
  .npg-page-title h1 {
    font-size: 36px;
  }
}
