/* ==========================================================================
   Storm — global header + off-canvas menu for the TITAN pages
   Injected (by server.js) ONLY into the titan React pages (services, industries,
   locations, results, blog, project brief). Those pages ship their own header;
   we hide it and drop in a self-contained STORM header + drawer menu so the
   header/menu is consistent across the whole site. Storm.uk's own pages keep
   their native Framer header (this file is NOT injected there).
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
  --sh-purple: #894eef;
  --sh-dark: #0a0a0a;
  --sh-text: #cacaca;
}

/* Hide the titan React app's own fixed header. */
header.fixed { display: none !important; }

/* ---------------------------- header bar ---------------------------- */
/* Mirrors the storm.uk Framer header: real STORM logo SVG, an "Available for
   projects" status, a LET'S TALK pill and a hamburger, over a top gradient. */
#storm-header {
  position: fixed; top: 0; left: 0; right: 0; height: 84px; z-index: 2147483000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 44px);
  background: linear-gradient(180deg, #0a0a0a 0%, rgba(10, 10, 10, .72) 58%, rgba(10, 10, 10, 0) 100%);
  font-family: Inter, system-ui, sans-serif; pointer-events: none;
}
#storm-header > * { pointer-events: auto; }
#storm-header .sh-logo { display: flex; align-items: center; }
#storm-header .sh-logo img { height: 44px; width: auto; display: block; }

.sh-right { display: flex; align-items: center; gap: 22px; }
.sh-avail { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.sh-avail-row { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #fff; }
.sh-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sh-purple); animation: shPulse 2s infinite; }
@keyframes shPulse { 0% { box-shadow: 0 0 0 0 rgba(137, 78, 239, .55); } 70% { box-shadow: 0 0 0 7px rgba(137, 78, 239, 0); } 100% { box-shadow: 0 0 0 0 rgba(137, 78, 239, 0); } }
.sh-date { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; color: var(--sh-text); text-transform: uppercase; margin-top: 3px; }
.sh-talk { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px; border-radius: 1000px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 13px; letter-spacing: .05em; transition: background .2s ease, border-color .2s ease; }
.sh-talk:hover { background: var(--sh-purple); border-color: var(--sh-purple); }

#storm-header .sh-burger {
  width: 46px; height: 46px; border-radius: 50%; padding: 0; cursor: pointer; flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(10, 10, 10, .5);
  display: flex; align-items: center; justify-content: center; transition: border-color .2s ease;
}
#storm-header .sh-burger:hover { border-color: var(--sh-purple); }
.sh-burger .bar, .sh-burger .bar::before { width: 18px; height: 2px; background: #fff; transition: transform .3s ease, top .3s ease; }
.sh-burger .bar { display: block; position: relative; top: -3px; }
.sh-burger .bar::before { content: ""; position: absolute; left: 0; top: 6px; }
body.sh-open .sh-burger .bar { top: 0; transform: rotate(45deg); }
body.sh-open .sh-burger .bar::before { top: 0; transform: rotate(-45deg); }

/* Give page content room below the fixed header. */
body { padding-top: 22px; }

@media (max-width: 720px) {
  .sh-avail, .sh-talk { display: none; }
  #storm-header { height: 72px; }
  #storm-header .sh-logo img { height: 36px; }
}

/* --------------------------- backdrop --------------------------- */
#storm-scrim {
  position: fixed; inset: 0; z-index: 2147482000; background: rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
body.sh-open #storm-scrim { opacity: 1; pointer-events: auto; }

/* --------------------------- drawer menu --------------------------- */
#storm-menu2 {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 2147483600;
  background: var(--sh-dark); border-left: 1px solid rgba(137, 78, 239, .35);
  transform: translateX(101%); transition: transform .55s cubic-bezier(.5, 0, .1, 1);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px clamp(22px, 4vw, 46px) 40px;
  font-family: Inter, system-ui, sans-serif;
}
body.sh-open #storm-menu2 { transform: none; }

#storm-menu2 .sh-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 20px; }
#storm-menu2 .sh-kicker { display: flex; align-items: center; gap: 9px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .14em; color: var(--sh-text); text-transform: uppercase; }
#storm-menu2 .sh-kicker::before { content: ""; width: 9px; height: 9px; background: var(--sh-purple); display: inline-block; }
#storm-menu2 .sh-close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#storm-menu2 .sh-close:hover { border-color: var(--sh-purple); }

#storm-menu2 .sh-nav { display: flex; flex-direction: column; flex: 1 0 auto; }

/* top-level rows */
.sh-row { border-top: 1px solid rgba(255, 255, 255, .1); }
.sh-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 16px 0; background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--sh-text); text-decoration: none;
  font-family: "Anton", sans-serif; text-transform: uppercase; font-weight: 400;
  font-size: clamp(30px, 5vw, 44px); line-height: 1; letter-spacing: .01em;
  /* entrance */
  opacity: 0; transform: translateY(14px);
}
body.sh-open .sh-item { animation: shIn .5s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes shIn { to { opacity: 1; transform: none; } }
.sh-item .sh-label { transition: text-decoration-color .2s ease; text-decoration: underline 3px transparent; text-underline-offset: 8px; }
.sh-item:hover .sh-label { text-decoration-color: var(--sh-purple); }
.sh-caret { color: var(--sh-purple); font-size: .5em; margin-left: .3em; transition: transform .35s ease; }
.sh-item.open .sh-caret { transform: rotate(45deg); }

/* sub lists */
.sh-sub { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s cubic-bezier(.2, .7, .2, 1), opacity .35s ease, margin .35s ease; }
.sh-sub.open { opacity: 1; margin-bottom: 6px; }
.sh-sub a {
  display: block; text-decoration: none; color: rgb(140, 140, 140);
  padding: 9px 0 9px 20px; border-left: 1px solid rgba(137, 78, 239, .45);
  font-family: "Anton", sans-serif; text-transform: uppercase; font-size: 20px; line-height: 1.18; letter-spacing: .01em;
  transition: color .2s ease, border-color .2s ease, padding-left .25s ease;
}
.sh-sub a:hover { color: #fff; border-left-color: var(--sh-purple); padding-left: 28px; }

/* footer */
#storm-menu2 .sh-foot { display: flex; flex-wrap: wrap; gap: 26px 44px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
#storm-menu2 .sh-foot p { margin: 0 0 5px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; color: #777; text-transform: uppercase; }
#storm-menu2 .sh-foot a { color: var(--sh-purple); text-decoration: none; font-size: 17px; }
#storm-menu2 .sh-foot .sh-socials { display: flex; gap: 16px; }
#storm-menu2 .sh-foot .sh-socials a { color: #fff; font-size: 14px; }

@media (max-width: 640px) {
  #storm-menu2 { padding-bottom: 60px; }
}
