/* ==========================================================================
   Evoltra Energy — global.css
   Header, footer, skip-link, focus, hamburger, shared tokens.
   Page-specific visual systems remain in /assets/css/*.css
   ========================================================================== */

:root {
  --ee-navy-1000: #04101a;
  --ee-navy-950: #071522;
  --ee-navy-900: #0a1e2f;
  --ee-lime: #cde563;
  --ee-lime-2: #daf277;
  --ee-ink: #08151b;
  --ee-header-h: 78px;
  --ee-ease: cubic-bezier(.2, .8, .2, 1);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--ee-lime);
  color: #0b1820;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 13px;
}
.skip-link:focus {
  top: 12px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 14px 0;
  transition: background .3s var(--ee-ease), border-color .3s var(--ee-ease), backdrop-filter .3s var(--ee-ease);
}
.site-header.is-scrolled {
  background: rgba(5, 16, 27, .80);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header-inner {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}

/* LOGO_PENDING — textual wordmark only */
.site-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.035em;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
.site-brand:hover { color: #fff; }
.site-brand-mark {
  letter-spacing: -0.04em;
}
.site-brand-name {
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-left: .28em;
  opacity: .92;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: 16px;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
}
@media (max-width: 1280px) {
  .site-header-inner { gap: 14px; }
  .site-nav { gap: 11px; font-size: 13px; }
  .site-cta { height: 42px; padding: 0 14px; font-size: 13px; }
}
@media (min-width: 1180px) {
  .site-nav { gap: 22px; }
}
@media (min-width: 1440px) {
  .site-nav { gap: 26px; }
}
.site-nav > a,
.site-nav-link {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
}
.site-nav > a:hover,
.site-nav-link:hover { color: #fff; }
.site-nav > a.is-active,
.site-nav-link.is-active {
  color: #fff;
}
.site-nav > a.is-active::after,
.site-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--ee-lime);
  opacity: .85;
  border-radius: 9px;
}

.site-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.site-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  width: 260px;
  padding-top: 16px;
  z-index: 230;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .2s var(--ee-ease), transform .2s var(--ee-ease), visibility .2s var(--ee-ease);
}
.site-nav-item:hover .site-dropdown,
.site-nav-item:focus-within .site-dropdown,
.site-nav-item.is-open .site-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.site-dropdown-panel {
  background: rgba(6, 17, 29, .96);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px;
}
.site-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  transition: background .18s ease, color .18s ease;
}
.site-dropdown-link.is-nested {
  padding-left: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, .68);
}
.site-dropdown-link:hover,
.site-dropdown-link:focus-visible {
  background: rgba(255, 255, 255, .055);
  color: #fff;
}
.site-dropdown-link.is-active {
  color: #fff;
  background: rgba(205, 229, 99, .12);
}
.site-dropdown-go {
  font-size: 12px;
  opacity: .38;
  color: var(--ee-lime);
}
.site-dropdown-link:hover .site-dropdown-go,
.site-dropdown-link.is-active .site-dropdown-go {
  opacity: .9;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--ee-lime);
  color: #0b1820 !important;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: -0.015em;
  box-shadow: inset 0 1px rgba(255, 255, 255, .45);
  transition: transform .25s var(--ee-ease), background .25s var(--ee-ease);
  white-space: nowrap;
}
.site-cta:hover {
  background: var(--ee-lime-2);
  transform: translateY(-2px);
  color: #0b1820 !important;
}
.site-cta .arrow {
  font-size: 15px;
  line-height: 1;
}

