/*
Theme Name: North Blue Genetics
Theme URI: https://northbluegenetics.com/
Author: North Blue Genetics
Description: Cobalt, sky-blue, white, and psychedelic editorial theme for a premium cannabis genetics brand.
Version: 1.0.0
Text Domain: northblue-genetics
*/

:root {
  --nb-night: #04122b;
  --nb-deep: #062766;
  --nb-cobalt: #0758db;
  --nb-sky: #3cbff7;
  --nb-ice: #dff7ff;
  --nb-white: #ffffff;
  --nb-ink: #09214b;
  --nb-muted: #5d7192;
  --nb-line: rgba(9, 33, 75, 0.13);
  --nb-glass: rgba(255, 255, 255, 0.76);
  --nb-radius: 24px;
  --nb-shadow: 0 22px 65px rgba(2, 26, 80, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--nb-ink);
  background: #f7fcff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--nb-sky);
  outline-offset: 4px;
}

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

.nb-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nb-section {
  position: relative;
  padding: 112px 0;
}

.nb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--nb-cobalt);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nb-kicker::before {
  content: "✦";
  color: var(--nb-sky);
  font-size: 1.1rem;
}

.nb-title {
  max-width: 830px;
  margin: 0;
  color: var(--nb-deep);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.nb-title em {
  color: var(--nb-cobalt);
  font-family: Georgia, serif;
  font-weight: 500;
}

.nb-copy {
  max-width: 730px;
  font-size: 1.08rem;
  color: var(--nb-muted);
}

.nb-copy p {
  margin: 0 0 1.2em;
}

.nb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--nb-white);
  background: var(--nb-cobalt);
  box-shadow: 0 12px 30px rgba(7, 88, 219, 0.28);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nb-button:hover {
  transform: translateY(-3px);
  background: #0047bd;
  box-shadow: 0 18px 35px rgba(7, 88, 219, 0.36);
}

.nb-button--ghost {
  color: var(--nb-deep);
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.nb-button--ghost:hover {
  background: var(--nb-white);
}

/* Header */

.nb-site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 0;
  color: var(--nb-white);
}

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

.nb-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nb-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(64, 205, 255, 0.18);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.22);
  color: var(--nb-white);
  font-size: 1.35rem;
}

.nb-brand-text {
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1.05;
  text-transform: uppercase;
}

.nb-brand-text span {
  display: block;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  opacity: 0.75;
}

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

.nb-nav a {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 180ms ease;
}

.nb-nav a:hover,
.nb-nav .current-menu-item a {
  opacity: 1;
}

.nb-menu-toggle {
  display: none;
  border: 0;
  color: var(--nb-white);
  background: transparent;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Hero */

.nb-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 860px;
  align-items: flex-end;
  padding: 145px 0 86px;
  overflow: hidden;
  color: var(--nb-white);
  background: radial-gradient(circle at 20% 80%, #0d8de7 0%, #0758db 28%, #062766 60%, #04122b 100%);
}

.nb-hero::before,
.nb-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.82;
}

.nb-hero::before {
  width: min(70vw, 950px);
  height: min(70vw, 950px);
  top: -390px;
  right: -170px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 23px,
    rgba(99, 218, 255, 0.37) 24px 26px,
    transparent 27px 47px
  );
  box-shadow:
    0 0 0 55px rgba(42, 194, 255, 0.06),
    0 0 0 110px rgba(42, 194, 255, 0.05),
    0 0 100px 36px rgba(38, 195, 255, 0.45);
  animation: nb-spin 40s linear infinite;
}

.nb-hero::after {
  width: 670px;
  height: 400px;
  right: -160px;
  bottom: -170px;
  background: #54d6ff;
  filter: blur(95px);
  opacity: 0.36;
}

.nb-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(159, 233, 255, 0.32);
  border-radius: 50%;
  pointer-events: none;
}

.nb-orbit--one {
  width: 680px;
  height: 330px;
  top: 190px;
  right: -220px;
  transform: rotate(-31deg);
}

.nb-orbit--two {
  width: 890px;
  height: 420px;
  top: 125px;
  right: -305px;
  transform: rotate(26deg);
}

