/* NorthGrid Power Services All-in-One Website */
.ngps-site {
  --ngps-dark: #020914;
  --ngps-navy: #071626;
  --ngps-blue: #0e3858;
  --ngps-cyan: #58d8ff;
  --ngps-cyan-light: #9feeff;
  --ngps-white: #ffffff;
  --ngps-silver: #d9e2ea;
  --ngps-muted: #aab8c5;
  --ngps-border: rgba(255,255,255,.13);
  --ngps-card: rgba(255,255,255,.07);
  --ngps-shadow: 0 24px 70px rgba(0,0,0,.38);
  --ngps-radius: clamp(16px, 2vw, 28px);
  --ngps-max: 1180px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background:
    linear-gradient(rgba(7,22,38,.94), rgba(2,9,20,.98)),
    radial-gradient(circle at 20% 15%, rgba(88,216,255,.18), transparent 34%),
    radial-gradient(circle at 80% 5%, rgba(88,216,255,.12), transparent 30%),
    var(--ngps-navy);
  color: var(--ngps-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
  isolation: isolate;
}

.ngps-site::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .12;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(150deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

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

.ngps-site a {
  color: inherit;
  text-decoration: none;
}

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

.ngps-container {
  width: min(100% - clamp(28px, 5vw, 72px), var(--ngps-max));
  margin-inline: auto;
}

.ngps-topbar {
  background: linear-gradient(90deg, #06111e, #0e3858, #06111e);
  border-bottom: 1px solid rgba(88,216,255,.35);
  padding: 10px 0;
  font-size: clamp(13px, 1.4vw, 15px);
}

.ngps-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.ngps-topbar strong {
  color: var(--ngps-cyan-light);
}

.ngps-topbar a {
  font-weight: 900;
}

.ngps-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,22,38,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-bar .ngps-header {
  top: 32px;
}

.ngps-nav {
  min-height: clamp(72px, 8vw, 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.ngps-brand {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
  min-width: 0;
}

.ngps-brand img {
  width: clamp(56px, 8vw, 86px);
  max-height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.ngps-brand span {
  display: block;
  color: var(--ngps-white);
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 900;
  letter-spacing: clamp(.5px, .2vw, 2px);
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 38vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ngps-brand small {
  color: var(--ngps-muted);
  display: block;
  font-size: clamp(8px, 1vw, 11px);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.ngps-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 800;
  color: var(--ngps-silver);
}

.ngps-menu a:hover {
  color: var(--ngps-cyan-light);
}

.ngps-menu-toggle {
  display: none;
  background: rgba(255,255,255,.06);
  color: var(--ngps-white);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.ngps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
  border: 1px solid transparent;
  line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}

.ngps-btn:hover {
  transform: translateY(-2px);
}

.ngps-btn-primary {
  background: linear-gradient(135deg, var(--ngps-cyan), var(--ngps-white));
  color: #05111e !important;
  box-shadow: 0 14px 40px rgba(88,216,255,.22);
}

.ngps-btn-secondary {
  background: rgba(255,255,255,.06);
  color: var(--ngps-white) !important;
  border-color: rgba(255,255,255,.18);
}

.ngps-section,
.ngps-hero,
.ngps-page-hero {
  padding-block: clamp(56px, 8vw, 96px);
}

.ngps-hero-grid,
.ngps-page-hero-grid,
.ngps-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.ngps-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ngps-cyan-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 900;
  margin-bottom: 18px;
}

.ngps-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--ngps-cyan);
  box-shadow: 0 0 14px var(--ngps-cyan);
}

.ngps-site h1,
.ngps-site h2,
.ngps-site h3 {
  color: var(--ngps-white);
  margin: 0;
  line-height: 1;
}

.ngps-site h1 {
  font-size: clamp(40px, 8vw, 84px);
  letter-spacing: clamp(-3px, -.2vw, -1px);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.ngps-site h2 {
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: -1.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ngps-site h3 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.15;
  margin-bottom: 10px;
}

.ngps-site p {
  color: var(--ngps-silver);
  margin: 0;
}

.ngps-hero p,
.ngps-page-hero p,
.ngps-section-head p {
  font-size: clamp(17px, 2vw, 21px);
  max-width: 760px;
}

.ngps-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.ngps-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.ngps-points div {
  padding: 15px;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--ngps-border);
  color: var(--ngps-muted);
  font-size: 14px;
}

.ngps-points strong {
  display: block;
  color: var(--ngps-white);
  font-size: 16px;
}

.ngps-hero-card,
.ngps-panel,
.ngps-card,
.ngps-photo-card,
.ngps-review-card {
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  border: 1px solid var(--ngps-border);
  box-shadow: var(--ngps-shadow);
}

.ngps-hero-card,
.ngps-panel {
  border-radius: var(--ngps-radius);
  padding: clamp(22px, 3vw, 36px);
}

.ngps-logo-panel {
  min-height: clamp(230px, 35vw, 380px);
  border-radius: calc(var(--ngps-radius) - 6px);
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 36px);
  background:
    radial-gradient(circle at center, rgba(88,216,255,.18), transparent 52%),
    linear-gradient(135deg, rgba(5,17,31,.96), rgba(10,44,72,.92));
  border: 1px solid rgba(255,255,255,.12);
}

.ngps-logo-panel img {
  max-width: 440px;
  width: min(100%, 440px);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.55));
}

.ngps-section-head {
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.ngps-card-grid,
.ngps-photo-grid,
.ngps-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.ngps-card-grid.ngps-three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.ngps-card {
  border-radius: clamp(18px, 2vw, 24px);
  padding: clamp(20px, 2.4vw, 28px);
  min-height: 220px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ngps-clickable-card {
  display: flex;
  flex-direction: column;
}

.ngps-clickable-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88,216,255,.45);
  box-shadow: 0 20px 60px rgba(0,0,0,.32);
}

.ngps-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(88,216,255,.12);
  border: 1px solid rgba(88,216,255,.25);
  font-size: 24px;
  margin-bottom: 18px;
}

