/*
Theme Name: NEXUS+ DY
Theme URI: https://xn--mtodody-bya.com
Author: DY Nutrição & Treinamento
Description: Tema institucional do Protocolo Nexus +, eBook e aplicativo NEXUS+.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: nexus-dy
*/

:root {
  --nx-bg: #070a09;
  --nx-surface: #101513;
  --nx-surface-2: #171d1a;
  --nx-ink: #f2f0e8;
  --nx-muted: #adb5af;
  --nx-gold: #d4af37;
  --nx-gold-soft: #f0d77c;
  --nx-green: #0f7655;
  --nx-line: rgba(212, 175, 55, 0.2);
  --nx-max: 1180px;
  --nx-radius: 14px;
  --nx-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--nx-ink);
  background:
    radial-gradient(900px 480px at 82% -5%, rgba(15, 118, 85, 0.12), transparent 70%),
    var(--nx-bg);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .nx-header { top: 32px; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #080a09; background: var(--nx-gold-soft); }
:focus-visible { outline: 3px solid var(--nx-gold-soft); outline-offset: 4px; }

.nx-shell { width: min(calc(100% - 40px), var(--nx-max)); margin-inline: auto; }
.nx-skip {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 10px 14px; color: #080a09; background: var(--nx-gold-soft);
  font-weight: 800; border-radius: 8px; transition: top .2s ease;
}
.nx-skip:focus { top: 16px; }

.nx-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--nx-line);
  background: rgba(7, 10, 9, 0.94);
  backdrop-filter: blur(16px);
}
.nx-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nx-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nx-brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--nx-gold); color: var(--nx-gold-soft);
  font-family: "Sora", Arial, sans-serif; font-weight: 800; font-size: 13px;
  transform: rotate(45deg);
}
.nx-brand__mark span { transform: rotate(-45deg); }
.nx-brand__name { font-family: "Sora", Arial, sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.nx-brand__name em { color: var(--nx-gold); font-style: normal; }
.nx-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.nx-nav a { color: var(--nx-muted); text-decoration: none; }
.nx-nav a:hover { color: var(--nx-ink); }
.nx-nav .nx-nav__action { color: #080a09; background: var(--nx-gold); padding: 10px 16px; border-radius: 999px; }
.nx-nav .nx-nav__action:hover { color: #080a09; background: var(--nx-gold-soft); }
.nx-mobile { display: none; position: relative; }
.nx-mobile summary { cursor: pointer; list-style: none; color: var(--nx-ink); font-weight: 800; }
.nx-mobile summary::-webkit-details-marker { display: none; }
.nx-mobile__panel {
  position: absolute; right: 0; top: 38px; width: min(290px, calc(100vw - 32px));
  padding: 14px; border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
  background: #0d1210; box-shadow: var(--nx-shadow);
}
.nx-mobile__panel a { display: block; padding: 11px; color: var(--nx-ink); text-decoration: none; }

.nx-main { overflow: hidden; }
.nx-hero { position: relative; padding: 92px 0 76px; border-bottom: 1px solid rgba(212,175,55,.14); }
.nx-hero::before, .nx-hero::after {
  content: ""; position: absolute; width: 80px; height: 80px; pointer-events: none;
}
.nx-hero::before { left: 22px; top: 24px; border-left: 1px solid var(--nx-line); border-top: 1px solid var(--nx-line); }
.nx-hero::after { right: 22px; bottom: 24px; border-right: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); }
.nx-hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 72px; }
.nx-hero h1, .nx-section h2, .nx-close h2 {
  margin: 0; font-family: "Sora", Arial, sans-serif; font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.03; text-wrap: balance;
}
.nx-hero h1 { max-width: 780px; font-size: clamp(46px, 6vw, 78px); }
.nx-hero h1 span { color: var(--nx-gold-soft); }
.nx-hero__lead { max-width: 650px; margin: 28px 0 0; color: var(--nx-muted); font-size: clamp(18px, 2vw, 21px); }
.nx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.nx-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 0 21px; border: 1px solid var(--nx-gold); border-radius: 999px;
  color: #080a09; background: var(--nx-gold); text-decoration: none; font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.nx-button:hover { transform: translateY(-2px); background: var(--nx-gold-soft); }
.nx-button--quiet { color: var(--nx-ink); background: transparent; border-color: rgba(242,240,232,.28); }
.nx-button--quiet:hover { color: #080a09; background: var(--nx-ink); }
.nx-hero__note { max-width: 590px; margin: 22px 0 0; color: #89928c; font-size: 13px; }

.nx-folio { position: relative; width: min(100%, 420px); margin-inline: auto; perspective: 1000px; }
.nx-folio__plate {
  position: relative; padding: 20px; border: 1px solid rgba(212,175,55,.3);
  border-radius: 18px; background: #0e1311; box-shadow: var(--nx-shadow);
  transform: rotate(2deg); animation: nx-folio-arrive .8s cubic-bezier(.2,.8,.2,1) both;
}
.nx-folio__plate::before {
  content: ""; position: absolute; inset: 11px; z-index: -1; border: 1px solid rgba(212,175,55,.16);
  border-radius: 14px; transform: translate(-28px, 24px) rotate(-5deg); background: #171d1a;
}
.nx-folio__plate img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px; }
.nx-folio__seal {
  position: absolute; right: -24px; bottom: 44px; display: grid; place-items: center;
  width: 92px; height: 92px; border-radius: 50%; color: #080a09; background: var(--nx-gold);
  font-family: "Sora", Arial, sans-serif; font-size: 12px; line-height: 1.15; font-weight: 800;
  text-align: center; text-transform: uppercase; box-shadow: 0 18px 44px rgba(0,0,0,.4);
}
@keyframes nx-folio-arrive { from { transform: translateY(22px) rotate(-1deg); filter: blur(3px); opacity: .92; } to { transform: rotate(2deg); filter: blur(0); opacity: 1; } }

.nx-section { padding: 112px 0; }
.nx-section--toned { background: var(--nx-surface); border-block: 1px solid rgba(212,175,55,.13); }
.nx-section h2 { font-size: clamp(35px, 5vw, 58px); }
.nx-section__intro { max-width: 760px; margin: 22px 0 0; color: var(--nx-muted); font-size: 19px; }

.nx-axes { margin-top: 58px; border-top: 1px solid var(--nx-line); }
.nx-axis { display: grid; grid-template-columns: 74px .8fr 1.2fr; gap: 30px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--nx-line); }
.nx-axis__mark { color: var(--nx-gold); font-family: "Sora", Arial, sans-serif; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-axis h3 { margin: 0; font-family: "Sora", Arial, sans-serif; font-size: 22px; line-height: 1.3; }
.nx-axis p { margin: 0; color: var(--nx-muted); }

.nx-book { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; align-items: center; }
.nx-book__visual { position: relative; max-width: 390px; justify-self: center; }
.nx-book__visual img { border-radius: 10px; box-shadow: 0 28px 80px rgba(0,0,0,.48); }
.nx-book__visual::after { content: "36 páginas"; position: absolute; right: -20px; top: 30px; padding: 8px 12px; color: #080a09; background: var(--nx-gold-soft); font-weight: 800; font-size: 13px; transform: rotate(3deg); }
.nx-book__content p { color: var(--nx-muted); }
.nx-index { margin: 30px 0; padding: 0; list-style: none; border-top: 1px solid var(--nx-line); }
.nx-index li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--nx-line); }
.nx-index strong { min-width: 140px; color: var(--nx-gold-soft); }
.nx-index span { color: var(--nx-muted); }

.nx-app { display: grid; grid-template-columns: 1.12fr .88fr; gap: 82px; align-items: center; }
.nx-app__copy p { max-width: 670px; color: var(--nx-muted); }
.nx-app__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 32px 0; border-top: 1px solid var(--nx-line); }
.nx-app__item { padding: 16px 0; border-bottom: 1px solid var(--nx-line); color: var(--nx-ink); font-weight: 700; }
.nx-phone {
  width: min(100%, 350px); margin-inline: auto; padding: 12px; border: 1px solid rgba(212,175,55,.35);
  border-radius: 32px; background: #050706; box-shadow: var(--nx-shadow); transform: rotate(-2deg);
}
.nx-phone__screen { min-height: 560px; padding: 30px 18px 20px; border-radius: 23px; background: #09100d; }
.nx-phone__top { display: flex; justify-content: space-between; color: var(--nx-muted); font-size: 12px; }
.nx-phone__quote { margin: 24px 0; padding: 11px; border: 1px solid rgba(212,175,55,.24); border-radius: 12px; color: var(--nx-gold-soft); text-align: center; font-size: 13px; font-style: italic; }
.nx-phone h3 { margin: 0 0 14px; font-family: "Sora", Arial, sans-serif; font-size: 17px; }
.nx-meal { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(242,240,232,.08); }
.nx-meal__icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(212,175,55,.25); border-radius: 10px; color: var(--nx-gold); }
.nx-meal strong { display: block; font-size: 13px; }
.nx-meal small { color: var(--nx-muted); font-size: 10px; }
.nx-meal em { padding: 4px 7px; border: 1px solid rgba(212,175,55,.2); border-radius: 999px; color: var(--nx-muted); font-size: 9px; font-style: normal; }
.nx-phone__nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 26px; color: var(--nx-muted); font-size: 10px; text-align: center; }
.nx-phone__nav b { display: block; margin-bottom: 3px; color: var(--nx-gold); font-size: 18px; }

