/* NMX CRM template - Bootstrap 5 custom layer */
:root {
  --nmx-ink: #102a37;
  --nmx-ink-soft: #284552;
  --nmx-blue: #16617b;
  --nmx-blue-dark: #0e4a60;
  --nmx-teal: #1f817d;
  --nmx-accent: #d77b32;
  --nmx-paper: #ffffff;
  --nmx-surface: #f4f7f8;
  --nmx-surface-strong: #e8eff1;
  --nmx-line: #d6e0e3;
  --nmx-muted: #5c7079;
  --nmx-shadow: 0 1rem 3rem rgba(16, 42, 55, 0.09);
  --nmx-radius: 1.25rem;
  --bs-primary: var(--nmx-blue);
  --bs-primary-rgb: 22, 97, 123;
  --bs-link-color: var(--nmx-blue);
  --bs-link-hover-color: var(--nmx-blue-dark);
  --bs-body-color: var(--nmx-ink);
  --bs-body-bg: var(--nmx-paper);
  --bs-border-color: var(--nmx-line);
  --bs-font-sans-serif: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--nmx-ink);
  background: var(--nmx-paper);
  font-size: 1.05rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: 0.18em;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  z-index: 1100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--nmx-ink);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(215, 123, 50, 0.7);
  outline-offset: 3px;
}

.site-header {
  color: #fff;
  background: rgba(16, 42, 55, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 5rem;
}

.navbar-brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  color: #fff;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #fff;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(7.25rem, 11vw, 9rem);
  height: auto;
  aspect-ratio: 686 / 219;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 650;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff;
}

.dropdown-menu {
  padding: 0.65rem;
  border-color: var(--nmx-line);
  border-radius: 0.85rem;
  box-shadow: var(--nmx-shadow);
}

.dropdown-item {
  padding: 0.6rem 0.75rem;
  border-radius: 0.55rem;
}

.dropdown-item:active,
.dropdown-item:hover {
  color: var(--nmx-ink);
  background: var(--nmx-surface-strong);
}

.btn {
  --bs-btn-padding-x: 1.05rem;
  --bs-btn-padding-y: 0.68rem;
  --bs-btn-font-weight: 700;
  border-radius: 0.65rem;
}

