/* ==========================================================
   Nergyflux homepage styles
   Bootstrap handles grid, spacing utilities and components.
   This file contains only site-specific presentation.
   ========================================================== */

:root {
  --nf-blue: #0072bc;
  --nf-blue-dark: #005b98;
  --nf-ink: #142d40;
  --nf-body: #526675;
  --nf-line: #dce5eb;
  --nf-pale: #f3f7f9;
  --nf-teal: #00a99d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--nf-body);
  line-height: 1.65;
  background: #fff;
}
h1, h2, h3, h4 {
  font-family: "Manrope", sans-serif;
  color: var(--nf-ink);
  letter-spacing: -.035em;
}
a { text-decoration: none; }
.container { max-width: 1240px; }

.topline {
  font-size: .76rem;
  background: #f4f7f9;
  border-bottom: 1px solid #e7edf1;
  color: #657887;
}
.topline a { color: #526675; }
.topline a:hover { color: var(--nf-blue); }

.navbar {
  background: #fff;
  border-bottom: 1px solid #e2e9ee;
  box-shadow: 0 4px 18px rgba(20, 45, 64, .08);
  padding: 17px 0;
  transition: padding .3s ease, box-shadow .3s ease;
}	
.navbar-brand {
  font: 800 1.55rem "Manrope", sans-serif;
  color: var(--nf-ink);
  letter-spacing: -.06em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.navbar-brand:hover { color: var(--nf-ink); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--nf-blue);
  color: var(--nf-blue);
  font-size: 1.05rem;
}
.navbar .nav-link {
  font-size: .98rem;
  font-weight: 500;
  color: #324c5e;
  padding: .65rem 1.5rem !important;
}
.navbar .nav-link:hover { color: var(--nf-blue); }
.navbar .dropdown-menu {
  border: 1px solid var(--nf-line);
  border-radius: 0;
  box-shadow: 0 12px 30px #163b5512;
  padding: 10px;
}
.navbar .dropdown-item { font-size: .88rem; padding: 9px 12px; }
.navbar .dropdown-item:hover { background: #eef6fb; color: var(--nf-blue); }

.btn {
  border-radius: 2px;
  padding: 12px 20px;
  font-size: .88rem;
  font-weight: 700;
}
.btn-primary { background: var(--nf-blue); border-color: var(--nf-blue); }
.btn-primary:hover { background: var(--nf-blue-dark); border-color: var(--nf-blue-dark); }
.btn-outline-primary { border-color: var(--nf-blue); color: var(--nf-blue); }
.btn-outline-primary:hover { background: var(--nf-blue); border-color: var(--nf-blue); }

.hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #e8f1f6;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 35%, rgba(255,255,255,.48) 61%, rgba(255,255,255,.04) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 88px 0 95px; }
.eyebrow, .section-kicker {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nf-blue);
  font-weight: 800;
  margin-bottom: 17px;
}
.hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.65rem);
  line-height: 1.08;
  font-weight: 700;
  max-width: 660px;
  margin-bottom: 22px;
}
.hero p { font-size: 1.12rem; max-width: 600px; margin-bottom: 29px; color: #40596b; }
.hero-links { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.text-action { color: var(--nf-blue); font-weight: 500; font-size: .9rem; }
.text-action:hover, .arrow-link:hover { color: var(--nf-blue-dark); }
.text-action i { margin-left: 5px; }
.hero-index {
  position: absolute;
  right: 5.5%;
  bottom: 32px;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .76rem;
  color: #fff;
  text-shadow: 0 1px 4px #0008;
}
.hero-index span { height: 3px; width: 30px; background: #ffffff88; }
.hero-index span.active { width: 54px; background: #fff; }

.industry-nav { border-bottom: 1px solid var(--nf-line); background: #fff; }
.industry-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 83px;
}
.industry-nav-label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
  color: #7c8d99;
  white-space: nowrap;
}
.industry-nav a {
  color: #314b5d;
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
  padding: 27px 0;
  border-bottom: 3px solid transparent;
}
.industry-nav a:hover { color: var(--nf-blue); border-color: var(--nf-blue); }

.section { padding: 70px 0; }
.section-pale { background: var(--nf-pale); }
.section-title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.17;
  font-weight: 700;
  margin-bottom: 18px;
}
.section-copy { font-size: 1.04rem; max-width: 740px; }
.intro-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}
.intro-visual { position: relative; min-height: 360px; }
.intro-visual img { width: 100%; height: 360px; object-fit: cover; }
.visual-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #fff;
  padding: 18px 22px;
  max-width: 290px;
  border-top: 3px solid var(--nf-blue);
}
.visual-caption strong {
  display: block;
  font: 700 1.05rem "Manrope", sans-serif;
  color: var(--nf-ink);
}
.visual-caption span { font-size: .82rem; }

.industry-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--nf-line);
  border: 1px solid var(--nf-line);
  margin-top: 38px;
}
.industry-card { background: #fff; min-height: 255px; padding: 28px 24px; transition: background .2s; }
.industry-card:hover { background: #f5fbff; }
.industry-card-icon { font-size: 1.7rem; color: var(--nf-blue); margin-bottom: 25px; display: block; }
.industry-card h3 { font-size: 1.17rem; font-weight: 700; margin-bottom: 12px; }
.industry-card p { font-size: .89rem; margin-bottom: 20px; }
.arrow-link { font-size: .84rem; color: var(--nf-blue); font-weight: 800; }

.stories-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 35px; }
.story-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 24px; }
.story-card { border: 1px solid var(--nf-line); background: #fff; min-width: 0; }
.story-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.story-card.featured img { height: 270px; }
.story-content { padding: 24px; }
.story-type { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--nf-blue); font-weight: 800; margin-bottom: 10px; }
.story-card h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.story-card p { font-size: .88rem; margin-bottom: 20px; }

.platform-band { background: #eaf3f8; }
.platform-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.platform-graphic { background: #fff; padding: 25px; border: 1px solid #d9e5ec; box-shadow: 0 12px 30px #1d48630c; }
.graphic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e6edf1;
  padding-bottom: 15px;
  margin-bottom: 18px;
  font-size: .8rem;
  font-weight: 800;
  color: #476071;
}
.graphic-box { background: #f5f9fb; border: 1px solid #e2ebf0; padding: 18px; height: 100%; }
.graphic-box i { font-size: 1.45rem; color: var(--nf-blue); }
.graphic-box strong { display: block; color: var(--nf-ink); font-size: .92rem; margin: 10px 0 5px; }
.graphic-box span { font-size: .78rem; }
.platform-bullets { margin: 27px 0 0; padding: 0; list-style: none; }
.platform-bullets li { display: flex; gap: 13px; margin: 16px 0; color: #425a6a; }
.platform-bullets i { color: var(--nf-blue); font-size: 1.1rem; margin-top: 3px; }

.product-band { background: #fff; }
.product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--nf-line);
  border-left: 1px solid var(--nf-line);
  margin-top: 35px;
}
.product-item { padding: 27px 25px; border-right: 1px solid var(--nf-line); border-bottom: 1px solid var(--nf-line); min-height: 185px; }
.product-item h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 9px; }
.product-item p { font-size: .86rem; margin-bottom: 15px; }
.product-item a { font-size: .82rem; color: var(--nf-blue); font-weight: 500; }
.product-item a:hover { color: var(--nf-blue-dark); }

.insight-strip { padding: 65px 0; background: #f5f8fa; border-top: 1px solid var(--nf-line); border-bottom: 1px solid var(--nf-line); }
.insight-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.insight-inner h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 700; margin-bottom: 9px; }
.insight-inner p { margin: 0; max-width: 700px; }

footer { padding: 55px 0 22px; background: #fff; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand-copy { font-size: .87rem; max-width: 330px; margin-top: 18px; }
.footer-heading { font: 800 .86rem "Manrope", sans-serif; color: var(--nf-ink); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: .84rem; color: #5c7180; }
.footer-links a:hover { color: var(--nf-blue); }
.footer-bottom {
  border-top: 1px solid var(--nf-line);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: .77rem;
  color: #81909b;
}

@media (max-width: 991.98px) {
  .hero { min-height: 520px; }
  .hero-wash { background: linear-gradient(90deg, rgba(255,255,255,.97), rgba(255,255,255,.78) 70%, rgba(255,255,255,.35)); }
  .industry-nav-inner { overflow-x: auto; justify-content: flex-start; gap: 28px; }
  .industry-nav-label { display: none; }
  .intro-layout, .platform-layout { grid-template-columns: 1fr; gap: 35px; }
  .industry-cards { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .story-card.featured { grid-column: span 2; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .hero { min-height: 540px; }
  .hero-inner { padding: 65px 0; }
  .hero h1 { font-size: 2.65rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 50px 0; }
  .industry-cards, .story-grid, .product-list { grid-template-columns: 1fr; }
  .story-card.featured { grid-column: auto; }
  .story-card.featured img, .story-card img { height: 205px; }
  .stories-head, .insight-inner { align-items: flex-start; flex-direction: column; }
  .industry-card { min-height: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-top > div:first-child { grid-column: span 2; }
  .footer-bottom { flex-direction: column; }
  .intro-visual, .intro-visual img { min-height: 290px; height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* ==========================================================
   V4 refinements: full-width mega menus + working hero slider
   ========================================================== */
@media (min-width: 992px) {
  .navbar .container { position: relative; }
  .navbar .navbar-nav { position: static; }
  .navbar .mega-dropdown { position: static; }
  .navbar .mega-menu {
    top: calc(100% + 1px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(1080px, calc(100vw - 48px));
    margin-top: 0;
    padding: 0;
    border: 1px solid #dce6ec;
    border-top: 3px solid var(--nf-blue);
    border-radius: 0;
    box-shadow: 0 22px 55px rgba(19, 48, 68, .16);
    white-space: normal;
    overflow: hidden;
  }
  .navbar .mega-menu.show { display: grid; }
  .mega-industries { grid-template-columns: .82fr 1.55fr; }
  .mega-products { grid-template-columns: .82fr 1.8fr; }
}
.mega-intro {
  padding: 32px 30px;
  background: linear-gradient(145deg, #f2f8fb, #e8f2f8);
  border-right: 1px solid #dce6ec;
}
.mega-kicker, .mega-group-title {
  display: block;
  font-size: .67rem;
  letter-spacing: .13em;
  font-weight: 800;
  color: var(--nf-blue);
  margin-bottom: 13px;
}
.mega-intro h2 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 12px; font-weight: 800; }
.mega-intro p { font-size: .86rem; line-height: 1.6; margin: 0 0 20px; }
.mega-feature-link { color: var(--nf-blue); font-size: .82rem; font-weight: 800; }
.mega-feature-link:hover { color: var(--nf-blue-dark); }
.mega-links-grid { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 4px; }
.mega-link { display: flex; align-items: flex-start; gap: 13px; padding: 17px 13px; border: 1px solid transparent; color: var(--nf-body); transition: background .2s, border-color .2s; }
.mega-link:hover { background: #f7fbfd; border-color: #dceaf2; color: var(--nf-body); }
.mega-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 39px; color: var(--nf-blue); background: #e8f4fb; font-size: 1.1rem; }
.mega-link strong, .mega-product-group strong { display: block; color: var(--nf-ink); font-size: .88rem; font-weight: 800; line-height: 1.3; }
.mega-link small, .mega-product-group small { display: block; font-size: .74rem; line-height: 1.45; color: #6c7f8c; margin-top: 5px; }
.mega-arrow { margin-left: auto; color: #7b96a6; font-size: .8rem; }
.mega-product-groups { display: grid; grid-template-columns: 1fr 1fr; padding: 25px 28px; gap: 30px; }
.mega-product-group { display: flex; flex-direction: column; gap: 0; }
.mega-group-title { margin-bottom: 9px; }
.mega-product-group a { padding: 9px 0; border-bottom: 1px solid #edf1f4; }
.mega-product-group a:last-child { border-bottom: 0; }
.mega-product-group a:hover strong { color: var(--nf-blue); }

.hero-slideshow { position: absolute; inset: 0; overflow: hidden; background: #e8f1f6; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1.15s ease-in-out, transform 6.5s ease-out;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-wash { z-index: 1; }
.hero-inner { z-index: 2; }
.hero-index { z-index: 3; gap: 9px; }
.hero-index .hero-dot {
  display: block;
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255,255,255,.58);
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.hero-index .hero-dot.active { width: 48px; background: #fff; }
.hero-index .hero-dot:focus-visible { outline: 2px solid var(--nf-blue); outline-offset: 4px; }
.hero-counter { margin-left: 7px; font-variant-numeric: tabular-nums; }

@media (max-width: 991.98px) {
  .navbar .mega-menu, .navbar .mega-menu.show {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-left: 2px solid #dceaf2;
    padding: 0;
    margin: 0 0 12px 0;
    display: block;
  }
  .mega-intro { padding: 18px 20px; border-right: 0; }
  .mega-intro h2 { font-size: 1.2rem; }
  .mega-links-grid { grid-template-columns: 1fr; padding: 8px; gap: 0; }
  .mega-link { padding: 12px; }
  .mega-product-groups { grid-template-columns: 1fr; padding: 16px 20px; gap: 18px; }
  .mega-product-group a { padding: 8px 0; }
  .hero-slide { object-position: 58% center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
}


/* V5 refinements: more balanced hero typography and expanded corporate footer */
.hero h1 {
  font-size: clamp(2.45rem, 4.15vw, 3.85rem);
  line-height: 1.12;
  max-width: 720px;
  letter-spacing: -.04em;
}
.hero p { font-size: 1rem; max-width: 560px; }
.site-footer { padding: 48px 0 22px; background: #fff; }
.site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) repeat(4, minmax(125px, 1fr));
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
}
.site-footer .footer-logo { color: #0646b5; font-size: 1.55rem; }
.site-footer .footer-logo .brand-mark {
  width: 34px; height: 34px; border: 0; color: #68a8dc; font-size: 1.65rem;
}
.site-footer .footer-brand-copy {
  max-width: 360px; margin: 16px 0 22px; font-size: .93rem;
  line-height: 1.75; color: #1e293b;
}
.footer-socials { display: flex; align-items: center; gap: 28px; }
.footer-socials a { color: #78838d; font-size: 1.15rem; transition: color .2s ease; }
.footer-socials a:hover { color: var(--nf-blue); }
.site-footer .footer-heading {
  font-size: 1rem; font-weight: 700; margin: 3px 0 24px; color: #111827;
}
.site-footer .footer-links { gap: 13px; }
.site-footer .footer-links a {
  display: flex; align-items: center; gap: 10px; color: #243447;
  font-size: .91rem; line-height: 1.5; white-space: normal;
}
.site-footer .footer-links a i { font-size: .75rem; color: #172f45; flex: 0 0 auto; }
.site-footer .footer-links a:hover { color: var(--nf-blue); }
.site-footer .footer-bottom { margin-top: 38px; font-size: .78rem; }
@media (max-width: 1199.98px) {
  .site-footer .footer-top { grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(150px, 1fr)); }
}
@media (max-width: 767.98px) {
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1.12; }
  .site-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .site-footer .footer-brand-column { grid-column: 1 / -1; }
  .site-footer .footer-bottom { flex-direction: column; }
}


/* V6 refinements: remove utility strip, normalize editorial image sizes,
   and provide reusable product-logo placeholders for future platform pages. */
.topline { display: none !important; }
.story-grid { align-items: stretch; }
.story-card, .story-card.featured { display: flex; flex-direction: column; height: 100%; }
.story-card > img, .story-card.featured > img {
  width: 100%;
  height: clamp(220px, 22vw, 310px);
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
}
.story-content { flex: 1 1 auto; }
.product-item { display: flex; flex-direction: column; align-items: flex-start; }
.product-logo-slot {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 17px;
  border: 1px dashed #b9cde0;
  border-radius: 7px;
  background: #f8fbfe;
  color: #63788c;
}
.logo-placeholder-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 6px;
  background: #e7f1fb; color: #1766b1; font-size: 1rem;
}
.logo-placeholder-text { font-size: .75rem; font-weight: 600; letter-spacing: .01em; }
.product-item h3 { margin-top: 0; }
@media (max-width: 767.98px) {
  .story-card > img, .story-card.featured > img { height: 220px; aspect-ratio: 16 / 9; }
  .product-logo-slot { min-height: 52px; margin-bottom: 14px; }
}


/* Desktop mega-menu interaction polish; preserve the original V6 layout. */
@media (min-width: 992px) {
  /* Keep the accent bar below the mega menu, not above it. */
  .navbar .mega-menu {
    border-top: 1px solid #dce6ec;
    border-bottom: 3px solid var(--nf-blue);
    opacity: 0;
    transform: translate3d(-50%, -8px, 0);
    transition: opacity .22s ease, transform .22s ease;
    will-change: opacity, transform;
  }
  .navbar .mega-menu.show {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
    animation: megaMenuIn .22s ease both;
  }
  .navbar .mega-menu.menu-closing {
    opacity: 0;
    transform: translate3d(-50%, -8px, 0);
    animation: megaMenuOut .18s ease both;
    pointer-events: none;
  }
  /* Remove the browser/Bootstrap square focus ring around the menu trigger. */
  .navbar .nav-link:focus,
  .navbar .nav-link:focus-visible,
  .navbar .nav-link.dropdown-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
  }
}
@keyframes megaMenuIn {
  from { opacity: 0; transform: translate3d(-50%, -8px, 0); }
  to   { opacity: 1; transform: translate3d(-50%, 0, 0); }
}
@keyframes megaMenuOut {
  from { opacity: 1; transform: translate3d(-50%, 0, 0); }
  to   { opacity: 0; transform: translate3d(-50%, -8px, 0); }
}
@media (max-width: 991.98px) {
  .navbar .mega-menu {
    opacity: 1;
    transform: none;
    transition: none;
    border-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .navbar .mega-menu,
  .navbar .mega-menu.show,
  .navbar .mega-menu.menu-closing {
    animation: none !important;
    transition: none !important;
  }
}


/* V6 hero refresh: cinematic video background, minimal copy, original navigation retained. */
.hero-video {
  min-height: clamp(560px, 72vh, 760px);
  background: #102838;
  color: #fff;
}
.hero-video .hero-slideshow {
  z-index: 0;
}
.hero-video .hero-slide {
  opacity: 1;
  transform: none;
}
.hero-video .hero-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  z-index: 1;
  background: #102838;
}
.hero-video .hero-wash {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 21, 34, .82) 0%, rgba(4, 21, 34, .62) 39%, rgba(4, 21, 34, .20) 72%, rgba(4, 21, 34, .08) 100%),
    linear-gradient(0deg, rgba(4, 21, 34, .28), transparent 45%);
}
.hero-video .hero-inner {
  z-index: 3;
  padding-top: clamp(90px, 12vh, 150px);
  padding-bottom: clamp(90px, 12vh, 150px);
}
.hero-video .eyebrow {
  color: #9bd8ff;
  font-size: .78rem;
  letter-spacing: .16em;
  margin-bottom: 22px;
}
.hero-video h1 {
  max-width: 850px;
  color: #fff;
  font-size: clamp(3rem, 6.1vw, 5rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.055em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-video p {
  max-width: 610px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  margin-bottom: 34px;
}
.hero-video .hero-links { gap: 18px; }
.hero-video .btn-primary {
  padding: 12px 20px;
  font-size: var(--nf-text-sm);
  font-weight: 500;
  border-radius: 2px;
  min-height: 46px;
  background: var(--nf-blue);
  border-color: var(--nf-blue);
}
.hero-video .btn-primary:hover { background: var(--nf-blue-dark); border-color: var(--nf-blue-dark); }
.hero-video .hero-video-link {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 4px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.65);
  transition: border-color .2s ease, color .2s ease;
}
.hero-video .hero-video-link:hover { color: #9bd8ff; border-color: #9bd8ff; }
@media (max-width: 767.98px) {
  .hero-video { min-height: 560px; }
  .hero-video .hero-background-video { object-position: 58% center; }
  .hero-video .hero-wash {
    background: linear-gradient(90deg, rgba(4,21,34,.78), rgba(4,21,34,.40)),
                linear-gradient(0deg, rgba(4,21,34,.34), rgba(4,21,34,.08));
  }
  .hero-video .hero-inner { padding-top: 95px; padding-bottom: 95px; }
  .hero-video h1 { font-size: clamp(2.8rem, 10vw, 4rem); max-width: 560px; }
  .hero-video p { max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video .hero-background-video { display: none; }
  .hero-video .hero-slide { opacity: 1; }
}

/* If the remote video cannot load, reveal the hero poster imagery instead. */
.hero-video.video-failed .hero-background-video { display: none; }
.hero-video.video-failed .hero-slideshow { display: block; }


/* Footer refresh: harmonize with the cinematic hero while preserving the existing layout. */
.site-footer {
  background: #041522;
  color: #f5f8fb;
  border-top: 1px solid rgba(103, 197, 255, .22);
  padding-top: clamp(48px, 6vw, 76px);
}
.site-footer .footer-logo,
.site-footer .footer-logo:hover,
.site-footer .footer-logo:focus {
  color: #ffffff;
}
.site-footer .footer-logo .brand-mark {
  color: #67c5ff;
}
.site-footer .footer-brand-copy {
  color: #c3d2df;
}
.site-footer .footer-heading {
  color: #67c5ff;
}
.site-footer .footer-links a {
  color: #e4edf4;
  transition: color .2s ease, transform .2s ease;
}
.site-footer .footer-links a i {
  color: #67c5ff;
}
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus {
  color: #67c5ff;
}
.site-footer .footer-socials a {
  color: #a8bac9;
  transition: color .2s ease, transform .2s ease;
}
.site-footer .footer-socials a:hover,
.site-footer .footer-socials a:focus {
  color: #67c5ff;
  transform: translateY(-2px);
}
.site-footer .footer-bottom {
  border-top-color: #244252;
}
.site-footer .footer-bottom,
.site-footer .footer-bottom p,
.site-footer .footer-bottom a {
  color: #9db0c0;
}
.site-footer .footer-bottom a:hover,
.site-footer .footer-bottom a:focus {
  color: #67c5ff;
}
@media (max-width: 767.98px) {
  .site-footer {
    padding-top: 42px;
  }
}


/* Featured-highlight mega menus for Industries, Programs and Use Cases.
   The Platforms mega menu keeps its original V6 two-column design. */
@media (min-width: 992px) {
  .navbar .mega-featured-menu {
    display: block;
    width: min(1280px, calc(100vw - 48px));
    padding: 24px 26px 25px;
    border-top: 1px solid #dce6ec;
    background: #fff;
    transform: translateX(-50%);
  }
  .navbar .mega-featured-menu.show { display: block; }
}
.mega-featured-heading {
  color: #172b3a;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 13px;
}
.mega-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.mega-feature-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--nf-body);
  text-decoration: none;
  padding-bottom: 3px;
}
.mega-feature-card img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 12px;
  background: #eaf1f5;
}
.mega-feature-card-title {
  display: block;
  color: #101f2c;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.mega-feature-card-copy {
  display: block;
  color: #697782;
  font-size: .79rem;
  line-height: 1.5;
  min-height: 48px;
}
.mega-feature-card-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--nf-blue);
  font-size: .82rem;
  font-weight: 500;
  margin-top: 10px;
}
.mega-feature-card-link i {
  font-size: 1.05rem;
  transition: transform .2s ease;
}
.mega-feature-card:hover .mega-feature-card-title,
.mega-feature-card:hover .mega-feature-card-link { color: var(--nf-blue-dark); }
.mega-feature-card:hover .mega-feature-card-link i { transform: translateX(4px); }
.mega-feature-card img { transition: filter .2s ease; }
.mega-feature-card:hover img { filter: saturate(1.08); }
@media (max-width: 991.98px) {
  .navbar .mega-featured-menu {
    width: 100%;
    max-height: min(72vh, 650px);
    overflow-y: auto;
    padding: 15px;
    border: 0;
    box-shadow: none;
    transform: none;
  }
  .mega-featured-heading { margin-bottom: 12px; }
  .mega-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .mega-feature-card img { height: 105px; }
  .mega-feature-card-copy { min-height: 0; }
}
@media (max-width: 575.98px) {
  .mega-featured-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .mega-feature-card img { height: 82px; }
  .mega-feature-card-title { font-size: .88rem; }
  .mega-feature-card-copy { font-size: .72rem; }
  .mega-feature-card-link { margin-top: 7px; }
}


/* Full-viewport Platforms mega menu with industry selector, inspired by the reference layout. */
@media (min-width: 992px) {
  .navbar .mega-platforms-full {
    position: fixed !important;
    top: var(--platforms-menu-top, 104px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid #dce6ec !important;
    border-bottom: 1px solid #dce6ec !important;
    border-radius: 0 !important;
    box-shadow: 0 18px 35px rgba(19,48,68,.14) !important;
    overflow: visible !important;
    background: #fff !important;
    z-index: 1020;
  }
  .navbar .mega-platforms-full.show { display: block !important; }
  .platforms-mega-layout {
    display: grid;
    grid-template-columns: minmax(290px, 24%) minmax(0, 1fr);
    width: 100%;
    min-height: 420px;
  }
  .platforms-mega-sidebar {
    padding: 35px clamp(24px, 4vw, 68px);
    background: #f7fafc;
    border-right: 1px solid #dce6ec;
  }
  .platforms-mega-sidebar h2 {
    color: #102b3d;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 750;
    line-height: 1.18;
    margin: 10px 0 10px;
  }
  .platforms-mega-sidebar p {
    color: #6b7d89;
    font-size: .9rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .platforms-mega-kicker {
    display: block;
    color: var(--nf-blue);
    font-size: .69rem;
    letter-spacing: .13em;
    font-weight: 800;
  }
  .platforms-category {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #e3ebf0;
    background: transparent;
    color: #263f50;
    font-size: .96rem;
    transition: color .18s ease, padding .18s ease;
  }
  .platforms-category i { color: #7b96a6; }
  .platforms-category:hover,
  .platforms-category.is-active { color: var(--nf-blue); }
  .platforms-category.is-active { font-weight: 750; padding-left: 5px; }
  .platforms-category.is-active i { color: var(--nf-blue); }
  .platforms-all-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 22px;
    color: var(--nf-blue);
    font-weight: 750;
    font-size: .86rem;
  }
  .platforms-mega-content { padding: 35px clamp(26px, 4vw, 68px) 30px; min-width: 0; }
  .platforms-mega-content-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 21px;
  }
  .platforms-mega-content-head h3 {
    margin: 7px 0 0;
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
    color: #102b3d;
    font-weight: 750;
  }
  .platforms-mega-count { color: #7b8c98; font-size: .82rem; white-space: nowrap; }
  .platforms-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .platform-product-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 145px;
    padding: 16px;
    border: 1px solid #e1eaf0;
    color: #263f50;
    text-decoration: none;
    background: #fff;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
  }
  .platform-product-card:hover {
    border-color: #c6dfef;
    background: #f8fbfd;
    transform: translateY(-2px);
  }
  .platform-product-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    color: var(--nf-blue);
    background: #eaf5fb;
    font-size: 1.05rem;
  }
  .platform-product-card strong { color: #172f40; font-size: .93rem; line-height: 1.3; }
  .platform-product-card small { color: #71828e; font-size: .76rem; line-height: 1.4; margin-top: 5px; }
  .platform-product-view {
    margin-top: auto;
    padding-top: 9px;
    color: var(--nf-blue);
    font-size: .78rem;
    font-weight: 700;
  }
  .platform-product-view i { margin-left: 5px; transition: transform .2s ease; }
  .platform-product-card:hover .platform-product-view i { transform: translateX(3px); }
}
@media (max-width: 991.98px) {
  .navbar .mega-platforms-full {
    width: 100%;
    max-height: min(75vh, 680px);
    overflow-y: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    transform: none;
  }
  .platforms-mega-layout { display: block; }
  .platforms-mega-sidebar { padding: 18px; background: #f7fafc; border-bottom: 1px solid #dce6ec; }
  .platforms-mega-sidebar h2 { font-size: 1.35rem; margin: 6px 0; }
  .platforms-mega-sidebar p { font-size: .83rem; margin-bottom: 10px; }
  .platforms-category { padding: 9px 0; }
  .platforms-all-link { margin-top: 12px; }
  .platforms-mega-content { padding: 18px; }
  .platforms-mega-content-head { margin-bottom: 14px; }
  .platforms-mega-content-head h3 { font-size: 1.25rem; }
  .platforms-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .platform-product-card { min-height: 130px; padding: 12px; }
  .platform-product-card strong { font-size: .86rem; }
  .platform-product-card small { font-size: .72rem; }
}


/* Fix Platforms mega-menu hover gap: place the menu directly under the navbar
   and keep a transparent hover bridge in case a subpixel gap remains. */
@media (min-width: 992px) {
  .navbar .mega-platforms-full {
    top: var(--platforms-menu-top, 68px) !important;
  }
  .navbar .mega-platforms-full::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 14px;
    background: transparent;
    pointer-events: auto;
  }
}


/* Thin blue accent line along the bottom edge of the full-width Platforms menu. */
@media (min-width: 992px) {
  .navbar .mega-platforms-full {
    border-bottom: 4px solid var(--nf-blue) !important;
  }
}


/* Consistency pass: same desktop dropdown width and one link colour across all mega menus. */
@media (min-width: 992px) {
  /* Every desktop mega menu aligns to the same full viewport width as Platforms. */
  .navbar .mega-dropdown {
    position: static !important;
  }
  .navbar .mega-dropdown > .mega-menu,
  .navbar .mega-dropdown > .mega-featured-menu,
  .navbar .mega-dropdown > .mega-platforms-full {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
}
/* Keep link typography consistent across menu variants; use the same Nergyflux blue. */
.navbar .mega-menu a,
.navbar .mega-menu a:visited,
.navbar .mega-menu a:hover,
.navbar .mega-menu a:focus,
.navbar .mega-menu button,
.navbar .mega-menu button:hover,
.navbar .mega-menu button:focus,
.navbar .mega-menu .platforms-category,
.navbar .mega-menu .platforms-category:hover,
.navbar .mega-menu .platforms-category.is-active,
.navbar .mega-menu .platforms-all-link,
.navbar .mega-menu .mega-feature-card-link,
.navbar .mega-menu .platform-product-view {
  color: var(--nf-blue) !important;
  font-weight:500;
}
/* Keep link titles readable and consistent instead of changing colour on hover. */
.navbar .mega-menu .mega-link strong,
.navbar .mega-menu .mega-product-group strong,
.navbar .mega-menu .mega-feature-card-title,
.navbar .mega-menu .platform-product-card strong {
  color: #183447 !important;
}
.navbar .mega-menu .mega-feature-card:hover .mega-feature-card-title,
.navbar .mega-menu .mega-feature-card:hover .mega-feature-card-link,
.navbar .mega-menu .mega-product-group a:hover strong,
.navbar .mega-menu .platform-product-card:hover .platform-product-view {
  color: var(--nf-blue) !important;
}
.navbar .mega-menu .mega-link small,
.navbar .mega-menu .mega-product-group small,
.navbar .mega-menu .mega-feature-card-copy,
.navbar .mega-menu .platform-product-card small {
  color: #6c7f8c !important;
}


@media (min-width: 992px) {
  .navbar .mega-dropdown > .mega-menu:not(.mega-platforms-full) {
    top: var(--platforms-menu-top, 68px) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: 0 18px 35px rgba(19,48,68,.14);
  }
}


/* Use Cases menu: unique heading and a compact View all link at top-right. */
.mega-featured-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.mega-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nf-blue) !important;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.mega-view-all-link:hover,
.mega-view-all-link:focus {
  color: var(--nf-blue) !important;
  text-decoration: underline;
}
@media (max-width: 575.98px) {
  .mega-featured-heading-row { align-items: flex-start; }
  .mega-view-all-link { font-size: .75rem; }
}


/* Hover stability: full-width menus must not intercept or inherit sibling dropdown hover states. */
@media (min-width: 992px) {
  .navbar .mega-dropdown { position: static !important; }
  .navbar .mega-dropdown > .mega-menu {
    z-index: 1040;
  }
  .navbar .mega-dropdown > .mega-menu:not(.mega-platforms-full) {
    top: var(--platforms-menu-top, 68px) !important;
  }
}


/* Pointer bridge for full-width mega menus; no visual change. */
@media (min-width: 992px) {
  .navbar .mega-dropdown > .mega-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 12px;
    background: transparent;
    pointer-events: auto;
  }
}


/* Smoothly animate full-width mega-menu opening/closing and content changes. */
@media (min-width: 992px) {
  .navbar .mega-dropdown > .mega-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity .24s ease,
      transform .28s cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear .28s;
    will-change: opacity, transform;
  }
  .navbar .mega-dropdown > .mega-menu.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity .24s ease,
      transform .28s cubic-bezier(.22, 1, .36, 1),
      visibility 0s;
  }
  /* Keep the full-width panel in place while it fades between menu states. */
  .navbar .mega-dropdown > .mega-menu.menu-closing {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
  .navbar .mega-dropdown > .mega-menu .mega-feature-card,
  .navbar .mega-dropdown > .mega-menu .platform-product-card {
    transition:
      opacity .18s ease,
      transform .24s cubic-bezier(.22, 1, .36, 1),
      border-color .2s ease,
      background-color .2s ease;
  }
}
@media (max-width: 991.98px) {
  .navbar .mega-dropdown > .mega-menu {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .navbar .mega-dropdown > .mega-menu,
  .navbar .mega-dropdown > .mega-menu.show,
  .navbar .mega-dropdown > .mega-menu.menu-closing {
    transition: none !important;
    transform: none !important;
  }
}


/* SLB-inspired mega-menu open/close animation: animate panel height, opacity and position. */
@media (min-width: 992px) {
  .navbar .mega-dropdown > .mega-menu {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      max-height 900ms ease-in-out,
      opacity 650ms ease-in-out,
      transform 900ms ease-in-out,
      visibility 0s linear 900ms;
    will-change: max-height, opacity, transform;
  }

  .navbar .mega-dropdown > .mega-menu.show {
    max-height: 1200px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      max-height 900ms ease-in-out,
      opacity 650ms ease-in-out,
      transform 900ms ease-in-out,
      visibility 0s;
  }

  .navbar .mega-dropdown > .mega-menu.menu-closing {
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: visible;
    pointer-events: none;
    transform: translateY(-10px);
  }
}
@media (max-width: 991.98px) {
  .navbar .mega-dropdown > .mega-menu {
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .navbar .mega-dropdown > .mega-menu,
  .navbar .mega-dropdown > .mega-menu.show,
  .navbar .mega-dropdown > .mega-menu.menu-closing {
    transition: none !important;
  }
}


/* Synchronize the Platforms left sidebar and right content panel.
   Both sections begin and finish together; neither waits for the other. */
@media (min-width: 992px) {
  .navbar .mega-platforms-full .platforms-mega-sidebar,
  .navbar .mega-platforms-full .platforms-mega-content {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 900ms ease-in-out, transform 900ms ease-in-out;
    will-change: opacity, transform;
  }

  .navbar .mega-platforms-full.show .platforms-mega-sidebar,
  .navbar .mega-platforms-full.show .platforms-mega-content {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar .mega-platforms-full.menu-closing .platforms-mega-sidebar,
  .navbar .mega-platforms-full.menu-closing .platforms-mega-content {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@media (max-width: 991.98px) {
  .navbar .mega-platforms-full .platforms-mega-sidebar,
  .navbar .mega-platforms-full .platforms-mega-content {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .navbar .mega-platforms-full .platforms-mega-sidebar,
  .navbar .mega-platforms-full .platforms-mega-content {
    transition: none !important;
    transform: none !important;
  }
}


/* Mobile hero refinement: prevent heading/subtitle overflow without changing desktop. */
@media (max-width: 575.98px) {
  .hero,
  .hero-video {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-inner.container {
    width: 100%;
    max-width: 100%;
    padding: 54px 20px 58px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  
  .hero-video .hero-inner.container {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .hero-inner .eyebrow {
    max-width: 100%;
    font-size: .72rem;
    line-height: 1.45;
    letter-spacing: .12em;
    overflow-wrap: anywhere;
  }

  .hero-inner h1 {
    max-width: 100%;
    /* font-size: clamp(2.05rem, 8.6vw, 2.55rem); */
    line-height: 1.08;
    letter-spacing: -.045em;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-inner p {
    width: 100%;
    max-width: 100%;
    font-size: .98rem;
    line-height: 1.55;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-inner .hero-links {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    gap: 22px;
  }

  .hero-inner .hero-links > a {
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-inner .btn.btn-primary {
    padding: 17px 22px;
    white-space: normal;
  }

  .hero-inner .hero-video-link {
    line-height: 1.4;
  }
}


/* Mobile navigation: keep every mega-menu collapsed until its own item is tapped. */
@media (max-width: 991.98px) {
  .navbar .mega-dropdown > .mega-menu {
    display: none !important;
  }
  .navbar .mega-dropdown.show > .mega-menu,
  .navbar .mega-dropdown > .mega-menu.show {
    display: block !important;
  }
  .navbar .mega-dropdown.show > .mega-platforms-full,
  .navbar .mega-dropdown > .mega-platforms-full.show {
    display: block !important;
  }
}


/* MOBILE NAV REDESIGN: compact accordion menu, independent of desktop mega-menu */
@media (max-width: 991.98px) {
  #mainNav {
    padding: 12px 0 20px;
    border-top: 1px solid #e8edf3;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #mainNav .navbar-nav {
    align-items: stretch !important;
    gap: 5px;
    padding: 4px 0;
  }
  #mainNav .navbar-nav > .nav-item {
    margin: 0 !important;
    width: 100%;
  }
  #mainNav .navbar-nav > .nav-item > .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #f7f9fc;
    color: #102b46;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
  }
  #mainNav .navbar-nav > .mega-dropdown > .nav-link::after {
    margin-left: 12px;
    transition: transform .25s ease;
  }
  #mainNav .navbar-nav > .mega-dropdown.mobile-expanded > .nav-link {
    background: #edf5ff;
    border-color: #b9d8ff;
    color: #0759c7;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
  }
  #mainNav .navbar-nav > .mega-dropdown.mobile-expanded > .nav-link::after {
    transform: rotate(180deg);
  }
  #mainNav .navbar-nav > .mega-dropdown > .mega-menu {
    display: none !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 6px 0 10px !important;
    padding: 15px !important;
    border: 1px solid #e4ebf3 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(16,43,70,.07) !important;
    float: none !important;
    max-height: none !important;
    overflow: visible !important;
  }
  #mainNav .navbar-nav > .mega-dropdown.mobile-expanded > .mega-menu {
    display: block !important;
  }
  #mainNav .mega-featured-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 13px;
    font-size: 17px;
    line-height: 1.35;
  }
  #mainNav .mega-view-all-link {
    font-size: 12px;
    white-space: nowrap;
  }
  #mainNav .mega-featured-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 12px !important;
  }
  #mainNav .mega-feature-card {
    display: flex;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  #mainNav .mega-feature-card img {
    width: 100% !important;
    height: 82px !important;
    object-fit: cover;
  }
  #mainNav .mega-feature-card-title {
    font-size: 14px !important;
    line-height: 1.35;
    margin-top: 7px;
  }
  #mainNav .mega-feature-card-copy {
    font-size: 12px !important;
    line-height: 1.45;
  }
  #mainNav .mega-feature-card-link {
    font-size: 12px !important;
    margin-top: 7px;
  }
  #mainNav .mega-platforms-full .platforms-mega-layout {
    display: block !important;
  }
  #mainNav .platforms-mega-sidebar {
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  #mainNav .platforms-mega-sidebar h2 {
    font-size: 20px !important;
    margin: 5px 0 6px;
  }
  #mainNav .platforms-mega-sidebar p {
    font-size: 13px !important;
    margin-bottom: 12px;
  }
  #mainNav .platforms-category {
    display: inline-flex;
    width: calc(50% - 5px);
    justify-content: space-between;
    margin: 3px 2px 3px 0;
    padding: 9px 10px !important;
    border: 1px solid #e3eaf2 !important;
    border-radius: 7px !important;
    background: #f7f9fc !important;
    font-size: 12px !important;
  }
  #mainNav .platforms-mega-content {
    width: 100% !important;
    margin-top: 15px;
    padding: 0 !important;
  }
  #mainNav .platforms-mega-content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }
  #mainNav .platforms-mega-content-head h3 {
    font-size: 16px !important;
  }
  #mainNav .platforms-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  #mainNav .platform-product-card {
    min-width: 0;
    padding: 10px !important;
    border: 1px solid #e5ebf2 !important;
    border-radius: 8px !important;
    background: #fbfcfe !important;
  }
  #mainNav .platform-product-card strong { font-size: 12px !important; }
  #mainNav .platform-product-card small { font-size: 11px !important; }
  #mainNav .nav-item > .btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 22px;
    border-radius: 9px;
    min-height: 46px;
  }
}