.ngps-card p {
  color: var(--ngps-muted);
  font-size: 15px;
}

.ngps-card-link {
  color: var(--ngps-cyan-light);
  font-weight: 900;
  margin-top: auto;
  padding-top: 18px;
}

.ngps-list,
.ngps-steps {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ngps-list li,
.ngps-steps li {
  color: var(--ngps-silver);
  position: relative;
  padding-left: 36px;
}

.ngps-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(88,216,255,.16);
  color: var(--ngps-cyan-light);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}

.ngps-steps {
  counter-reset: step;
}

.ngps-steps li {
  counter-increment: step;
}

.ngps-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(88,216,255,.16);
  color: var(--ngps-cyan-light);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.ngps-text-link {
  color: var(--ngps-cyan-light) !important;
  font-weight: 900;
  display: inline-block;
  margin-top: 22px;
}

.ngps-cta {
  padding-block: clamp(44px, 6vw, 64px);
  background:
    linear-gradient(90deg, rgba(88,216,255,.18), rgba(255,255,255,.06)),
    linear-gradient(135deg, #071626, #123a5d);
  border-top: 1px solid rgba(88,216,255,.25);
  border-bottom: 1px solid rgba(88,216,255,.25);
}

.ngps-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ngps-muted-section {
  background: rgba(0,0,0,.18);
}

.ngps-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.ngps-pill-wrap span,
.ngps-pill-wrap a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(159,238,255,.25);
  color: var(--ngps-silver) !important;
  font-size: 14px;
  font-weight: 800;
}

.ngps-pill-wrap a:hover {
  border-color: rgba(88,216,255,.55);
  color: var(--ngps-cyan-light) !important;
}

.ngps-photo-card,
.ngps-review-card {
  border-radius: clamp(18px, 2vw, 24px);
  overflow: hidden;
}

