/* Juicy Joes — Neon Kong base: reset, type, layout helpers, focus, reduced motion */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a.link, .prose a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass-2); }
a.link:hover, .prose a:hover { color: var(--cream); text-decoration-color: var(--brass); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
ul.plain, ol.plain { list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
::selection { background: var(--neon); color: var(--night); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: var(--r-sm); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 0.5.34 (Tyrone's ticket #1): WordPress/WooCommerce print text for screen readers only (e.g. "Price range: R55.00
   through R105.00" next to a price range). The theme had no rule for it, so it showed on the page. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; word-wrap: normal !important; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto !important; clip-path: none; background: var(--cream); color: var(--night); font-weight: 700; text-decoration: none; }

/* ---- Wall texture (fixed, behind everything) ---- */
.wall {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.008) 0 1px, transparent 1px 90px),
    radial-gradient(1200px 700px at 70% 10%, rgba(255,45,63,.08), transparent 60%),
    var(--wall);
}
main { position: relative; z-index: 3; }

/* ---- Type ---- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: .005em; line-height: var(--lh-tight); text-wrap: balance;
}
h1, .h1 { font-size: var(--h1); }
h2, .h2 { font-size: var(--h2); }
h3, .h3 { font-size: var(--h3); font-weight: 700; }
h4, .h4 { font-size: var(--h4); font-weight: 700; letter-spacing: .04em; }
.eyebrow { font: 600 var(--fs-xs)/1 var(--body); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--brass); }
.lede { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--cream-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.caps { font-weight: 600; font-size: var(--fs-xs); letter-spacing: var(--track-caps); text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.prose { max-width: 68ch; color: var(--cream-2); }
.prose h2, .prose h3 { color: var(--cream); margin: 1.6em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose strong { color: var(--cream); font-weight: 600; }

/* ---- Neon sign word (page headings that keep the homepage theme) ---- */
.sign {
  font-family: var(--sign); font-weight: 400; text-transform: none; letter-spacing: .02em; line-height: 1;
  font-size: var(--sign-size); color: var(--unlit); display: inline-block; position: relative;
  transition: color var(--t), text-shadow var(--t);
}
.sign.on { color: var(--core); text-shadow: var(--glow-s); animation: buzz 6s infinite; }
.sign.boot { animation: boot .9s steps(1, end), buzz 6s 1s infinite; }
.sign small { display: block; font: 600 var(--fs-xs)/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--brass); text-shadow: none; margin-bottom: 10px; animation: none; }
.sign.sm { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
@keyframes boot { 0% { opacity: 1 } 3% { opacity: .2 } 8% { opacity: 1 } 12% { opacity: .25 } 20% { opacity: 1 } 28% { opacity: .45 } 34% { opacity: 1 } 100% { opacity: 1 } }
@keyframes buzz { 0%, 100% { opacity: 1 } 91% { opacity: 1 } 92% { opacity: .86 } 93% { opacity: 1 } 96% { opacity: .94 } 97% { opacity: 1 } }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: var(--container-narrow); }
.wrap-mid { max-width: var(--container-mid); }
.section { padding: var(--s6) 0; }
.section-lg { padding: clamp(40px, 6vw, 90px) 0; }
.page-head { padding: var(--s6) 0 var(--s5); }
.page-head .sign { margin-bottom: var(--s3); }
.page-head p { color: var(--muted); max-width: 60ch; margin: var(--s2) 0 0; }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--s2); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-4.keep-2, .grid-3.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); } }
.only-mobile { display: none; }
@media (max-width: 900px) { .only-desktop { display: none !important; } .only-mobile { display: initial; } }
.divider { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.sec-head p { margin: .4rem 0 0; color: var(--muted); max-width: 52ch; }

/* ---- Scroll reveal: visible at rest, gently settles when JS is present ---- */
.rv { transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js .rv:not(.in) { opacity: 0; transform: translateY(18px); }
.js .rv.in { opacity: 1; transform: none; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv:not(.in) { opacity: 1; transform: none; }
  .sign.on, .sign.boot { animation: none; }
}
