
/* Eclipse Branding - Storm-inspired base layer (header + tokens) */

:root{
  --storm-teal: #52dbe6;
  --storm-black: #0b0f17;
  --storm-white: #ffffff;
  --storm-ink: rgba(255,255,255,.86);
  --storm-ink-soft: rgba(255,255,255,.68);
  --storm-ink-dim: rgba(255,255,255,.5);

  --storm-bg: #0b0f17;
  --storm-panel: rgba(255,255,255,.06);
  --storm-border: rgba(255,255,255,.14);

  --storm-radius-lg: 22px;
  --storm-radius-md: 16px;
  --storm-radius-sm: 12px;
  --storm-pill: 999px;

  --storm-wrap: 1680px;

  /* JS will update this to the real combined height of topbar+header */
  --storm-header-h: 92px;
}

html{ box-sizing: border-box; }
*, *::before, *::after{ box-sizing: inherit; }

body.eclipse-branding{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: #111;
}

body.eclipse-branding .site{
  padding-top: var(--storm-header-h);
}

/* Ensure no extra theme padding fights us */
body.eclipse-branding .site-content{
  padding-top: 0 !important;
}

/* ----- Topbar ----- */
.storm-topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: var(--storm-teal);
  height: 36px;
}

.storm-topbar__inner{
  max-width: var(--storm-wrap);
  margin: 0 auto;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 18px;
}

.storm-topbar__left,
.storm-topbar__right{
  display:flex;
  align-items:center;
  gap: 12px;
}

.storm-social{
  width: 22px;
  height: 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
  color:#001117;
  transition: transform .15s ease, background .15s ease;
}
.storm-social svg{ width: 14px; height: 14px; fill: currentColor; }
.storm-social:hover{ transform: translateY(-1px); background: rgba(0,0,0,.18); }

.storm-topbar__cta{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.85);
  color: #fff;
  text-decoration: none;
}

.storm-topbar__sep{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(0,0,0,.72);
}

.storm-topbar__link{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(0,0,0,.9);
  text-decoration: none;
}

/* ----- Main header ----- */
.storm-header{
  position: fixed;
  left: 0;
  right: 0;
  top: 36px; /* sits under topbar */
  z-index: 99998;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.storm-header__inner{
  max-width: var(--storm-wrap);
  margin: 0 auto;
  padding: 0 18px;
  height: 56px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.storm-nav{ justify-self: start; }
.storm-actions{ justify-self: end; display:flex; gap: 10px; align-items:center; }

.storm-wordmark img{
  height: 40px;
  width: auto;
  display:block;
}

/* menu */
.storm-menu{
  list-style:none;
  display:flex;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items:center;
}

.storm-menu > li{
  display:flex;
  align-items:center;
}

.storm-menu > li + li::before{
  content: "•";
  color: rgba(255,255,255,.55);
  margin: 0 12px;
  font-size: 10px;
}

.storm-menu a{
  color: rgba(255,255,255,.9);
  text-decoration:none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.storm-action{
  position: relative;

  -webkit-appearance: none;
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  text-decoration:none;
}
.storm-action svg{ width: 16px; height: 16px; fill: currentColor; }

.storm-cart__count{
  position:absolute;
  top: -6px;
  right: -6px;
  background: var(--storm-teal);
  color: #001117;
  font-weight: 900;
  font-size: 11px;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0 4px;
  border: 2px solid rgba(0,0,0,.92);
}

/* Mobile navigation */
.storm-burger{
  -webkit-appearance:none;
  appearance:none;
  border:0;
  background:transparent;
  color:#fff;
  width:34px;
  height:34px;
  padding:7px;
  border-radius:999px;
  cursor:pointer;
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}

.storm-burger span{
  display:block;
  height:2px;
  width:100%;
  border-radius:999px;
  background:currentColor;
}

.storm-mobile-panel{
  position:fixed;
  left:0;
  right:0;
  top:var(--storm-header-h);
  z-index:99997;
  display:none;
  background:rgba(0,0,0,.96);
  border-bottom:1px solid rgba(255,255,255,.14);
  box-shadow:0 18px 38px rgba(0,0,0,.35);
}

.storm-mobile-panel.is-open{
  display:block;
}

.storm-mobile-menu{
  list-style:none;
  margin:0 auto;
  padding:14px 18px 18px;
  max-width:var(--storm-wrap);
}

.storm-mobile-menu li + li{
  border-top:1px solid rgba(255,255,255,.12);
}

.storm-mobile-menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:46px;
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.storm-mobile-menu .storm-menu__quote{
  border-top:0;
  margin-top:10px;
}

.storm-mobile-menu .storm-menu__quote a{
  justify-content:center;
  min-height:44px;
  border-radius:999px;
  background:var(--storm-teal);
  color:#001117;
}

/* Accessibility helper */
.screen-reader-text{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

.skip-link:focus{
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999999;
  width:auto;
  height:auto;
  padding: 10px 14px;
  background: #fff;
  color: #000;
}

/* Responsive */
@media (max-width: 980px){
  .storm-menu{ display:none; }
  .storm-burger{ display:flex; }
  .storm-wordmark img{ height: 34px; }
}


/* ---------- Search overlay ---------- */
body.storm-search-open{ overflow:hidden; }

.storm-search[hidden]{ display:none !important; }

.storm-search{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--storm-header-h) + 22px) 18px 18px;
}

.storm-search__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.storm-search__panel{
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  background: rgba(11,15,23,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 18px 18px 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.storm-search__title{
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  margin: 2px 0 12px;
}

.storm-search__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.storm-search__close:hover{
  background: rgba(255,255,255,.12);
}

.storm-search form{
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.storm-search input[type="search"],
.storm-search input[type="text"]{
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 0 16px;
  outline: none;
}

.storm-search input::placeholder{ color: rgba(255,255,255,.55); }

.storm-search button[type="submit"],
.storm-search input[type="submit"]{
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--storm-teal);
  color: #000;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.storm-search button[type="submit"]:hover,
.storm-search input[type="submit"]:hover{
  filter: brightness(0.95);
}


/* ---------- Eclipse brief updates ---------- */
.storm-topbar__message{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0,0,0,.82);
  white-space: nowrap;
}

.storm-menu > li.storm-menu__quote::before{
  display:none;
}

.storm-menu > li.storm-menu__quote{
  margin-left: 14px;
}

.storm-menu > li.storm-menu__quote > a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--storm-teal);
  color: #001117;
  box-shadow: 0 8px 22px rgba(82,219,230,.28);
}

@media (max-width: 1120px){
  .storm-topbar__message{ display:none; }
}