.ngps-photo-card img,
.ngps-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ngps-photo-placeholder,
.ngps-map-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(88,216,255,.12), rgba(255,255,255,.04)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 10px, transparent 10px 20px);
  color: var(--ngps-cyan-light);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--ngps-border);
}

.ngps-map-placeholder {
  border: 1px solid var(--ngps-border);
  border-radius: 18px;
  margin-top: 20px;
}

.ngps-photo-card div:not(.ngps-photo-placeholder) {
  padding: 20px;
}

.ngps-review-card {
  padding: clamp(20px, 2.4vw, 28px);
}

.ngps-stars {
  color: var(--ngps-cyan-light);
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 18px;
}

.ngps-review-card p {
  font-size: 17px;
  margin-bottom: 18px;
}

.ngps-review-card span {
  color: var(--ngps-muted);
  display: block;
  margin-top: 6px;
}

.ngps-center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.ngps-form {
  display: grid;
  gap: 16px;
}

.ngps-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ngps-form label {
  display: grid;
  gap: 7px;
  color: var(--ngps-silver);
  font-size: 14px;
  font-weight: 800;
}

.ngps-form input,
.ngps-form select,
.ngps-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(2,9,20,.76);
  color: var(--ngps-white);
  font: inherit;
  outline: none;
}

.ngps-form input:focus,
.ngps-form select:focus,
.ngps-form textarea:focus {
  border-color: var(--ngps-cyan);
  box-shadow: 0 0 0 3px rgba(88,216,255,.15);
}

.ngps-form textarea {
  min-height: 132px;
  resize: vertical;
}

.ngps-full {
  grid-column: 1 / -1;
}

.ngps-form-note {
  font-size: 14px;
  color: var(--ngps-muted);
}

.ngps-form-note a {
  color: var(--ngps-cyan-light);
  font-weight: 900;
}

.ngps-form-success {
  background: rgba(88,216,255,.12);
  border: 1px solid rgba(88,216,255,.35);
  color: var(--ngps-white);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-weight: 800;
}

.ngps-footer {
  padding-block: clamp(36px, 5vw, 54px);
  background: #020914;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--ngps-muted);
}

.ngps-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(160px, 1fr));
  gap: clamp(22px, 4vw, 36px);
}

.ngps-footer h3 {
  color: var(--ngps-white);
  margin-bottom: 12px;
  font-size: 19px;
  text-transform: none;
  letter-spacing: 0;
}

.ngps-footer a,
.ngps-footer span {
  display: block;
  color: var(--ngps-silver) !important;
  margin: 7px 0;
}

.ngps-footer a:hover {
  color: var(--ngps-cyan-light) !important;
}

.ngps-copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}

.ngps-floating-call {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 101;
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
}

@media (min-width: 1400px) {
  .ngps-container {
    --ngps-max: 1280px;
  }
}

@media (max-width: 1080px) {
  .ngps-menu {
    gap: 12px;
  }
  .ngps-menu .ngps-btn {
    padding-inline: 16px;
  }
}