/* Mobile navigation: minimalist underlined rows matching the supplied reference */
@media (max-width: 991.98px) {
  #mainNav {
    padding: 6px 18px 22px !important;
    border-top: 0 !important;
    background: #fff !important;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #mainNav .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
  }
  #mainNav .navbar-nav > .nav-item {
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid #dce4eb;
  }
  #mainNav .navbar-nav > .nav-item > .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    min-height: 55px !important;
    padding: 15px 17px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #173b5b !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }
  #mainNav .navbar-nav > .mega-dropdown > .nav-link::after {
    margin-left: 7px;
    transition: transform .2s ease;
  }
  #mainNav .navbar-nav > .mega-dropdown.mobile-expanded > .nav-link {
    color: #006fc9 !important;
  }
  #mainNav .navbar-nav > .mega-dropdown.mobile-expanded > .nav-link::after {
    transform: rotate(180deg);
  }
  #mainNav .navbar-nav > .mega-dropdown > .mega-menu {
    display: none !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 15px 17px 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    float: none !important;
    max-height: none !important;
    overflow: visible !important;
  }
  #mainNav .navbar-nav > .mega-dropdown.mobile-expanded > .mega-menu {
    display: block !important;
  }
  /* Simple, compact content when a section is opened */
  #mainNav .mega-featured-heading { margin: 0 0 12px; font-size: 16px; }
  #mainNav .mega-featured-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 12px !important;
  }
  #mainNav .mega-feature-card { min-width: 0; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  #mainNav .mega-feature-card img { width: 100% !important; height: 82px !important; object-fit: cover; }
  #mainNav .mega-feature-card-title { font-size: 14px !important; line-height: 1.35; margin-top: 7px; }
  #mainNav .mega-feature-card-copy { font-size: 12px !important; line-height: 1.45; }
  #mainNav .mega-feature-card-link { font-size: 12px !important; margin-top: 7px; }
  #mainNav .platforms-mega-sidebar { width: 100% !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
  #mainNav .platforms-mega-content { width: 100% !important; margin-top: 14px; padding: 0 !important; }
  #mainNav .platforms-product-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  #mainNav .platform-product-card { min-width: 0; padding: 10px !important; border: 1px solid #e5ebf2 !important; border-radius: 6px !important; background: #fbfcfe !important; }
  #mainNav .navbar-nav > .nav-item:not(.mega-dropdown) > .nav-link { min-height: 55px !important; }
  #mainNav .navbar-nav > .nav-item > .btn { margin: 10px 0 0 0 !important; }
}


/* Industry tabs for the main Explore Our Platforms section */
.platform-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 28px;
  border-bottom: 1px solid #d9e3ed;
}
.platform-filter-tab {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #48647c;
  padding: 12px 18px 14px;
  margin-bottom: -1px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.platform-filter-tab:hover { color: var(--nf-blue); }
.platform-filter-tab.active {
  color: var(--nf-blue);
  border-bottom-color: var(--nf-blue);
}
.platform-filter-tab:focus-visible {
  outline: 2px solid var(--nf-blue);
  outline-offset: 3px;
}
.platform-filter-results .product-item[hidden] { display: none !important; }
@media (max-width: 767.98px) {
  .platform-filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    margin: 22px 0 20px;
  }
  .platform-filter-tab {
    text-align: left;
    padding: 13px 6px;
    font-size: 14px;
  }
  .platform-filter-results {
    grid-template-columns: 1fr !important;
  }
}


/* Align mobile mega-menu dropdown arrows at the far right of each row */
@media (max-width: 991.98px) {
  #mainNav .navbar-nav > .mega-dropdown > .nav-link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  #mainNav .navbar-nav > .mega-dropdown > .nav-link::after {
    margin-left: auto !important;
    flex: 0 0 auto;
  }
}


/* Navbar logo sizing and alignment */
.navbar-logo {
    height: 42px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
    transition: height .3s ease;
}

/* Compact header while scrolling */
.navbar.navbar-scrolled {
    padding: 8px 0;
}

.navbar.navbar-scrolled .navbar-logo {
    height: 32px;
}

.navbar .container {
    display: flex;
    align-items: center;
}

.navbar-brand {
    flex-shrink: 0;
    margin-right: auto;
}

.product-logo-slot {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 12px;
    padding: 0;
    background: transparent;
    border: none;
}

.product-logo {
    width: 140px;
    max-width: 100%;
    height: 50px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.platform-product-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Product cards: slow bottom-to-top blue hover reveal */
.product-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.product-item > *:not(.product-hover-content) {
  position: relative;
  z-index: 1;
  transition: opacity .35s ease;
}
.product-hover-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 27px 25px;
  background: var(--nf-blue);
  color: #fff;
  transform: translateY(101%);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.product-hover-content strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font: 700 1.08rem "Manrope", sans-serif;
  line-height: 1.35;
}
.product-hover-content .product-benefit-list {
  margin: 0 0 18px;
  padding-left: 1.15rem;
  color: #fff;
  font-size: .86rem;
  line-height: 1.5;
  list-style: disc;
}
.product-hover-content .product-benefit-list li {
  padding-left: .15rem;
  margin-bottom: 7px;
}
.product-hover-content .product-benefit-list li:last-child { margin-bottom: 0; }
.product-hover-content .product-hover-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  color: #fff;
  font-size: .88rem;
  font-weight: 500;
}
.product-hover-content .product-hover-link i {
  font-size: 1.25rem;
  transition: transform .25s ease;
}
.product-item:hover .product-hover-content,
.product-item:focus-within .product-hover-content {
  transform: translateY(0);
}
.product-item:hover > *:not(.product-hover-content),
.product-item:focus-within > *:not(.product-hover-content) {
  opacity: 0;
}
.product-hover-content .product-hover-link:hover i {
  transform: translateX(4px);
}
@media (hover: none) {
  /* Touch screens show the standard card only; the reveal is for hover devices. */
  .product-hover-content {
    display: none;
  }
  .product-item > *:not(.product-hover-content) {
    opacity: 1 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-hover-content,
  .product-item > * {
    transition: none !important;
  }
}

/* Industries section only: compact connected 3D flip cards */
#industries .industry-cards {
  gap: 0;
  background: transparent;
  border: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
#industries .industry-card {
  min-width: 0;
  height: 460px;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  perspective: 1100px;
  outline-offset: 4px;
}
#industries .industry-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
#industries .industry-card:hover .industry-card-inner,
#industries .industry-card:focus .industry-card-inner,
#industries .industry-card:focus-within .industry-card-inner {
  transform: rotateY(180deg);
}
#industries .industry-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 26px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
#industries .industry-card-front {
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}
#industries .industry-card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12,35,51,.02), rgba(12,35,51,.08));
}
#industries .industry-card-oil {
  background-image: url("../assets/img/industry-oil-gas.webp"); }
#industries .industry-card-power {
  background-image: url("../assets/img/industry-power.webp"); }
#industries .industry-card-manufacturing {
  background-image: url("../assets/img/industry-manufacturing.webp"); }
#industries .industry-card-sustainability {
  background-image: url("../assets/img/industry-sustainability.webp"); }
#industries .industry-card-title {
  color: #fff;
  font: 700 clamp(1.25rem, 1.65vw, 1.75rem)/1.3 "Manrope", sans-serif;
  letter-spacing: -.025em;
  text-shadow: 0 2px 8px rgba(0,0,0,.22);
}
#industries .industry-card-back {
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--nf-blue);
  color: #fff;
}
#industries .industry-card-back h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -.02em;
  text-align: center;
}
#industries .industry-card-back ul {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding-left: 1.15rem;
  color: #fff;
  font-size: .87rem;
  line-height: 1.5;
  text-align: left;
}
#industries .industry-card-back li { padding-left: .15rem; margin-bottom: 8px; }
#industries .industry-card-back li:last-child { margin-bottom: 0; }
#industries .industry-card-back .arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 0;
  padding: 11px 22px;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 999px;
  color: #fff;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
#industries .industry-card-back .arrow-link:hover,
#industries .industry-card-back .arrow-link:focus-visible {
  background: #fff;
  color: var(--nf-blue);
  transform: translateY(-1px);
}
@media (max-width: 991.98px) {
  #industries .industry-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  #industries .industry-card { height: 390px; }
}
@media (max-width: 575.98px) {
  #industries .industry-cards { grid-template-columns: 1fr; gap: 0; }
  #industries .industry-card { height: 330px; }
  #industries .industry-card-face { padding: 24px 22px; }
  #industries .industry-card-back h3 { margin-bottom: 12px; }
  #industries .industry-card-back ul { font-size: .84rem; margin-bottom: 10px; }
  #industries .industry-card-back li { margin-bottom: 6px; }
  #industries .industry-card-back .arrow-link { margin-top: 8px; padding: 9px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #industries .industry-card-inner { transition: none; }
}


/* Industries section only: icons above titles, centered prose benefits, and larger headings. */
#industries .industry-card-front,
#industries .industry-card-back {
  align-items: center;
  justify-content: center;
  text-align: center;
}
#industries .industry-flip-icon {
  display: block;
  color: #fff;
  font-size: clamp(2rem, 2.5vw, 2.65rem);
  line-height: 1;
  margin: 0 0 20px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.18));
}
#industries .industry-card-title {
  display: block;
  font-size: clamp(1.6rem, 2.1vw, 2.1rem);
  line-height: 1.22;
  font-weight: 500;
}
#industries .industry-card-back h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.22;
  margin: 0 0 20px;
  font-weight: 400;
}
#industries .industry-card-back p {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 12px;
  color: #fff;
  font-size: clamp(.95rem, 1.1vw, 1.06rem);
  line-height: 1.65;
  text-align: center;
}
#industries .industry-card-back .arrow-link {
  margin-top: 14px;
}
@media (max-width: 575.98px) {
  #industries .industry-flip-icon { font-size: 2rem; margin-bottom: 15px; }
  #industries .industry-card-title { font-size: 1.55rem; }
  #industries .industry-card-back h3 { font-size: 1.5rem; margin-bottom: 14px; }
  #industries .industry-card-back p { font-size: .94rem; line-height: 1.55; }
  #industries .industry-card-back .arrow-link { margin-top: 10px; }
}


/* Industries section: add a small separation between cards on mobile only. */
@media (max-width: 575.98px) {
  #industries .industry-cards { gap: 8px; }
}


/* Industries section only: full-width gallery and slightly taller cards on desktop. */
@media (min-width: 992px) {
  #industries .industry-cards {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  #industries .industry-card {
    height: 500px;
  }
}


/* Platform tabs only: block-tab styling inspired by the supplied reference. */
.platform-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 12px;
  margin: 30px 0 28px;
  border-bottom: 2px solid var(--nf-blue);
}
.platform-filter-tab {
  appearance: none;
  border: 0;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #e8f4fb;
  color: var(--nf-blue-dark);
  padding: 16px 24px;
  margin: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.platform-filter-tab:hover {
  background: #d5eafa;
  color: var(--nf-blue-dark);
}
.platform-filter-tab.active {
  background: var(--nf-blue);
  color: #fff;
  border-bottom-color: transparent;
}
.platform-filter-tab:focus-visible {
  outline: 2px solid var(--nf-blue);
  outline-offset: 3px;
  position: relative;
  z-index: 1;
}
@media (max-width: 767.98px) {
  .platform-filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 22px 0 20px;
    border-bottom: 2px solid var(--nf-blue);
  }
  .platform-filter-tab {
    width: 100%;
    text-align: center;
    padding: 13px 10px;
    font-size: 14px;
    border-radius: 5px 5px 0 0;
  }
}


/* Keep the product-card Explore link white during mouse hover/focus. */
.product-hover-content .product-hover-link,
.product-hover-content .product-hover-link:visited,
.product-hover-content .product-hover-link:hover,
.product-hover-content .product-hover-link:focus,
.product-hover-content .product-hover-link:focus-visible,
.product-hover-content .product-hover-link:active,
.product-hover-content .product-hover-link i {
  color: #fff !important;
}


/* Fix desktop horizontal scrollbar while retaining the full-bleed Industries row.
   100vw can include the vertical scrollbar gutter, making viewport-wide elements
   a few pixels wider than the visible page. */
html {
  overflow-x: clip;
}

/* Let fixed desktop mega menus fill the viewport between their left/right edges
   instead of forcing a 100vw width. */
@media (min-width: 992px) {
  .navbar .mega-platforms-full,
  .navbar .mega-dropdown > .mega-menu,
  .navbar .mega-dropdown > .mega-featured-menu,
  .navbar .mega-dropdown > .mega-platforms-full {
    width: auto !important;
    max-width: none !important;
  }
}


