/* Network Marketing MLM — design system
   DNA: cyan #029fe3, yellow #dddc00, navy hero #182b3c, dark footer #1e1f21,
   muted text #948a99, Varela Round, pill CTAs, full-bleed hero overlay */

:root {
  --nm-primary: #029fe3;
  --nm-primary-dark: #0280b8;
  --nm-accent: #dddc00;
  --nm-hero: #182b3c;
  --nm-footer: #1e1f21;
  --nm-text: #4a4452;
  --nm-muted: #948a99;
  --nm-border: #e6e2ea;
  --nm-bg: #ffffff;
  --nm-surface: #f5f8fb;
  --nm-radius: 6px;
  --nm-pill: 50px;
  --nm-shadow: 0 10px 30px -9px rgba(0, 0, 0, 0.16);
  --nm-container: 1140px;
  --nm-font: "Varela Round", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--nm-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--nm-text);
  background: var(--nm-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--nm-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--nm-primary-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--nm-font);
  color: #1a1a1a;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2.5rem, var(--nm-container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--nm-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 78px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  width: 200px;
  max-width: 48vw;
  height: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #1a1a1a;
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #2d2a33;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--nm-primary);
  border-bottom-color: var(--nm-primary);
}

.site-nav .nav-cta a {
  display: inline-flex;
  align-items: center;
  background: var(--nm-primary);
  color: #fff !important;
  border: 1px solid #1a1a1a;
  border-radius: var(--nm-pill);
  padding: 0.55rem 1.25rem;
  box-shadow: var(--nm-shadow);
  border-bottom: none;
}

.site-nav .nav-cta a:hover {
  background: var(--nm-primary-dark);
  border-bottom: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--nm-primary);
  color: #fff;
  border: 1px solid #1a1a1a;
  border-radius: var(--nm-pill);
  padding: 0.7rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--nm-shadow);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--nm-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--nm-accent);
  color: #1a1a1a;
  border-color: #1a1a1a;
}

.btn--accent:hover {
  background: #c9c800;
  color: #1a1a1a;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Hero — full-bleed workplace photo + navy wash */
.hero {
  position: relative;
  min-height: min(78vh, 620px);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 24, 38, 0.88) 0%, rgba(8, 24, 38, 0.62) 48%, rgba(8, 24, 38, 0.35) 100%),
    url("/wp-content/uploads/2020/05/home-1536x1024.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px;
  background: linear-gradient(to top, #fff, transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5.5rem;
  max-width: 640px;
}

.hero__brand {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nm-accent);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 3.5rem 0;
}

.section--surface {
  background: var(--nm-surface);
}

.section__head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section__head p {
  color: var(--nm-muted);
  margin: 0;
}

.section__eyebrow {
  display: inline-block;
  color: var(--nm-primary);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.split--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split__media img {
  width: 100%;
  border-radius: var(--nm-radius);
  box-shadow: var(--nm-shadow);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
}

.feature h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--nm-muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 1.25rem 1.35rem;
  background: #fff;
  border-top: 3px solid var(--nm-primary);
  border-radius: 0 0 var(--nm-radius) var(--nm-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--nm-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  background: #fff;
  padding: 1.1rem 1.25rem;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--nm-primary);
}

.faq-item p {
  margin: 0;
  color: var(--nm-muted);
}

.checklist {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--nm-text);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--nm-accent);
  box-shadow: 0 0 0 3px rgba(221, 220, 0, 0.25);
}

