/*
Theme Name: GridZero Block
Theme URI: https://gridzeroenergy.com
Author: GridZero Energy Systems
Description: Custom block theme foundation for GridZero Energy Systems.
Version: 0.1.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: gridzero-block
*/

:root {
  --gridzero-header-offset: 156px;
  --gridzero-content-width: 1245px;
  --gridzero-blue: #065884;
  --gridzero-blue-dark: #045076;
  --gridzero-charcoal: #252525;
  --gridzero-body: #676767;
  --gridzero-heading: #444444;
  --gridzero-muted: #777777;
  --gridzero-utility: #bcbcbc;
  --gridzero-surface: #f2f2f2;
  --gridzero-header-bg: rgba(242, 242, 242, 0.96);
  --gridzero-header-bg-scrolled: rgba(248, 248, 248, 0.94);
  --gridzero-header-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--gridzero-body);
  background: #ffffff;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

body.gridzero-mobile-menu-open {
  overflow: hidden;
}

body.gridzero-search-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--gridzero-heading);
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body:not(.home) .wp-site-blocks {
  padding-top: var(--gridzero-header-offset);
}

body.home .wp-site-blocks {
  padding-top: 0;
}

.gridzero-site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  margin: 0 !important;
  color: var(--gridzero-body);
  background: transparent;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease,
    color 0.25s ease;
}

.gridzero-site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gridzero-site-header.is-scrolled,
body:not(.home) .gridzero-site-header {
  color: var(--gridzero-body);
}

.gridzero-site-header.is-scrolled::before,
body:not(.home) .gridzero-site-header::before {
  opacity: 1;
}

.gridzero-header__utility,
.gridzero-header__main {
  position: relative;
  width: 100%;
}

.gridzero-header__utility {
  color: #ffffff;
  background: rgba(188, 188, 188, 0.82);
  font-size: 13px;
  line-height: 1.4;
  backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.gridzero-header__utility-inner,
.gridzero-header__main-inner,
.gridzero-footer__copyright-inner,
.gridzero-footer__before-footer .container {
  width: min(var(--gridzero-content-width), calc(100% - clamp(1rem, 3vw, 2rem)));
  margin-inline: auto;
}

.gridzero-header__utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 30px;
}