/* Contact-page-only styles; shared CSS and other pages remain unchanged. */
#site-header { position: sticky; top: 0; z-index: 1030; }
#site-header > .navbar.sticky-top { position: relative; top: auto; z-index: auto; }
.contact-page { color: var(--nf-body, #526675); }
/* Contact hero: Roadmap and Partnership style */
.contact-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(360px, 42vh, 500px); overflow: hidden; color: #fff; background-color: #061a2b; background-image: linear-gradient(90deg, rgba(3,15,27,.96) 0%, rgba(3,15,27,.88) 35%, rgba(3,15,27,.48) 65%, rgba(3,15,27,.15) 100%), url("../assets/img/contact_hero.webp"); background-position: center, 72% center; background-size: 100% 100%, cover; background-repeat: no-repeat; }
.contact-hero::before, .contact-hero::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgba(117,199,243,.18); border-radius: 50%; pointer-events: none; }
.contact-hero::before { width: 520px; height: 520px; right: -230px; top: -270px; }
.contact-hero::after { width: 390px; height: 390px; right: -165px; top: -205px; }
.contact-hero-inner { position: relative; z-index: 1; width: 100%; padding: clamp(28px, 3vw, 42px) 0; }
.contact-hero-kicker { margin-bottom: 30px; color: #49bfff; font-family: var(--nf-font-body); font-size: var(--nf-text-label); font-weight: 800; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.contact-hero-kicker span { padding-inline: 8px; color: #7e9aad; }
.contact-title-column h1 { max-width: 780px; margin: 0; color: #fff; font-family: var(--nf-font-heading); font-size: var(--nf-heading-1); font-weight: 400; line-height: 1.1; letter-spacing: -.045em; }
.contact-title-column h1 em { display: block; color: #8bd2fb; font-style: normal; }
.contact-breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; color: rgba(255,255,255,.72); font-size: .79rem; }
.contact-breadcrumb a { color: #fff; font-weight: 700; }
.contact-hero .section-kicker { margin-bottom: 8px; color: #83d0f5; }
.contact-hero h1 { max-width: 820px; margin: 0 0 10px; color: #fff; font: 700 clamp(2.5rem, 4vw, 3.5rem)/1.08 "Manrope", sans-serif; letter-spacing: -.045em; }
.contact-hero-copy { max-width: 800px; margin: 0; color: rgba(255,255,255,.92); font-size: 1.05rem; line-height: 1.6; }
.contact-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.contact-hero-actions a { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.8); border-radius: 3px; color: #fff; font-weight: 700; font-size: .87rem; transition: background .2s ease, color .2s ease; }
.contact-hero-actions a:first-child { background: var(--nf-blue, #0072bc); border-color: var(--nf-blue, #0072bc); }
.contact-hero-actions a:hover { background: #fff; color: var(--nf-ink, #142d40); border-color: #fff; }
.contact-direct { padding: 26px 0; background: #fff; border-bottom: 1px solid var(--nf-line, #dce5eb); }
.contact-direct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact-direct-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 13px 17px; border: 1px solid var(--nf-line, #dce5eb); background: #fff; }
.contact-direct-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 5px; color: var(--nf-blue, #0072bc); background: #eaf4fa; font-size: 1.15rem; }
.contact-direct-label { display: block; margin-bottom: 3px; color: #758894; font-size: .71rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.contact-direct-card a { overflow-wrap: anywhere; color: var(--nf-ink, #142d40); font-size: .91rem; font-weight: 700; }
.contact-direct-card a:hover { color: var(--nf-blue, #0072bc); }
.contact-section { padding: 60px 0; }
.contact-section-pale { background: var(--nf-pale, #f3f7f9); }
.contact-section-heading { max-width: 760px; margin-bottom: 30px; }
.contact-section-heading h2 { margin: 0 0 12px; color: var(--nf-ink, #142d40); font: 700 clamp(1.8rem, 3.1vw, 2.55rem)/1.15 "Manrope", sans-serif; letter-spacing: -.04em; }
.contact-section-heading p { margin: 0; max-width: 690px; line-height: 1.75; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 24px; align-items: start; }
.contact-panel { min-width: 0; border: 1px solid var(--nf-line, #dce5eb); border-radius: 7px; background: #fff; }
.contact-form-panel { padding: clamp(23px, 3vw, 36px); box-shadow: 0 14px 34px rgba(20,45,64,.045); }
.contact-sidebar { overflow: hidden; }
.contact-sidebar-head { padding: 25px 26px 22px; background: #eaf3f8; border-bottom: 1px solid var(--nf-line, #dce5eb); }
.contact-sidebar h2, .contact-form-panel h2 { margin: 0 0 10px; color: var(--nf-ink, #142d40); font: 700 1.45rem/1.25 "Manrope", sans-serif; letter-spacing: -.03em; }
.contact-panel-intro { margin: 0; font-size: .91rem; line-height: 1.7; }
.contact-sidebar-body { padding: 24px 26px 28px; }
.contact-reasons { display: grid; gap: 19px; }
.contact-reason { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; }
.contact-reason-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #d4e6f0; border-radius: 5px; background: #f7fbfd; color: var(--nf-blue, #0072bc); font-size: 1.08rem; }
.contact-reason h3 { margin: 1px 0 4px; color: var(--nf-ink, #142d40); font: 700 .95rem/1.4 "Manrope", sans-serif; }
.contact-reason p { margin: 0; font-size: .84rem; line-height: 1.6; }
.contact-hours { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 14px; background: #f6f9fb; border-left: 3px solid var(--nf-blue, #0072bc); font-size: .83rem; line-height: 1.6; }
.contact-hours i { margin-top: 2px; color: var(--nf-blue, #0072bc); }
.contact-form-panel .contact-panel-intro { margin-bottom: 24px; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.contact-field { min-width: 0; }
.contact-field-full { grid-column: 1 / -1; }
.contact-field label { display: block; margin: 0 0 7px; color: #344f61; font-size: .81rem; font-weight: 700; }
.contact-field input, .contact-field select, .contact-field textarea { display: block; width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #d6e1e8; border-radius: 4px; background: #fff; color: var(--nf-ink, #142d40); font: 400 .88rem "DM Sans", sans-serif; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.contact-field textarea { min-height: 125px; resize: vertical; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #91a0aa; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { border-color: var(--nf-blue, #0072bc); box-shadow: 0 0 0 3px rgba(0,114,188,.12); }
.contact-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 20px; }
.contact-submit { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 47px; padding: 12px 20px; border: 1px solid var(--nf-blue, #0072bc); border-radius: 3px; background: var(--nf-blue, #0072bc); color: #fff; font: 500 .88rem "DM Sans", sans-serif; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.contact-submit:hover { background: var(--nf-blue-dark, var(--nf-blue-dark)); border-color: var(--nf-blue-dark, var(--nf-blue-dark)); }
.contact-privacy-note { flex: 1 1 180px; margin: 0; color: #7b8d99; font-size: .73rem; line-height: 1.55; }
.contact-privacy-note a { color: var(--nf-blue, #0072bc); text-decoration: underline; text-underline-offset: 2px; }
.contact-form-status { display: none; margin: 16px 0 0; padding: 12px 14px; border: 1px solid #e5c98a; border-radius: 4px; background: #fff9e9; color: #76591a; font-size: .84rem; line-height: 1.55; }
.contact-form-status.is-visible { display: block; }
.contact-locations-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.contact-locations-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-location-card { display: flex; flex-direction: column; min-height: 215px; padding: 23px; border: 1px solid var(--nf-line, #dce5eb); background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.contact-location-card:hover { transform: translateY(-3px); border-color: #b8d6e8; box-shadow: 0 10px 24px rgba(20,45,64,.07); }
.contact-location-top { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.contact-location-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 5px; background: #eaf4fa; color: var(--nf-blue, #0072bc); font-size: 1.05rem; }
.contact-location-type { display: block; color: #7a8d99; font-size: .67rem; letter-spacing: .075em; text-transform: uppercase; font-weight: 800; }
.contact-location-card h3 { margin: 2px 0 0; color: var(--nf-ink, #142d40); font: 700 1.02rem/1.35 "Manrope", sans-serif; letter-spacing: -.02em; }
.contact-location-card p { flex: 1; margin: 0 0 16px; font-size: .84rem; line-height: 1.65; }
.contact-location-card a { display: inline-flex; align-items: center; gap: 7px; color: var(--nf-blue, #0072bc); font-size: .8rem; font-weight: 500; }
.contact-location-card a:hover { color: var(--nf-blue-dark, var(--nf-blue-dark)); }
.contact-address-note { margin: 22px 0 0; font-size: .78rem; line-height: 1.65; color: #71838f; }
.contact-cta { position: relative; isolation: isolate; overflow: hidden; padding: 18px 0; background: linear-gradient(110deg, #08263a 0%, #0b3046 100%); color: #fff; }
.contact-cta::before { content: ""; position: absolute; z-index: 0; width: 390px; height: 390px; right: 8%; top: 50%; transform: translate(28%, -50%); border: 1px solid rgba(92,183,226,.22); border-radius: 50%; box-shadow: 0 0 0 42px rgba(50,143,190,.055), 0 0 0 82px rgba(50,143,190,.04); pointer-events: none; }
.contact-cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 190px; }
.contact-cta h2 { margin: 0 0 8px; color: #fff; font-family: var(--nf-font-heading); font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 600; line-height: 1.2; letter-spacing: -.04em; }
.contact-cta h2::before { content: "START A CONVERSATION"; display: block; margin-bottom: 12px; color: #72c9f5; font-family: var(--nf-font-body); font-size: .74rem; font-weight: 800; letter-spacing: .14em; line-height: 1.4; }
.contact-cta p { margin: 0; color: rgba(255,255,255,.78); font-size: .98rem; line-height: 1.6; }
.contact-cta a { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 13px 23px; border: 1px solid var(--nf-blue); background: var(--nf-blue); color: #fff; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.contact-cta a:hover { background: var(--nf-blue-dark); border-color: var(--nf-blue-dark); color: #fff; }
@media (max-width: 575.98px) {
  .contact-cta { padding: 30px 0; }
  .contact-cta-inner { min-height: 0; align-items: stretch; flex-direction: column; gap: 20px; }
  .contact-cta::before { width: 280px; height: 280px; right: -80px; opacity: .7; }
  .contact-cta a { width: 100%; justify-content: center; }
}

@media (max-width: 991.98px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-panel { order: 1; }
  .contact-sidebar { order: 2; }
  .contact-locations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-direct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
  .contact-hero { min-height: 0; padding: 45px 0; }
  .contact-hero-kicker { margin-bottom: 24px; }
  .contact-title-column h1 { max-width: 720px; }
}

@media (max-width: 575.98px) {
  .contact-section { padding: 46px 0; }
  .contact-form-grid, .contact-locations-grid { grid-template-columns: 1fr; }
  .contact-field-full { grid-column: auto; }
  .contact-form-actions, .contact-cta-inner { align-items: stretch; flex-direction: column; }
  .contact-submit, .contact-cta a { width: 100%; justify-content: center; }
  .contact-locations-intro { align-items: flex-start; }
  .contact-location-card { min-height: 0; }
}

@media (max-width: 767.98px) {
  .contact-hero { min-height: 0; padding: 50px 0; background-position: center, 60% center; }
  .contact-title-column h1 { font-size: clamp(2.1rem, 8vw, 3rem); }
}

@media (max-width: 480px) {
  .contact-hero { padding: 42px 0; }
  .contact-hero-kicker { font-size: .68rem; }
}

/* Contact: Mobile circular decoration */
@media (max-width: 767.98px) {

    /* Outer circle */
    .contact-hero::before {
        width: 190px;
        height: 190px;
        right: -85px;
        top: -100px;
    }

    /* Inner circle */
    .contact-hero::after {
        width: 135px;
        height: 135px;
        right: -58px;
        top: -72px;
        background: none;
    }
}


.php-email-form .loading{color:#245b8f;background:#edf5fc;border:1px solid #cfe3f5;padding:13px 16px;margin-top:16px;border-radius:6px;font-size:14px}
.php-email-form .error-message{color:#a52834;background:#fff0f0;border:1px solid #f2caca;padding:13px 16px;margin-top:16px;border-radius:6px;font-size:14px}
.php-email-form .sent-message{color:#176b3a;background:#edf8f0;border:1px solid #c8e8d1;padding:13px 16px;margin-top:16px;border-radius:6px;font-size:14px}
.php-email-form .loading,.php-email-form .error-message,.php-email-form .sent-message{display:none}


/* ================================================================
   NERGYFLUX ABOUT PAGE — editorial story-led design
   Page-specific selectors are scoped under .nf-about-page.
   ================================================================ */
body.nf-about-page {
  --nfa-navy: #061a2b;
  --nfa-navy-2: #0a2639;
  --nfa-blue: var(--nf-blue);
  --nfa-sky: #75c7f3;
  --nfa-ink: #142d40;
  --nfa-text: #536879;
  --nfa-muted: #8193a0;
  --nfa-line: #dce6ec;
  --nfa-pale: #f3f7f9;
  color: var(--nfa-text);
  overflow-x: clip;
}
body.nf-about-page #site-header { position: sticky; top: 0; z-index: 1030; }
body.nf-about-page #site-header > .navbar.sticky-top { position: relative; top: auto; z-index: auto; }
.nf-about-page main { overflow: clip; }
.nf-about-page .container { max-width: 1240px; }
.nfa-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--nfa-blue); font-size: .72rem; line-height: 1.3;
  font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
}
.nfa-eyebrow::before { content: ""; display: inline-block; width: 24px; height: 2px; background: currentColor; }
.nfa-eyebrow-light { color: var(--nfa-sky); }
.nfa-display {
  font-family: "Manrope", sans-serif; font-size: clamp(2.65rem, 5vw, 5.15rem);
  line-height: 1.02; font-weight: 650; letter-spacing: -.065em;
}
.nfa-section { padding: clamp(64px, 8vw, 112px) 0; }
.nfa-section-heading { max-width: 820px; }
.nfa-section-heading h2 {
  margin: 14px 0 0; color: var(--nfa-ink);
  font-weight: 700 clamp(2rem, 3.7vw, 3.6rem)/1.08 "Manrope", sans-serif;
  letter-spacing: -.055em; text-wrap: balance;
}
.nfa-section-heading p { max-width: 660px; margin: 20px 0 0; font-size: 1.04rem; line-height: 1.8; }
.nfa-link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--nfa-blue);
  font-size: .9rem; font-weight: 500; text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.nfa-link:hover { gap: 15px; color: var(--nf-blue-dark); }
.nfa-link-light { color: #fff; }
.nfa-link-light:hover { color: var(--nfa-sky); }
.nfa-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 19px; border: 1px solid var(--nfa-blue);
  background: var(--nfa-blue); color: #fff; font-size: .88rem; font-weight: 800;
  border-radius: 2px; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.nfa-button:hover { color: #fff; background: var(--nf-blue-dark); border-color: var(--nf-blue-dark); transform: translateY(-1px); }
.nfa-button-outline { background: transparent; border-color: rgba(255,255,255,.48); color: #fff; }
.nfa-button-outline:hover { background: #fff; color: var(--nfa-navy); border-color: #fff; }

/* 01 — Point-of-view hero: single image and a continuous overlay, never a split block. */
.nfa-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(570px, 70vh, 740px); overflow: hidden; background: var(--nfa-navy); color: #fff; background-image: linear-gradient(90deg, rgba(3,17,29,.88) 0%, rgba(6,26,43,.60) 48%, rgba(6,26,43,.30) 100%), url("../assets/img/about-hero-bg.webp"); background-position: center; background-size: cover; background-repeat: no-repeat; }background-position: center; background-size: cover; background-repeat: no-repeat; }
.nfa-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 78% 38%, rgba(0, 114, 188, .18), transparent 42%);
}
.nfa-hero-inner { position: relative; z-index: 1; width: 100%; padding: 80px 0 66px; }
.nfa-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 3.5vw, 56px); align-items: center; }
.nfa-hero-copy { max-width: 790px; }
.nfa-hero .nfa-eyebrow { margin-bottom: 25px; }
.nfa-hero h1 { color: #fff; max-width: 800px; margin: 0; font-size: clamp(2.85rem, 5.3vw, 5.4rem); line-height: 1.01; font-weight: 650; letter-spacing: -.065em; text-wrap: balance; }
.nfa-hero h1 em { color: #8bd2fb; font-style: normal; }
.nfa-hero-lead { max-width: 620px; margin: 24px 0 0; color: rgba(245,250,255,.88); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.75; }
.nfa-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.nfa-hero-aside { align-self: end; justify-self: end; width: min(100%, 340px); padding: 23px 22px 19px; border: 1px solid rgba(224,242,255,.24); background: rgba(4, 25, 43, .54); backdrop-filter: blur(12px); box-shadow: 0 20px 65px rgba(0,0,0,.14); }
.nfa-hero-aside-label { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.17); color: #9ab5c8; font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nfa-hero-aside-label span:last-child { color: #72d6c7; letter-spacing: .06em; }
.nfa-hero-step { display: grid; grid-template-columns: 32px 1fr; align-items: start; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.nfa-hero-step:last-child { border-bottom: 0; padding-bottom: 0; }
.nfa-hero-step-index { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(117,199,243,.45); color: #8bd2fb; font: 700 .7rem "Manrope", sans-serif; }
.nfa-hero-step strong { display: block; color: #fff; font-size: .77rem; font-weight: 500; line-height: 1.35; }
.nfa-hero-step small { display: block; margin-top: 4px; color: #b5c8d5; font-size: .65rem; line-height: 1.45; }
.nfa-hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); }
.nfa-hero-bottom-label { color: #9db4c4; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nfa-hero-domains { display: flex; align-items: center; justify-content: flex-end; gap: 17px; flex-wrap: wrap; color: rgba(255,255,255,.9); font-size: .8rem; }
.nfa-hero-domains span { display: inline-flex; align-items: center; gap: 8px; }
.nfa-hero-domains span::before { content: ""; width: 4px; height: 4px; background: var(--nfa-sky); border-radius: 50%; }

/* 02 — The problem, articulated before the company capabilities. */
.nfa-problem { background: #fff; }
.nfa-problem-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr); gap: clamp(36px, 7vw, 100px); align-items: start; }
.nfa-problem-main h2 { margin: 16px 0 24px; max-width: 700px; color: var(--nfa-ink); font: 700 clamp(2.35rem, 4.5vw, 4.2rem)/1.07 "Manrope", sans-serif; letter-spacing: -.06em; }
.nfa-problem-main h2 span { color: #7d929f; }
.nfa-problem-main p { max-width: 600px; margin: 0 0 19px; font-size: 1.02rem; line-height: 1.85; }
.nfa-problem-side { border-top: 1px solid var(--nfa-line); }
.nfa-problem-row { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 21px 0; border-bottom: 1px solid var(--nfa-line); }
.nfa-problem-row-num { color: var(--nf-blue); font: 700 .76rem "Manrope", sans-serif; padding-top: 3px; }
.nfa-problem-row h3 { margin: 0 0 6px; color: var(--nfa-ink); font: 700 1rem/1.4 "Manrope", sans-serif; letter-spacing: -.02em; }
.nfa-problem-row p { margin: 0; font-size: .87rem; line-height: 1.65; }

/* 03 — Editorial narrative with image and pull quote. */
.nfa-belief { background: #f2f6f8; }
.nfa-belief-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 94px); align-items: center; }
.nfa-belief-image { position: relative; min-height: 495px; background: #d9e5ec; overflow: hidden; }
.nfa-belief-image img { display: block; width: 100%; height: 495px; object-fit: cover; object-position: center; }
.nfa-belief-image::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(4,21,35,.74), transparent); pointer-events: none; }
.nfa-belief-image-note { position: absolute; left: 25px; right: 25px; bottom: 23px; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 16px; color: #fff; }
.nfa-belief-image-note strong { max-width: 290px; font: 650 1.25rem/1.25 "Manrope", sans-serif; }
.nfa-belief-image-note span { color: #c8d8e3; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.nfa-belief-copy .nfa-section-heading h2 { max-width: 620px; }
.nfa-belief-copy > p { margin: 20px 0 0; font-size: .99rem; line-height: 1.85; }
.nfa-belief-quote { margin: 29px 0 0; padding: 2px 0 2px 21px; border-left: 3px solid var(--nfa-blue); color: var(--nfa-ink); font: 650 1.25rem/1.5 "Manrope", sans-serif; letter-spacing: -.03em; }

/* 04 — Technical story: a connected model, not three unrelated product cards. */
.nfa-model { position: relative; overflow: hidden; background: var(--nfa-navy); color: #d9e5ed; }
.nfa-model::before { content: ""; position: absolute; top: -240px; right: -160px; width: 600px; height: 600px; border: 1px solid rgba(117,199,243,.12); border-radius: 50%; box-shadow: 0 0 0 60px rgba(117,199,243,.025), 0 0 0 120px rgba(117,199,243,.02); pointer-events: none; }
.nfa-model .nfa-section-heading h2 { color: #fff; }
.nfa-model .nfa-section-heading p { color: #b7c8d4; }
.nfa-model-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 50px; }
.nfa-model-heading .nfa-section-heading { max-width: 760px; }
.nfa-model-intro { max-width: 300px; margin: 0 0 4px; color: #b7c8d4; font-size: .9rem; line-height: 1.75; }
.nfa-model-flow { position: relative; display: grid; grid-template-columns: minmax(130px, .78fr) 34px repeat(3, minmax(0, 1fr)) 34px minmax(135px, .82fr); gap: 12px; align-items: stretch; }
.nfa-model-endpoint { display: flex; flex-direction: column; justify-content: center; min-height: 200px; padding: 18px 15px; border: 1px solid rgba(183,211,230,.25); background: rgba(255,255,255,.035); }
.nfa-model-endpoint small { color: #8eb6ce; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nfa-model-endpoint strong { display: block; margin-top: 11px; color: #fff; font: 650 1.08rem/1.3 "Manrope", sans-serif; }
.nfa-model-endpoint p { margin: 8px 0 0; color: #a9bdcb; font-size: .76rem; line-height: 1.55; }
.nfa-model-arrow { display: grid; place-items: center; color: #72c6f3; font-size: 1.2rem; }
.nfa-model-layer { min-height: 200px; padding: 20px 17px 18px; border-top: 2px solid var(--nfa-sky); background: rgba(255,255,255,.055); }
.nfa-model-layer.nfa-layer-gen { border-top-color: #82dbc8; }
.nfa-model-layer.nfa-layer-agent { border-top-color: #b2a2ff; }
.nfa-model-layer-num { display: block; margin-bottom: 27px; color: #89bddc; font: 700 .72rem "Manrope", sans-serif; }
.nfa-model-layer h3 { margin: 0; color: #fff; font: 700 1.08rem/1.3 "Manrope", sans-serif; }
.nfa-model-layer p { margin: 10px 0 0; color: #bacbd7; font-size: .79rem; line-height: 1.65; }
.nfa-model-output { margin-top: 25px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.nfa-model-output strong { color: #fff; font-size: .9rem; }
.nfa-model-output span { max-width: 680px; color: #aabfce; font-size: .8rem; line-height: 1.6; }

/* 05 — Tangible product proof, using the real Nergyflux portfolio. */
.nfa-products { background: #fff; }
.nfa-products-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .66fr); gap: 40px; align-items: end; margin-bottom: 38px; }
.nfa-products-top .nfa-section-heading p { max-width: 720px; }
.nfa-products-top-note { margin: 0 0 5px; font-size: .91rem; line-height: 1.75; }
.nfa-products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--nfa-line); border-left: 1px solid var(--nfa-line); }
.nfa-product { position: relative; min-height: 205px; padding: 23px 24px 22px; border-right: 1px solid var(--nfa-line); border-bottom: 1px solid var(--nfa-line); background: #fff; transition: background .2s ease; }
.nfa-product:hover { background: #f7fbfd; }
.nfa-product-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.nfa-product-code { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #cce0ed; background: #eef7fc; color: var(--nfa-blue); font-size: .9rem; }
.nfa-product-domain { color: #8193a0; font-size: .65rem; letter-spacing: .1em; font-weight: 800; text-transform: uppercase; }
.nfa-product h3 { margin: 0; color: var(--nfa-ink); font: 750 1.1rem/1.35 "Manrope", sans-serif; letter-spacing: -.03em; }
.nfa-product p { min-height: 48px; margin: 8px 0 18px; font-size: .84rem; line-height: 1.65; }
.nfa-product-link { color: var(--nfa-blue); font-size: .79rem; font-weight: 500; }
.nfa-products-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; }
.nfa-products-foot p { max-width: 660px; margin: 0; color: #718490; font-size: .79rem; line-height: 1.6; }

/* 06 — Industry context as an editorial index, not another set of homepage cards. */
.nfa-industries { background: #edf3f6; }
.nfa-industries-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: clamp(38px, 7vw, 100px); align-items: start; }
.nfa-industries-intro { position: sticky; top: 130px; }
.nfa-industries-intro .nfa-section-heading h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.nfa-industries-intro p { margin: 18px 0 25px; font-size: .96rem; line-height: 1.8; }
.nfa-industry-list { border-top: 1px solid #cfdce4; }
.nfa-industry-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) 35px; align-items: start; gap: 14px; padding: 23px 0; border-bottom: 1px solid #cfdce4; }
.nfa-industry-num { padding-top: 4px; color: var(--nf-blue); font: 700 .76rem "Manrope", sans-serif; }
.nfa-industry-item h3 { margin: 0 0 7px; color: var(--nfa-ink); font: 700 1.15rem/1.35 "Manrope", sans-serif; }
.nfa-industry-item p { margin: 0; max-width: 560px; font-size: .85rem; line-height: 1.7; }
.nfa-industry-arrow { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #c4d5df; color: var(--nfa-blue); transition: background .2s ease, color .2s ease; }
.nfa-industry-item:hover .nfa-industry-arrow { background: var(--nfa-blue); border-color: var(--nfa-blue); color: #fff; }

/* 07 — Principles: operational standards, not generic value tiles. */
.nfa-principles { background: #fff; }
.nfa-principles-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, .72fr); gap: 46px; align-items: end; margin-bottom: 44px; }
.nfa-principles-top > p { margin: 0 0 4px; font-size: .98rem; line-height: 1.8; }
.nfa-principles-list { border-top: 1px solid var(--nfa-line); }
.nfa-principle { display: grid; grid-template-columns: 55px minmax(200px, .75fr) minmax(0, 1.25fr); gap: 20px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--nfa-line); }
.nfa-principle-num { color: var(--nf-blue); font: 700 .77rem "Manrope", sans-serif; padding-top: 4px; }
.nfa-principle h3 { margin: 0; color: var(--nfa-ink); font: 700 1.12rem/1.4 "Manrope", sans-serif; }
.nfa-principle p { margin: 0; max-width: 640px; font-size: .88rem; line-height: 1.75; }

/* 08 — People section: understated and credible. */
.nfa-people { background: #f3f7f9; }
.nfa-people-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 37px; }
.nfa-people-heading .nfa-section-heading { max-width: 760px; }
.nfa-people-heading > p { max-width: 370px; margin: 0 0 5px; font-size: .91rem; line-height: 1.75; }
.nfa-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.nfa-team-card { min-width: 0; background: #fff; border: 1px solid #e0e8ed; }
.nfa-team-photo { overflow: hidden; aspect-ratio: 4 / 4.4; background: #dfe9ef; }
.nfa-team-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.85); transition: transform .35s ease, filter .35s ease; }
.nfa-team-card:hover .nfa-team-photo img { transform: scale(1.035); filter: saturate(1); }
.nfa-team-details { padding: 17px 15px 18px; text-align: center; }
.nfa-team-details h3 { margin: 0; color: var(--nfa-ink); font: 750 .91rem/1.4 "Manrope", sans-serif; letter-spacing: -.02em; }
.nfa-team-details p { margin: 6px 0 0; color: var(--nfa-blue); font-size: .76rem; font-weight: 800; line-height: 1.5; }
.nfa-team-details span { display: block; margin-top: 3px; color: #718490; font-size: .74rem; line-height: 1.5; }
.nfa-team-note { margin: 18px 0 0; color: #8a9aa5; font-size: .72rem; line-height: 1.55; }
.nfa-team-social { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 8px; }
.nfa-team-social a, .nfa-team-social button { color: #64748b; font-size: 16px; width: 22px; height: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; transition: color .25s ease, transform .25s ease; }
.nfa-team-social a:hover, .nfa-team-social button:hover { color: var(--nf-blue, #0072bc); transform: translateY(-2px); }

/* 09 — Focused closing action. */
.nfa-cta { position: relative; overflow: hidden; background: #062137; color: #fff; padding: clamp(50px, 6vw, 78px) 0; }
.nfa-cta::after { content: ""; position: absolute; top: -120px; right: -20px; width: 430px; height: 430px; border: 1px solid rgba(117,199,243,.20); border-radius: 50%; box-shadow: 0 0 0 35px rgba(117,199,243,.035), 0 0 0 80px rgba(117,199,243,.025); pointer-events: none; }
.nfa-cta-inner { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 38px; }
.nfa-cta h2 { max-width: 730px; margin: 16px 0 13px; color: #fff; font: 700 clamp(2.1rem, 4vw, 3.65rem)/1.06 "Manrope", sans-serif; letter-spacing: -.055em; }
.nfa-cta p { max-width: 640px; margin: 0; color: #c0d0dc; font-size: .97rem; line-height: 1.75; }
.nfa-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex: 0 0 auto; }

@media (max-width: 1199.98px) {
  .nfa-model-flow { grid-template-columns: minmax(110px, .75fr) 24px repeat(3, minmax(0, 1fr)) 24px minmax(115px, .75fr); gap: 8px; }
  .nfa-model-layer { padding: 17px 13px; }
  .nfa-team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 991.98px) {
  .nfa-hero { min-height: 0; background-position: center, center, 61% center; }
  .nfa-hero-inner { padding: 72px 0 45px; }
  .nfa-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .nfa-hero-copy { max-width: 760px; }
  .nfa-hero-aside { justify-self: start; width: min(100%, 610px); }
  .nfa-hero-bottom { margin-top: 43px; align-items: flex-start; flex-direction: column; }
  .nfa-hero-domains { justify-content: flex-start; }
  .nfa-problem-layout, .nfa-belief-grid, .nfa-industries-layout { grid-template-columns: 1fr; }
  .nfa-problem-layout { gap: 34px; }
  .nfa-belief-grid { gap: 34px; }
  .nfa-belief-image, .nfa-belief-image img { min-height: 370px; height: 370px; }
  .nfa-model-heading, .nfa-products-top, .nfa-principles-top { grid-template-columns: 1fr; display: grid; gap: 18px; }
  .nfa-model-intro { max-width: 650px; }
  .nfa-model-flow { grid-template-columns: 1fr; gap: 10px; }
  .nfa-model-endpoint { min-height: 0; padding: 17px; }
  .nfa-model-arrow { min-height: 18px; transform: rotate(90deg); }
  .nfa-model-layer { min-height: 0; padding: 17px 18px; }
  .nfa-model-layer-num { margin-bottom: 13px; }
  .nfa-industries-intro { position: static; }
  .nfa-industry-list { margin-top: 4px; }
  .nfa-people-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .nfa-people-heading > p { max-width: 650px; }
  .nfa-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .nfa-cta-inner { align-items: flex-start; flex-direction: column; }
  .nfa-cta-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
@media (max-width: 767.98px) {
  /* Shared mobile gutter: consistent left/right breathing room across site pages. */
  :root { --nf-mobile-gutter: 18px; }
  .container, .container-fluid { padding-left: var(--nf-mobile-gutter) !important; padding-right: var(--nf-mobile-gutter) !important; }
  .nfa-section { padding: 58px 0; }
  .nfa-hero { background-image: linear-gradient(180deg, rgba(3,17,29,.78) 0%, rgba(6,26,43,.62) 100%), url("../assets/img/about-hero-bg.webp"); background-position: center; background-size: cover; background-repeat: no-repeat; }
  .nfa-hero-inner { padding: 65px 0 35px; }
  .nfa-hero-grid { gap: 29px; }
  .nfa-hero .nfa-eyebrow { margin-bottom: 20px; }
  .nfa-hero h1 { font-size: clamp(2.55rem, 10.2vw, 4rem); line-height: 1.025; }
  .nfa-hero-lead { margin-top: 18px; font-size: .98rem; line-height: 1.7; }
  .nfa-hero-actions { margin-top: 24px; gap: 10px; }
  .nfa-button { min-height: 45px; padding: 11px 14px; font-size: .82rem; }
  .nfa-hero-aside { padding: 18px; }
  .nfa-hero-bottom { margin-top: 31px; padding-top: 16px; gap: 13px; }
  .nfa-hero-domains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; font-size: .76rem; }
  .nfa-section-heading h2, .nfa-problem-main h2 { font-size: clamp(2rem, 8.2vw, 3rem); }
  .nfa-problem-layout { gap: 26px; }
  .nfa-problem-main p { font-size: .94rem; }
  .nfa-problem-row { grid-template-columns: 31px 1fr; padding: 17px 0; }
  .nfa-belief-image, .nfa-belief-image img { min-height: 310px; height: 310px; }
  .nfa-belief-image-note { left: 16px; right: 16px; bottom: 16px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .nfa-belief-image-note strong { font-size: 1.08rem; }
  .nfa-belief-copy > p { font-size: .93rem; }
  .nfa-belief-quote { font-size: 1.08rem; }
  .nfa-model-flow { gap: 8px; }
  .nfa-model-output { align-items: flex-start; flex-direction: column; gap: 8px; }
  .nfa-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nfa-product { min-height: 0; padding: 18px 15px; }
  .nfa-product-top { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .nfa-product h3 { font-size: .99rem; }
  .nfa-product p { min-height: 0; font-size: .79rem; margin-bottom: 13px; }
  .nfa-products-foot { align-items: flex-start; flex-direction: column; gap: 14px; }
  .nfa-industry-item { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 10px; padding: 19px 0; }
  .nfa-industry-item h3 { font-size: 1.03rem; }
  .nfa-industry-item p { font-size: .8rem; }
  .nfa-principles-top { gap: 12px; margin-bottom: 28px; }
  .nfa-principle { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 12px; padding: 19px 0; }
  .nfa-principle p { grid-column: 2; font-size: .83rem; }
  .nfa-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nfa-team-details { padding: 13px 12px 15px; }
  .nfa-team-details h3 { font-size: .85rem; }
  .nfa-cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .nfa-cta-actions .nfa-button { width: 100%; }
  @media (max-width: 767.98px) { .nfa-hero-aside { display: none !important; } }
}
@media (max-width: 380px) {
  .nfa-hero h1 { font-size: 2.45rem; }
  .nfa-hero-actions { align-items: stretch; flex-direction: column; }
  .nfa-hero-actions .nfa-button { width: 100%; }
  .nfa-products-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nfa-about-page *, .nf-about-page * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}





/* ==========================================================
   NERGYFLUX DESIGN SYSTEM — shared consistency layer
   Standardises shared typography, brand accents, actions and spacing
   without changing page-specific layouts or navigation behaviour.
   ========================================================== */
:root {
  --nf-blue: #0072bc;
  --nf-blue-dark: #005b98;
  --nf-ink: #142d40;
  --nf-body: #526675;
  --nf-line: #dce5eb;
  --nf-pale: #f3f7f9;
  --nf-teal: #00a99d;
  --nf-sky: #67c5ff;

  --nf-font-body: "DM Sans", sans-serif;
  --nf-font-heading: "Manrope", sans-serif;
  --nf-text-xs: .75rem;
  --nf-text-sm: .875rem;
  --nf-text-base: 1rem;
  --nf-text-lg: 1.125rem;
  --nf-heading-1: clamp(2.45rem, 4.4vw, 4rem);
  --nf-heading-2: clamp(1.95rem, 3.3vw, 3rem);
  --nf-heading-3: 1.125rem;
  --nf-heading-compact: clamp(1.3rem, 2vw, 1.55rem);
  --nf-team-name: 1.2rem;
  --nf-text-lead: 1.0625rem;
  --nf-text-card: .875rem;
  --nf-text-label: .75rem;
  --nf-mobile-gutter: 18px;
  --nf-section-space: clamp(52px, 6vw, 76px);
}

body {
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-base);
  color: var(--nf-body);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nf-font-heading);
  color: var(--nf-ink);
}

/* Shared display-heading scale across all page hero variants. */
.hero h1,
.nfa-hero h1 {
  font-size: var(--nf-heading-1);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.045em;
  text-wrap: balance;
}

/* Shared section-heading scale; dark sections retain their own text colour. */
.section-title,
.nfa-section-heading h2,
.nfa-problem-main h2,
.nfa-cta h2 {
  font-size: var(--nf-heading-2);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.04em;
}

.industry-card h3,
.story-card h3,
.product-item h3,
.nfa-product h3,
.nfa-problem-row h3,
.nfa-industry-item h3,
.nfa-principle h3 {
  font-size: var(--nf-heading-3);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* One consistent action style while leaving outline/inverse treatments intact. */
.btn,
.nfa-button {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 2px;
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
  font-weight: 500;
  line-height: 1.3;
}

.btn-primary,
.nfa-button:not(.nfa-button-outline) {
  background-color: var(--nf-blue);
  border-color: var(--nf-blue);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--nf-blue-dark);
  border-color: var(--nf-blue-dark);
}

a { text-underline-offset: .18em; }
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nfa-button:focus-visible {
  outline: 2px solid var(--nf-blue);
  outline-offset: 3px;
}

/* Keep shared page containers and section rhythm aligned. */
.container { width: 100%; }
.section,
.nfa-section { padding-block: var(--nf-section-space); }

@media (max-width: 767.98px) {
  .container,
  .container-fluid {
    padding-left: var(--nf-mobile-gutter) !important;
    padding-right: var(--nf-mobile-gutter) !important;
  }

  .hero h1,
  .nfa-hero h1 {
    font-size: clamp(2.2rem, 8.5vw, 3.2rem);
    line-height: 1.08;
  }

  .section-title,
  .nfa-section-heading h2,
  .nfa-problem-main h2,
  .nfa-cta h2 {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
    line-height: 1.16;
  }

  .btn,
  .nfa-button {
    min-height: 44px;
    padding: 11px 15px;
    font-size: .84rem;
  }

  .section,
  .nfa-section { padding-block: 50px; }
}

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

/* Explicit exception: preserve the requested cinematic hero typography. */
.hero-video h1 {
  max-width: 850px;
  color: #fff;
  font-size: clamp(3rem, 6.1vw, 5rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.055em;
  margin-bottom: 24px;
  text-wrap: balance;
}


/* Retain a mobile-specific size without changing the desktop specification. */
@media (max-width: 767.98px) {
  .hero-video h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
    max-width: 560px;
  }
}


/* ==========================================================
   ABOUT PAGE — OUR PURPOSE SECTION
   Extracted from the previous Nergyflux stylesheet
   ========================================================== */

.about-section {
  padding: clamp(62px, 7vw, 70px) 0;
}

.about-section-label {
  margin-bottom: 15px;
  color: var(--nf-blue, #0072bc);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.about-section-label::before {
  display: inline-block;
  width: 23px;
  height: 2px;
  margin: 0 10px 3px 0;
  background: currentColor;
  content: "";
}

/* Section background */
.about-purpose {
  background: #fff;
  border-top: 1px solid #e5edf2;
  border-bottom: 1px solid #e5edf2;
}

/* Heading and supporting paragraph */
.about-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.about-intro-copy h2,
.about-section-heading h2,
.about-operating-intro h2 {
  margin: 0 0 23px;
  color: var(--nf-ink, #142d40);
  font: 400 clamp(2rem, 3.65vw, 3.2rem)/1.12
        "Manrope", sans-serif;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.about-section-heading h2 {
  margin-bottom: 0;
}

.about-section-heading > p {
  max-width: 465px;
  margin: 0 0 5px;
  font-size: .96rem;
  line-height: 1.8;
}

.about-section-heading-wide {
  margin-bottom: 38px;
}

/* Three-card grid */
.about-purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Individual cards */
.about-purpose-card {
  position: relative;
  min-height: 245px;
  padding: 29px 27px 27px;
  border: 1px solid #dce6ec;
  background: #fff;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.about-purpose-card:hover {
  transform: translateY(-3px);
  border-color: #bddbeb;
  box-shadow: 0 14px 34px rgba(15, 48, 68, .07);
}

/* Featured card accent */
.about-purpose-card-featured {
  border-top: 3px solid var(--nf-blue, #0072bc);
}

/* Card number */
.about-card-index {
  position: absolute;
  top: 24px;
  right: 25px;
  color: #a2b3be;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

/* Card icon */
.about-purpose-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  margin-bottom: 23px;
  background: #eaf4fa;
  color: var(--nf-blue, #0072bc);
  font-size: 1.2rem;
}

/* Card title */
.about-purpose-card h3 {
  margin: 0 0 11px;
  color: var(--nf-ink, #142d40);
  font: 700 1.2rem/1.3 "Manrope", sans-serif;
  letter-spacing: -.03em;
}

/* Card description */
.about-purpose-card p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.75;
}

/* ==========================================================
   RESPONSIVE STYLES
   ========================================================== */

@media (max-width: 991.98px) {
  .about-purpose-grid {
    grid-template-columns: 1fr;
  }

  .about-purpose-card {
    min-height: 0;
    padding: 26px;
  }

  .about-purpose-icon {
    margin-bottom: 16px;
  }

  .about-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 767.98px) {
  .about-section-heading h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .about-section-heading {
    margin-bottom: 28px;
  }

  .about-purpose-card {
    padding: 23px;
  }
}

/* ==========================================================
   ABOUT PAGE — INDUSTRIES WE SERVE
   Responsive: Desktop, Tablet and Mobile
   ========================================================== */

.about-industries {
  background: #f4f8fa;
}

/* Card grid */
.about-industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Individual card */
.about-industry-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border: 1px solid #dce6ec;
  background: #fff;
  color: var(--nf-body, #526675);
  text-decoration: none;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.about-industry-card:hover {
  transform: translateY(-4px);
  border-color: #bfd9e8;
  box-shadow: 0 16px 32px rgba(15, 48, 68, .09);
  color: var(--nf-body, #526675);
}

.about-industry-card:focus-visible {
  outline: 2px solid var(--nf-blue, #0072bc);
  outline-offset: 4px;
}

/* Image */
.about-industry-image {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: #dce6ec;
}

.about-industry-image img {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}

.about-industry-card:hover .about-industry-image img {
  transform: scale(1.04);
}

/* Number badge */
.about-industry-image > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 7px;
  background: rgba(5, 24, 40, .78);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.4;
}

/* Text content */
.about-industry-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 21px 19px 20px;
}

.about-industry-overline {
  margin-bottom: 7px;
  color: var(--nf-blue, #0072bc);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.5;
}

.about-industry-copy h3 {
  margin: 0 0 9px;
  color: var(--nf-ink, #142d40);
  font: 700 1.12rem/1.3 "Manrope", sans-serif;
  letter-spacing: -.03em;
}

.about-industry-copy p {
  flex: 1 1 auto;
  margin: 0 0 20px;
  font-size: .82rem;
  line-height: 1.7;
}

.about-industry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--nf-blue, #0072bc);
  font-size: .77rem;
  font-weight: 400;
  line-height: 1.5;
}

.about-industry-link i {
  flex-shrink: 0;
  transition: transform .2s ease;
}

.about-industry-card:hover .about-industry-link i {
  transform: translate(2px, -2px);
}

/* ==========================================================
   TABLET — two cards per row
   ========================================================== */

@media (max-width: 991.98px) {
  .about-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .about-industry-image img {
    height: 180px;
  }

  .about-industry-copy {
    padding: 20px 18px;
  }

  .about-industry-copy h3 {
    font-size: 1.08rem;
  }
}

/* ==========================================================
   MOBILE — one card per row
   ========================================================== */

@media (max-width: 575.98px) {
  .about-industry-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .about-industry-card {
    height: auto;
  }

  .about-industry-image img {
    height: clamp(180px, 56vw, 240px);
  }

  .about-industry-image > span {
    right: 12px;
    bottom: 12px;
  }

  .about-industry-copy {
    padding: 21px 20px;
  }

  .about-industry-overline {
    font-size: .65rem;
  }

  .about-industry-copy h3 {
    font-size: 1.1rem;
  }

  .about-industry-copy p {
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 17px;
  }

  .about-industry-link {
    font-size: .82rem;
  }
}

/* ==========================================================
   ACCESSIBILITY — respect reduced-motion preferences
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .about-industry-card,
  .about-industry-image img,
  .about-industry-link i {
    transition: none;
  }

  .about-industry-card:hover {
    transform: none;
  }

  .about-industry-card:hover .about-industry-image img,
  .about-industry-card:hover .about-industry-link i {
    transform: none;
  }
}

/* ==========================================================
   ABOUT PAGE — INTRODUCTION AFTER HERO
   Aligned with the other About page sections
   ========================================================== */

.nfa-about-intro {
  background: #fff;
  padding: 40px 0 0;
}

/* Match the existing About page container */
.nfa-about-intro .container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.nfa-about-intro-content {
  padding-bottom: 34px;
  border-bottom: 1px solid #dce6ec;
}

/* Match the typography used in the other About sections */
.nfa-about-intro-content p {
  margin: 0;
  max-width: none;
  font-family: var(--nf-font-body, "DM Sans", sans-serif);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: normal;
  color: var(--nfa-text, var(--nf-body, #526675));
}

.nfa-about-intro-content p + p {
  margin-top: 28px;
}

/* Tablet */
@media (max-width: 991.98px) {
  .nfa-about-intro {
    padding-top: 34px;
  }

  .nfa-about-intro-content {
    padding-bottom: 28px;
  }

  .nfa-about-intro-content p + p {
    margin-top: 24px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .nfa-about-intro .container {
    padding-left: var(--nf-mobile-gutter, 18px);
    padding-right: var(--nf-mobile-gutter, 18px);
  }

  .nfa-about-intro {
    padding-top: 28px;
  }

  .nfa-about-intro-content {
    padding-bottom: 24px;
  }

  .nfa-about-intro-content p {
    font-size: .94rem;
    line-height: 1.75;
  }

  .nfa-about-intro-content p + p {
    margin-top: 20px;
  }
}


/* ==========================================================
   NERGYFLUX TYPOGRAPHY STANDARD — cross-page consistency
   Centralises page headings, body copy, card text and labels.
   Existing layout, colour and component interactions are preserved.
   ========================================================== */

/* Primary page headings: one scale across the website. */
.hero:not(.hero-video) h1,
.nfa-hero h1,
.contact-hero h1,
.nfa-display {
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}

/* Standard section headings. Keep each section's existing text colour. */
.section-title,
.nfa-section-heading h2,
.nfa-problem-main h2,
.nfa-cta h2,
.contact-section-heading h2 {
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-2);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.04em;
  text-wrap: balance;
}

/* Compact headings for nested panels and callout bands. */
.insight-inner h2,
.contact-sidebar h2,
.contact-form-panel h2,
.contact-cta h2 {
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-compact);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* Standard card and sub-section headings. Deliberately large showcase
   headings inside #industries and the cinematic hero retain their design. */
.industry-card h3,
.story-card h3,
.product-item h3,
.nfa-product h3,
.nfa-problem-row h3,
.nfa-industry-item h3,
.nfa-principle h3,
.nfa-model-layer h3,
.about-industry-copy h3,
.contact-location-card h3,
.contact-reason h3 {
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-3);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.025em;
}

/* Team member names are slightly more prominent than ordinary card titles. */
.nfa-team-details h3 {
  font-family: var(--nf-font-heading);
  font-size: var(--nf-team-name);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.025em;
}

/* Standard lead / introductory copy. */
.section-copy,
.nfa-section-heading p,
.nfa-problem-main > p,
.nfa-belief-copy > p,
.nfa-products-top-note,
.nfa-industries-intro > p,
.nfa-principles-top > p,
.nfa-people-heading > p,
.nfa-about-intro-content p,
.contact-hero-copy,
.contact-section-heading > p,
.intro-copy {
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-lead);
  font-weight: 400;
  line-height: 1.75;
}

/* Regular descriptive copy on content sections and cards. */
.industry-card p,
.story-card p,
.product-item p,
.nfa-problem-row p,
.nfa-model-layer p,
.nfa-model-endpoint p,
.nfa-model-output span,
.nfa-product p,
.nfa-products-foot p,
.nfa-industry-item p,
.nfa-principle p,
.nfa-people-heading > p,
.about-industry-copy p,
.contact-panel-intro,
.contact-reason p,
.contact-location-card p,
.contact-hours,
.contact-address-note,
.contact-privacy-note,
.contact-form-status {
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  font-weight: 400;
  line-height: 1.7;
}

/* Retain a readable but restrained size for dense technical/card content. */
.product-hover-content .product-benefit-list,
.platform-bullets li,
#industries .industry-card-back ul {
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  line-height: 1.6;
}

/* Short labels and eyebrows share a common scale and treatment. */
.eyebrow,
.section-kicker,
.nfa-eyebrow,
.about-section-label {
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-label);
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
}

/* Reusable links and text actions. Colours and hover behaviours remain local. */
.text-action,
.arrow-link,
.nfa-link,
.nfa-product-link,
.about-industry-link,
.contact-location-card a {
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
  line-height: 1.45;
}

/* Team roles and areas: use readable supporting text instead of tiny labels. */
.nfa-team-details p {
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  font-weight: 400;
  color: var(--nf-body);
  line-height: 1.5;
}

.nfa-team-details > span {
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  font-weight: 400;
  color: var(--nf-body);
  line-height: 1.5;
}

/* Intro text has one consistent base size on desktop and mobile. */
.nfa-about-intro-content p {
  font-size: var(--nf-text-base);
  line-height: 1.75;
}

/* Body copy in the homepage intro and callout areas. */
.hero:not(.hero-video) p,
.insight-inner p,
.nfa-cta p,
.contact-cta p {
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-base);
  line-height: 1.7;
}

/* Keep all standard CTA buttons on the shared body font. */
.btn,
.nfa-button,
.contact-submit {
  font-family: var(--nf-font-body);
}

/* Mobile uses the same type hierarchy with a smaller responsive scale. */
@media (max-width: 767.98px) {
  :root {
    --nf-heading-1: clamp(2.15rem, 8.3vw, 3.1rem);
    --nf-heading-2: clamp(1.8rem, 6.5vw, 2.5rem);
    --nf-heading-compact: clamp(1.2rem, 5vw, 1.45rem);
    --nf-team-name: 1.05rem;
    --nf-text-lead: 1rem;
  }

  .hero:not(.hero-video) h1,
  .nfa-hero h1,
  .contact-hero h1,
  .nfa-display {
    line-height: 1.12;
    letter-spacing: -.04em;
  }

  .section-title,
  .nfa-section-heading h2,
  .nfa-problem-main h2,
  .nfa-cta h2,
  .contact-section-heading h2 {
    line-height: 1.2;
  }

  .section-copy,
  .nfa-section-heading p,
  .nfa-problem-main > p,
  .nfa-belief-copy > p,
  .nfa-products-top-note,
  .nfa-industries-intro > p,
  .nfa-principles-top > p,
  .nfa-people-heading > p,
  .nfa-about-intro-content p,
  .contact-hero-copy,
  .contact-section-heading > p,
  .intro-copy {
    line-height: 1.7;
  }
}

/* Keep the cinematic homepage hero as an intentional visual exception. */
.hero-video h1 {
  font-family: var(--nf-font-heading);
  font-size: clamp(3rem, 6.1vw, 5rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.055em;
}

@media (max-width: 767.98px) {
  .hero-video h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
    line-height: 1.03;
    letter-spacing: -.055em;
  }
}

/* ==========================================================
   FINAL TYPOGRAPHY ALIGNMENT — all page hero headings use one scale.
   The homepage cinematic hero keeps its white text and background,
   but its heading size, weight, line-height and letter-spacing now
   match the About and other page hero headings.
   ========================================================== */
.hero h1,
.nfa-hero h1,
.contact-hero h1,
.nfa-display {
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}

/* ==========================================================
   DISPLAY / STATEMENT HEADINGS — regular weight across pages.
   Cross-checked against the homepage, About and Contact markup.

   Type 1: page-level hero/display headings.
   Type 2: large editorial statement headings.

   Standard section headings, card titles, CTA headings, labels,
   and navigation/menu headings intentionally keep their own weights.
   ========================================================== */

/* Type 1 — page hero and reusable display headings. */
.hero h1,
.hero-video h1,
.nfa-hero h1,
.contact-hero h1,
.about-hero h1,
.nfa-display {
  font-weight: 400 !important;
}

/* Type 2 — large statement headings, not the general section-heading class. */
.nfa-problem-main h2,
.about-intro-copy h2,
.about-intelligence-heading h2,
.about-operating-intro h2 {
  font-weight: 400 !important;
}


/* Remove decorative blue lines before section labels across pages */
.nfa-eyebrow::before,
.about-section-label::before {
  content: none !important;
  display: none !important;
}

/* Homepage: constrain the hero heading to create a balanced three-line layout */
@media (min-width: 992px) {
  .hero-video .hero-inner h1 {
    max-width: 620px !important;
  }
}

/* Homepage hero: highlight the final phrase in the About-page blue */
.hero-video h1 em {
  color: #8bd2fb;
  font-style: normal;
}




//* ============================================================
   NERGYFLUX ROADMAP
   Uses the shared Nergyflux design system.
   ============================================================ */

.nf-roadmap-page {
  color: var(--nf-body);
  overflow-x: clip;
}

.nf-roadmap-page main {
  overflow: clip;
}

.nf-roadmap-page h1,
.nf-roadmap-page h2,
.nf-roadmap-page h3,
.nf-roadmap-page p {
  overflow-wrap: anywhere;
}

/* ============================================================
   DARK INDUSTRIAL BANNER
   ============================================================ */

.nf-roadmap-page .nfr-page-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(360px, 42vh, 500px);
  overflow: hidden;
  padding: clamp(28px, 3vw, 42px) 0;
  background-color: #061a2b;
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 15, 27, .96) 0%,
      rgba(3, 15, 27, .88) 33%,
      rgba(3, 15, 27, .56) 61%,
      rgba(3, 15, 27, .20) 100%
    ),
    linear-gradient(
      0deg,
      rgba(3, 15, 27, .50),
      transparent 48%
    ),
    url("../assets/img/roadmap_hero.webp");
  background-position: center, center, center 48%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.nf-roadmap-page .nfr-page-intro::before,
.nf-roadmap-page .nfr-page-intro::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(117, 199, 243, .18);
    border-radius: 50%;
    pointer-events: none;
}

.nf-roadmap-page .nfr-page-intro::before {
    width: 520px;
    height: 520px;
    right: -230px;
    top: -270px;
}

.nf-roadmap-page .nfr-page-intro::after {
    width: 390px;
    height: 390px;
    right: -165px;
    top: -205px;
}

/* Kicker labels use the shared label typography scale. */

.nf-roadmap-page .nfr-page-kicker,
.nf-roadmap-page .nfr-section-kicker,
.nf-roadmap-page .nfr-phase-label,
.nf-roadmap-page .nfr-phase-eyebrow {
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-label);
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nf-roadmap-page .nfr-page-kicker {
  margin-bottom: 22px;
  color: var(--nf-sky);
}

.nf-roadmap-page .nfr-page-kicker span {
  padding-inline: 8px;
  color: #7e9aad;
}

.nf-roadmap-page .nfr-page-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(38px, 7vw, 105px);
  align-items: start;
}

/* Banner heading uses the global heading size and font family. */

.nf-roadmap-page .nfr-title-column h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-1);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.nf-roadmap-page .nfr-title-column h1 em {
  color: #8bd2fb;
  font-style: normal;
}

.nf-roadmap-page .nfr-intro-column > p {
  max-width: 590px;
  margin: 0;
  color: rgba(245, 250, 255, .88);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-lead);
  line-height: 1.75;
}

/* Banner metrics */

.nf-roadmap-page .nfr-intro-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, .24);
}

.nf-roadmap-page .nfr-intro-metrics > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nf-roadmap-page .nfr-intro-metrics strong {
  color: #fff;
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-compact);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.nf-roadmap-page .nfr-intro-metrics span {
  color: #c3d2df;
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-xs);
  line-height: 1.4;
}

/* ============================================================
   SHARED SECTION HEADING STRUCTURE
   ============================================================ */

.nf-roadmap-page .nfr-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 30px;
}

.nf-roadmap-page .nfr-section-heading > div {
  max-width: 730px;
}

/* Section headings follow the global heading hierarchy. */

.nf-roadmap-page .nfr-section-heading h2,
.nf-roadmap-page .nfr-outlook h2 {
  margin: 9px 0 0;
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: clamp(2rem, 3.65vw, 3.2rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.nf-roadmap-page .nfr-section-heading > p {
  max-width: 435px;
  margin: 0 0 3px;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-lead);
  line-height: 1.75;
}

/* ============================================================
   STRATEGIC DIRECTION
   ============================================================ */

.nf-roadmap-page .nfr-direction {
  padding-block: var(--nf-section-space);
  background: #fff;
  border-bottom: 1px solid var(--nf-line);
}

.nf-roadmap-page .nfr-direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--nf-line);
  border-bottom: 1px solid var(--nf-line);
  background: #fff;
}

.nf-roadmap-page .nfr-direction-item {
  min-width: 0;
  padding: 22px 25px 24px;
}

.nf-roadmap-page .nfr-direction-item + .nfr-direction-item {
  border-left: 1px solid var(--nf-line);
}

.nf-roadmap-page .nfr-direction-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
  color: var(--nf-blue);
}

.nf-roadmap-page .nfr-direction-top span {
  color: #8495a0;
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-label);
  font-weight: 700;
  letter-spacing: .1em;
}

.nf-roadmap-page .nfr-direction-top i {
  font-size: 1.15rem;
}

.nf-roadmap-page .nfr-direction-item:nth-child(2) .nfr-direction-top {
  color: var(--nf-teal);
}

.nf-roadmap-page .nfr-direction-item:nth-child(3) .nfr-direction-top {
  color: var(--nf-blue-dark);
}

/* Strategic direction titles use the global card-heading scale. */

.nf-roadmap-page .nfr-direction-item h3,
.nf-roadmap-page .nfr-phase-title h3 {
  margin: 0 0 10px;
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-3);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.nf-roadmap-page .nfr-direction-item p {
  max-width: 360px;
  margin: 0;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  line-height: 1.7;
}

/* ============================================================
   BUILD. SCALE. LEAD.
   ============================================================ */

.nf-roadmap-page .nfr-phases {
  padding-block: var(--nf-section-space);
  background: var(--nf-pale);
}

.nf-roadmap-page .nfr-phases-heading {
  margin-bottom: 32px;
}

.nf-roadmap-page .nfr-phase-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.nf-roadmap-page .nfr-phase {
  --nfr-phase-accent: var(--nf-blue);

  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 25px 0;
  background: #fff;
  border: 1px solid var(--nf-line);
  box-shadow: 0 4px 18px rgba(20, 45, 64, .025);
}

.nf-roadmap-page .nfr-phase:nth-child(2) {
  --nfr-phase-accent: var(--nf-teal);
}

.nf-roadmap-page .nfr-phase:nth-child(3) {
  --nfr-phase-accent: var(--nf-blue-dark);
}

.nf-roadmap-page .nfr-phase-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--nf-line);
}

.nf-roadmap-page .nfr-phase-topline > span {
  color: #8a9ca7;
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-compact);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.nf-roadmap-page .nfr-phase-topline > strong {
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: var(--nf-text-sm);
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nf-roadmap-page .nfr-phase-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 20px;
  color: var(--nfr-phase-accent);
}

.nf-roadmap-page .nfr-phase-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--nfr-phase-accent);
}

.nf-roadmap-page .nfr-phase-title {
  min-height: 155px;
}

.nf-roadmap-page .nfr-phase-title h3 {
  margin-bottom: 12px;
}

.nf-roadmap-page .nfr-phase-title p {
  margin: 0;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  line-height: 1.7;
}

.nf-roadmap-page .nfr-phase-focus {
  margin-top: 22px;
  padding-top: 25px;
  border-top: 1px solid var(--nf-line);
}

.nf-roadmap-page .nfr-phase-eyebrow {
  margin-bottom: 20px;
  color: #81929d;
}

.nf-roadmap-page .nfr-phase-points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf-roadmap-page .nfr-phase-points li {
  position: relative;
  padding-left: 22px;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  line-height: 1.7;
}

.nf-roadmap-page .nfr-phase-points li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nfr-phase-accent);
}

.nf-roadmap-page .nfr-phase-foundations {
  margin-top: auto;
  padding: 30px 0 25px;
}

.nf-roadmap-page .nfr-phase-foundations .nfr-phase-eyebrow {
  margin-bottom: 13px;
}

.nf-roadmap-page .nfr-phase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nf-roadmap-page .nfr-phase-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 7px 11px;
  border: 1px solid var(--nf-line);
  background: var(--nf-pale);
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-xs);
  line-height: 1.35;
}

.nf-roadmap-page .nfr-phase-foot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: auto;
  padding: 21px 0 22px;
  border-top: 1px solid var(--nf-line);
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  line-height: 1.55;
}

.nf-roadmap-page .nfr-phase-foot i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--nfr-phase-accent);
  font-size: 1rem;
}

.nf-roadmap-page .nfr-phase-note {
  display: flex;
  gap: 10px;
  max-width: 940px;
  margin: 22px 0 0;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  line-height: 1.7;
}

.nf-roadmap-page .nfr-phase-note i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--nf-blue);
}

/* ============================================================
   CLOSING STATEMENT
   ============================================================ */

.nf-roadmap-page .nfr-outlook {
  padding-block: var(--nf-section-space);
  background: #fff;
  border-top: 1px solid var(--nf-line);
}

.nf-roadmap-page .nfr-outlook-inner {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}

.nf-roadmap-page .nfr-outlook-mark {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-start;
}

.nf-roadmap-page .nfr-outlook-mark span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--nf-line);
  color: var(--nf-blue);
  font-family: var(--nf-font-heading);
  font-size: var(--nf-text-sm);
  font-weight: 500;
}

.nf-roadmap-page .nfr-outlook-mark span:nth-child(2) {
  color: var(--nf-teal);
}

.nf-roadmap-page .nfr-outlook-mark span:nth-child(3) {
  color: var(--nf-blue-dark);
}

.nf-roadmap-page .nfr-outlook-copy p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  line-height: 1.7;
}

.nf-roadmap-page .nfr-outlook-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 0 13px 18px;
  color: var(--nf-blue);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  white-space: nowrap;
}

.nf-roadmap-page .nfr-outlook-link:hover {
  color: var(--nf-blue-dark);
}

/* ============================================================
   RESPONSIVE LAYOUT
   Uses the site's existing Bootstrap breakpoints.
   Typography remains controlled by the global scale.
   ============================================================ */

@media (max-width: 991.98px) {
  .nf-roadmap-page .nfr-page-intro {
    min-height: 0;
    align-items: stretch;
    background-position: center, center, 61% center;
  }

  .nf-roadmap-page .nfr-page-intro-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .nf-roadmap-page .nfr-title-column h1 {
    max-width: 840px;
  }

  .nf-roadmap-page .nfr-intro-column > p {
    max-width: 760px;
  }

  .nf-roadmap-page .nfr-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .nf-roadmap-page .nfr-section-heading > p {
    max-width: 760px;
  }

  .nf-roadmap-page .nfr-direction-item {
    padding: 20px 18px 23px;
  }

  .nf-roadmap-page .nfr-phase-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nf-roadmap-page .nfr-phase {
    padding: 23px 22px 0;
  }

  .nf-roadmap-page .nfr-phase-title {
    min-height: 0;
  }

  .nf-roadmap-page .nfr-outlook-inner {
    grid-template-columns: 95px minmax(0, 1fr);
  }

  .nf-roadmap-page .nfr-outlook-mark {
    flex-wrap: wrap;
  }

  .nf-roadmap-page .nfr-outlook-mark span {
    width: 32px;
    height: 32px;
  }

  .nf-roadmap-page .nfr-outlook-link {
    grid-column: 2;
    padding: 4px 0 0;
  }
}

@media (max-width: 767.98px) {
  .nf-roadmap-page .nfr-page-intro {
    min-height: 0;
    padding: 50px 0;
    background-image:
      linear-gradient(
        90deg,
        rgba(3, 15, 27, .93) 0%,
        rgba(3, 15, 27, .78) 52%,
        rgba(3, 15, 27, .43) 100%
      ),
      linear-gradient(
        0deg,
        rgba(3, 15, 27, .38),
        transparent 60%
      ),
      url("../assets/img/roadmap_hero.webp");
    background-position: center, center, 60% center;
  }

  .nf-roadmap-page .nfr-intro-metrics {
    margin-top: 22px;
    padding-top: 15px;
    gap: 8px;
  }

  .nf-roadmap-page .nfr-direction-grid {
    grid-template-columns: 1fr;
  }

  .nf-roadmap-page .nfr-direction-item {
    padding: 18px 18px 20px;
  }

  .nf-roadmap-page .nfr-direction-item + .nfr-direction-item {
    border-left: 0;
    border-top: 1px solid var(--nf-line);
  }

  .nf-roadmap-page .nfr-direction-top {
    margin-bottom: 13px;
  }

  .nf-roadmap-page .nfr-phase-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .nf-roadmap-page .nfr-phase {
    padding: 22px 20px 0;
  }

  .nf-roadmap-page .nfr-phase-label {
    margin: 22px 0 15px;
  }

  .nf-roadmap-page .nfr-phase-title {
    min-height: 0;
  }

  .nf-roadmap-page .nfr-phase-focus {
    margin-top: 22px;
    padding-top: 22px;
  }

  .nf-roadmap-page .nfr-phase-points {
    gap: 10px;
  }

  .nf-roadmap-page .nfr-phase-foundations {
    padding: 25px 0 21px;
  }

  .nf-roadmap-page .nfr-outlook-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nf-roadmap-page .nfr-outlook-mark {
    display: none;
  }

  .nf-roadmap-page .nfr-outlook-link {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-roadmap-page .nfr-direction-item,
  .nf-roadmap-page .nfr-outlook-link {
    transition: none !important;
  }
}

@media (max-width: 767.98px) {
  
    .nf-roadmap-page .nfr-page-intro::before {
        width: 190px;
        height: 190px;
        right: -85px;
        top: -100px;
    }

    .nf-roadmap-page .nfr-page-intro::after {
        width: 135px;
        height: 135px;
        right: -58px;
        top: -72px;
    }
}

/* ============================================================
   NERGYFLUX FAQ DIRECTORY
   ============================================================ */
   
.nf-faq-directory { background: #fff; }

.nf-faq-heading { margin-bottom: 34px; }
.nf-faq-heading > div { max-width: 760px; }
.nf-faq-heading .section-kicker { margin-bottom: 12px; color: var(--nf-blue); }
.nf-faq-heading .section-title { margin: 0 0 16px; }
.nf-faq-heading .section-copy { margin: 0; }

.nf-faq-layout {
  display: grid;
  grid-template-columns: minmax(230px, .32fr) minmax(0, .68fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* LEFT CATEGORY NAVIGATION */

.nf-faq-sidebar {
  min-width: 0;
  padding: 24px 20px;
  background: var(--nf-pale);
  border: 1px solid var(--nf-line);
}

.nf-faq-sidebar-title {
  margin: 0 0 17px;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-label);
  font-weight: 800;
  letter-spacing: .12em;
}

.nf-faq-category-nav { display: grid; gap: 5px; }

.nf-faq-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

f.nf-faq-category:hover,
.nf-faq-category:hover,
.nf-faq-category.is-active {
  background: #fff;
  color: var(--nf-blue);
}

.nf-faq-category.is-active {
  border-color: var(--nf-line);
  border-left-color: var(--nf-blue);
  font-weight: 700;
}

.nf-faq-count {
  flex: 0 0 auto;
  color: #81929d;
  font-size: var(--nf-text-xs);
  font-variant-numeric: tabular-nums;
}

.nf-faq-category.is-active .nf-faq-count { color: var(--nf-blue); }

.nf-faq-sidebar-help {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--nf-line);
}

.nf-faq-help-title {
  margin: 0 0 7px;
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-3);
  font-weight: 700;
  line-height: 1.35;
}

.nf-faq-sidebar-help > p:not(.nf-faq-help-title) {
  margin: 0 0 14px;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  line-height: 1.65;
}

.nf-faq-sidebar-help a,
.nf-faq-answer a {
  color: var(--nf-blue);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
  font-weight: 500;
  text-decoration: none;
}

.nf-faq-sidebar-help a:hover,
.nf-faq-answer a:hover {
  color: var(--nf-blue-dark);
}

/* RIGHT FAQ PANEL */

.nf-faq-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: clamp(520px, calc(100vh - 160px), 740px);
  padding: 22px 24px;
  border: 1px solid var(--nf-line);
  background: #fff;
  box-sizing: border-box;
}

/* Heading and search */

.nf-faq-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.nf-faq-main-head > div { min-width: 0; }

.nf-faq-main-head h3 {
  margin: 0 0 7px;
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-3);
  font-weight: 700;
  line-height: 1.4;
}

.nf-faq-main-head p {
  margin: 0;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  line-height: 1.6;
}

.nf-faq-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 1 270px;
  min-width: 180px;
  padding: 0 12px;
  border: 1px solid var(--nf-line);
  background: #fff;
  box-sizing: border-box;
}

.nf-faq-search:focus-within {
  border-color: var(--nf-blue);
  box-shadow: 0 0 0 3px rgba(0, 114, 188, .09);
}

.nf-faq-search-icon {
  flex: 0 0 auto;
  color: #7b8e9b;
  font-size: 1.35rem;
  line-height: 1;
}

.nf-faq-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--nf-ink);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
}

.nf-faq-search input::placeholder { color: #8999a4; }

/* Independent scrolling */

.nf-faq-scroll-panel {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 12px 20px 0;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c7d4dc transparent;
  box-sizing: border-box;
}

.nf-faq-scroll-panel::-webkit-scrollbar { width: 6px; }

.nf-faq-scroll-panel::-webkit-scrollbar-thumb {
  background: #c7d4dc;
  border-radius: 10px;
}

.nf-faq-scroll-panel::-webkit-scrollbar-thumb:hover { background: #91aab9; }
.nf-faq-scroll-panel::-webkit-scrollbar-track { background: transparent; }

/* FAQ categories */

.nf-faq-group {
  min-width: 0;
  scroll-margin-top: 12px;
}

.nf-faq-group + .nf-faq-group { margin-top: 34px; }

.nf-faq-group-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--nf-line);
  scroll-margin-top: 12px;
}

.nf-faq-group-heading > span {
  flex: 0 0 auto;
  color: var(--nf-blue);
  font-family: var(--nf-font-heading);
  font-size: var(--nf-text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nf-faq-group-heading h3 {
  margin: 0;
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-3);
  font-weight: 700;
  line-height: 1.4;
}

/* Question index generated by JavaScript */

.nf-faq-question-index { margin: 0 0 26px; }

.nf-faq-question-index ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 26px;
  list-style: disc;
}

.nf-faq-question-index li {
  padding-left: 2px;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-base);
  line-height: 1.55;
}

.nf-faq-question-index li::marker { color: var(--nf-body); }

.nf-faq-question-index a {
  color: var(--nf-blue);
  font-family: var(--nf-font-body);
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
  transition: color .2s;
}

.nf-faq-question-index a:hover {
  color: var(--nf-blue-dark);
}

.nf-faq-question-index a:focus-visible,
.nf-faq-category:focus-visible {
  outline: 2px solid var(--nf-blue);
  outline-offset: 3px;
}

/* Questions and answers */

.nf-faq-item {
  min-width: 0;
  margin: 0;
  padding: 0 6px 22px;
  border-bottom: 1px solid var(--nf-line);
  background: #fff;
  scroll-margin-top: 14px;
}

.nf-faq-item + .nf-faq-item { margin-top: 24px; }

.nf-faq-item[hidden],
.nf-faq-group[hidden],
.nf-faq-question-index[hidden],
.nf-faq-question-index li[hidden],
.nf-faq-no-results[hidden] {
  display: none !important;
}

.nf-faq-question {
  margin: 0 0 9px;
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-3);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.nf-faq-answer {
  padding: 0 4px;
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-card);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.nf-faq-answer p { margin: 0 0 12px; }
.nf-faq-answer p:last-child { margin-bottom: 0; }

.nf-faq-answer ul {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 22px;
}

.nf-faq-answer li { padding-left: 3px; }
.nf-faq-answer strong { color: var(--nf-ink); font-weight: 700; }
.nf-faq-answer a { display: inline-block; margin-top: 8px; }

/* Search message */

.nf-faq-no-results {
  flex: 0 0 auto;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--nf-line);
  background: var(--nf-pale);
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
  line-height: 1.65;
}

/* RESPONSIVE LAYOUT */

@media (max-width: 991.98px) {
  .nf-faq-layout {
    grid-template-columns: minmax(190px, .34fr) minmax(0, .66fr);
    gap: 24px;
  }

  .nf-faq-sidebar { padding: 18px 14px; }

  .nf-faq-main {
    height: clamp(480px, calc(100vh - 160px), 680px);
    padding: 20px;
  }

  .nf-faq-main-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .nf-faq-search { flex: 0 1 auto; width: 100%; min-width: 0; }

  .nf-faq-question-index li { font-size: var(--nf-text-sm); }
}

@media (max-width: 767.98px) {
  .nf-faq-heading { margin-bottom: 26px; }

  .nf-faq-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .nf-faq-sidebar { position: static; padding: 17px; }

  .nf-faq-category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .nf-faq-category {
    align-items: flex-start;
    padding: 12px 10px;
    font-size: var(--nf-text-xs);
  }

  .nf-faq-sidebar-help { margin-top: 18px; padding-top: 16px; }

  .nf-faq-main {
    position: static;
    height: auto;
    min-height: 0;
    padding: 18px;
  }

  .nf-faq-scroll-panel {
    flex: 0 1 auto;
    overflow: visible;
    padding: 0 0 20px;
    scrollbar-gutter: auto;
  }

  .nf-faq-group + .nf-faq-group { margin-top: 30px; }
  .nf-faq-group-heading { gap: 11px; padding-bottom: 12px; }
  .nf-faq-question-index { margin-bottom: 22px; }

  .nf-faq-question-index ul { gap: 9px; padding-left: 22px; }

  .nf-faq-question-index li {
    font-size: var(--nf-text-sm);
    line-height: 1.6;
  }

  .nf-faq-item { padding: 0 3px 19px; }
  .nf-faq-item + .nf-faq-item { margin-top: 22px; }
  .nf-faq-answer { padding: 0; }
}

@media (max-width: 420px) {
  .nf-faq-category-nav { grid-template-columns: 1fr; }
  .nf-faq-category { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-faq-scroll-panel { scroll-behavior: auto; }
  .nf-faq-category,
  .nf-faq-question-index a { transition: none; }
}

/* Smooth wheel-controlled scrolling inside the FAQ panel */
.nf-faq-scroll-panel.nf-faq-wheel-scroll {
  scroll-behavior: auto !important;
}

@media (max-width: 767.98px) {

  .nf-faq-main {
    position: static !important;
    top: auto !important;
    align-self: stretch;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block;
    padding: 18px;
    box-sizing: border-box;
  }

  .nf-faq-main-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }

  .nf-faq-search {
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    box-sizing: border-box;
  }

  .nf-faq-scroll-panel {
    display: block !important;
    position: static !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: none !important;
    overflow: visible !important;
    padding: 0 0 20px;
    margin: 0;
    scrollbar-gutter: auto;
    overscroll-behavior: auto;
  }

  .nf-faq-group,
  .nf-faq-item {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .nf-faq-group + .nf-faq-group {
    margin-top: 30px;
  }

  .nf-faq-item {
    padding: 0 3px 19px;
  }

  .nf-faq-item + .nf-faq-item {
    margin-top: 22px;
  }
}

/* FAQ: prevent sticky hover highlighting on mobile */
@media (max-width: 767.98px) {
  .nf-faq-category:not(.is-active),
  .nf-faq-category:not(.is-active):hover,
  .nf-faq-category:not(.is-active):focus,
  .nf-faq-category:not(.is-active):active {
    background: transparent !important;
    color: var(--nf-body) !important;
    border-color: transparent !important;
    border-left-color: transparent !important;
    font-weight: 400 !important;
    box-shadow: none !important;
  }

  .nf-faq-category.is-active {
    background: #fff !important;
    color: var(--nf-blue) !important;
    border: 1px solid var(--nf-line) !important;
    border-left: 3px solid var(--nf-blue) !important;
    font-weight: 700 !important;
  }
}

.navbar .navbar-nav .nav-link.active {
    color: var(--nf-blue) !important;
}

.product-card-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
}

.product-title-lockup {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 20px;
}

.product-title-lockup .product-card-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

.product-title-lockup h3 {
    margin: 0;
}



/* ==========================================================
   NERGYFLUX GLOBAL PAGE TRANSITIONS & PAGE LOADER
   ========================================================== */

.nf-page-loader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    opacity: 1;
    visibility: visible;
    transition: opacity .65s ease, visibility .65s ease;
}

.nf-page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nf-loader-content {
    width: 190px;
    text-align: center;
}

.nf-loader-brand {
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #0072bc;
    margin-bottom: 17px;
}

.nf-loader-line {
    width: 100%;
    height: 3px;
    background: #e7f0f5;
    overflow: hidden;
    border-radius: 10px;
}

.nf-loader-line span {
    display: block;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #0072bc, #00a99d);
    border-radius: 10px;
    animation: nfLoaderProgress 1.8s ease-in-out infinite;
}

@keyframes nfLoaderProgress {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(270%);
    }
}

/* Smooth entrance for page content */
body.nf-page-enter main,
body.nf-page-enter #site-header,
body.nf-page-enter #site-footer {
    animation: nfPageEnter .85s ease both;
}

@keyframes nfPageEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth exit before internal navigation */
body.nf-page-leaving {
    pointer-events: none;
}

body.nf-page-leaving main,
body.nf-page-leaving #site-header,
body.nf-page-leaving #site-footer {
    opacity: .35;
    transition: opacity .22s ease;
}

@media (prefers-reduced-motion: reduce) {
    .nf-page-loader,
    body.nf-page-enter main,
    body.nf-page-enter #site-header,
    body.nf-page-enter #site-footer,
    body.nf-page-leaving main,
    body.nf-page-leaving #site-header,
    body.nf-page-leaving #site-footer {
        animation: none !important;
        transition: none !important;
    }

    .nf-loader-line span {
        animation: none !important;
    }
}

/* ================================================================
   PARTNER WITH US PAGE
   Layout-only rules. Typography and brand colours use global tokens
   from css/style.css, following the Roadmap page's design language.
   ================================================================ */
.nf-partnership-page {
  --nfp-section-space: clamp(42px, 4.8vw, 58px);
  color: var(--nf-body);
  background: #fff;
  font-family: var(--nf-font-body);
  overflow-x: clip;
}
.nf-partnership-page *,
.nf-partnership-page *::before,
.nf-partnership-page *::after { box-sizing: border-box; }
.nf-partnership-page img { display: block; max-width: 100%; }
.nf-partnership-page a { text-decoration: none; }
.nf-partnership-page h1,
.nf-partnership-page h2,
.nf-partnership-page h3 { font-family: var(--nf-font-heading); }
.nf-partnership-page [id] { scroll-margin-top: 100px; }

/* HERO: same image, overlay, proportions and type hierarchy as Roadmap. */
.nf-partnership-page .nfp-page-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(360px, 42vh, 500px);
  overflow: hidden;
  padding: clamp(28px, 3vw, 42px) 0;
  background-color: #061a2b;
  background-image:
    linear-gradient(90deg, rgba(3,15,27,.96) 0%, rgba(3,15,27,.88) 33%, rgba(3,15,27,.56) 61%, rgba(3,15,27,.20) 100%),
    linear-gradient(0deg, rgba(3,15,27,.50), transparent 48%),
    url("../assets/img/partnership_hero.webp");
  background-position: center, center, center 48%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}
/* Partnership hero: subtle circular decoration */
.nf-partnership-page .nfp-page-intro::before,
.nf-partnership-page .nfp-page-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(117,199,243,.18);
  border-radius: 50%;
  pointer-events: none;
}

.nf-partnership-page .nfp-page-intro::before {
  width: 520px;
  height: 520px;
  right: -230px;
  top: -270px;
}

.nf-partnership-page .nfp-page-intro::after {
  width: 390px;
  height: 390px;
  right: -165px;
  top: -205px;
}
.nf-partnership-page .nfp-page-kicker {
  margin-bottom: 22px;
  color: var(--nf-sky);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-label);
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.nf-partnership-page .nfp-page-kicker span { padding-inline: 8px; color: #7e9aad; }
.nf-partnership-page .nfp-page-intro-grid {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(300px,.88fr);
  gap: clamp(38px,7vw,105px);
  align-items: end;
}
.nf-partnership-page .nfp-title-column h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-1);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.nf-partnership-page .nfp-title-column h1 em { color: #8bd2fb; font-style: normal; }
.nf-partnership-page .nfp-intro-column > p {
  max-width: 590px;
  margin: 0;
  color: rgba(245,250,255,.88);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-lead);
  line-height: 1.75;
}
.nf-partnership-page .nfp-intro-metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-top: 28px;
  padding-top: 19px;
  border-top: 1px solid rgba(255,255,255,.24);
}
.nf-partnership-page .nfp-intro-metrics > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nf-partnership-page .nfp-intro-metrics strong {
  color: #fff;
  font-family: var(--nf-font-heading);
  font-size: var(--nf-heading-compact);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.nf-partnership-page .nfp-intro-metrics span {
  color: #c3d2df;
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-xs);
  line-height: 1.4;
}

/* Shared section heading and page typography. */
.nf-partnership-page .nfp-section {
  padding-block: var(--nfp-section-space);
}
.nf-partnership-page .nfp-section-kicker {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--nf-blue);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-label);
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.nf-partnership-page h2 {
  margin: 0;
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: clamp(2rem, 3.65vw, 3.2rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.nf-partnership-page h2 em { color: var(--nf-blue); font-style: normal; }
.nf-partnership-page p { color: var(--nf-body); }
.nf-partnership-page h3 { color: var(--nf-ink); font-size: var(--nf-heading-3); font-weight: 700; line-height: 1.35; }
.nf-partnership-page .nfp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--nf-blue);
  border-radius: 2px;
  background: var(--nf-blue);
  color: #fff;
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-sm);
  font-weight: 600;
  line-height: 1.3;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.nf-partnership-page .nfp-button:hover { color: #fff; background: var(--nf-blue-dark); border-color: var(--nf-blue-dark); transform: translateY(-1px); }
.nf-partnership-page .nfp-button i { font-size: var(--nf-text-sm); }

/* Benefits. */
.nf-partnership-page .nfp-section-heading { margin-bottom: 30px; }
.nf-partnership-page .nfp-section-heading-split {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(280px,.72fr);
  gap: 70px;
  align-items: end;
}
.nf-partnership-page .nfp-section-heading-split h2 { max-width: 700px; }
.nf-partnership-page .nfp-section-heading-split > p {
  max-width: 470px;
  margin: 0 0 5px;
  font-size: var(--nf-text-base);
  line-height: 1.8;
}
.nf-partnership-page .nfp-benefits-section { background: #fff; }
.nf-partnership-page .nfp-benefit-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.nf-partnership-page .nfp-benefit-card {
  position: relative;
  min-height: 246px;
  padding: 24px 23px 25px;
  border: 1px solid var(--nf-line);
  background: #fff;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.nf-partnership-page .nfp-benefit-card:hover { border-color: rgba(0,114,188,.35); box-shadow: 0 15px 35px rgba(25,72,98,.08); transform: translateY(-3px); }
.nf-partnership-page .nfp-benefit-card-wide { grid-column: span 2; min-height: 205px; }
.nf-partnership-page .nfp-card-index { position: absolute; top: 21px; right: 21px; color: var(--nf-body); opacity: .58; font-size: var(--nf-text-xs); font-weight: 800; letter-spacing: .08em; }
.nf-partnership-page .nfp-card-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 21px; color: var(--nf-blue); background: var(--nf-pale); font-size: 1.18rem; }
.nf-partnership-page .nfp-benefit-card h3 { margin: 0 0 9px; }
.nf-partnership-page .nfp-benefit-card p { margin: 0; font-size: var(--nf-text-card); line-height: 1.7; }

/* Engagement models. */
.nf-partnership-page .nfp-engagement-section { background: var(--nf-pale); border-top: 1px solid var(--nf-line); border-bottom: 1px solid var(--nf-line); }
.nf-partnership-page .nfp-section-intro { max-width: 790px; margin: 0 auto 30px; text-align: center; }
.nf-partnership-page .nfp-section-intro h2 { margin: 0 0 14px; }
.nf-partnership-page .nfp-section-intro p { max-width: 690px; margin: 0 auto; font-size: var(--nf-text-base); line-height: 1.8; }
.nf-partnership-page .nfp-model-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.nf-partnership-page .nfp-model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 278px;
  padding: 27px 27px 23px;
  border: 1px solid var(--nf-line);
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.nf-partnership-page .nfp-model-card:hover { transform: translateY(-4px); border-color: rgba(0,114,188,.35); box-shadow: 0 16px 36px rgba(21,62,87,.08); }
.nf-partnership-page .nfp-model-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 23px; }
.nf-partnership-page .nfp-model-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--nf-blue); background: var(--nf-pale); font-size: 1.25rem; }
.nf-partnership-page .nfp-model-number { color: var(--nf-body); opacity: .65; font-size: var(--nf-text-xs); font-weight: 800; letter-spacing: .1em; }
.nf-partnership-page .nfp-model-card h3 { max-width: 310px; margin: 0 0 11px; }
.nf-partnership-page .nfp-model-card p { margin: 0 0 20px; font-size: var(--nf-text-card); line-height: 1.72; }
.nf-partnership-page .nfp-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--nf-blue); font-size: var(--nf-text-sm); font-weight: 700; }
.nf-partnership-page .nfp-card-link:hover { color: var(--nf-blue-dark); }

/* Partner support. */
.nf-partnership-page .nfp-offer-section { padding-block: var(--nfp-section-space); background: #fff; }
.nf-partnership-page .nfp-offer-heading { max-width: 690px; margin-bottom: 30px; }
.nf-partnership-page .nfp-offer-heading h2 { max-width: 660px; }
.nf-partnership-page .nfp-offer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--nf-line); background: #fff; }
.nf-partnership-page .nfp-offer-item { display: flex; align-items: flex-start; gap: 15px; min-width: 0; padding: 27px 21px; border-right: 1px solid var(--nf-line); }
.nf-partnership-page .nfp-offer-item:last-child { border-right: 0; }
.nf-partnership-page .nfp-offer-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: var(--nf-blue); background: var(--nf-pale); font-size: 1.08rem; }
.nf-partnership-page .nfp-offer-number { display: block; margin: 0 0 7px; color: var(--nf-body); opacity: .7; font-size: var(--nf-text-label); font-weight: 800; letter-spacing: .12em; }
.nf-partnership-page .nfp-offer-item h3 { margin: 0 0 8px; }
.nf-partnership-page .nfp-offer-item p { margin: 0; font-size: var(--nf-text-card); line-height: 1.65; }

/* Collaboration process. */
.nf-partnership-page .nfp-process-section { background: var(--nf-pale); border-top: 1px solid var(--nf-line); }
.nf-partnership-page .nfp-process-grid { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.nf-partnership-page .nfp-process-grid::before { content: ""; position: absolute; top: 26.5px; left: 26.5px; right: 0; height: 1px; background: var(--nf-line); z-index: 0; }
.nf-partnership-page .nfp-process-step { position: relative; padding: 0 16px 0 0; }
.nf-partnership-page .nfp-process-index { position: relative; z-index: 1; display: grid; place-items: center; width: 53px; height: 53px; margin-bottom: 24px; border: 1px solid var(--nf-line); border-radius: 50%; color: var(--nf-blue); background: #fff; font: 800 var(--nf-text-label) var(--nf-font-heading); box-shadow: 0 0 0 7px var(--nf-pale); }
.nf-partnership-page .nfp-process-icon { display: none; }
.nf-partnership-page .nfp-process-step h3 { margin: 0 0 10px; }
.nf-partnership-page .nfp-process-step p { max-width: 250px; margin: 0; font-size: var(--nf-text-card); line-height: 1.72; }

/* Enquiry form. */
.nf-partnership-page .nfp-enquiry-section { padding-block: var(--nfp-section-space); background: var(--nf-pale); border-top: 1px solid var(--nf-line); }
.nf-partnership-page .nfp-enquiry-layout { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: clamp(38px,6vw,78px); align-items: start; }
.nf-partnership-page .nfp-enquiry-copy { padding: 17px 0; }
.nf-partnership-page .nfp-enquiry-copy h2 { max-width: 480px; margin: 0 0 18px; }
.nf-partnership-page .nfp-enquiry-copy > p { max-width: 450px; margin: 0; font-size: var(--nf-text-base); line-height: 1.8; }
.nf-partnership-page .nfp-contact-lines { display: grid; gap: 15px; margin-top: 32px; }
.nf-partnership-page .nfp-contact-lines > a, .nf-partnership-page .nfp-contact-lines > div { display: flex; align-items: center; gap: 13px; color: var(--nf-ink); }
.nf-partnership-page .nfp-contact-lines > a:hover strong, .nf-partnership-page .nfp-contact-lines > div strong a:hover { color: var(--nf-blue); }
.nf-partnership-page .nfp-contact-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; color: var(--nf-blue); background: #fff; border: 1px solid var(--nf-line); font-size: 1.05rem; }
.nf-partnership-page .nfp-contact-lines > a > span:last-child, .nf-partnership-page .nfp-contact-lines > div > span:last-child { min-width: 0; }
.nf-partnership-page .nfp-contact-lines small { display: block; margin-bottom: 3px; color: var(--nf-body); font-size: var(--nf-text-label); font-weight: 800; letter-spacing: .13em; }
.nf-partnership-page .nfp-contact-lines strong { display: block; color: var(--nf-ink); font-size: var(--nf-text-sm); font-weight: 500; white-space: nowrap; transition: color .2s ease; }
.nf-partnership-page .nfp-contact-lines strong a { display: inline; color: inherit; text-decoration: none; white-space: nowrap; }
.nf-partnership-page .nfp-enquiry-copy .nfp-enquiry-note { margin-top: 32px; padding-left: 15px; border-left: 2px solid var(--nf-teal); font-size: var(--nf-text-card); line-height: 1.7; }
.nf-partnership-page .nfp-form-card { padding: clamp(24px,3.4vw,38px); background: #fff; border: 1px solid var(--nf-line); box-shadow: 0 18px 42px rgba(20,58,80,.08); }
.nf-partnership-page .nfp-form-heading { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--nf-line); }
.nf-partnership-page .nfp-form-heading span { display: block; margin-bottom: 7px; color: var(--nf-blue); font-size: var(--nf-text-label); font-weight: 800; letter-spacing: .14em; }
.nf-partnership-page .nfp-form-heading strong { color: var(--nf-ink); font: 700 var(--nf-heading-3) var(--nf-font-heading); }
.nf-partnership-page .nfp-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 16px; }
.nf-partnership-page .nfp-form-field { min-width: 0; }
.nf-partnership-page .nfp-form-field-full { grid-column: 1 / -1; }
.nf-partnership-page .nfp-form-field label { display: block; margin-bottom: 7px; color: var(--nf-ink); font-size: var(--nf-text-sm); font-weight: 700; }
.nf-partnership-page .nfp-form-field label span { color: #b24f47; }
.nf-partnership-page .nfp-form-field input,
.nf-partnership-page .nfp-form-field select,
.nf-partnership-page .nfp-form-field textarea {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--nf-line); border-radius: 2px; outline: 0;
  color: var(--nf-ink); background: #fff;
  font: 400 var(--nf-text-sm) var(--nf-font-body);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.nf-partnership-page .nfp-form-field textarea { min-height: 112px; resize: vertical; }
.nf-partnership-page .nfp-form-field input:focus,
.nf-partnership-page .nfp-form-field select:focus,
.nf-partnership-page .nfp-form-field textarea:focus { border-color: var(--nf-blue); box-shadow: 0 0 0 3px rgba(0,114,188,.10); }
.nf-partnership-page .nfp-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; }
.nf-partnership-page .nfp-form-status { margin: 0; color: var(--nf-body); font-size: var(--nf-text-xs); }
.nf-partnership-page .nfp-form-status.is-error { color: #b24f47; }
.nf-partnership-page .nfp-form-disclaimer { margin: 14px 0 0; color: var(--nf-body); font-size: var(--nf-text-xs); line-height: 1.6; }

/* Closing section. */
.nf-partnership-page .nfp-closing-section { padding: 55px 0; background: #fff; }
.nf-partnership-page .nfp-closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: clamp(27px,4vw,42px) clamp(25px,4vw,48px); border: 1px solid var(--nf-line); background: var(--nf-pale); }
.nf-partnership-page .nfp-closing-inner h2 { margin: 0 0 10px; }
.nf-partnership-page .nfp-closing-inner p { max-width: 690px; margin: 0; font-size: var(--nf-text-base); line-height: 1.7; }
.nf-partnership-page .nfp-closing-inner .nfp-section-kicker { margin-bottom: 9px; }
.nf-partnership-page .nfp-closing-inner .nfp-button { flex: 0 0 auto; }

/* Responsive layout. The hero follows the same Roadmap breakpoints. */
@media (max-width: 1199.98px) {
  .nf-partnership-page .nfp-benefit-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nf-partnership-page .nfp-benefit-card-wide { grid-column: auto; }
  .nf-partnership-page .nfp-offer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nf-partnership-page .nfp-offer-item:nth-child(2) { border-right: 0; }
  .nf-partnership-page .nfp-offer-item:nth-child(-n+2) { border-bottom: 1px solid var(--nf-line); }
}
@media (max-width: 991.98px) {
  .nf-partnership-page .nfp-page-intro { min-height: 0; align-items: stretch; background-position: center, center, 61% center; }
  .nf-partnership-page .nfp-page-intro-grid { grid-template-columns: 1fr; gap: 23px; }
  .nf-partnership-page .nfp-title-column h1 { max-width: 840px; }
  .nf-partnership-page .nfp-intro-column > p { max-width: 760px; }
  .nf-partnership-page .nfp-section-heading-split { grid-template-columns: 1fr; gap: 16px; }
  .nf-partnership-page .nfp-model-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nf-partnership-page .nfp-enquiry-layout { grid-template-columns: 1fr; gap: 30px; }
  .nf-partnership-page .nfp-enquiry-copy { padding: 0; }
  .nf-partnership-page .nfp-enquiry-copy h2,
  .nf-partnership-page .nfp-enquiry-copy > p { max-width: 700px; }
  .nf-partnership-page .nfp-contact-lines { display: flex; flex-wrap: wrap; gap: 25px; }
}
@media (max-width: 767.98px) {
  .nf-partnership-page .nfp-page-intro { min-height: 0; padding: 50px 0; }
  .nf-partnership-page .nfp-page-intro { background-image: linear-gradient(90deg,rgba(3,15,27,.93) 0%,rgba(3,15,27,.78) 52%,rgba(3,15,27,.43) 100%),linear-gradient(0deg,rgba(3,15,27,.38),transparent 60%),url("../assets/img/partnership_hero.webp"); background-position: center,center,60% center; }
  .nf-partnership-page .nfp-intro-metrics { margin-top: 22px; padding-top: 15px; gap: 8px; }
  .nf-partnership-page .nfp-benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nf-partnership-page .nfp-benefit-card { min-height: 230px; }
  .nf-partnership-page .nfp-process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 22px; }
  .nf-partnership-page .nfp-process-grid::before { display: none; }
  .nf-partnership-page .nfp-offer-item { padding: 22px 17px; }
  .nf-partnership-page .nfp-closing-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 767.98px) {
  .nf-partnership-page { --nfp-section-space: 42px; }
}
@media (max-width: 575.98px) {
  .nf-partnership-page .container { width: calc(100% - 32px); }
  .nf-partnership-page .nfp-benefit-grid,
  .nf-partnership-page .nfp-model-grid,
  .nf-partnership-page .nfp-offer-grid,
  .nf-partnership-page .nfp-process-grid { grid-template-columns: 1fr; }
  .nf-partnership-page .nfp-benefit-card { min-height: 0; }
  .nf-partnership-page .nfp-offer-item { border-right: 0; border-bottom: 1px solid var(--nf-line); }
  .nf-partnership-page .nfp-offer-item:last-child { border-bottom: 0; }
  .nf-partnership-page .nfp-process-step { padding: 0; }
  .nf-partnership-page .nfp-process-step p { max-width: 100%; }
  .nf-partnership-page .nfp-form-grid { grid-template-columns: 1fr; }
  .nf-partnership-page .nfp-form-field-full { grid-column: auto; }
  .nf-partnership-page .nfp-form-bottom { align-items: stretch; flex-direction: column; }
  .nf-partnership-page .nfp-contact-lines { display: grid; }
  .nf-partnership-page .nfp-closing-section { padding: 35px 0; }
  .nf-partnership-page .nfp-closing-inner { padding: 25px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-partnership-page *, .nf-partnership-page *::before, .nf-partnership-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Partnership: Mobile circular decoration */
@media (max-width: 767.98px) {

  /* Outer circle */
  .nf-partnership-page .nfp-page-intro::before {
    width: 190px;
    height: 190px;
    right: -85px;
    top: -100px;
  }

  /* Inner circle */
  .nf-partnership-page .nfp-page-intro::after {
    width: 135px;
    height: 135px;
    right: -58px;
    top: -72px;
    background: none;
  }
}

/* Legal pages: privacy policy and terms of use -  */

.nf-legal-page main > section:first-child {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.nf-legal-page main > section:first-child::before,
.nf-legal-page main > section:first-child::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(0,114,188,.10);
  border-radius: 50%;
  pointer-events: none;
}

.nf-legal-page main > section:first-child::before {
  width: 520px;
  height: 520px;
  right: -230px;
  top: -270px;
}

.nf-legal-page main > section:first-child::after {
  width: 390px;
  height: 390px;
  right: -165px;
  top: -205px;
}

.nf-legal-page .legal-content-section { padding-block: clamp(36px, 4vw, 56px); }
.nf-legal-page .section-kicker span { color: #9aa9b4; }
.nf-legal-page .legal-content-row { align-items: stretch; }
.nf-legal-page .legal-sidebar-column { align-self: flex-start; position: sticky; top: 96px; }
.nf-legal-page .legal-sidebar-card { height: min(70vh, 780px); min-height: 420px; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
.nf-legal-page .legal-sidebar-card > h2 { font-weight: 600; }
.nf-legal-page .legal-sidebar-card nav a { display: block; color: var(--nf-body, #526675); text-decoration: none; transition: color .18s ease, font-weight .18s ease; }
.nf-legal-page .legal-sidebar-card nav a:hover,
.nf-legal-page .legal-sidebar-card nav a[aria-current="location"] { color: var(--nf-blue, #0072bc); font-weight: 700; }
.nf-legal-page .legal-content-panel {
  height: min(70vh, 780px);
  min-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  padding: 0 22px 0 2px;
}
.nf-legal-page .legal-content-panel > p:first-child { margin-top: 0; }
.nf-legal-page .legal-content-panel section[id] { scroll-margin-top: 16px; }
/* Privacy Policy section headings */
.nf-legal-page .legal-content-panel h2 {
  color: var(--nf-ink);
}
/* Hide only the left sidebar scrollbar. */
.nf-legal-page .legal-sidebar-card {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nf-legal-page .legal-sidebar-card::-webkit-scrollbar {
  display: none;
  width: 0;
}
.nf-legal-page .legal-content-panel:focus-visible { outline: 2px solid var(--nf-blue, #0072bc); outline-offset: 4px; }

/* Tablet: keep the contents list available above the document. */
@media (max-width: 991.98px) {
  .nf-legal-page .legal-sidebar-column { position: static; }
  .nf-legal-page .legal-sidebar-card { height: auto; min-height: 0; max-height: none; }
  .nf-legal-page .legal-content-panel { height: min(62vh, 680px); min-height: 360px; }
}

/* Mobile: remove the sidebar and let the document use normal page scrolling. */
@media (max-width: 767.98px) {
  .nf-legal-page main > section:first-child { padding: 34px 0 28px; }
  .nf-legal-page main > section:first-child .row { --bs-gutter-y: 1rem; }
  .nf-legal-page .section-title { font-size: clamp(1.85rem, 7.5vw, 2.35rem); line-height: 1.14; }
  .nf-legal-page .legal-content-section { padding: 26px 0 42px; }
  .nf-legal-page .legal-content-row { --bs-gutter-x: 1rem; --bs-gutter-y: 0; }
  .nf-legal-page .legal-sidebar-column { display: none !important; }
  .nf-legal-page .legal-content-panel {
    height: auto;
    min-height: 0;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
    scroll-behavior: auto;
    padding: 0 14px;
  }
  .nf-legal-page .legal-content-panel section[id] { scroll-margin-top: 0; }
  .nf-legal-page .legal-content-panel h2 { font-size: clamp(1.15rem, 4.8vw, 1.35rem); line-height: 1.3; }
  .nf-legal-page .legal-content-panel p,
  .nf-legal-page .legal-content-panel li { font-size: .96rem; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-legal-page .legal-content-panel { scroll-behavior: auto; }
}


/* ================================================================
   NERGYFLUX RESOURCE CENTRE
   ================================================================ */
.nf-resources-page { overflow-x: clip; background: #fff; color: var(--nf-body); font-family: var(--nf-font-body); }
.nf-resources-page *, .nf-resources-page *::before, .nf-resources-page *::after { box-sizing: border-box; }
.nf-resources-page a { text-decoration: none; }
.nf-resources-page button, .nf-resources-page input { font: inherit; }
.nf-resources-page [id] { scroll-margin-top: 105px; }

.nfrc-library-section { padding: clamp(38px, 4.7vw, 62px) 0 var(--nf-section-space); background: #fff; }
.nfrc-library-heading { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.75fr) auto; align-items: end; gap: clamp(24px,4vw,58px); margin-bottom: 27px; }
.nfrc-kicker { display: inline-flex; align-items: center; gap: 11px; color: var(--nf-blue); font-size: var(--nf-text-label); font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.nfrc-kicker i { width: 4px; height: 4px; border-radius: 50%; background: var(--nf-teal); }
.nfrc-library-heading h1 { margin: 10px 0 0; color: var(--nf-ink); font: 400 var(--nf-heading-1)/1.12 var(--nf-font-heading); letter-spacing: -.045em; text-wrap: balance; }
.nfrc-library-heading h1 em { color: var(--nf-blue); font-style: normal; }
.nfrc-library-heading > p { max-width: 540px; margin: 0 0 4px; color: var(--nf-body); font-size: var(--nf-text-lead); line-height: 1.75; }
.nfrc-library-count { display: flex; flex-direction: column; align-items: flex-end; padding-left: 23px; border-left: 1px solid var(--nf-line); }
.nfrc-library-count strong { color: var(--nf-ink); font: 400 2rem/1 var(--nf-font-heading); }
.nfrc-library-count span { margin-top: 6px; color: var(--nf-body); font-size: var(--nf-text-xs); }

.nfrc-filter-panel { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(220px, 1fr); gap: 16px; width: 100%; max-width: 980px; padding: 0; border: 0; background: transparent; }
.nfrc-filter-search { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 6px 16px; border: 1px solid var(--nf-line); background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.nfrc-filter-search:focus-within, .nfrc-industry-filter:focus-within { border-color: var(--nf-blue); box-shadow: 0 0 0 3px rgba(0,114,188,.08); }
.nfrc-filter-search i { color: #8394a1; font-size: 1.05rem; }
.nfrc-filter-search input { width: 100%; min-width: 0; height: 48px; padding: 0; border: 0; outline: 0; color: var(--nf-ink); background: transparent; font-size: var(--nf-text-sm); }
.nfrc-filter-search input::placeholder { color: #8a9aa5; }
.nfrc-industry-filter { position: relative; display: flex; align-items: center; min-width: 0; border: 1px solid var(--nf-line); background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.nfrc-industry-filter select { width: 100%; height: 62px; padding: 0 42px 0 18px; border: 0; outline: 0; appearance: none; color: var(--nf-body); background: transparent; font-family: var(--nf-font-body); font-size: var(--nf-text-sm); cursor: pointer; }
.nfrc-industry-filter i { position: absolute; right: 16px; color: #526b7b; font-size: .9rem; pointer-events: none; }

.nfrc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 25px 0 18px; padding-bottom: 13px; border-bottom: 1px solid var(--nf-line); }
.nfrc-tabs button { padding: 10px 15px; border: 1px solid transparent; color: var(--nf-body); background: transparent; font-size: var(--nf-text-sm); font-weight: 600; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.nfrc-tabs button:hover { border-color: var(--nf-line); color: var(--nf-blue); background: #f8fbfd; }
.nfrc-tabs button.is-active { border-color: var(--nf-blue); color: #fff; background: var(--nf-blue); }
.nfrc-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 17px; }
.nfrc-results-bar p { margin: 0; color: var(--nf-body); font-size: var(--nf-text-xs); }
.nfrc-clear-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; border: 0; color: var(--nf-blue); background: transparent; font-size: var(--nf-text-xs); font-weight: 700; }

.nfrc-resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.nfrc-resource-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--nf-line); background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.nfrc-resource-card:hover { transform: translateY(-3px); border-color: rgba(0,114,188,.3); box-shadow: 0 14px 34px rgba(23,65,88,.09); }
.nfrc-card-cover { position: relative; width: 100%; aspect-ratio: 1.91 / 1; overflow: hidden; background: #eaf2f7; }
.nfrc-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.nfrc-resource-card:hover .nfrc-card-cover img { transform: scale(1.035); }
.nfrc-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 21px 18px; }
.nfrc-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; margin-bottom: 11px; }
.nfrc-card-type { color: var(--nf-blue); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nfrc-card-format { margin-left: auto; padding: 4px 7px; border: 1px solid var(--nf-line); color: #7c8e9a; font-size: .63rem; font-weight: 700; letter-spacing: .06em; }
.nfrc-card-body h3 { margin: 0 0 9px; color: var(--nf-ink); font: 600 1.08rem/1.35 var(--nf-font-heading); }
.nfrc-card-body > p { margin: 0 0 15px; color: var(--nf-body); font-size: var(--nf-text-card); line-height: 1.7; }
.nfrc-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 2px; }
.nfrc-card-tags span { padding: 4px 7px; color: #627b8b; background: #f2f6f8; font-size: .65rem; line-height: 1.3; }
.nfrc-card-footer { width: 100%; margin-top: 19px; padding-top: 14px; border-top: 1px solid #edf1f4; }
.nfrc-card-action { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--nf-line); color: var(--nf-ink); background: #fff; font-size: var(--nf-text-sm); font-weight: 500; text-align: center; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.nfrc-card-action.is-download:hover { color: var(--nf-blue); border-color: var(--nf-blue); background: #f8fbfd; }
.nfrc-card-action.is-article { border-color: var(--nf-blue); color: #fff; background: var(--nf-blue); }
.nfrc-card-action.is-article:hover { border-color: #005b98; color: #fff; background: #005b98; }
.nfrc-card-action.is-disabled { opacity: .68; cursor: not-allowed; }
.nfrc-empty-state { padding: 55px 20px; border: 1px dashed #c9d7e0; background: #fbfdfe; text-align: center; }
.nfrc-empty-state[hidden] { display: none; }
.nfrc-empty-state > span { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; color: var(--nf-blue); background: #eaf4fa; font-size: 1.2rem; }
.nfrc-empty-state h3 { margin: 0 0 7px; color: var(--nf-ink); font: 600 1.1rem var(--nf-font-heading); }
.nfrc-empty-state p { margin: 0 0 15px; color: var(--nf-body); font-size: var(--nf-text-sm); }
.nfrc-empty-state button { border: 0; color: var(--nf-blue); background: transparent; font-size: var(--nf-text-sm); font-weight: 700; }
.nfrc-library-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; padding: 13px 15px; border: 1px solid #dce8ef; color: #647987; background: #f8fbfc; font-size: var(--nf-text-xs); line-height: 1.6; }
.nfrc-library-note i { color: var(--nf-blue); font-size: .95rem; }

.nfrc-contact-strip { padding: clamp(38px,5vw,60px) 0; background: #fff; }
.nfrc-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(26px,4vw,42px) clamp(24px,4vw,48px); border: 1px solid var(--nf-line); background: var(--nf-pale); }
.nfrc-contact-inner h2 { max-width: 720px; margin: 10px 0 0; color: var(--nf-ink); font: 400 clamp(1.55rem,2.6vw,2.2rem)/1.18 var(--nf-font-heading); letter-spacing: -.04em; }
.nfrc-contact-inner p { margin: 9px 0 0; color: var(--nf-body); font-size: var(--nf-text-sm); }
.nfrc-contact-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; padding: 13px 18px; color: #fff; background: var(--nf-blue); font-size: var(--nf-text-sm); font-weight: 600; }
.nfrc-contact-link:hover { color: #fff; background: var(--nf-blue-dark); }

@media (max-width: 991.98px) {
  .nfrc-library-heading { grid-template-columns: minmax(0,1fr) auto; gap: 17px 24px; }
  .nfrc-library-heading > p { grid-column: 1 / -1; grid-row: 2; max-width: 760px; }
  .nfrc-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
  .nfrc-library-heading { align-items: start; }
  .nfrc-filter-panel { grid-template-columns: minmax(0,1fr) minmax(190px,.72fr); gap: 10px; }
  .nfrc-resource-grid { gap: 13px; }
  .nfrc-card-body { padding: 17px 16px 15px; }
  .nfrc-tabs { gap: 4px; }
  .nfrc-tabs button { padding: 8px 10px; font-size: var(--nf-text-xs); }
  .nfrc-contact-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 575.98px) {
  .nfrc-filter-panel { grid-template-columns: 1fr; }
  .nfrc-resource-grid { grid-template-columns: 1fr; }
  .nfrc-library-count { align-items: flex-start; padding: 0 0 0 14px; }
  .nfrc-results-bar { align-items: flex-start; }
  .nfrc-card-cover { aspect-ratio: 1.85 / 1; }
  .nfrc-contact-link { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-resources-page *, .nf-resources-page *::before, .nf-resources-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Reduce height of both resource filters */
.nf-resources-page .nfrc-filter-search,
.nf-resources-page .nfrc-industry-filter {
    height: 48px !important;
    min-height: 48px !important;
}

.nf-resources-page .nfrc-filter-search input,
.nf-resources-page .nfrc-industry-filter select {
    height: 46px !important;
    min-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Reduce width of both filters */
.nf-resources-page .nfrc-filter-panel {
    width: 100% !important;
    max-width: 750px !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

/* Keep both filters at equal height */
.nf-resources-page .nfrc-filter-search,
.nf-resources-page .nfrc-industry-filter {
    width: 100%;
    height: 48px !important;
    min-height: 48px !important;
}

.nf-resources-page .nfrc-filter-search input,
.nf-resources-page .nfrc-industry-filter select {
    height: 46px !important;
}

/* Mobile */
@media (max-width: 767.98px) {
    .nf-resources-page .nfrc-filter-panel {
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
    }
}


/* ================================================================
   NERGYFLUX BLOG
   ================================================================ */
   
    .nf-insights-page {
      overflow-x: clip;
      background: #fff;
      color: var(--nf-body);
      font-family: var(--nf-font-body);
    }
    .nf-insights-page *, .nf-insights-page *::before, .nf-insights-page *::after { box-sizing: border-box; }
    .nf-insights-page a { text-decoration: none; }
    .nf-insights-page button, .nf-insights-page select, .nf-insights-page input { font: inherit; }
    .nf-insights-page h1, .nf-insights-page h2, .nf-insights-page h3 { font-family: var(--nf-font-heading); }
    .nf-insights-page [id] { scroll-margin-top: 105px; }

    /* Intro follows the approved single-column Insights Hub treatment. */
    .nfi-intro { padding: clamp(38px, 4.7vw, 62px) 0 0; background: #fff; }
    .nfi-kicker {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      margin-bottom: 12px;
      color: var(--nf-blue);
      font-size: var(--nf-text-label);
      font-weight: 800;
      letter-spacing: .14em;
      line-height: 1.4;
      text-transform: uppercase;
    }
	.nfi-intro h1 em {
     color: var(--nf-blue);
     font-style: normal;
	}
    .nfi-kicker i { width: 4px; height: 4px; border-radius: 50%; background: var(--nf-teal); }
    .nfi-intro h1 {
      margin: 0 0 14px;
      color: var(--nf-ink);
      font: 400 var(--nf-heading-1)/1.12 var(--nf-font-heading);
      letter-spacing: -.045em;
      text-wrap: balance;
    }
    .nfi-intro-copy {
      max-width: 1450px;
      margin: 0;
      color: var(--nf-body);
      font-size: var(--nf-text-lead);
      line-height: 1.75;
    }
    .nfi-filter-row {
      display: flex;
      align-items: center;
      gap: 16px;
      width: 100%;
      margin: 25px 0 30px;
    }
    .nfi-filter-select {
      position: relative;
      display: flex;
      align-items: center;
      width: min(100%, 280px);
      min-width: 0;
      border: 1px solid var(--nf-line);
      background: #fff;
      transition: border-color .18s ease, box-shadow .18s ease;
    }
    .nfi-filter-select:focus-within {
      border-color: var(--nf-blue);
      box-shadow: 0 0 0 3px rgba(0,114,188,.08);
    }
    .nfi-filter-select select {
      width: 100%;
      height: 48px;
      padding: 0 42px 0 18px;
      appearance: none;
      border: 0;
      outline: 0;
      color: var(--nf-body);
      background: transparent;
      font-family: var(--nf-font-body);
      font-size: var(--nf-text-sm);
      cursor: pointer;
    }
    .nfi-filter-select i {
      position: absolute;
      right: 16px;
      color: #526b7b;
      font-size: .9rem;
      pointer-events: none;
    }

    .nfi-posts-section { padding: 0 0 var(--nf-section-space); }
    .nfi-section-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 20px;
      margin: 0 0 17px;
    }
    .nfi-section-heading h2 {
      margin: 0;
      color: var(--nf-ink);
      font: 600 var(--nf-heading-2)/1.15 var(--nf-font-heading);
      letter-spacing: -.04em;
    }
    .nfi-post-count { color: var(--nf-body); font-size: var(--nf-text-xs); }
    .nfi-post-grid {
      display: grid;
      grid-template-columns: repeat(3,minmax(0,1fr));
      gap: 20px;
    }
    .nfi-post-card {
      display: flex;
      flex-direction: column;
      min-width: 0;
      overflow: hidden;
      border: 1px solid var(--nf-line);
      background: #fff;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }
    .nfi-post-card:hover {
      transform: translateY(-3px);
      border-color: rgba(0,114,188,.3);
      box-shadow: 0 14px 34px rgba(23,65,88,.09);
    }
    .nfi-post-image { position: relative; display: block; width: 100%; aspect-ratio: 1.91 / 1; overflow: hidden; background: var(--nf-pale); }
    .nfi-post-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
    .nfi-post-card:hover .nfi-post-image img { transform: scale(1.035); }
    .nfi-post-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 21px 18px; }
    .nfi-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; margin-bottom: 11px; color: #7c8e9a; font-size: var(--nf-text-xs); }
    .nfi-post-category { color: var(--nf-blue); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
    .nfi-post-content h3 { margin: 0 0 9px; color: var(--nf-ink); font: 600 1.08rem/1.35 var(--nf-font-heading); }
    .nfi-post-content p { margin: 0 0 15px; color: var(--nf-body); font-size: var(--nf-text-card); line-height: 1.7; }
    .nfi-read-link { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; color: var(--nf-blue); font-size: var(--nf-text-sm); font-weight: 500; }
    .nfi-read-link i { transition: transform .2s ease; }
    .nfi-read-link:hover { color: var(--nf-blue-dark); }
    .nfi-read-link:hover i { transform: translateX(4px); }

    .nfi-empty { padding: 55px 20px; border: 1px dashed var(--nf-line); background: #fbfdfe; text-align: center; }
    .nfi-empty[hidden] { display: none; }
    .nfi-empty h3 { margin: 0 0 7px; color: var(--nf-ink); font: 600 1.1rem var(--nf-font-heading); }
    .nfi-empty p { margin: 0 0 14px; color: var(--nf-body); font-size: var(--nf-text-sm); }
    .nfi-empty button { border: 0; color: var(--nf-blue); background: transparent; font-size: var(--nf-text-sm); font-weight: 700; }
    .nfi-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 38px; }
    .nfi-pagination button {
      display: grid;
      place-items: center;
      min-width: 39px;
      height: 39px;
      padding: 0 11px;
      border: 1px solid var(--nf-line);
      color: var(--nf-ink);
      background: #fff;
      font-size: var(--nf-text-sm);
    }
    .nfi-pagination button[aria-current="page"] { border-color: var(--nf-blue); color: #fff; background: var(--nf-blue); }
    .nfi-pagination button:disabled { opacity: .4; cursor: not-allowed; }
    .nfi-pagination button:not(:disabled):hover { border-color: var(--nf-blue); color: var(--nf-blue); }
    .nfi-pagination button[aria-current="page"]:hover { color: #fff; }

    .nfi-newsletter { padding: 0 0 var(--nf-section-space); }
    .nfi-newsletter-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
      padding: clamp(26px,4vw,42px) clamp(24px,4vw,48px);
      border: 1px solid var(--nf-line);
      background: var(--nf-pale);
    }
    .nfi-newsletter h2 { margin: 0; color: var(--nf-ink); font: 400 clamp(1.55rem,2.6vw,2.2rem)/1.18 var(--nf-font-heading); letter-spacing: -.04em; }
    .nfi-newsletter p { margin: 9px 0 0; color: var(--nf-body); font-size: var(--nf-text-sm); }
    .nfi-newsletter-link {
      display: inline-flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 12px;
      min-height: 46px;
      padding: 12px 20px;
      border-radius: 2px;
      color: #fff;
      background: var(--nf-blue);
      font-family: var(--nf-font-body);
      font-size: var(--nf-text-sm);
      font-weight: 700;
      line-height: 1.3;
    }
    .nfi-newsletter-link:hover { color: #fff; background: var(--nf-blue-dark); }

    @media (max-width: 991.98px) {
      .nfi-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    }
    @media (max-width: 767.98px) {
      .nfi-post-grid { gap: 13px; }
      .nfi-post-content { padding: 17px 16px 15px; }
    }
    @media (max-width: 575.98px) {
      .nfi-filter-row { margin-top: 22px; }
      .nfi-filter-select { width: 100%; }
      .nfi-post-grid { grid-template-columns: 1fr; }
      .nfi-resource-count { align-items: flex-start; padding-left: 14px; }
      .nfi-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
      .nfi-newsletter-inner { align-items: flex-start; flex-direction: column; }
      .nfi-newsletter-link { width: 100%; justify-content: center; }
    }
    @media (prefers-reduced-motion: reduce) {
      .nf-insights-page *, .nf-insights-page *::before, .nf-insights-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    }



  
  /* ================================================================
   NERGYFLUX BLOG ARTICLE TEMPLATE
   Layout and editorial components only.
   Typography, colours, buttons and spacing inherit from css/style.css.
   ================================================================ */

.nf-article-page {
  overflow-x: clip;
  color: var(--nf-body);
  background: #fff;
  font-family: var(--nf-font-body);
}
.nf-article-page *,
.nf-article-page *::before,
.nf-article-page *::after { box-sizing: border-box; }
.nf-article-page a { text-decoration: none; }
.nf-article-page button { font: inherit; }
.nf-article-page h1,
.nf-article-page h2,
.nf-article-page h3,
.nf-article-page h4 { font-family: var(--nf-font-heading); }
.nf-article-page [id] { scroll-margin-top: 110px; }

.nfa-article-main > .nfa-reading-progress {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  height: 3px;
  margin: 0 0 18px;
  background: rgba(220,229,235,.65);
  pointer-events: none;
}
.nfa-reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--nf-blue);
  transition: width .08s linear;
}

/* Light editorial header, matching the Nergyflux legal/privacy page intro. */
.nfa-article-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(62px, 7vw, 92px) 0 clamp(54px, 6vw, 76px);
  border-bottom: 1px solid var(--nf-line);
  background: #f3f7f9;
}
.nfa-article-header::before,
.nfa-article-header::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(0,114,188,.11);
  border-radius: 50%;
  pointer-events: none;
}
.nfa-article-header::before {
  width: 520px;
  height: 520px;
  top: -355px;
  right: -145px;
}
.nfa-article-header::after {
  width: 720px;
  height: 720px;
  top: -410px;
  right: -235px;
}
.nfa-article-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 27px;
  color: var(--nf-blue);
  font-size: var(--nf-text-label);
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.nfa-article-eyebrow i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--nf-teal);
}
.nfa-article-eyebrow a { color: var(--nf-blue); }
.nfa-article-eyebrow a:hover { color: var(--nf-blue-dark); }
.nfa-article-heading { position: relative; z-index: 1; max-width: 1120px; }
.nfa-article-heading h1 {
  max-width: 1040px;
  margin: 0 0 15px;
  color: var(--nf-ink);
  font: 400 var(--nf-heading-1)/1.12 var(--nf-font-heading);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.nf-article-page .nfa-article-heading h1 em {
  color: var(--nf-blue);
  font-style: normal;
}
.nfa-article-deck {
  max-width: 1000px;
  margin: 0;
  color: var(--nf-body);
  font-size: var(--nf-text-lead);
  line-height: 1.75;
}
.nfa-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid rgba(20,45,64,.12);
}
.nfa-author-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--nf-blue);
  font: 700 .8rem var(--nf-font-heading);
  letter-spacing: .03em;
}
.nfa-author-byline {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--nf-ink);
  font-size: var(--nf-text-sm);
}
.nfa-author-byline strong { font-weight: 700; }
.nfa-meta-secondary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #7c8e9a;
  font-size: var(--nf-text-xs);
}
.nfa-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.nfa-icon-action,
.nfa-sidebar-share button {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(20,45,64,.16);
  border-radius: 50%;
  color: var(--nf-body);
  background: rgba(255,255,255,.72);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.nfa-icon-action:hover,
.nfa-sidebar-share button:hover {
  border-color: var(--nf-blue);
  color: var(--nf-blue);
  background: #fff;
}
.nfa-icon-action i,
.nfa-sidebar-share button i { font-size: .95rem; }

/* Inline editorial media remains available inside the article body. */
.nfa-inline-figure { margin: 30px 0 34px; }
.nfa-inline-figure img {
  display: block;
  width: 100%;
  max-height: 440px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.nfa-inline-figure figcaption {
  margin-top: 9px;
  color: #7c8e9a;
  font-size: var(--nf-text-xs);
  line-height: 1.5;
}

/* Main article and contents sidebar */
.nfa-article-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 760px);
  justify-content: center;
  align-items: start;
  gap: clamp(38px, 5vw, 72px);
  padding-top: clamp(42px, 5vw, 66px);
  padding-bottom: clamp(48px, 6vw, 78px);
}
.nfa-article-main {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}
.nfa-article-body {
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: var(--nf-text-base);
  line-height: 1.65;
}
.nfa-article-body p { margin: 0 0 1.05rem; }
.nfa-article-body .nfa-article-lead {
  margin-bottom: 1.1rem;
  color: var(--nf-ink);
  font-size: var(--nf-text-lg);
  line-height: 1.7;
}
.nfa-article-body h2 {
  margin: 1.45rem 0 .55rem;
  color: var(--nf-ink);
  font: 600 var(--nf-heading-compact)/1.3 var(--nf-font-heading);
  letter-spacing: -.025em;
}
.nfa-article-body h3 {
  margin: 1.2rem 0 .45rem;
  color: var(--nf-ink);
  font: 600 var(--nf-heading-3)/1.35 var(--nf-font-heading);
  letter-spacing: -.025em;
}
.nfa-article-body ul,
.nfa-article-body ol {
  margin: 0 0 1.5em;
  padding-left: 1.35em;
}
.nfa-article-body li { margin: 0 0 .55em; padding-left: .15em; }
.nfa-article-body li::marker { color: var(--nf-blue); }
.nfa-inline-figure { margin: 30px 0 34px; }
.nfa-inline-figure img {
  display: block;
  width: 100%;
  max-height: 440px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.nfa-article-quote {
  margin: 34px 0;
  padding: 25px 28px 23px;
  border-left: 4px solid var(--nf-blue);
  background: var(--nf-pale);
}
.nfa-article-quote p {
  margin: 0 0 12px;
  color: var(--nf-ink);
  font: 500 clamp(1.15rem, 2vw, 1.45rem)/1.55 var(--nf-font-heading);
  letter-spacing: -.02em;
}
.nfa-article-quote cite {
  color: var(--nf-body);
  font-size: var(--nf-text-xs);
  font-style: normal;
  font-weight: 700;
}
.nfa-article-callout {
  margin: 38px 0 30px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--nf-line);
  background: #f8fbfd;
}
.nfa-callout-label {
  color: var(--nf-blue);
  font-size: var(--nf-text-label);
  font-weight: 800;
  letter-spacing: .13em;
}
.nfa-article-callout h3 {
  margin: 10px 0 8px;
  color: var(--nf-ink);
  font: 600 clamp(1.35rem, 2.4vw, 1.8rem)/1.2 var(--nf-font-heading);
  letter-spacing: -.03em;
}
.nfa-article-callout p {
  max-width: 650px;
  margin-bottom: 16px;
  font-size: var(--nf-text-sm);
  line-height: 1.7;
}
.nfa-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--nf-blue);
  font-size: var(--nf-text-sm);
  font-weight: 500;
}
.nfa-text-link:hover { color: var(--nf-blue-dark); }
.nfa-article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 19px;
  border-top: 1px solid var(--nf-line);
}

.nfa-article-tags .nfa-article-tags-label {
  margin-right: 3px;
  color: var(--nf-ink);
  font-size: var(--nf-text-xs);
  font-weight: 700;
}

.nfa-article-tags .nfa-article-tag {
  padding: 6px 10px;
  border: 1px solid var(--nf-line);
  color: var(--nf-body);
  background: #fff;
  font-size: var(--nf-text-xs);
}

/* Left-hand sticky article navigation */
.nfa-article-sidebar {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
}
.nfa-sidebar-sticky {
  position: sticky;
  top: 112px;
  max-height: none;
  overflow: visible;
}
.nfa-toc {
  padding: 18px 18px 19px;
  border: 1px solid var(--nf-line);
  background: #fff;
}
.nfa-toc h2,
.nfa-sidebar-share > span {
  display: block;
  margin: 0 0 13px;
  color: var(--nf-ink);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.nfa-toc nav { display: flex; flex-direction: column; gap: 2px; }
.nfa-toc a {
  display: block;
  padding: 7px 0 7px 11px;
  border-left: 2px solid transparent;
  color: var(--nf-body);
  font-size: var(--nf-text-xs);
  line-height: 1.5;
  transition: color .18s ease, border-color .18s ease;
}
.nfa-toc a:hover,
.nfa-toc a.is-active {
  border-left-color: var(--nf-blue);
  color: var(--nf-blue);
}
.nfa-sidebar-share {
  margin-top: 15px;
  padding: 18px;
  border: 1px solid var(--nf-line);
  background: var(--nf-pale);
}
.nfa-sidebar-share > span { margin-bottom: 11px; }
.nfa-sidebar-share > div { display: flex; gap: 7px; }
.nfa-sidebar-share button { width: 34px; height: 34px; }
.nfa-copy-feedback {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: var(--nf-blue);
  font-size: var(--nf-text-xs);
}

/* Author panel */
.nfa-author-card {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-top: 35px;
  padding: 22px 0;
  border-top: 1px solid var(--nf-line);
  border-bottom: 1px solid var(--nf-line);
}
.nfa-author-avatar-large { width: 58px; height: 58px; font-size: .95rem; }
.nfa-author-label {
  color: var(--nf-blue);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.nfa-author-card h2 {
  margin: 5px 0 7px;
  color: var(--nf-ink);
  font: 600 1.12rem/1.3 var(--nf-font-heading);
}
.nfa-author-card p {
  max-width: 620px;
  margin: 0 0 10px;
  color: var(--nf-body);
  font-size: var(--nf-text-sm);
  line-height: 1.7;
}

/* Related reading */
.nfa-related-section {
  padding: clamp(42px, 5vw, 65px) 0 var(--nf-section-space);
  border-top: 1px solid var(--nf-line);
  background: #fff;
}
.nfa-related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.nfa-related-heading h2 {
  margin: 8px 0 0;
  color: var(--nf-ink);
  font: 600 var(--nf-heading-2)/1.15 var(--nf-font-heading);
  letter-spacing: -.04em;
}
.nfa-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.nfa-related-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 21px;
  border: 1px solid var(--nf-line);
  color: var(--nf-body);
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nfa-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,114,188,.35);
  box-shadow: 0 12px 28px rgba(23,65,88,.08);
}
.nfa-related-category {
  color: var(--nf-blue);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.nfa-related-card h3 {
  margin: 13px 0 20px;
  color: var(--nf-ink);
  font: 600 1.05rem/1.4 var(--nf-font-heading);
}
.nfa-related-read {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--nf-blue);
  font-size: var(--nf-text-sm);
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .nfa-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .nfa-article-main,
  .nfa-article-sidebar {
    grid-column: 1;
    grid-row: auto;
  }
  .nfa-article-sidebar { order: 0; }
  .nfa-article-main { order: 1; }
  .nfa-sidebar-sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .nfa-toc { padding: 16px; }
  .nfa-toc nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; }
  .nfa-sidebar-share { display: flex; align-items: center; gap: 15px; }
  .nfa-sidebar-share > span { margin: 0; }
  .nfa-sidebar-share > p { margin: 0 0 0 auto; }
  .nfa-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575.98px) {
  .nfa-article-header { padding: 42px 0 35px; }
  .nfa-article-eyebrow { margin-bottom: 20px; gap: 10px; }
  .nfa-article-heading h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .nfa-article-deck { font-size: var(--nf-text-base); }
  .nfa-article-header::before { right: -340px; }
  .nfa-article-header::after { right: -430px; }
  .nfa-article-meta { align-items: flex-start; }
  .nfa-header-actions { gap: 4px; }
  .nfa-icon-action { width: 32px; height: 32px; }
  .nfa-article-layout { padding-top: 30px; }
  .nfa-toc nav { grid-template-columns: 1fr; }
  .nfa-sidebar-share { flex-wrap: wrap; }
  .nfa-sidebar-share > p { width: 100%; margin: 0; }
  .nfa-article-body { font-size: var(--nf-text-base); }
  .nfa-article-body .nfa-article-lead { font-size: var(--nf-text-base); }
  .nfa-article-quote { padding: 20px; }
  .nfa-author-card { gap: 12px; }
  .nfa-author-avatar-large { width: 46px; height: 46px; }
  .nfa-related-heading { align-items: flex-start; flex-direction: column; }
  .nfa-related-grid { grid-template-columns: 1fr; }
  .nfa-related-card { min-height: 160px; }
}

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


/* ================================================================
   GLOBAL NERGYFLUX ALIGNMENT
   The .container width, desktop max-width, mobile gutters, fonts,
   colours and type scale come from css/style.css.
   ================================================================ */

    /* Match the legal-page decorative circles from the shared stylesheet. */
    .nfa-article-header::before {
      width: 520px;
      height: 520px;
      right: -230px;
      top: -270px;
    }
    .nfa-article-header::after {
      width: 390px;
      height: 390px;
      right: -165px;
      top: -205px;
    }

    /* Keep the compact editorial header while using the site's shared
       container rather than a separate 1680px page-specific width. */
    .nfa-article-header {
      padding-block: clamp(38px, 4.7vw, 62px);
      background: var(--nf-pale);
    }
    .nfa-article-eyebrow { margin-bottom: 20px; }
    .nfa-article-meta {
      margin-top: 20px;
      padding-top: 16px;
    }

    /* The article grid uses the standard .container from style.css:
       max-width: 1240px on desktop and the shared 18px mobile gutter. */
    .nfa-article-layout {
      grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
      justify-content: stretch;
      gap: clamp(28px, 3.5vw, 48px);
      padding-block: var(--nf-section-space);
    }
    .nfa-article-main {
      width: 100%;
      max-width: none;
    }

    /* Shared blue label and link treatment. */
    .nfa-section-kicker {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      color: var(--nf-blue);
      font-family: var(--nf-font-body);
      font-size: var(--nf-text-label);
      font-weight: 800;
      letter-spacing: .14em;
      line-height: 1.4;
      text-transform: uppercase;
    }
    .nfa-related-heading h2 {
      color: var(--nf-ink);
      font-family: var(--nf-font-heading);
      font-size: var(--nf-heading-2);
      font-weight: 400;
      line-height: 1.15;
      letter-spacing: -.04em;
    }
    .nfa-related-section {
      padding-block: var(--nf-section-space);
    }
    .nfa-related-category,
    .nfa-related-read,
    .nfa-text-link {
      color: var(--nf-blue);
      font-family: var(--nf-font-body);
    }

    @media (max-width: 991.98px) {
      .nfa-article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
      }
    }
    @media (max-width: 767.98px) {
      .nfa-article-header { padding: 34px 0 28px; }
      .nfa-article-layout,
      .nfa-related-section { padding-block: 50px; }
    }
    @media (max-width: 575.98px) {
      .nfa-article-header { padding: 34px 0 28px; }
      .nfa-article-layout { padding-block: 30px 50px; }
      .nfa-article-body h2 {
        font-size: clamp(1.2rem, 5vw, 1.45rem);
        line-height: 1.3;
        margin-top: 1.25rem;
      }
      .nfa-article-body h3 {
        font-size: 1.1rem;
      }
      .nfa-article-header::before { right: -340px; }
      .nfa-article-header::after { right: -430px; }
    }
	
	/* Print settings */
  @media print {
	
	/* Hide Nergyflux website header when printing */
	#site-header,
	#site-header .navbar,
	#site-header .topline {
		display: none !important;
	}

    /* Hide website footer */
    #site-footer,
    footer {
        display: none !important;
    }

    /* Hide floating website elements */
    .nf-chat-launcher,
    .nf-chat-panel {
        display: none !important;
    }

    /* Hide article sharing icons */
    .nfa-header-actions,
    .nfa-sidebar-share {
        display: none !important;
    }

    /* Hide related articles */
    .nfa-related-section {
        display: none !important;
    }

    /* Hide article navigation sidebar */
    .nfa-article-sidebar {
        display: none !important;
    }

    /* Let article content use the full printable width */
    .nfa-article-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .nfa-article-main {
        width: 100% !important;
    }

    /* Remove unnecessary backgrounds */
    .nfa-article-header {
        background: #fff !important;
        padding: 20px 0 !important;
    }

    .nfa-reading-progress {
        display: none !important;
    }
}

/* Related Insights: three cards on desktop */
.nfa-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Two columns on tablet */
@media (max-width: 991.98px) {
    .nfa-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* One column on mobile */
@media (max-width: 575.98px) {
    .nfa-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   CASE STUDIES
   ================================================================ */

    /* Page-specific layout only. Typography and colour tokens come from css/style.css. */
    .nf-case-studies { color: var(--nf-body, #526675); }
    .nf-cs-banner {
		position: relative;
		overflow: hidden;
		padding: clamp(30px, 3.8vw, 46px) 0;
		background-color: #061a2b;
		background-image:
			linear-gradient(90deg,
				rgba(3, 15, 27, .96) 0%,
				rgba(3, 15, 27, .88) 33%,
				rgba(3, 15, 27, .56) 61%,
				rgba(3, 15, 27, .20) 100%
			),
			linear-gradient(0deg, rgba(3, 15, 27, .50), transparent 48%),
			url("../assets/img/casestudies_hero.webp");
		background-position: center, center, center;
		background-size: cover, cover, cover;
		background-repeat: no-repeat, no-repeat, no-repeat;
		border-bottom: 1px solid rgba(255,255,255,.24);
		isolation: isolate;
	}
    .nf-cs-eyebrow { display:inline-block; margin-bottom:22px; color:var(--nf-sky); font-size:var(--nf-text-label); font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
    .nf-cs-banner h1 { max-width:850px; margin:0 0 10px; color:#fff; font:400 var(--nf-heading-1)/1.12 var(--nf-font-heading); letter-spacing:-.045em; text-wrap:balance; }
    .nf-cs-banner h1 .nf-cs-title-accent { color:#8bd2fb; }
    .nf-cs-banner p { max-width:760px; margin:0; color:rgba(245, 250, 255, .88); font-size:var(--nf-text-lead); line-height:1.65; }
    .nf-cs-content { padding:34px 0 72px; }
    .nf-cs-filters { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin:0 0 34px; }
    .nf-cs-filter { min-height:44px; padding:9px 22px; border:1px solid var(--nf-line,#dce5eb); border-radius:5px; background:#fff; color:var(--nf-ink,#142d40); font:600 var(--nf-text-sm) var(--nf-font-body); transition:color .2s ease,background .2s ease,border-color .2s ease; }
    .nf-cs-filter:hover,.nf-cs-filter[aria-pressed="true"] { border-color:var(--nf-blue,#0072bc); background:var(--nf-blue,#0072bc); color:#fff; }
    .nf-cs-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
    .nf-cs-card { display:flex; min-width:0; min-height:252px; flex-direction:column; align-items:flex-start; padding:25px 25px 22px; border:1px solid var(--nf-line,#dce5eb); border-radius:8px; background:#fff; box-shadow:0 7px 18px rgba(20,45,64,.055); transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; }
    .nf-cs-card:hover { transform:translateY(-3px); border-color:var(--nf-sky); box-shadow:0 13px 28px rgba(20,45,64,.09); }
    .nf-cs-card[hidden] { display:none!important; }
    .nf-cs-icon { display:grid; width:48px; height:48px; place-items:center; margin-bottom:17px; border-radius:7px; background:var(--nf-pale); color:var(--nf-blue,#0072bc); font-size:var(--nf-text-lg); }
    .nf-cs-category { margin-bottom:7px; color:var(--nf-blue,#0072bc); font-size:var(--nf-text-label); font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
    .nf-cs-card h2 { margin:0 0 10px; color:var(--nf-ink,#142d40); font:700 var(--nf-heading-3)/1.35 var(--nf-font-heading); letter-spacing:-.025em; }
    .nf-cs-card p { margin:0 0 18px; font-size:var(--nf-text-card); line-height:1.7; }
    .nf-cs-link { display:inline-flex; align-items:center; gap:8px; margin-top:auto; color:var(--nf-blue); font-size:var(--nf-text-sm); font-weight:500; text-decoration:none; }
    .nf-cs-link:hover { color:var(--nf-blue-dark,#005b98); gap:11px; }
    .nf-cs-link i { transition:transform .2s ease; }
    .nf-cs-link:hover i { transform:translateX(2px); }
    .nf-cs-empty { display:none; padding:35px 20px; border:1px dashed var(--nf-line,#dce5eb); text-align:center; }
    .nf-cs-empty.is-visible { display:block; }
    @media(max-width:991.98px) { .nf-cs-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
    @media(max-width:575.98px) { .nf-cs-banner { padding:30px 0; } .nf-cs-grid { grid-template-columns:1fr; gap:15px; } .nf-cs-card { min-height:0; padding:22px; } .nf-cs-filters { justify-content:flex-start; gap:8px; margin-bottom:24px; } .nf-cs-filter { min-height:40px; padding:8px 13px; font-size:var(--nf-text-sm); } }
    @media(prefers-reduced-motion:reduce) { .nf-cs-card,.nf-cs-filter,.nf-cs-link,.nf-cs-link i { transition:none; } .nf-cs-card:hover { transform:none; } }
	
	
	/* Reusable subtle circular header decoration */
	.nf-circle-decoration {
		position: relative;
		isolation: isolate;
		overflow: hidden;
	}

	.nf-circle-decoration::before,
	.nf-circle-decoration::after {
		content: "";
		position: absolute;
		z-index: -1;
		border: 1px solid rgba(117,199,243,.18);
		border-radius: 50%;
		pointer-events: none;
	}

	.nf-circle-decoration::before {
		width: 520px;
		height: 520px;
		right: -230px;
		top: -270px;
	}

	.nf-circle-decoration::after {
		width: 390px;
		height: 390px;
		right: -165px;
		top: -205px;
	}
	
	/* Case Studies: Mobile circular decoration */
	@media (max-width: 767.98px) {

		.nf-cs-banner {
			background-image:
				linear-gradient(115deg, #03111d 0%, #061a2b 100%);
		}

		.nf-cs-banner::before {
			width: 190px;
			height: 190px;
			right: -85px;
			top: -100px;
		}

		.nf-cs-banner::after {
			width: 135px;
			height: 135px;
			right: -58px;
			top: -72px;
		}
	}
	
	
	
/* ================================================================
   CAREERS
   ================================================================ */

    /* HERO */
    .nfc-hero {
      position: relative;
      isolation: isolate;
      padding: clamp(54px, 6.5vw, 88px) 0 clamp(62px, 7vw, 94px);
      overflow: hidden;
      background: linear-gradient(122deg, #f9fbfc 0%, #f2f8fb 57%, #eaf4f9 100%);
      border-bottom: 1px solid var(--nf-line, #dce5eb);
    }
    /* Large, subtle concentric rings used on Nergyflux product heroes. */
    .nfc-hero::before {
      position: absolute;
      z-index: -1;
      top: -230px;
      right: -145px;
      width: 680px;
      height: 680px;
      border: 1px solid rgba(8, 120, 185, .10);
      border-radius: 50%;
      box-shadow: 0 0 0 52px rgba(8, 120, 185, .025),
                  0 0 0 106px rgba(8, 120, 185, .022);
      content: "";
      pointer-events: none;
    }
	.nf-careers-page .nfc-eyebrow {
	  display: inline-flex;
	  align-items: center;
	  gap: 9px;
	  margin: 0 0 22px;
	  color: #0878b9;
	  font-size: var(--nf-text-label);
	  font-weight: 800;
	  line-height: 1.4;
	  letter-spacing: .14em;
	  text-transform: uppercase;
	}
		.nfc-eyebrow-dot {
      width: 7px;
      height: 7px;
      flex: 0 0 7px;
      border-radius: 50%;
      background: var(--nf-teal);
      box-shadow: 0 0 0 4px rgba(0, 169, 157, .11);
    }
    .nfc-eyebrow-slash {
      padding-inline: 2px;
      color: #9eb0bc;
    }
    .nfc-hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
      align-items: center;
      gap: clamp(34px, 5.5vw, 74px);
    }
    .nfc-hero-copy {
      max-width: 650px;
	  transform: translateY(-30px);
    }
    .nfc-hero .section-kicker {
      margin-bottom: 20px;
    }
    .nfc-hero h1 {
      max-width: 680px;
      margin: 0 0 21px;
      font-size: var(--nf-heading-1, clamp(2.55rem, 4.5vw, 4.25rem));
      font-weight: 400;
      line-height: 1.08;
      letter-spacing: -.05em;
      text-wrap: balance;
    }
    .nfc-hero h1 span {
      color: var(--nf-blue, #0072bc);
    }
    .nfc-hero-copy > p {
      max-width: 590px;
      margin: 0;
      color: var(--nf-body, #526675);
      font-size: var(--nf-text-lead, clamp(1rem, 1.3vw, 1.12rem));
      line-height: 1.8;
    }
    .nfc-hero-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 14px;
      margin-top: 30px;
    }
    .nfc-hero-actions .btn,
    .nfc-cta .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 11px;
    }
    .nfc-hero-actions .btn i,
    .nfc-cta .btn i {
      font-size: .95rem;
      transition: transform .2s ease;
    }
    .nfc-hero-actions .btn:hover i,
    .nfc-cta .btn:hover i {
      transform: translate(2px, -2px);
    }

    /* Hero image and small caption */
    .nfc-hero-media {
      position: relative;
      min-width: 0;
      padding: 0 0 20px 18px;
    }
    .nfc-hero-media::before {
      content: "";
      position: absolute;
      top: -18px;
      right: -18px;
      width: 66%;
      height: 67%;
      border-top: 1px solid rgba(0, 114, 188, .25);
      border-right: 1px solid rgba(0, 114, 188, .25);
      pointer-events: none;
    }
    .nfc-hero-image-wrap {
      position: relative;
      overflow: hidden;
      min-height: 395px;
      background: #dce8ee;
      border-radius: 6px;
      box-shadow: 0 22px 48px rgba(20, 45, 64, .13);
    }
    .nfc-hero-image-wrap img {
      display: block;
      width: 100%;
      height: 435px;
      object-fit: cover;
      object-position: center;
    }
    .nfc-image-shade {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(9, 31, 47, .02) 35%, rgba(9, 31, 47, .48) 100%);
      pointer-events: none;
    }
    .nfc-image-label {
      position: absolute;
      right: 18px;
      bottom: 17px;
      left: 22px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: #fff;
      font-size: .72rem;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .nfc-image-label::before {
      content: "";
      width: 25px;
      height: 2px;
      flex: 0 0 25px;
      background: #67c5ff;
    }
    .nfc-photo-note {
      position: absolute;
      bottom: 0;
      left: 0;
      display: flex;
      align-items: center;
      gap: 13px;
      max-width: min(330px, 85%);
      padding: 16px 19px;
      background: #fff;
      border-left: 3px solid var(--nf-blue, #0072bc);
      box-shadow: 0 12px 30px rgba(20, 45, 64, .11);
    }
    .nfc-photo-note-icon {
      display: grid;
      width: 39px;
      height: 39px;
      flex: 0 0 39px;
      place-items: center;
      border-radius: 5px;
      background: #edf6fb;
      color: var(--nf-blue, #0072bc);
      font-size: 1.1rem;
    }
    .nfc-photo-note strong,
    .nfc-photo-note small {
      display: block;
    }
    .nfc-photo-note strong {
      color: var(--nf-ink, #142d40);
      font: 700 var(--nf-text-sm, .85rem)/1.35 var(--nf-font-heading, "Manrope", sans-serif);
    }
    .nfc-photo-note small {
      margin-top: 3px;
      color: #748795;
      font-family: var(--nf-font-body, "DM Sans", sans-serif);
      font-size: var(--nf-text-sm, .72rem);
      line-height: 1.45;
    }

    /* WHAT WE DO */
    .nfc-work-section {
      padding: clamp(58px, 6.5vw, 82px) 0;
      background: #fff;
    }
    .nfc-work-grid {
      display: grid;
      grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
      align-items: center;
      gap: clamp(35px, 5.5vw, 72px);
    }
    .nfc-work-copy .section-kicker {
      margin-bottom: 14px;
    }
    .nfc-work-copy h2 {
      max-width: 490px;
      margin: 0 0 17px;
      font-size: var(--nf-heading-2, clamp(1.95rem, 3.1vw, 2.8rem));
      font-weight: 400;
      line-height: 1.18;
      letter-spacing: -.04em;
      text-wrap: balance;
    }
    .nfc-work-copy > p:last-child {
      max-width: 510px;
      margin: 0;
      font-size: var(--nf-text-lead, .98rem);
      line-height: 1.8;
    }
    .nfc-capability-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .nfc-capability {
      min-width: 0;
      min-height: 145px;
      padding: 20px 21px 18px;
      border: 1px solid var(--nf-line, #dce5eb);
      border-radius: 5px;
      background: #fff;
      transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    }
    .nfc-capability:hover {
      transform: translateY(-2px);
      border-color: #b9d9e8;
      box-shadow: 0 12px 25px rgba(24, 61, 83, .055);
    }
    .nfc-capability-icon {
      display: grid;
      width: 36px;
      height: 36px;
      margin-bottom: 13px;
      place-items: center;
      border-radius: 5px;
      background: #edf6fb;
      color: var(--nf-blue, #0072bc);
      font-size: 1rem;
    }
    .nfc-capability h3 {
      margin: 0 0 5px;
      font-family: var(--nf-font-heading, "Manrope", sans-serif);
      font-size: var(--nf-heading-3, .96rem);
      font-weight: 700;
      line-height: 1.35;
      letter-spacing: -.02em;
    }
    .nfc-capability p {
      margin: 0;
      color: var(--nf-body, #526675);
      font-size: var(--nf-text-card, .8rem);
      line-height: 1.55;
    }

    /* CLOSING CTA: mirrors the dark product-page CTA and circular ring treatment. */
    .nfc-cta {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      padding: clamp(32px, 4vw, 52px) 0;
      background: var(--nf-ink, #142d40);
      color: #fff;
    }
    .nfc-cta::after {
      content: "";
      position: absolute;
      z-index: -1;
      top: -120px;
      right: -20px;
      width: 430px;
      height: 430px;
      border: 1px solid rgba(117, 199, 243, .20);
      border-radius: 50%;
      box-shadow: 0 0 0 35px rgba(117, 199, 243, .035),
                  0 0 0 80px rgba(117, 199, 243, .025);
      pointer-events: none;
    }
    .nfc-cta-inner {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 22px;
      text-align: center;
    }
    .nfc-cta-copy {
      width: 100%;
      max-width: 900px;
      margin-inline: auto;
    }
    .nfc-cta .section-kicker {
      margin-bottom: 13px;
      color: var(--nf-sky, #67c5ff);
      font-family: var(--nf-font-body, "DM Sans", sans-serif);
      font-size: var(--nf-text-label, .75rem);
      line-height: 1.4;
      letter-spacing: .13em;
    }
    .nfc-cta h2 {
      margin: 0 0 10px;
      color: #fff;
      font-family: var(--nf-font-heading, "Manrope", sans-serif);
      font-size: var(--nf-heading-2);
      font-weight: 400;
      line-height: 1.2;
      letter-spacing: -.03em;
      text-wrap: balance;
    }
    .nfc-cta p:not(.section-kicker) {
      max-width: 760px;
      margin: 0 auto;
      color: rgba(255, 255, 255, .82);
      font-family: var(--nf-font-body, "DM Sans", sans-serif);
      font-size: var(--nf-text-lead, .98rem);
      line-height: 1.7;
      text-align: center;
    }
    .nfc-cta-actions {
      display: flex;
      flex: 0 0 auto;
      justify-content: center;
    }
    .nfc-cta-actions .btn {
      white-space: nowrap;
    }

    /* RESPONSIVE */
    @media (max-width: 991.98px) {
      .nfc-hero-grid,
      .nfc-work-grid {
        grid-template-columns: 1fr;
      }
      .nfc-hero-grid {
        gap: 42px;
      }
      .nfc-hero-copy {
        max-width: 760px;
      }
      .nfc-hero-media {
        width: min(100%, 690px);
        margin: 0 auto;
      }
      .nfc-work-grid {
        gap: 30px;
      }
    }
    @media (max-width: 575.98px) {
      .nfc-hero {
        padding: 42px 0 58px;
      }
      .nfc-hero h1 {
        font-size: clamp(2.25rem, 10vw, 3rem);
      }
      .nfc-hero-copy > p {
        font-size: .98rem;
      }
      .nfc-hero-media {
        padding-left: 9px;
      }
      .nfc-hero-media::before {
        top: -10px;
        right: -9px;
      }
      .nfc-hero-image-wrap {
        min-height: 290px;
      }
      .nfc-hero-image-wrap img {
        height: 315px;
      }
      .nfc-photo-note {
        max-width: 88%;
        padding: 12px 14px;
      }
      .nfc-photo-note-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
      }
      .nfc-work-section {
        padding: 50px 0;
      }
      .nfc-capability-grid {
        gap: 9px;
      }
      .nfc-capability {
        min-height: 146px;
        padding: 16px 14px;
      }
      .nfc-capability h3 {
        font-size: .88rem;
      }
      .nfc-capability p {
        font-size: .75rem;
      }
      .nfc-cta {
        padding: 48px 0;
      }
      .nfc-cta-inner {
        align-items: center;
        gap: 23px;
      }
      .nfc-cta::after {
        top: -160px;
        right: -250px;
        width: 380px;
        height: 380px;
      }
      .nfc-cta-actions .btn {
        width: auto;
      }
    }
	
	
	
/* ==========================================================
   MOBILE PLATFORMS MENU - COMPACT PRODUCT CARDS
   ========================================================== */
	@media (max-width: 991.98px) {

	  #mainNav .platform-product-card {
		display: flex;
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
		min-height: 170px !important;
		padding: 10px 8px !important;
	  }

	  #mainNav .platform-product-icon {
		display: grid !important;
		place-items: center !important;
		width: 60px !important;
		height: 60px !important;
		min-width: 60px !important;
		min-height: 60px !important;
		flex: 0 0 60px !important;
		margin: 0 0 8px !important;
		padding: 0 !important;
		background: transparent !important;
	  }

	  #mainNav .platform-product-logo {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 60px !important;
		max-height: 60px !important;
		object-fit: contain !important;
	  }

	  #mainNav .platform-product-card strong {
		display: block;
		font-size: 12px !important;
		line-height: 1.3;
	  }

	  #mainNav .platform-product-card small {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		font-size: 10px !important;
		line-height: 1.35;
		margin-top: 4px;
	  }

	  #mainNav .platform-product-view {
		margin-top: auto;
		padding-top: 6px;
		font-size: 11px !important;
	  }
	}
	

/* MOBILE MEGA MENUS - SIMPLIFIED VIEW */
	@media (max-width: 991.98px) {

	  /* Industries: remove heading and View All row */
	  #mainNav .mega-menu[aria-label="Industries menu"] .mega-featured-heading {
		display: none !important;
	  }

	  /* Programs and Use Cases: keep View All links */
	  #mainNav .mega-menu[aria-label="Programs menu"] .mega-featured-heading > span,
	  #mainNav .mega-menu[aria-label="Use cases menu"] .mega-featured-heading > span {
		display: none !important;
	  }

	  #mainNav .mega-menu[aria-label="Programs menu"] .mega-featured-heading,
	  #mainNav .mega-menu[aria-label="Use cases menu"] .mega-featured-heading {
		display: flex !important;
		justify-content: flex-end !important;
		margin-bottom: 12px !important;
	  }

	  /* Hide descriptions in Industries and Use Cases */
	  #mainNav .mega-menu[aria-label="Industries menu"] .mega-feature-card-copy,
	  #mainNav .mega-menu[aria-label="Use cases menu"] .mega-feature-card-copy {
		display: none !important;
	  }

	  /* Hide individual Explore / View links */
	  #mainNav .mega-feature-card-link,
	  #mainNav .platform-product-view {
		display: none !important;
	  }
	}
	
	/* MOBILE PLATFORMS MENU - REMOVE INTRO AND EXTRA HEADINGS */
	@media (max-width: 991.98px) {

	  /* Hide introductory text */
	  #mainNav .mega-platforms-full .platforms-mega-sidebar > .platforms-mega-kicker,
	  #mainNav .mega-platforms-full .platforms-mega-sidebar > h2,
	  #mainNav .mega-platforms-full .platforms-mega-sidebar > p {
		display: none !important;
	  }

	  /* Hide View All Platforms */
	  #mainNav .mega-platforms-full .platforms-all-link {
		display: none !important;
	  }

	  /* Hide Featured Platforms, industry title and platform count */
	  #mainNav .mega-platforms-full .platforms-mega-content-head {
		display: none !important;
	  }

	  /* Remove unnecessary space above the industry buttons */
	  #mainNav .mega-platforms-full .platforms-mega-sidebar {
		padding-top: 0 !important;
	  }

	  #mainNav .mega-platforms-full .platforms-mega-content {
		margin-top: 12px !important;
	  }
	}
	
	
/* ==========================================================
   MOBILE MEGA MENU - SMOOTH ACCORDION TRANSITIONS
   ========================================================== */
	@media (max-width: 991.98px) {

	  /* Keep panels rendered so their height can animate */
	  #mainNav .navbar-nav > .mega-dropdown > .mega-menu {
		display: block !important;
		max-height: 0 !important;
		overflow: hidden !important;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-7px);

		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		border-width: 0 !important;

		transition:
		  max-height .4s ease,
		  opacity .28s ease,
		  transform .35s ease,
		  margin .4s ease,
		  padding .4s ease,
		  border-width .4s ease,
		  visibility 0s linear .4s;

		will-change: max-height, opacity, transform;
	  }

	  /* Expanded menu */
	  #mainNav .navbar-nav > .mega-dropdown.mobile-expanded > .mega-menu {
		max-height: 1200px !important;
		overflow: hidden !important;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);

		margin: 6px 0 10px !important;
		padding: 15px 17px 20px !important;
		border-width: 1px !important;

		transition:
		  max-height .4s ease,
		  opacity .3s ease,
		  transform .35s ease,
		  margin .4s ease,
		  padding .4s ease,
		  border-width .4s ease,
		  visibility 0s;
	  }
	}

	/* Respect visitors who prefer reduced motion */
	@media (prefers-reduced-motion: reduce) {
	  #mainNav .navbar-nav > .mega-dropdown > .mega-menu {
		transition: none !important;
		transform: none !important;
	  }
	}
	
	/* Hide platform products on mobile until an industry is selected */
	@media (max-width: 991.98px) {
	  #mainNav .mega-platforms-full:not(.has-selected-platform-category) .platforms-mega-content {
		display: none !important;
	  }

	  #mainNav .mega-platforms-full.has-selected-platform-category .platforms-mega-content {
		display: block !important;
	  }
	}



/* ==========================================================
   NERGYFLUX MOBILE SLIDE-IN NAVIGATION DRAWER
   ========================================================== */

	@media (max-width: 991.98px) {

		#mainNav.nf-mobile-drawer {
			--bs-offcanvas-width: min(90vw, 420px);
			--bs-offcanvas-bg: #ffffff;

			/* Full-height drawer, flush against the left edge */
			top: 0;
			bottom: 0;
			left: 0;
			height: 100dvh !important;

			width: min(90vw, 420px);
			max-width: calc(100vw - 24px);
			max-height: none !important;

			padding: 0 !important;
			overflow: hidden !important;

			background: #ffffff !important;
			border: 1px solid #dce5eb;

			/* Square left corners, rounded right corners */
			border-radius: 0;

			box-shadow: 0 14px 40px rgba(20, 45, 64, .18);
		}

		/* Drawer top and close control */
		#mainNav .nf-mobile-drawer-header {
			display: flex !important;
			justify-content: space-between;
			align-items: center;
			padding: 18px 22px 8px !important;
			background: #ffffff;
		}
		
		/* Nergyflux mobile drawer logo */
		.nf-mobile-drawer-logo {
			position: relative;
			display: inline-flex;
			align-items: center;
			width: 175px;
			max-width: calc(100% - 55px);
			overflow: hidden;
		}

		.nf-mobile-drawer-logo img {
			display: block;
			width: 100%;
			height: auto;
		}

		/* Animated light sweep across the logo only */
		.nf-mobile-drawer-logo::after {
			content: "";
			position: absolute;
			inset: 0;
			background: linear-gradient(
				110deg,
				transparent 35%,
				rgba(255,255,255,.9) 50%,
				transparent 65%
			);

			-webkit-mask-image: url("../assets/img/logo.png");
			-webkit-mask-repeat: no-repeat;
			-webkit-mask-position: center;
			-webkit-mask-size: 100% 100%;

			mask-image: url("../assets/img/logo.png");
			mask-repeat: no-repeat;
			mask-position: center;
			mask-size: 100% 100%;

			transform: translateX(-130%);
			animation: nf-logo-light-sweep 4.5s ease-in-out infinite;
			pointer-events: none;
		}

		@keyframes nf-logo-light-sweep {
			0%, 42% {
				transform: translateX(-130%);
			}
			70%, 100% {
				transform: translateX(130%);
			}
		}

		/* Respect reduced-motion preferences */
		@media (prefers-reduced-motion: reduce) {
			.nf-mobile-drawer-logo::after {
				animation: none;
				display: none;
			}
		}

		.nf-mobile-drawer-close {
			display: inline-flex;
			align-items: center;
			gap: 12px;
			padding: 6px 0;
			border: 0;
			background: transparent;
			color: #526675;
			font: 500 14px "DM Sans", sans-serif;
		}

		.nf-mobile-drawer-close i {
			font-size: 18px;
			color: #142d40;
		}

		/* Drawer scrollable content */
		#mainNav .nf-mobile-drawer-body {
			padding: 24px 20px 28px !important;
			background: #ffffff;
			overflow-y: auto;
			overscroll-behavior: contain;
		}

		/* Subtle background overlay */
		.offcanvas-backdrop.show {
			opacity: .48;
		}

	}
	
	/* Add spacing above the mobile Contact Us button */
	@media (max-width: 991.98px) {
		#mainNav .navbar-nav > li.nav-item.ms-lg-3 {
			padding-top: 20px !important;
		}
	}
	
	/* Mobile Contact button alignment */
	@media (max-width: 991.98px) {
		#mainNav .navbar-nav > .nav-item.ms-lg-3 > .btn {
			display: flex !important;
			align-items: center !important;
			justify-content: center !important;
			min-height: 48px !important;
			padding: 0 20px !important;
			font-size: 16px !important;
			font-weight: 600 !important;
			line-height: 1.2 !important;
		}

		#mainNav .navbar-nav > .nav-item.ms-lg-3 > .btn i {
			display: inline-flex;
			align-items: center;
			line-height: 1;
		}
	}
	
