html,
body {
  background: #000;
}

body {
  min-height: 100vh;
}

[data-static-backtotop] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

[data-static-backtotop].is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

[data-static-drawer-backdrop] {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

[data-static-drawer] {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 51;
  width: 20rem;
  max-width: 88vw;
  height: 100%;
  overflow-y: auto;
  background: #000;
}

@media (min-width: 1024px) {
  [data-static-drawer],
  [data-static-drawer-backdrop] {
    display: none !important;
  }
}
/* WordPress block theme underlines all links in post content — reset inside EnAxi blocks */
.entry-content .wp-block-enaxi-hero nav a,
.entry-content .enaxi-page-hero nav a,
.wp-block-enaxi-hero nav a,
.enaxi-page-hero nav a,
.entry-content [class*="wp-block-enaxi-"] a:not(.hmi-btn):not(.hmi-btn-solid),
.entry-content .enaxi-imported-section a:not(.hmi-btn):not(.hmi-btn-solid) {
  text-decoration: none !important;
  text-decoration-line: none !important;
  box-shadow: none;
}

.entry-content .wp-block-enaxi-hero nav a:hover,
.entry-content .enaxi-page-hero nav a:hover,
.wp-block-enaxi-hero nav a:hover,
.enaxi-page-hero nav a:hover {
  text-decoration: none !important;
}

/* Breadcrumbs: match React CompanyPageHero (text-white/30, chevron white/20, current = accent) */
.enaxi-page-hero nav a.enaxi-breadcrumb-link,
.wp-block-enaxi-hero nav a.enaxi-breadcrumb-link,
.entry-content .enaxi-page-hero nav a.enaxi-breadcrumb-link,
.entry-content .wp-block-enaxi-hero nav a.enaxi-breadcrumb-link {
  color: color-mix(in srgb, #fff 30%, transparent) !important;
}

.enaxi-page-hero nav a.enaxi-breadcrumb-link:hover,
.wp-block-enaxi-hero nav a.enaxi-breadcrumb-link:hover,
.entry-content .enaxi-page-hero nav a.enaxi-breadcrumb-link:hover,
.entry-content .wp-block-enaxi-hero nav a.enaxi-breadcrumb-link:hover {
  color: #fff !important;
}

.enaxi-page-hero nav .enaxi-breadcrumb-separator,
.wp-block-enaxi-hero nav .enaxi-breadcrumb-separator {
  color: color-mix(in srgb, #fff 20%, transparent) !important;
}

.enaxi-page-hero--immersive h1 {
  color: #fff;
}

.enaxi-page-hero--immersive h1 span {
  color: var(--accent-color) !important;
}

/* Hero description list: enaxi.cy uses white bold labels + white bullets */
.enaxi-page-hero .enaxi-hero-description strong,
.wp-block-enaxi-hero .enaxi-hero-description strong,
.entry-content .enaxi-page-hero .enaxi-hero-description strong,
.entry-content .wp-block-enaxi-hero .enaxi-hero-description strong {
  color: #fff !important;
  font-weight: 700;
}

.enaxi-page-hero .enaxi-hero-description .bg-white,
.wp-block-enaxi-hero .enaxi-hero-description .bg-white {
  background-color: #fff !important;
}

.hmi-btn,
.hmi-btn:hover,
.hmi-btn:focus,
.hmi-btn-solid,
.hmi-btn-solid:hover,
.hmi-btn-solid:focus,
.hmi-btn span,
.hmi-btn-solid span,
.electric-card a,
.electric-card a:hover,
.electric-card a:focus {
  text-decoration: none;
}

/*
 * theme.json elements.link + global-styles load after main.css and set anchors to white.
 * Component-layer .hmi-btn* loses cascade — restore full enaxi.cy button chrome here.
 */
.entry-content a.hmi-btn-solid,
.entry-content button.hmi-btn-solid,
.entry-content span.hmi-btn-solid,
a.hmi-btn-solid,
button.hmi-btn-solid,
span.hmi-btn-solid,
.hmi-btn-solid {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  background-color: var(--accent-color) !important;
  border: 1px solid var(--accent-color) !important;
  border-radius: 0 !important;
  color: #000 !important;
  font-family: "Outfit", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  line-height: 1.25;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-content a.hmi-btn-solid:hover,
.entry-content button.hmi-btn-solid:hover,
a.hmi-btn-solid:hover,
button.hmi-btn-solid:hover,
.hmi-btn-solid:hover {
  color: #000 !important;
  box-shadow:
    0 0 30px rgba(var(--accent-rgb), 0.5),
    0 0 80px rgba(var(--accent-rgb), 0.2);
}

.entry-content a.hmi-btn,
.entry-content button.hmi-btn,
a.hmi-btn,
button.hmi-btn,
.hmi-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  background: transparent !important;
  border: 1px solid var(--accent-color) !important;
  border-radius: 0 !important;
  color: var(--accent-color) !important;
  font-family: "Outfit", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  line-height: 1.25;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-content a.hmi-btn:hover,
.entry-content button.hmi-btn:hover,
a.hmi-btn:hover,
button.hmi-btn:hover,
.hmi-btn:hover {
  color: #fff !important;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
}

.hmi-btn-solid span,
.hmi-btn span {
  position: relative;
  z-index: 1;
  color: inherit !important;
}

/* Package / full-width quote buttons: title case, larger type (enaxi.cy). */
a.hmi-btn-solid.w-full,
.hmi-btn-solid.w-full {
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Solid CTA arrows must stay black (WP link color used to make currentColor white). */
a.hmi-btn-solid svg,
button.hmi-btn-solid svg,
span.hmi-btn-solid svg,
.hmi-btn-solid > svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: #000;
  stroke: currentColor;
  fill: none;
}

a.hmi-btn svg,
button.hmi-btn svg,
.hmi-btn > svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: inherit;
  stroke: currentColor;
  fill: none;
}

.enaxi-imported-section a,
.enaxi-imported-section a:hover,
.enaxi-imported-section a:focus,
.enaxi-imported-section .underline,
.enaxi-imported-section .underline:hover,
.enaxi-imported-section .underline:focus {
  text-decoration: none !important;
}

.enaxi-division-grid .enaxi-card-link,
.enaxi-division-grid .enaxi-card-link:hover,
.enaxi-division-grid .enaxi-card-link:focus,
.enaxi-division-grid .enaxi-card-link *,
.enaxi-division-grid .enaxi-card-link *:hover,
.enaxi-division-grid .enaxi-card-link *:focus {
  text-decoration: none !important;
}

.enaxi-site-footer a,
.enaxi-site-footer a:hover,
.enaxi-site-footer a:focus,
.enaxi-site-footer a *,
.enaxi-site-footer a *:hover,
.enaxi-site-footer a *:focus {
  text-decoration: none !important;
}

.enaxi-site-footer .enaxi-footer-link,
.enaxi-site-footer .enaxi-footer-link:hover,
.enaxi-site-footer .enaxi-footer-link:focus {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.enaxi-site-footer a.enaxi-footer-agency,
.enaxi-site-footer a.enaxi-footer-agency:hover,
.enaxi-site-footer a.enaxi-footer-agency:focus {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* Inactive division tabs: theme.json link color overrides Tailwind text-white/60 */
.enaxi-company-switcher a.enaxi-switcher-tab--inactive,
.enaxi-company-switcher a.enaxi-switcher-tab--inactive span {
  color: rgb(255 255 255 / 0.6) !important;
}

.enaxi-company-switcher a.enaxi-switcher-tab--inactive:hover,
.enaxi-company-switcher a.enaxi-switcher-tab--inactive:hover span {
  color: rgb(255 255 255 / 0.9) !important;
}

.enaxi-company-switcher a.enaxi-switcher-tab--active,
.enaxi-company-switcher a.enaxi-switcher-tab--active span {
  color: #fff !important;
}

.enaxi-company-switcher .enaxi-switcher-link,
.enaxi-company-switcher .enaxi-switcher-link:hover,
.enaxi-company-switcher .enaxi-switcher-link:focus,
.enaxi-company-switcher .enaxi-switcher-link *,
.enaxi-company-switcher .enaxi-switcher-link *:hover,
.enaxi-company-switcher .enaxi-switcher-link *:focus,
.enaxi-company-navigation .enaxi-company-nav-link,
.enaxi-company-navigation .enaxi-company-nav-link:hover,
.enaxi-company-navigation .enaxi-company-nav-link:focus,
.enaxi-company-navigation .enaxi-company-nav-link *,
.enaxi-company-navigation .enaxi-company-nav-link *:hover,
.enaxi-company-navigation .enaxi-company-nav-link *:focus {
  text-decoration: none !important;
  box-shadow: none;
}

.enaxi-company-navigation .enaxi-company-nav-link.is-active,
.enaxi-company-navigation .enaxi-company-nav-link.is-active:hover,
.enaxi-company-navigation .enaxi-company-nav-link.is-active:focus {
  color: var(--accent-color) !important;
  background-color: rgba(var(--accent-rgb), 0.12) !important;
  border-bottom: 2px solid var(--accent-color) !important;
}

/* FAQ accordion — smooth height/opacity like enaxi.cy (Framer Motion 0.3s) */
.enaxi-faq-list .enaxi-faq-item {
  transition: border-color 0.2s ease;
}

.enaxi-faq-list .enaxi-faq-item.is-open {
  border-color: rgba(var(--accent-rgb), 0.35);
}

.enaxi-faq-list .enaxi-faq-summary {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
}

.enaxi-faq-list .enaxi-faq-toggle-icon {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enaxi-faq-list .enaxi-faq-item.is-open .enaxi-faq-toggle-icon {
  transform: rotate(45deg);
}

.enaxi-faq-list .enaxi-faq-answer-grid {
  overflow: hidden;
  height: 0;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enaxi-faq-list .enaxi-faq-answer {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.enaxi-faq-list .enaxi-faq-item.is-open .enaxi-faq-answer {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .enaxi-faq-list .enaxi-faq-answer-grid,
  .enaxi-faq-list .enaxi-faq-answer,
  .enaxi-faq-list .enaxi-faq-toggle-icon,
  .enaxi-faq-list .enaxi-faq-item {
    transition: none;
  }
}

/* CTA spotlight (residential assessment band on enaxi.cy) */
.enaxi-cta-banner--spotlight {
  position: relative;
  overflow: hidden;
}

.enaxi-cta-banner--spotlight .enaxi-cta-spotlight-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.enaxi-cta-banner--spotlight .enaxi-cta-spotlight-glow > div {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 9999px;
  opacity: 0.04;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-color), transparent 70%);
}
