/* Selected header 02A: light, two-level navigation, isolated from v3 content.
 * Source: prototyp-header-hero/?v=4. Existing Onest and Energy Center tokens.
 * The logo's transparent filter preserves alpha at its edges; no top/bottom rules. */
html { --energy-admin-offset: 0px; scroll-padding-top: calc(144px + var(--energy-admin-offset)); }
html:has(body.admin-bar) { --energy-admin-offset: 32px; }
@media (max-width: 782px) { html:has(body.admin-bar) { --energy-admin-offset: 46px; } }
.ec3-header-02a { position: fixed; z-index: 100; top: calc(40px + var(--energy-admin-offset)); right: 0; left: 0; color: var(--ink); pointer-events: none; transition: transform 240ms var(--ease); }
.ec3-header-02a.is-offset { transform: translateY(-32px); }
.ec3-h02-inner { position: relative; display: grid; grid-template-columns: 208px minmax(0,1fr); align-items: center; gap: 24px; width: var(--header-width); margin: 0 auto; padding: 0 16px 0 24px; border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 28px #11120f0a; pointer-events: auto; }
.ec3-header-02a.is-scrolled .ec3-h02-inner { box-shadow: 0 12px 32px #11120f14; }
.ec3-h02-logo { display: flex; align-items: center; flex-shrink: 0; width: 192px; border: 0; padding: 0; background: transparent; box-shadow: none; }
.ec3-h02-logo img { display: block; width: 100%; height: auto; border: 0; box-shadow: none; }
.ec3-h02-content { border-left: 1px solid var(--line); padding-left: 24px; }
.ec3-h02-utility { display: flex; align-items: center; justify-content: flex-end; gap: 32px; min-height: 40px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 16px; }
.ec3-h02-utility-caption { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--muted); }
.ec3-h02-ring { display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; border: 2px solid var(--yellow); border-radius: 50%; }
.ec3-h02-utility-caption .ec3-h02-ring { width: 8px; height: 8px; flex-basis: 8px; }
.ec3-h02-utility nav { display: flex; align-items: center; gap: 24px; }
.ec3-h02-utility nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.ec3-header-02a svg, .ec3-h02-dialog svg { width: 20px; height: 20px; flex: 0 0 20px; stroke-width: 1.7; }
.ec3-h02-utility svg { width: 12px; height: 12px; flex-basis: 12px; }
.ec3-h02-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; font-size: 12px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.ec3-h02-primary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.ec3-h02-nav { min-width: 0; }
.ec3-h02-nav ul { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.ec3-h02-nav-link, .ec3-h02-offer-menu > summary { display: inline-flex; position: relative; align-items: center; min-height: 44px; padding: 8px 0; white-space: nowrap; font-size: 14px; font-weight: 500; line-height: 20px; }
.ec3-h02-nav-link::before, .ec3-h02-offer-menu > summary::before { content: ''; position: absolute; width: 6px; height: 6px; border: 2px solid var(--yellow); border-radius: 50%; left: calc(50% - 3px); bottom: -3px; opacity: 0; transition: opacity 180ms var(--ease); }
.ec3-h02-offer-menu > summary { gap: 6px; cursor: pointer; list-style: none; }
.ec3-header-02a summary::-webkit-details-marker, .ec3-h02-dialog summary::-webkit-details-marker { display: none; }
.ec3-h02-offer-menu > summary svg { width: 14px; height: 14px; flex-basis: 14px; transition: transform 180ms var(--ease); }
.ec3-h02-offer-menu[open] > summary svg { transform: rotate(180deg); }
.ec3-h02-offer-menu[open] > summary::before { opacity: 1; }
.ec3-h02-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.ec3-h02-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 8px 8px 8px 24px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.ec3-h02-arrow { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: var(--ink); color: var(--yellow); }
.ec3-h02-arrow svg { transition: transform 180ms var(--ease); }
.ec3-h02-menu-trigger { display: none; position: relative; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); cursor: pointer; }
.ec3-h02-menu-trigger span { position: absolute; width: 18px; height: 1.5px; background: currentColor; }
.ec3-h02-menu-trigger span:first-child { transform: translateY(-3px); }
.ec3-h02-menu-trigger span:last-child { transform: translateY(3px); }
.ec3-header-02a a, .ec3-header-02a button, .ec3-header-02a summary, .ec3-h02-dialog a, .ec3-h02-dialog button, .ec3-h02-dialog summary { touch-action: manipulation; }
.ec3-header-02a :is(a,button,summary):focus-visible, .ec3-h02-dialog :is(a,button,summary):focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.ec3-h02-offer-panel { position: absolute; top: calc(100% + 12px); left: 0; display: grid; grid-template-columns: 1fr 2fr; width: 100%; max-height: calc(100dvh - 192px - var(--energy-admin-offset)); overflow: auto; overscroll-behavior: contain; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 24px 64px #11120f21; }
.ec3-h02-offer-intro { position: relative; overflow: hidden; padding: 32px; border-right: 1px solid var(--line); }
.ec3-h02-eyebrow { display: block; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; }
.ec3-h02-offer-intro .ec3-h02-eyebrow { color: var(--muted); }
.ec3-h02-offer-intro p { position: relative; z-index: 1; margin: 20px 0 0; font-size: 30px; line-height: 36px; letter-spacing: -.03em; }
.ec3-h02-ring-stop { display: inline-block; width: .23em; height: .23em; margin-left: .07em; border: .035em solid var(--yellow); border-radius: 50%; vertical-align: .02em; }
.ec3-h02-offer-intro img { position: absolute; width: 260px; max-width: none; height: auto; bottom: -110px; right: -50px; opacity: .6; }
.ec3-h02-offer-content { padding: 24px; }
.ec3-h02-offer-links { display: grid; }
.ec3-h02-offer-link { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.ec3-h02-offer-link > span:not(.ec3-h02-ring) { flex: 1; }
.ec3-h02-offer-link strong { display: block; font-size: 16px; line-height: 24px; font-weight: 500; }
.ec3-h02-offer-link small { display: block; color: var(--muted); font-size: 12px; line-height: 20px; }
.ec3-h02-offer-link > svg { width: 18px; height: 18px; flex-basis: 18px; margin-left: 24px; }
.ec3-h02-all-offers { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-top: 16px; padding: 12px 16px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; font-weight: 500; }

body:has(.ec3-h02-dialog[open]) { overflow: hidden; }
.ec3-h02-dialog { position: fixed; inset: calc(12px + var(--energy-admin-offset)) 12px auto; width: auto; max-width: none; max-height: calc(100dvh - 24px - var(--energy-admin-offset)); margin: 0; padding: 24px; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); overscroll-behavior: contain; }
.ec3-h02-dialog::backdrop { background: #11120f99; backdrop-filter: blur(6px); }
.ec3-h02-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ec3-h02-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--white); cursor: pointer; }
.ec3-h02-mobile-nav { display: grid; }
.ec3-h02-mobile-link, .ec3-h02-mobile-offers > summary { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.03em; list-style: none; cursor: pointer; }
.ec3-h02-mobile-link svg { width: 18px; height: 18px; flex-basis: 18px; }
.ec3-h02-mobile-offers > div { display: grid; padding: 12px 0 12px 16px; }
.ec3-h02-mobile-offers > div a { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; line-height: 24px; }
.ec3-h02-mobile-offers[open] > summary svg { transform: rotate(45deg); }
.ec3-h02-mobile-contact { display: grid; gap: 12px; margin-top: 32px; }
.ec3-h02-mobile-contact > span { color: var(--muted); font-size: 14px; }
.ec3-h02-mobile-phone { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 30px; line-height: 36px; letter-spacing: -.035em; }
.ec3-h02-mobile-contact .ec3-h02-button { margin-top: 12px; min-height: 56px; }
.ec3-h02-dialog .ec3-h02-arrow { width: 40px; height: 40px; flex-basis: 40px; background: var(--white); color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .ec3-h02-nav-link:hover::before, .ec3-h02-offer-menu > summary:hover::before { opacity: 1; }
  .ec3-h02-phone:hover, .ec3-h02-utility nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .ec3-h02-button:hover { background: var(--ink); color: var(--white); }
  .ec3-h02-button:hover .ec3-h02-arrow svg { transform: translateX(2px); }
  .ec3-h02-offer-link:hover { background: var(--yellow); }
  .ec3-h02-offer-link:hover small { color: var(--ink); }
  .ec3-h02-offer-link:hover .ec3-h02-ring { border-color: var(--ink); }
  .ec3-h02-all-offers:hover { text-decoration: underline; text-underline-offset: 4px; }
}
.ec3-h02-button:active, .ec3-h02-menu-trigger:active, .ec3-h02-close:active { transform: translateY(1px); }
.ec3-h02-offer-link:focus-visible { outline-offset: -4px; background: var(--yellow); color: var(--ink); }
.ec3-h02-offer-link:focus-visible small { color: var(--ink); }
.ec3-h02-offer-link:focus-visible .ec3-h02-ring { border-color: var(--ink); }

@media (max-width: 1300px) {
  .ec3-h02-inner { grid-template-columns: 184px minmax(0,1fr); gap: 16px; }
  .ec3-h02-logo { width: 176px; }
  .ec3-h02-utility { gap: 24px; }
  .ec3-h02-utility-caption { font-size: 10px; }
  .ec3-h02-actions { gap: 12px; }
}
@media (max-width: 1100px) {
  html { scroll-padding-top: calc(128px + var(--energy-admin-offset)); }
  .ec3-h02-nav, .ec3-h02-utility { display: none; }
  .ec3-h02-inner { grid-template-columns: 1fr auto; padding: 8px 16px 8px 24px; }
  .ec3-h02-content { border: 0; padding: 0; }
  .ec3-h02-primary { min-height: 64px; }
  .ec3-h02-menu-trigger { display: flex; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: calc(80px + var(--energy-admin-offset)); }
  /* The phone header keeps one geometry, so the scroll tuck would only shift it;
   * park it at the compact offset from the start instead. */
  .ec3-header-02a { top: calc(8px + var(--energy-admin-offset)); }
  .ec3-header-02a.is-offset { transform: none; }
  .ec3-h02-inner { min-height: 64px; padding: 8px 8px 8px 16px; gap: 8px; border-radius: 12px; }
  .ec3-h02-logo { width: 144px; }
  .ec3-h02-primary { min-height: 48px; }
  .ec3-h02-actions { gap: 8px; }
  .ec3-header-02a .ec3-h02-cta { display: none; }
}
/* Compact sticky state shows only the primary navigation. */
/* The fixed header is isolated from page flow; interpolate its layout so the
 * background, logo and controls reach their compact geometry together. */
.ec3-h02-inner { transition: grid-template-columns 240ms var(--ease), gap 240ms var(--ease), box-shadow 240ms var(--ease); }
.ec3-h02-logo { transition: width 240ms var(--ease); }
.ec3-h02-logo img { max-height: 96px; object-fit: contain; object-position: left center; transition: max-height 240ms var(--ease); }
.ec3-h02-content { transition: padding-left 240ms var(--ease); }
.ec3-h02-primary { transition: min-height 240ms var(--ease); }
.ec3-header-02a .ec3-h02-cta { transition: min-height 240ms var(--ease), padding 240ms var(--ease), gap 240ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease); }
.ec3-header-02a .ec3-h02-cta .ec3-h02-arrow { transition: width 240ms var(--ease), height 240ms var(--ease), flex-basis 240ms var(--ease); }
.ec3-header-02a.is-scrolled .ec3-h02-logo { width: 144px; }
.ec3-header-02a.is-scrolled .ec3-h02-logo img { max-height: 48px; object-fit: contain; object-position: left center; }
.ec3-header-02a.is-scrolled .ec3-h02-primary { min-height: 48px; }
.ec3-header-02a.is-scrolled .ec3-h02-cta { min-height: 44px; padding: 4px 4px 4px 16px; gap: 16px; }
.ec3-header-02a.is-scrolled .ec3-h02-cta .ec3-h02-arrow { width: 32px; height: 32px; flex-basis: 32px; }
@media (min-width: 1101px) {
  .ec3-h02-utility { height: 40px; min-height: 0; overflow: hidden; transition: height 240ms var(--ease), opacity 180ms var(--ease), visibility 0s; }
  .ec3-header-02a.is-scrolled .ec3-h02-utility { height: 0; opacity: 0; visibility: hidden; pointer-events: none; border-bottom-color: transparent; transition: height 240ms var(--ease), opacity 120ms var(--ease), visibility 0s 240ms; }
  .ec3-h02-inner { min-height: 64px; }
  .ec3-header-02a.is-scrolled .ec3-h02-inner { grid-template-columns: 144px minmax(0, 1fr); gap: 16px; min-height: 64px; }
  .ec3-header-02a.is-scrolled .ec3-h02-content { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec3-header-02a, .ec3-header-02a *, .ec3-header-02a *::before, .ec3-h02-dialog * { transition: none !important; animation: none !important; }
}

/* WordPress lists preserve the reference's link geometry and active state. */
.ec3-h02-utility .energy-v3-menu-list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.ec3-h02-mobile-nav .energy-v3-menu-list { display: contents; list-style: none; margin: 0; padding: 0; }
.ec3-h02-mobile-nav .energy-v3-menu-item { min-width: 0; }
.ec3-h02-generic-panel { grid-template-columns: minmax(0, 1fr); }
.ec3-h02-nav .current-menu-item > .ec3-h02-nav-link::before,
.ec3-h02-nav .current-menu-ancestor > details > summary::before,
.ec3-h02-nav .current-menu-item > details > summary::before { opacity: 1; }
.ec3-h02-offer-link[aria-current="page"], .ec3-h02-mobile-nav a[aria-current="page"], .ec3-h02-utility a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.ec3-h02-mobile-offers > div .ec3-h02-mobile-parent { margin-top: 4px; }
.ec3-h02-mobile-nav :is(a, summary) { overflow-wrap: anywhere; }
.ec3-h02-mobile-nav .ec3-h02-mobile-link, .ec3-h02-mobile-offers > summary { gap: 16px; }
.ec3-h02-nav-link, .ec3-h02-offer-menu > summary { white-space: normal; }
.ec3-h02-dialog { overflow-y: auto; }