.site-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.site-burger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 16px;
}
.site-burger-lines span {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header.is-open .site-burger-lines span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-header.is-open .site-burger-lines span:nth-child(2) { opacity: 0; }
.site-header.is-open .site-burger-lines span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-mobile {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% + 8px);
  padding: 18px;
  border-radius: 24px;
  background: rgba(7, 20, 32, .92);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px rgba(4, 16, 26, .35);
}
.site-header.is-open .site-mobile { display: grid; gap: 4px; }
.site-mobile a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 15px;
}
.site-mobile a:hover,
.site-mobile a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.site-mobile-acc {
  display: grid;
}
.site-mobile-acc-bar {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-mobile-acc-bar > a {
  flex: 1;
}
.site-mobile-acc-toggle {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.site-mobile-acc-toggle:hover,
.site-mobile-acc-toggle:focus-visible {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.site-mobile-acc-toggle[aria-expanded="true"] {
  color: var(--ee-lime);
}
.site-mobile-acc-toggle[aria-expanded="true"] .site-mobile-chevron {
  transform: rotate(180deg);
}
.site-mobile-chevron {
  display: block;
  transition: transform .2s var(--ee-ease);
}
.site-mobile-acc-panel {
  display: grid;
  gap: 2px;
  padding: 2px 0 8px 8px;
}
.site-mobile-acc-panel[hidden] {
  display: none;
}
.site-mobile-acc-panel a.is-nested {
  padding-left: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}
.site-mobile-cta {
  margin-top: 8px;
  text-align: center;
}

/* CONTACT_SLOT_HEADER — empty until phase 2 */
.site-contact-slot:empty { display: none; }

footer.site-footer {
  background: var(--ee-navy-1000);
  color: #fff;
  padding: 56px 0 22px;
}
.site-footer-inner {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}
.site-footer-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(0, .75fr)
    minmax(0, .75fr)
    minmax(0, .75fr)
    minmax(0, 1.05fr);
  gap: clamp(22px, 2.5vw, 36px);
  align-items: start;
}
@media (min-width: 1100px) {
  .site-footer-grid {
    grid-template-columns:
      minmax(220px, 1.45fr)
      minmax(120px, .75fr)
      minmax(120px, .75fr)
      minmax(135px, .75fr)
      minmax(200px, 1.05fr);
  }
}
.site-footer-brand,
.site-footer-col {
  min-width: 0;
}
.site-footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .43);
  max-width: 32ch;
  margin-top: 16px;
}
.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .47);
}
.site-footer-col b {
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
  font-weight: 620;
}
.site-footer-col a {
  color: inherit;
  text-decoration: none;
}
.site-footer-col a:hover { color: var(--ee-lime); }
.site-footer-contact {
  font-size: 12.5px;
}
.site-footer-contact a {
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.45;
}
.site-footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: rgba(255, 255, 255, .38);
}

.site-contact-pending {
  color: rgba(255, 255, 255, .38);
  cursor: default;
}

:focus-visible {
  outline: 2px solid var(--ee-lime);
  outline-offset: 3px;
}
.site-nav > a:focus-visible,
.site-nav-link:focus-visible,
.site-dropdown-link:focus-visible,
.site-brand:focus-visible,
.site-cta:focus-visible,
.site-burger:focus-visible,
.site-mobile-acc-toggle:focus-visible {
  outline: 2px solid var(--ee-lime);
  outline-offset: 3px;
}

.as-h3, .as-h4 {
  margin: 0;
}

@media (max-width: 1099px) {
  footer.site-footer { padding: 48px 0 20px; }
  .site-footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 32px;
  }
  .site-footer-contact { grid-column: 2 / -1; }
}

@media (max-width: 980px) {
  .site-nav,
  .site-header-inner > .site-cta { display: none; }
  .site-burger { display: inline-flex; }
}

@media (max-width: 767px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-contact { grid-column: auto; }
}

@media (max-width: 640px) {
  .site-header-inner {
    width: min(1220px, calc(100% - 32px));
    height: 58px;
  }
  .site-brand { font-size: 18px; }
  .site-footer-inner {
    width: min(1220px, calc(100% - 32px));
  }
  .site-footer-legal { flex-direction: column; gap: 8px; }
}

/* 404 */
.ee-404 {
  min-height: 100svh;
  margin: 0;
  background: #04101a;
  color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ee-404 main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  text-align: center;
}
.ee-404 h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.05em;
  font-weight: 620;
  line-height: 1.05;
  margin: 0 0 16px;
}
.ee-404 p {
  color: rgba(255, 255, 255, .55);
  font-size: 17px;
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.ee-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.ee-404-code {
  display: inline-block;
  color: var(--ee-lime);
  letter-spacing: .18em;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