.btn-primary,
.button {
  color: #fff;
  background: var(--nmx-blue);
  border-color: var(--nmx-blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.05rem;
  border: 1px solid var(--nmx-blue);
  border-radius: 0.65rem;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary:hover,
.button:hover {
  color: #fff;
  background: var(--nmx-blue-dark);
  border-color: var(--nmx-blue-dark);
}

.site-main {
  min-height: 55vh;
  overflow: hidden;
}

.hero {
  position: relative;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(31, 129, 125, 0.16), transparent 30rem),
    linear-gradient(145deg, #f7fafb 0%, #edf3f4 100%);
  border-bottom: 1px solid var(--nmx-line);
}

.hero::after {
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(22, 97, 123, 0.15);
  border-radius: 50%;
  content: "";
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
  color: var(--nmx-ink);
  font-size: clamp(2.35rem, 6vw, 5rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero .lead {
  max-width: 65ch;
  color: var(--nmx-ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.eyebrow {
  color: var(--nmx-teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  color: var(--nmx-blue-dark);
  background: rgba(22, 97, 123, 0.09);
  border: 1px solid rgba(22, 97, 123, 0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.section {
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.section-dark {
  color: #eaf2f3;
  background: var(--nmx-ink);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.page-content h2 {
  color: var(--nmx-ink);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-heading p {
  color: var(--nmx-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid > .card {
  grid-column: span 4;
}

.card {
  height: 100%;
  padding: 1.75rem;
  background: var(--nmx-paper);
  border: 1px solid var(--nmx-line);
  border-radius: var(--nmx-radius);
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: rgba(22, 97, 123, 0.35);
  box-shadow: 0 1.25rem 2.8rem rgba(16, 42, 55, 0.08);
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 0.8rem;
  color: var(--nmx-ink);
  font-size: 1.3rem;
  font-weight: 720;
}

.card p:last-child {
  margin-bottom: 0;
}

.feature-list {
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid var(--nmx-line);
}

.feature-list li::before {
  position: absolute;
  top: 1.05rem;
  left: 0.25rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--nmx-teal);
  border-radius: 50%;
  content: "";
}

.cta {
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
  background: linear-gradient(135deg, var(--nmx-ink), #173f4f);
  border-radius: calc(var(--nmx-radius) + 0.4rem);
  box-shadow: var(--nmx-shadow);
}

.cta h2,
.cta h3 {
  color: #fff;
}

.cta p {
  color: #cbdadd;
}

.content-surface,
.page-content {
  max-width: 58rem;
  margin-inline: auto;
}

.crm-content > h1,
.crm-content > h2,
.crm-content > h3,
.crm-content > h4,
.crm-content > p,
.crm-content > ul,
.crm-content > ol,
.crm-content > blockquote,
.crm-content > pre,
.crm-content > table,
.crm-content > img,
.crm-content > figure {
  width: min(calc(100% - 2rem), 58rem);
  margin-right: auto;
  margin-left: auto;
}

.crm-content > h1:first-child {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  margin-bottom: 2rem;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.crm-content > h2 {
  margin-top: 3.5rem;
}

.crm-content > p:last-child,
.crm-content > ul:last-child,
.crm-content > ol:last-child {
  padding-bottom: 4rem;
}

.page-content > h1:first-child {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.page-content h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
}

.page-content h3 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
  font-weight: 720;
}

.page-content img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 52rem;
  margin: 2rem auto 0.75rem;
  object-fit: contain;
  border: 1px solid var(--nmx-line);
  border-radius: 1rem;
  box-shadow: 0 0.8rem 2.25rem rgba(16, 42, 55, 0.08);
}

.page-content table {
  width: 100%;
  margin-block: 2rem;
  border-color: var(--nmx-line);
}

.page-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  color: var(--nmx-ink-soft);
  background: var(--nmx-surface);
  border-left: 0.3rem solid var(--nmx-teal);
  border-radius: 0 0.8rem 0.8rem 0;
}

.page-content pre {
  padding: 1.25rem;
  overflow-x: auto;
  color: #eaf2f3;
  background: #0d2029;
  border-radius: 0.85rem;
}

.page-content code {
  color: #9f4e15;
}

.page-content pre code {
  color: inherit;
}

.share-section {
  padding: 2.5rem 0 4.5rem;
  background: var(--nmx-surface);
}

.share-panel {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--nmx-line);
  border-radius: 1rem;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.site-footer {
  padding: 5rem 0 1.5rem;
  color: #cad8dc;
  background: #0b202a;
}

.footer-brand {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-lead {
  max-width: 32rem;
}

.site-footer address {
  color: #aebfc4;
  font-style: normal;
}

.footer-title {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links,
.footer-legal {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-links a,
.footer-legal a {
  color: #cad8dc;
  text-decoration: none;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  margin-top: 4rem;
  color: #8fa6ad;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top {
  position: fixed;
  z-index: 1000;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  color: #fff;
  background: var(--nmx-blue);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0.7rem 1.75rem rgba(16, 42, 55, 0.25);
  place-items: center;
}

.back-to-top[hidden] {
  display: none;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0 1.25rem;
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .dropdown-menu {
    box-shadow: none;
  }

  .grid > .card {
    grid-column: span 6;
  }

  .share-panel,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 1rem;
  }


  .brand-logo {
    width: 7.25rem;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding: 3.75rem 0;
  }

  .grid > .card {
    grid-column: 1 / -1;
  }

  .card {
    padding: 1.35rem;
  }

  .share-actions .btn {
    flex: 1 1 calc(50% - 0.55rem);
  }

  .footer-legal {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .share-section,
  .site-footer,
  .back-to-top,
  .btn {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .hero,
  .section,
  .section-dark {
    padding: 1.5rem 0;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