@media (max-width: 940px) {
  .admin-bar .ngps-header {
    top: 46px;
  }

  .ngps-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ngps-menu {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 0 0 20px 20px;
    background: rgba(7,22,38,.98);
    box-shadow: var(--ngps-shadow);
  }

  .ngps-menu.is-open {
    display: flex;
  }

  .ngps-menu a {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .ngps-menu a:last-child {
    border-bottom: 0;
  }

  .ngps-menu .ngps-btn {
    margin-top: 10px;
  }

  .ngps-hero-grid,
  .ngps-page-hero-grid,
  .ngps-split,
  .ngps-footer-grid {
    grid-template-columns: 1fr;
  }

  .ngps-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ngps-container {
    width: min(100% - 28px, var(--ngps-max));
  }

  .ngps-topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .ngps-brand span {
    max-width: 58vw;
  }

  .ngps-actions,
  .ngps-cta-inner {
    align-items: stretch;
  }

  .ngps-actions .ngps-btn,
  .ngps-cta-inner .ngps-btn,
  .ngps-form .ngps-btn {
    width: 100%;
  }

  .ngps-form-grid,
  .ngps-card-grid,
  .ngps-photo-grid,
  .ngps-review-grid {
    grid-template-columns: 1fr;
  }

  .ngps-floating-call {
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    width: auto;
  }

  .ngps-floating-call.ngps-btn {
    width: auto;
  }

  .ngps-footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 380px) {
  .ngps-brand small {
    display: none;
  }
  .ngps-brand span {
    max-width: 52vw;
  }
}


/* Canvas / theme-header removal safeguards */
html:has(body.ngps-canvas-active),
body.ngps-canvas-active {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  background: #020914 !important;
}

body.ngps-canvas-active .ngps-site {
  min-height: 100vh;
}

/* Fallback only: if the host/theme does not honor the canvas template, hide common theme header regions on generated NorthGrid pages. */
body.ngps-canvas-active #masthead,
body.ngps-canvas-active .site-header,
body.ngps-canvas-active header.site-header,
body.ngps-canvas-active .wp-site-blocks > header,
body.ngps-canvas-active header.wp-block-template-part,
body.ngps-canvas-active .elementor-location-header,
body.ngps-canvas-active .entry-header,
body.ngps-canvas-active .page-header,
body.ngps-canvas-active .wp-block-post-title,
body.ngps-canvas-active h1.entry-title {
  display: none !important;
}

body.ngps-canvas-active .site-main,
body.ngps-canvas-active .content-area,
body.ngps-canvas-active main,
body.ngps-canvas-active article,
body.ngps-canvas-active .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Compact floating hamburger menu for canvas/no-header layout */
.ngps-floating-menu {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.admin-bar .ngps-floating-menu {
  top: calc(32px + max(16px, env(safe-area-inset-top)));
}

.ngps-floating-menu .ngps-menu-toggle {
  pointer-events: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(7, 22, 38, .92);
  color: var(--ngps-white);
  border: 1px solid rgba(159, 238, 255, .34);
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
}

.ngps-floating-menu .ngps-menu-toggle:hover {
  border-color: rgba(88, 216, 255, .72);
  box-shadow: 0 20px 60px rgba(88,216,255,.18), 0 18px 50px rgba(0,0,0,.42);
}

.ngps-floating-menu .ngps-menu-bars {
  font-size: 20px;
  line-height: 1;
}

.ngps-floating-menu .ngps-menu {
  pointer-events: auto;
  display: none !important;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: min(360px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  overflow-y: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 10px;
  border-radius: 20px;
  background: rgba(7, 22, 38, .98);
  border: 1px solid rgba(159,238,255,.24);
  box-shadow: 0 26px 80px rgba(0,0,0,.52);
  backdrop-filter: blur(18px);
}

.ngps-floating-menu .ngps-menu.is-open {
  display: flex !important;
}

.ngps-floating-menu .ngps-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--ngps-silver);
}

.ngps-floating-menu .ngps-menu a:hover,
.ngps-floating-menu .ngps-menu a:focus {
  color: var(--ngps-cyan-light);
  background: rgba(88,216,255,.10);
  outline: none;
}

.ngps-floating-menu .ngps-menu .ngps-btn {
  margin-top: 10px;
  color: #05111e !important;
  justify-content: center;
  border-bottom: 0;
}

@media (max-width: 782px) {
  .admin-bar .ngps-floating-menu {
    top: calc(46px + max(12px, env(safe-area-inset-top)));
  }
}

@media (max-width: 640px) {
  .ngps-floating-menu {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }

  .ngps-floating-menu .ngps-menu-toggle {
    min-height: 44px;
    padding: 10px 14px;
  }

  .ngps-floating-menu .ngps-menu {
    width: min(330px, calc(100vw - 24px));
    max-height: 70vh;
  }
}