.gridzero-header__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.gridzero-header__social-link,
.gridzero-footer__social-link,
.gridzero-header__menu-toggle a,
.gridzero-header__mobile-search {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gridzero-header__social-link {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.gridzero-header__social-link:hover,
.gridzero-footer__social-link:hover {
  transform: translateY(-1px);
}

.gridzero-header__notice {
  flex: 1 1 auto;
  text-align: center;
}

.gridzero-header__notice-link {
  color: #93551a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.gridzero-header__notice-link strong {
  font-weight: 700;
}

.gridzero-header__utility-spacer {
  flex: 0 0 3rem;
}

.gridzero-header__main {
  color: #ffffff;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    backdrop-filter 0.25s ease;
}

body.home .gridzero-site-header:not(.is-scrolled) .gridzero-header__utility {
  background: rgba(188, 188, 188, 0.12);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.home .gridzero-site-header:not(.is-scrolled) .gridzero-header__main {
  background: rgba(255, 255, 255, 0.016);
  border-bottom-color: rgba(255, 255, 255, 0.055);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  color: #ffffff;
}

body.home .gridzero-site-header:not(.is-scrolled) .gridzero-header__menu > li > a,
body.home .gridzero-site-header:not(.is-scrolled) .gridzero-header__menu-toggle a,
body.home .gridzero-site-header:not(.is-scrolled) .gridzero-header__search-btn a,
body.home .gridzero-site-header:not(.is-scrolled) .gridzero-header__mobile-search {
  color: #ffffff;
}

body.home .gridzero-site-header:not(.is-scrolled) .gridzero-header__menu-toggle a,
body.home .gridzero-site-header:not(.is-scrolled) .gridzero-header__search-btn a,
body.home .gridzero-site-header:not(.is-scrolled) .gridzero-header__mobile-search {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

body.home .gridzero-site-header.is-scrolled .gridzero-header__utility,
body.home .gridzero-site-header.is-scrolled .gridzero-header__main {
  background: var(--gridzero-header-bg-scrolled);
  color: var(--gridzero-body);
}

body.home .gridzero-site-header.is-scrolled .gridzero-header__utility {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.home .gridzero-site-header.is-scrolled .gridzero-header__main {
  border-bottom-color: rgba(0, 0, 0, 0.04);
  box-shadow: var(--gridzero-header-shadow);
  backdrop-filter: blur(12px);
}

body.home .gridzero-site-header.is-scrolled .gridzero-header__social-link,
body:not(.home) .gridzero-site-header .gridzero-header__social-link {
  color: var(--gridzero-body);
  background: rgba(6, 88, 132, 0.08);
  border-color: rgba(6, 88, 132, 0.14);
}

.gridzero-header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 86px;
  flex-wrap: nowrap;
}

.gridzero-header__brand {
  flex: 0 0 auto;
}

.gridzero-header__logo {
  display: block;
  width: min(318px, 100%);
}

.gridzero-header__logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.gridzero-header__nav-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}

.gridzero-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

.gridzero-header__menu-buttons,
.gridzero-header__menu,
.gridzero-header__mobile-menu,
.gridzero-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gridzero-header__menu-buttons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.gridzero-header__menu {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.7rem;
  flex-wrap: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.gridzero-header__menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.gridzero-header__menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  opacity: 0.85;
}

.gridzero-header__menu > li > a:hover::after,
.gridzero-header__menu > li.current-menu-item > a::after,
.gridzero-header__menu > li.current_page_item > a::after,
.gridzero-header__menu > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.gridzero-header__menu > li {
  position: relative;
  flex: 0 0 auto;
}

.gridzero-header__menu .sub-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 15rem;
  margin: 0;
  padding: 0.5rem 0;
  background: rgba(248, 248, 248, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.gridzero-header__menu > li:hover .sub-menu,
.gridzero-header__menu > li:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gridzero-header__menu .sub-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.gridzero-header__menu-toggle a,
.gridzero-header__search-btn a,
.gridzero-header__mobile-search {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(6, 88, 132, 0.08);
  border: 1px solid rgba(6, 88, 132, 0.14);
  color: inherit;
}

.gridzero-header__mobile-search {
  display: none;
}

.gridzero-header__menu-toggle a:hover,
.gridzero-header__search-btn a:hover,
.gridzero-header__mobile-search:hover {
  background: rgba(6, 88, 132, 0.14);
}

.gridzero-header__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  color: currentColor;
}

.gridzero-header__icon::before {
  display: block;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
}

.gridzero-header__icon--facebook::before {
  content: "f";
  font-size: 0.95rem;
  font-weight: 700;
}

.gridzero-header__icon--google::before {
  content: "g";
  font-size: 0.95rem;
  font-weight: 700;
}

.gridzero-header__icon--phone::before {
  content: "☎";
  font-size: 0.95rem;
}

.gridzero-header__icon--search::before {
  content: "⌕";
  font-size: 1rem;
}

.gridzero-header__icon--caret::before {
  content: "⌄";
  font-size: 1rem;
}

.gridzero-header__menu-lines {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1rem;
}

.gridzero-header__menu-lines .lines {
  position: relative;
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.gridzero-header__menu-lines .lines::before,
.gridzero-header__menu-lines .lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: inherit;
  background: currentColor;
}

.gridzero-header__menu-lines .lines::before {
  top: -0.36rem;
}

.gridzero-header__menu-lines .lines::after {
  bottom: -0.36rem;
}

.gridzero-header__mobile-panel {
  position: fixed;
  inset: var(--gridzero-header-offset) 0 auto 0;
  z-index: 999;
  max-height: calc(100vh - var(--gridzero-header-offset));
  overflow: auto;
  background: rgba(248, 248, 248, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--gridzero-header-shadow);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.35rem);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.gridzero-search--overlay {
  position: fixed;
  inset: var(--gridzero-header-offset) 0 0 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(28, 28, 28, 0.48);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.gridzero-search--overlay[hidden] {
  display: none;
}

.gridzero-search--overlay.is-open,
.gridzero-search--overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gridzero-search__panel {
  width: min(760px, 100%);
  margin-top: clamp(0.75rem, 8vh, 4rem);
}

.gridzero-search__box {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(248, 248, 248, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.gridzero-search__form {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.gridzero-search__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: var(--gridzero-charcoal);
}

.gridzero-search__submit {
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: var(--gridzero-blue);
  color: #ffffff;
}

.gridzero-search__submit:hover {
  background: var(--gridzero-blue-dark);
}

.gridzero-search__submit-icon {
  font-style: normal;
  font-size: 1rem;
}

.gridzero-search__hint {
  margin: 0.85rem 0 0;
  color: var(--gridzero-muted);
  font-size: 0.95rem;
}

.gridzero-search__close {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.gridzero-search__close-link {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(248, 248, 248, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--gridzero-charcoal);
  text-decoration: none;
}

.gridzero-search__close-link:hover {
  background: #ffffff;
}

.gridzero-header__mobile-panel[hidden] {
  display: none;
}

.gridzero-header__mobile-panel.is-open,
.gridzero-header__mobile-panel[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.gridzero-header__mobile-panel-inner {
  width: min(var(--gridzero-content-width), calc(100% - 1.5rem));
  margin-inline: auto;
  padding: 1.25rem 0 2rem;
}

.gridzero-header__mobile-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gridzero-header__logo--mobile {
  width: min(220px, 70vw);
}

.gridzero-header__mobile-panel-close {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(6, 88, 132, 0.08);
  border: 1px solid rgba(6, 88, 132, 0.14);
  color: inherit;
  text-decoration: none;
}

.gridzero-header__mobile-nav {
  padding: 0.35rem 0 1.25rem;
}

.gridzero-header__mobile-menu {
  display: grid;
  gap: 0.3rem;
}

.gridzero-header__mobile-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  color: var(--gridzero-charcoal);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.gridzero-header__mobile-menu .sub-menu {
  padding: 0 0 0.25rem 1rem;
}

.gridzero-header__mobile-menu .sub-menu a {
  display: block;
  padding: 0.65rem 0;
  color: var(--gridzero-body);
  text-decoration: none;
}

.gridzero-header__mobile-utility {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.gridzero-header__mobile-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gridzero-header__mobile-notice {
  margin: 0;
  color: var(--gridzero-charcoal);
  font-size: 0.95rem;
  line-height: 1.45;
}

.gridzero-homepage-hero {
  min-height: clamp(42rem, 82vh, 58rem) !important;
  padding-top: calc(var(--gridzero-header-offset) * 0.68) !important;
  padding-bottom: clamp(4rem, 7vw, 5.5rem) !important;
}

.gridzero-homepage-hero .wp-block-cover__background.has-background-dim-60 {
  opacity: 0.39;
}

.gridzero-homepage-hero .wp-block-cover__image-background {
  filter: brightness(1.12) saturate(1.02);
}

.gridzero-homepage-hero .wp-block-cover__inner-container {
  width: min(var(--gridzero-content-width), calc(100% - 2rem));
  max-width: var(--gridzero-content-width);
  margin-inline: auto;
}

.gridzero-hero-inner {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(1.1rem, 1.6vw, 1.55rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.014));
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.72rem;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gridzero-homepage-hero h1,
.gridzero-homepage-hero p {
  color: #ffffff;
}

.gridzero-homepage-hero h1 {
  margin-bottom: 0.5rem;
}

.gridzero-homepage-hero p {
  text-wrap: balance;
}

.wp-block-button__link,
.wp-element-button {
  border-radius: 0;
  border: 0;
  background: var(--gridzero-blue);
  color: #ffffff;
  padding: 22px 54px;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.11;
  box-shadow: none;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  background: var(--gridzero-blue-dark);
  transform: translateY(-1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent;
  border: 2px solid currentColor;
  padding: 20px 34px;
}

.gridzero-homepage-services,
.gridzero-homepage-trust,
.gridzero-homepage-cta {
  width: 100%;
}

.gridzero-homepage-services {
  position: relative;
  z-index: 2;
}

.gridzero-service-grid,
.gridzero-trust-grid {
  width: min(var(--gridzero-content-width), calc(100% - 2rem));
  margin-inline: auto;
}

.gridzero-service-card,
.gridzero-trust-card {
  min-height: 100%;
  overflow: hidden;
}

.gridzero-service-card {
  padding: 1.15rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.028);
  border-radius: 0.5rem;
  backdrop-filter: blur(5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.gridzero-card-shell--dark .gridzero-card-icon,
.gridzero-trust-card .gridzero-trust-icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 0 1rem;
  border-radius: 999px;
}

.gridzero-card-shell--dark .gridzero-card-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.gridzero-card-shell--dark .gridzero-card-icon svg,
.gridzero-card-shell--dark .gridzero-card-icon img,
.gridzero-trust-card .gridzero-trust-icon svg,
.gridzero-trust-card .gridzero-trust-icon img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
}

.gridzero-service-card h4,
.gridzero-trust-card h4 {
  margin-bottom: 0.5rem;
}

.gridzero-service-card a {
  color: #ffffff;
  text-decoration: none;
}

.gridzero-service-card a:hover {
  color: #ffffff;
}

.gridzero-trust-card {
  padding: 1.1rem;
  text-align: center;
  background: #fcfcfc;
  border: 1px solid rgba(0, 0, 0, 0.028);
  border-radius: 0.5rem;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.028);
}

.gridzero-trust-card .gridzero-trust-icon {
  background: rgba(6, 88, 132, 0.055);
  border: 1px solid rgba(6, 88, 132, 0.085);
  color: var(--gridzero-blue);
}

.gridzero-trust-card h4 {
  color: var(--gridzero-heading);
}

.gridzero-homepage-cta {
  background: #0a0a0a;
}

.gridzero-homepage-cta .gridzero-cta-inner {
  width: min(900px, calc(100% - 2rem));
  margin-inline: auto;
}

.gridzero-homepage-cta .wp-block-button__link {
  background: var(--gridzero-blue);
}

.gridzero-homepage-cta .wp-block-button__link:hover {
  background: #044764;
}

.page-slug-off-grid .wp-block-post-content,
.page-slug-mobile-power .wp-block-post-content,
.page-slug-well-backup .wp-block-post-content {
  padding-bottom: 0;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) {
  --gridzero-service-page-section-gap: clamp(3rem, 5vw, 4.5rem);
  --gridzero-service-page-inner-width: min(var(--gridzero-content-width), calc(100% - clamp(1rem, 3vw, 2rem)));
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-cover:first-child {
  min-height: clamp(30rem, 68vh, 48rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: calc(var(--gridzero-header-offset) * 0.82) !important;
  padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-cover:first-child .wp-block-cover__inner-container {
  width: var(--gridzero-service-page-inner-width);
  margin-inline: auto;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-cover:first-child .wp-block-group {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-group.alignfull {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: var(--gridzero-service-page-section-gap) !important;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-group.alignfull + .wp-block-group.alignfull {
  padding-top: var(--gridzero-service-page-section-gap) !important;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-group.alignfull > h2,
body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-group.alignfull > p,
body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-group.alignfull > .wp-block-columns,
body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-group.alignfull > .wp-block-buttons,
body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-group.alignfull > .wp-block-table,
body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-group.alignfull > .wp-block-list {
  width: var(--gridzero-service-page-inner-width);
  margin-inline: auto;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(2.45rem, 4.5vw, 4.25rem);
  line-height: 1.08;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.95rem, 2.8vw, 3.1rem);
  line-height: 1.14;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.18;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content h4 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  line-height: 1.2;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content p {
  line-height: 1.72;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content .wp-block-columns {
  gap: clamp(1rem, 2vw, 1.5rem);
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content .wp-block-columns .wp-block-group.has-background {
  border-radius: 0.75rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content .wp-block-columns .wp-block-group.has-background p,
body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content .wp-block-columns .wp-block-group.has-background li {
  line-height: 1.62;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content .wp-block-columns .wp-block-group.has-background > :last-child {
  margin-bottom: 0;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content table {
  width: 100%;
  border-collapse: collapse;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content th,
body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content figure.wp-block-table {
  margin: 0;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content figure.wp-block-table table {
  min-width: 640px;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content figure.wp-block-table thead th {
  background: rgba(6, 88, 132, 0.07);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content figure.wp-block-table tbody tr:nth-child(odd) {
  background: rgba(0, 0, 0, 0.02);
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content figure.wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content thead th {
  color: var(--gridzero-heading);
  background: rgba(6, 88, 132, 0.05);
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content details {
  padding: 1rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.7rem;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content details + details {
  margin-top: 0.85rem;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content summary::-webkit-details-marker {
  display: none;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content details > :not(summary) {
  margin-top: 0.75rem;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content .wp-block-list {
  padding-left: 1.1em;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content .wp-block-list li {
  margin-bottom: 0.65rem;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content .wp-block-list li:last-child {
  margin-bottom: 0;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content .wp-block-group.has-background > p:first-of-type {
  margin-top: 0;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-group.alignfull:last-child,
body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-cover.alignfull:last-child {
  text-align: center;
  padding-top: clamp(3.5rem, 6vw, 5rem) !important;
  padding-bottom: clamp(3.5rem, 6vw, 5rem) !important;
}

body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-group.alignfull:last-child .wp-block-buttons,
body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-cover.alignfull:last-child .wp-block-buttons {
  justify-content: center;
}

.gridzero-dark-band {
  margin-bottom: 0 !important;
}

.gridzero-dark-band p {
  max-width: 600px;
  margin-inline: auto;
}

.gridzero-site-footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  color: #ffffff;
  background: var(--gridzero-charcoal);
}

.gridzero-footer__before-footer {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(14, 63, 81, 0.78) 0%, rgba(6, 88, 132, 0.76) 100%);
}

.gridzero-footer__before-footer .container {
  padding-block: 0.65rem;
}

.gridzero-footer__before-footer p {
  margin: 0;
  color: inherit;
}

.gridzero-footer__before-footer a {
  color: inherit;
  text-decoration: none;
}

.gridzero-footer__outer {
  padding-block: 0.85rem 0.7rem;
}

.gridzero-footer__widgets {
  display: block;
  padding-block: 0.9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.008);
}

.gridzero-footer__widgets .container {
  width: min(var(--gridzero-content-width), calc(100% - clamp(1rem, 3vw, 2rem)));
  margin-inline: auto;
}

.gridzero-footer__widgets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  min-height: 6.25rem;
}

.gridzero-footer__widget-col {
  flex: 1 1 calc(25% - 1rem);
  min-width: 13rem;
  min-height: 6.25rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
  background: rgba(255, 255, 255, 0.01);
}

.gridzero-footer__widget-col .widget {
  min-height: 5.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 0.35rem;
}

.gridzero-footer__copyright-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
}

.gridzero-footer__copyright-text p {
  margin: 0;
}

.gridzero-footer__social-wrap {
  display: flex;
  justify-content: flex-end;
}

.gridzero-footer__social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.gridzero-footer__social-link {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.gridzero-footer__social-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gridzero-footer__social-icon {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.gridzero-site-footer .wp-block-button__link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.gridzero-site-footer .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.05);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (min-width: 1000px) {
  .gridzero-header__search-btn {
    display: inline-flex;
  }

  .gridzero-header__menu-toggle {
    display: none;
  }

  body.home .gridzero-site-header.is-scrolled .gridzero-header__utility,
  body:not(.home) .gridzero-site-header .gridzero-header__utility {
    background: var(--gridzero-header-bg-scrolled);
    color: var(--gridzero-body);
  }

  body.home .gridzero-site-header.is-scrolled .gridzero-header__main,
  body:not(.home) .gridzero-site-header .gridzero-header__main {
    background: var(--gridzero-header-bg-scrolled);
    border-bottom-color: rgba(0, 0, 0, 0.04);
    box-shadow: var(--gridzero-header-shadow);
    backdrop-filter: blur(12px);
    color: var(--gridzero-body);
  }

  .gridzero-header__mobile-search {
    display: none;
  }

  .gridzero-header__mobile-panel {
    display: none !important;
  }

  body.home .gridzero-homepage-hero {
    padding-top: calc(var(--gridzero-header-offset) * 0.64) !important;
  }

  body.home .gridzero-homepage-services {
    margin-top: -92px;
  }

}

@media (max-width: 999px) {
  .gridzero-header__utility-inner,
  .gridzero-header__main-inner {
    width: min(var(--gridzero-content-width), calc(100% - 1rem));
  }

  .gridzero-header__utility-inner {
    min-height: 38px;
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 0.35rem;
  }

  .gridzero-header__social {
    order: 2;
  }

  .gridzero-header__notice {
    order: 1;
    flex: 1 1 100%;
    text-align: center;
  }

  .gridzero-header__utility-spacer {
    display: none;
  }

  .gridzero-header__main-inner {
    min-height: 98px;
    flex-wrap: wrap;
    padding-block: 0.6rem;
  }

  .gridzero-header__brand {
    flex: 0 0 auto;
  }

  .gridzero-header__nav-area {
    width: 100%;
    justify-content: space-between;
  }

  .gridzero-header__nav {
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .gridzero-header__menu {
    display: none;
  }

  .gridzero-header__menu-buttons {
    margin-left: auto;
  }

  .gridzero-header__menu-toggle {
    display: inline-flex;
  }

  .gridzero-header__search-btn {
    display: none;
  }

  .gridzero-header__mobile-search {
    display: inline-grid;
  }

  .gridzero-header__mobile-panel {
    display: block;
  }

  .gridzero-homepage-hero {
    min-height: clamp(34rem, 74vh, 48rem) !important;
    padding-top: calc(var(--gridzero-header-offset) * 0.78) !important;
    padding-bottom: clamp(3.5rem, 8vw, 5rem) !important;
  }

  .gridzero-hero-inner {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
  }

  .gridzero-service-card,
  .gridzero-trust-card {
    padding: 1rem;
  }

  .gridzero-service-grid,
  .gridzero-trust-grid {
    width: min(var(--gridzero-content-width), calc(100% - 1rem));
  }

  .gridzero-footer__copyright-inner {
    align-items: flex-start;
  }

  .gridzero-search--overlay {
    padding-inline: 0.5rem;
  }

  .gridzero-search__form {
    flex-direction: column;
  }

  .gridzero-search__submit {
    width: 100%;
    flex-basis: auto;
  }

  body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-cover:first-child {
    min-height: clamp(26rem, 64vh, 40rem);
    padding-bottom: clamp(2.5rem, 7vw, 4rem) !important;
  }

  body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-group.alignfull {
    padding-bottom: clamp(2.75rem, 6vw, 4rem) !important;
  }

  body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content .wp-block-columns .wp-block-group.has-background {
    padding: 1rem;
  }
}

@media (max-width: 690px) {
  .gridzero-header__utility-inner,
  .gridzero-header__main-inner,
  .gridzero-header__mobile-panel-inner,
  .gridzero-footer__copyright-inner {
    width: min(var(--gridzero-content-width), calc(100% - 0.75rem));
  }

  .gridzero-header__utility {
    font-size: 12px;
  }

  .gridzero-header__notice-link {
    font-size: 12px;
  }

  .gridzero-header__logo {
    width: min(180px, 60vw);
  }

  .gridzero-header__menu-toggle a,
  .gridzero-header__search-btn a,
  .gridzero-header__mobile-search,
  .gridzero-header__mobile-panel-close {
    width: 2.5rem;
    height: 2.5rem;
  }

  .gridzero-homepage-hero {
    min-height: 34rem !important;
    padding-top: calc(var(--gridzero-header-offset) * 0.72) !important;
    padding-bottom: 4rem !important;
  }

  .gridzero-homepage-services,
  .gridzero-homepage-trust,
  .gridzero-homepage-cta {
    padding-inline: 0;
  }

  .gridzero-homepage-services {
    margin-top: -48px;
  }

  .gridzero-homepage-cta {
    padding-block: 4rem !important;
  }

  .gridzero-footer__copyright-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gridzero-footer__widget-col {
    flex-basis: 100%;
    min-width: 0;
  }

  .gridzero-footer__social-wrap {
    justify-content: center;
  }

  .gridzero-footer__social {
    justify-content: center;
  }

  body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-cover:first-child {
    min-height: 30rem;
    padding-top: calc(var(--gridzero-header-offset) * 0.74) !important;
  }

  body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content > .wp-block-cover:first-child .wp-block-group {
    padding: 1rem;
  }

  body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content h1 {
    font-size: clamp(2.05rem, 8vw, 2.75rem);
  }

  body:is(.page-slug-off-grid, .page-slug-mobile-power, .page-slug-well-backup) .wp-block-post-content h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
}