.nb-orbit--three {
  width: 540px;
  height: 220px;
  top: 295px;
  right: -85px;
  transform: rotate(72deg);
}

.nb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 46px;
}

.nb-hero .nb-kicker {
  color: #bceeff;
}

.nb-hero .nb-kicker::before {
  color: var(--nb-white);
}

.nb-hero-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.8rem, 8.2vw, 8.4rem);
  font-weight: 950;
  letter-spacing: -0.094em;
  line-height: 0.82;
  text-transform: uppercase;
}

.nb-hero-title .nb-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.85);
}

.nb-hero-lead {
  max-width: 590px;
  margin: 29px 0 35px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.nb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.nb-hero-card {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--nb-radius);
  background: rgba(5, 24, 72, 0.36);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(17px);
}

.nb-hero-card-label {
  display: flex;
  justify-content: space-between;
  color: #aeeaff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nb-hero-card-label span:last-child {
  color: var(--nb-white);
}

.nb-hero-card-word {
  margin: 25px 0 9px;
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  font-style: italic;
  line-height: 0.8;
}

.nb-hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.88rem;
}

.nb-scroll-note {
  position: absolute;
  bottom: 26px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nb-scroll-note::after {
  width: 35px;
  height: 1px;
  background: currentColor;
  content: "";
}

/* Marquee */

.nb-marquee {
  overflow: hidden;
  padding: 15px 0;
  color: var(--nb-white);
  background: var(--nb-cobalt);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nb-marquee-track {
  display: flex;
  width: max-content;
  animation: nb-marquee 27s linear infinite;
}

.nb-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.nb-marquee-track span::after {
  content: "✦";
  color: #8be6ff;
  font-size: 1.2rem;
}

/* Intro */

.nb-intro {
  overflow: hidden;
  background: var(--nb-white);
}

.nb-intro::before {
  position: absolute;
  width: 540px;
  height: 540px;
  top: -280px;
  left: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 191, 247, 0.18), transparent 66%);
  content: "";
}

.nb-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  gap: clamp(45px, 9vw, 150px);
  align-items: start;
}

.nb-big-quote {
  margin: 0;
  color: var(--nb-deep);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  font-style: italic;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.nb-big-quote strong {
  color: var(--nb-cobalt);
  font-weight: 500;
}

.nb-vertical-stamp {
  display: flex;
  min-height: 360px;
  align-items: flex-end;
  justify-content: center;
  padding: 28px;
  border: 1px solid var(--nb-line);
  border-radius: 220px 220px 26px 26px;
  background: linear-gradient(160deg, #e9fbff, #c7efff 50%, #fff);
  box-shadow: var(--nb-shadow);
}

.nb-stamp-inner {
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border: 1px dashed var(--nb-cobalt);
  border-radius: 50%;
  color: var(--nb-cobalt);
  text-align: center;
  transform: rotate(-10deg);
}

.nb-stamp-inner b {
  display: block;
  font-size: 1.8rem;
  line-height: 0.75;
}

.nb-stamp-inner small {
  display: block;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Pillars */

.nb-pillars {
  overflow: hidden;
  color: var(--nb-white);
  background: var(--nb-night);
}

.nb-pillars::before {
  position: absolute;
  width: 800px;
  height: 800px;
  top: -400px;
  left: -360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 108, 255, 0.55), transparent 64%);
  content: "";
}

.nb-pillars-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}

.nb-pillars .nb-title {
  max-width: 670px;
  color: var(--nb-white);
}

.nb-pillars .nb-copy {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.62);
}

.nb-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.nb-pillar {
  min-height: 280px;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.01);
  transition: background 220ms ease, transform 220ms ease;
}

.nb-pillar:hover {
  background: rgba(54, 190, 247, 0.13);
  transform: translateY(-8px);
}

.nb-pillar-number {
  color: #73dfff;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.nb-pillar h3 {
  margin: 60px 0 12px;
  color: var(--nb-white);
  font-size: 1.65rem;
  letter-spacing: -0.045em;
}

.nb-pillar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.94rem;
}

/* Links */