.cta-band {
  background: linear-gradient(120deg, var(--nm-hero) 0%, #0d3f5c 55%, var(--nm-primary) 100%);
  color: #fff;
  padding: 3rem 0;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.page-header {
  padding: 2.5rem 0 1.25rem;
  border-bottom: 1px solid var(--nm-border);
  margin-bottom: 1.75rem;
}

.page-header h1 {
  margin: 0 0 0.4rem;
}

.page-header p {
  margin: 0;
  color: var(--nm-muted);
  max-width: 40rem;
}

.page-shell {
  padding: 0 0 3.5rem;
}

.romlicontainer {
  max-width: 48rem;
}

.romlicontainer > *:first-child {
  margin-top: 0;
}

.romlicontainer h2,
.romlicontainer h3 {
  margin-top: 1.6em;
}

.romlicontainer img {
  margin: 1rem 0;
  border-radius: var(--nm-radius);
}

.romlicontainer ul,
.romlicontainer ol {
  padding-left: 1.25rem;
}

.romlicontainer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.romlicontainer .table-wrap,
.romlicontainer table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.romlicontainer table {
  border-collapse: collapse;
  min-width: 560px;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.romlicontainer th,
.romlicontainer td {
  border: 1px solid var(--nm-border);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.romlicontainer th {
  background: var(--nm-surface);
  color: #1a1a1a;
  font-weight: 700;
  white-space: nowrap;
}

.romlicontainer tr:nth-child(even) td {
  background: #fafbfd;
}

.site-footer {
  background: var(--nm-footer);
  color: var(--nm-muted);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: #d7d0df;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer__brand p {
  margin: 0.75rem 0 0;
  max-width: 22rem;
}

.sitewide-slot {
  margin: 1.25rem 0 1.75rem;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.links-slot {
  padding: 1.5rem 0 0.5rem;
}

/* Soft entrance for key blocks */
.hero__inner,
.section__head,
.feature,
.step,
.faq-item {
  animation: nm-rise 0.55s ease both;
}

.feature:nth-child(2),
.step:nth-child(2),
.faq-item:nth-child(2) { animation-delay: 0.08s; }
.feature:nth-child(3),
.step:nth-child(3),
.faq-item:nth-child(3) { animation-delay: 0.16s; }

@keyframes nm-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .split,
  .split--reverse,
  .feature-grid,
  .steps,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #fff;
    border-bottom: 1px solid var(--nm-border);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-header__inner {
    position: relative;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
  }

  .hero {
    min-height: 520px;
    background-position: 58% center;
  }

  .hero::after {
    height: 48px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 1.5rem, var(--nm-container));
  }

  .site-header__inner {
    min-height: 68px;
  }

  .hero__inner {
    padding: 3.25rem 0 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner,
  .section__head,
  .feature,
  .step,
  .faq-item {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* Legacy Elementor content inside the new shell */
.legacy-content.romlicontainer {
  max-width: none;
}

/* Page already has one chrome H1 — demote leftover export headings */
.page-shell .page-header + .legacy-content h1 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-top: 1.5rem;
}

.legacy-content .elementor-invisible {
  opacity: 1 !important;
  visibility: visible !important;
}

.legacy-content img {
  margin: 0;
}

.legacy-content .elementor-section {
  margin: 0 0 1.5rem;
}

.legacy-content .elementor-widget-container > style,
.legacy-content link[rel="stylesheet"] {
  /* keep linked Elementor widget CSS; inline style tags stay for accordion/layout */
}

.legacy-content .elementor-posts-container,
.legacy-content .elementor-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.legacy-content .elementor-post__card {
  background: #fff;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.legacy-content .elementor-post__thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.legacy-content .elementor-post__text {
  padding: 1rem 1.1rem 1.2rem;
}

.legacy-content .elementor-post__title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.legacy-content .elementor-post__excerpt {
  color: var(--nm-muted);
  font-size: 0.92rem;
}

.legacy-content .elementor-accordion-item {
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: #fff;
}

.legacy-content .elementor-tab-title {
  margin: 0;
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #1a1a1a;
}

.legacy-content .elementor-tab-title a {
  color: inherit;
  text-decoration: none;
}

.legacy-content .elementor-tab-content {
  display: none;
  padding: 0 1.1rem 1rem;
  color: var(--nm-muted);
  border-top: 1px solid var(--nm-border);
}

.legacy-content .elementor-tab-title.elementor-active + .elementor-tab-content,
.legacy-content .elementor-tab-content.elementor-active {
  display: block;
}

.legacy-content .elementor-accordion-icon-opened {
  display: none;
}

.legacy-content .elementor-tab-title.elementor-active .elementor-accordion-icon-closed {
  display: none;
}

.legacy-content .elementor-tab-title.elementor-active .elementor-accordion-icon-opened {
  display: block;
}

/* Job listings */
.legacy-content .job_listings,
.legacy-content ul.job_listings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.legacy-content .job-list,
.legacy-content li.job_listing {
  border-bottom: 1px solid var(--nm-border);
}

.legacy-content .job-list > a,
.legacy-content li.job_listing > a {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0.25rem;
  color: inherit;
  text-decoration: none;
}

.legacy-content .job-content-wrapper {
  display: contents;
}

.legacy-content .company_logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--nm-surface);
}

.legacy-content .job-title .title,
.legacy-content .job-title h5 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  color: var(--nm-primary);
  line-height: 1.35;
}

.legacy-content .job-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--nm-muted);
  font-size: 0.88rem;
}

.legacy-content .job-list .date,
.legacy-content .listing-date {
  color: var(--nm-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.legacy-content .elementor-icon-list-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.legacy-content .elementor-icon-list-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.legacy-content input,
.legacy-content textarea,
.legacy-content select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  padding: 0.7rem 0.85rem;
  font: inherit;
  margin-bottom: 0.75rem;
}

.legacy-content button,
.legacy-content input[type="submit"],
.legacy-content .wpforms-submit {
  display: inline-flex;
  background: var(--nm-primary);
  color: #fff;
  border: 1px solid #1a1a1a;
  border-radius: var(--nm-pill);
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 960px) {
  .legacy-content .elementor-posts-container,
  .legacy-content .elementor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .legacy-content .elementor-posts-container,
  .legacy-content .elementor-grid {
    grid-template-columns: 1fr;
  }

  .legacy-content .job-list > a,
  .legacy-content li.job_listing > a {
    grid-template-columns: 56px 1fr;
  }

  .legacy-content .job-list .date,
  .legacy-content .listing-date {
    grid-column: 2;
  }
}
