/* Sting Energy Australia - static site styles */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --red: #ff0000;
  --red-deep: #5a0000;
  --black: #000;
  --ink: #0d0d0d;
  --white: #fff;
  --line: rgba(255, 255, 255, 0.22);
  --head: "Archivo", "Arial Black", Impact, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.site-footer .footer-brand :focus-visible { outline-color: var(--black); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--white); color: var(--black);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Display type ---------- */
.display {
  margin: 0;
  font-family: var(--head);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--red);
  font-size: clamp(48px, 13vw, 180px);
  text-align: center;
}

.mono-copy {
  max-width: 44ch;
  margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
  color: var(--red);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.75;
}

/* ---------- Buttons / pills ---------- */
.btn, .pill {
  display: inline-block;
  font-family: var(--head);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid var(--red);
  border-radius: 999px;
  color: var(--white);
  line-height: 1;
}
.btn { padding: 12px 24px; font-size: 14px; transition: background-color 0.15s; }
.btn:hover { background: var(--red); }
.btn[aria-current="page"] { background: var(--red); }
.pill { padding: 10px 24px; font-size: 14px; border-width: 1px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px var(--gutter);
  background: linear-gradient(#000 60%, rgba(0, 0, 0, 0));
}
.nav-pill {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 24px;
  background: rgba(22, 22, 22, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 34px; width: auto; }
.nav-pill nav { display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.hero { background: var(--black); }
.hero-img { display: block; width: 100%; height: auto; max-height: none; }

/* ---------- Feature (static replacement for the video) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--red); }
.feature-visual {
  position: relative; overflow: hidden; min-height: clamp(360px, 40vw, 640px);
  background:
    radial-gradient(ellipse 60% 55% at 45% 45%, #b30000 0%, #7a0000 55%, #4a0000 100%);
}
.feature-visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 30% 40% at 45% 40%, rgba(255, 70, 70, 0.35), transparent 70%);
  pointer-events: none;
}
.feature-pack {
  position: absolute; left: 50%; top: 50%;
  height: 118%; width: auto; max-width: none;
  transform: translate(-50%, -50%) rotate(32deg);
  filter: drop-shadow(0 0 36px rgba(255, 60, 60, 0.55)) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
  z-index: 1;
}
.feature-copy { display: flex; align-items: center; padding: clamp(32px, 6vw, 96px); }
.statement {
  margin: 0;
  font-family: var(--head);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(26px, 3.6vw, 56px);
  color: var(--white);
}
.statement .dim { color: rgba(255, 255, 255, 0.45); }

/* ---------- Energy / Benefit ---------- */
.energy, .benefit { padding: clamp(64px, 9vw, 130px) var(--gutter); }
.energy { padding-bottom: clamp(48px, 7vw, 100px); }
.energy-pack {
  height: clamp(320px, 44vw, 560px); width: auto;
  margin: clamp(24px, 4vw, 56px) auto;
  filter: drop-shadow(0 20px 40px rgba(255, 0, 0, 0.28));
}
.benefit { padding-top: clamp(40px, 6vw, 80px); }
.benefit-list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: clamp(32px, 7vw, 110px);
  margin: clamp(36px, 5vw, 72px) 0;
}
.benefit-list li {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  width: clamp(120px, 20vw, 190px);
}
.benefit-list img { height: clamp(88px, 11vw, 130px); width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Shop ---------- */
.shop, .faq, .legal-page {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 7vw, 100px) var(--gutter) clamp(72px, 10vw, 140px);
}
.retailers {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(40px, 6vw, 80px);
}
.shop .display, .legal-page .display { font-size: clamp(30px, 6.6vw, 96px); text-wrap: balance; }
.tile {
  width: clamp(140px, 17vw, 210px); aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 12px;
  background: var(--tile-bg, #fff);
  border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
}
.tile img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- FAQ ---------- */
.faq { max-width: 960px; }
.faq .display { margin-bottom: clamp(40px, 6vw, 80px); }
.faq-group { margin-bottom: clamp(36px, 5vw, 64px); }
.faq-cat {
  margin: 0 0 8px;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
}
.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--head); font-weight: 800; font-stretch: 110%;
  font-size: clamp(16px, 2vw, 22px); line-height: 1.25; text-transform: uppercase;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border: 2px solid var(--red); border-radius: 50%;
  font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--red);
  transition: background-color 0.15s, color 0.15s;
}
.qa[open] summary::after { content: "\2212"; background: var(--red); color: var(--white); }
.qa summary:hover { color: var(--red); }
.answer { padding: 0 56px 26px 0; }
.answer p { margin: 0; max-width: 68ch; color: #f1f1f1; font-size: 15px; line-height: 1.75; }
.answer a { color: var(--white); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.answer a:hover { color: var(--red); }

/* ---------- Legal / 404 ---------- */
.legal-page .prose { max-width: 72ch; margin: clamp(32px, 5vw, 64px) auto 0; }
.legal-page .prose p { margin: 0 0 1em; }
.legal-page .note { color: #cfcfcf; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); }
.footer-brand {
  background: var(--red);
  padding: clamp(40px, 8vw, 110px) var(--gutter);
  display: grid; place-items: center;
}
.footer-brand img { width: min(760px, 78vw); height: auto; }
.footer-bar { background: var(--black); padding: 28px var(--gutter) 36px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
}
.footer-left { display: flex; flex-direction: column; gap: 18px; }
.social { display: flex; gap: 16px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--white); transition: background-color 0.15s, border-color 0.15s; }
.social a:hover { background: var(--red); border-color: var(--red); }
.legal { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.legal a { text-decoration: none; padding: 4px 0; }
.legal a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.copyright { margin: 0; max-width: 46ch; font-size: 12px; line-height: 1.6; text-transform: uppercase; color: #d0d0d0; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature-visual { min-height: 380px; }
  .feature-pack { height: 125%; }
  .answer { padding-right: 0; }
}
@media (max-width: 480px) {
  .benefit-list { flex-wrap: nowrap; gap: 10px; align-items: flex-end; }
  .benefit-list li { width: calc(33.33% - 7px); gap: 16px; }
  .benefit-list img { height: 76px; }
  .pill { padding: 8px 10px; font-size: 11px; }
  .nav-pill { padding: 8px 8px 8px 16px; }
  .brand img { height: 26px; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .tile { width: calc(50% - 8px); }
  .tile:last-child:nth-child(odd) { width: calc(50% - 8px); }
  .qa summary::after { width: 30px; height: 30px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Scroll animation (progressive enhancement; see assets/js/main.js) ---------- */
.js:not(.anim-ready) [data-anim] { visibility: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.js .feature-pack { transform: none; }
.hero { position: relative; overflow: hidden; }
.hero-shade {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at 62% 55%, rgba(0, 0, 0, 0) 20%, #000 100%);
}
.stack { position: relative; }
.js .stack .energy { position: sticky; }
.stack .benefit { position: relative; z-index: 2; background: var(--black); }
.hero { z-index: 1; }
.feature { position: relative; z-index: 2; }
.stack { z-index: 2; background: var(--black); }
.stack .energy { background: var(--black); }
.site-footer { position: relative; z-index: 2; }

/* Benefit icon hover */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .benefit-list li{cursor:default}
  .benefit-list img{transition:transform .45s cubic-bezier(.2,.9,.3,1.3),filter .35s ease;will-change:transform}
  .benefit-list .pill{transition:background-color .3s ease,color .3s ease,transform .35s ease}
  .benefit-list li:hover img{transform:translateY(-10px) scale(1.12) rotate(-4deg);filter:drop-shadow(0 12px 18px rgba(255,0,0,.45))}
  .benefit-list li:nth-child(even):hover img{transform:translateY(-10px) scale(1.12) rotate(4deg)}
  .benefit-list li:hover .pill{background:var(--red);color:#fff;transform:translateY(-2px)}
}
.benefit-list li:focus-within .pill{background:var(--red);color:#fff}


/* Hold: keeps the Energy section pinned a little longer so its copy can be read before Benefit slides over it */
.stack-hold{display:none}
.js .stack-hold{display:block;height:110vh;pointer-events:none}
@media (max-width:767px){.js .stack-hold{height:90vh}}
.js:not(.anim-ready) [data-anim="copy-hold"]{visibility:hidden}