.nb-pathways {
  background: linear-gradient(180deg, #eefaff, #fff);
}

.nb-pathways-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.nb-pathways-header .nb-title {
  max-width: 650px;
  font-size: clamp(2.5rem, 4.5vw, 4.7rem);
}

.nb-link-list {
  border-top: 1px solid var(--nb-line);
}

.nb-link-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 3px;
  border-bottom: 1px solid var(--nb-line);
  transition: padding 180ms ease, color 180ms ease;
}

.nb-link-row:hover {
  padding-left: 16px;
  color: var(--nb-cobalt);
}

.nb-link-row-index {
  color: var(--nb-sky);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.nb-link-row-title {
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.065em;
}

.nb-link-row-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--nb-line);
  border-radius: 50%;
  font-size: 1.4rem;
  transition: color 180ms ease, background 180ms ease;
}

.nb-link-row:hover .nb-link-row-arrow {
  border-color: var(--nb-cobalt);
  color: var(--nb-white);
  background: var(--nb-cobalt);
}

/* CTA and footer */

.nb-cta {
  overflow: hidden;
  color: var(--nb-white);
  background: var(--nb-cobalt);
}

.nb-cta::before {
  position: absolute;
  width: 780px;
  height: 780px;
  top: -500px;
  right: -140px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.08),
    0 0 0 140px rgba(255, 255, 255, 0.05);
  content: "";
}

.nb-cta .nb-title {
  color: var(--nb-white);
}

.nb-cta-content {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
}

.nb-cta-copy {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.nb-site-footer {
  padding: 29px 0;
  color: rgba(255, 255, 255, 0.64);
  background: var(--nb-night);
}

.nb-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nb-footer-inner a:hover {
  color: var(--nb-white);
}

/* WordPress content pages */

.nb-page-hero {
  padding: 180px 0 70px;
  color: var(--nb-white);
  background:
    radial-gradient(circle at 80% 20%, #1daaf0, transparent 33%),
    var(--nb-deep);
}

.nb-page-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7rem);
  letter-spacing: -0.08em;
  line-height: 0.88;
}

.nb-content {
  padding: 80px 0 110px;
}

.nb-entry {
  max-width: 790px;
  font-size: 1.1rem;
}

.nb-entry h2,
.nb-entry h3 {
  color: var(--nb-deep);
  letter-spacing: -0.045em;
  line-height: 1;
}

.nb-entry h2 {
  margin-top: 2em;
  font-size: 2.3rem;
}

.nb-entry h3 {
  margin-top: 1.8em;
  font-size: 1.55rem;
}

.nb-entry a {
  color: var(--nb-cobalt);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nb-entry blockquote {
  margin: 2em 0;
  padding: 24px;
  border-left: 4px solid var(--nb-sky);
  background: #eefaff;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
}

@keyframes nb-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nb-marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 800px) {
  .nb-site-header {
    padding: 16px 0;
  }

  .nb-menu-toggle {
    display: block;
  }

  .nb-nav {
    position: fixed;
    inset: 74px 20px auto;
    display: none;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    background: rgba(4, 18, 43, 0.96);
    box-shadow: var(--nb-shadow);
  }

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

  .nb-nav ul {
    display: grid;
    gap: 4px;
  }

  .nb-nav a {
    display: block;
    padding: 12px;
  }

  .nb-hero {
    min-height: 790px;
    padding-top: 150px;
    padding-bottom: 75px;
  }

  .nb-hero-grid,
  .nb-intro-layout,
  .nb-pillars-header,
  .nb-cta-content {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nb-hero-card {
    max-width: 440px;
  }

  .nb-hero-title {
    font-size: clamp(3.6rem, 15vw, 6.3rem);
  }

  .nb-scroll-note {
    display: none;
  }

  .nb-section {
    padding: 78px 0;
  }

  .nb-vertical-stamp {
    min-height: 260px;
    max-width: 340px;
  }

  .nb-pillar-grid {
    grid-template-columns: 1fr;
  }

  .nb-pillar {
    min-height: auto;
  }

  .nb-pillar h3 {
    margin-top: 35px;
  }

  .nb-pathways-header {
    display: block;
  }

  .nb-pathways-header .nb-copy {
    margin-top: 18px;
  }

  .nb-link-row {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }

  .nb-link-row-title {
    font-size: 1.6rem;
  }

  .nb-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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