.nx-path { padding: 86px 0; background: var(--nx-gold); color: #090b0a; }
.nx-path__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px; }
.nx-path h3 { margin: 0 0 9px; font-family: "Sora", Arial, sans-serif; font-size: 24px; }
.nx-path p { margin: 0; color: #3c392b; }
.nx-path__num { display: block; margin-bottom: 18px; font-family: "Sora", Arial, sans-serif; font-size: 13px; font-weight: 800; }

.nx-safety { display: grid; grid-template-columns: .9fr 1.1fr; gap: 74px; align-items: start; }
.nx-safety__rule { padding-left: 28px; border-left: 1px solid var(--nx-gold); }
.nx-safety__rule p { margin-top: 0; color: var(--nx-muted); }
.nx-safety__rule strong { color: var(--nx-ink); }

.nx-close { padding: 100px 0; text-align: center; }
.nx-close h2 { max-width: 900px; margin-inline: auto; font-size: clamp(38px, 5vw, 64px); }
.nx-close p { max-width: 670px; margin: 22px auto 0; color: var(--nx-muted); }
.nx-close .nx-actions { justify-content: center; }

.nx-footer { padding: 38px 0; border-top: 1px solid var(--nx-line); color: var(--nx-muted); font-size: 13px; }
.nx-footer__inner { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.nx-footer a { color: var(--nx-ink); text-underline-offset: 4px; }

.nx-default { min-height: 62vh; padding: 100px 0; }
.nx-default article { max-width: 760px; }
.nx-default h1 { font-family: "Sora", Arial, sans-serif; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; }
.nx-default .entry-content { color: var(--nx-muted); }

@media (max-width: 860px) {
  body.admin-bar .nx-header { top: 46px; }
  .nx-nav { display: none; }
  .nx-mobile { display: block; }
  .nx-hero { padding: 68px 0 76px; }
  .nx-hero__grid, .nx-book, .nx-app, .nx-safety { grid-template-columns: 1fr; gap: 56px; }
  .nx-folio { margin-top: 18px; }
  .nx-axis { grid-template-columns: 54px 1fr; gap: 16px; }
  .nx-axis p { grid-column: 2; }
  .nx-book__visual { order: 2; width: min(78vw, 360px); }
  .nx-path__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .nx-shell { width: min(calc(100% - 28px), var(--nx-max)); }
  .nx-header__inner { min-height: 66px; }
  .nx-brand__mark { width: 34px; height: 34px; }
  .nx-hero::before, .nx-hero::after { display: none; }
  .nx-hero h1 { font-size: clamp(41px, 13vw, 58px); }
  .nx-actions { flex-direction: column; }
  .nx-button { width: 100%; }
  .nx-folio__seal { right: -6px; bottom: 28px; width: 78px; height: 78px; font-size: 10px; }
  .nx-section { padding: 82px 0; }
  .nx-axis { grid-template-columns: 42px 1fr; padding: 22px 0; }
  .nx-axis h3 { font-size: 19px; }
  .nx-index li { display: block; }
  .nx-index strong { display: block; margin-bottom: 3px; }
  .nx-app__list { grid-template-columns: 1fr; }
  .nx-phone { width: min(100%, 340px); transform: none; }
  .nx-footer__inner { display: block; }
  .nx-footer__inner p + p { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


