/* styles.css — expanseElectronics public site
   Industrial dark theme, lifted from the dualETH-PixelControl admin SPA. */

:root {
  --bg:        #090909;
  --surface:   #111;
  --surface2:  #161616;
  --border:    #252525;
  --border2:   #333;
  --text:      #d8d8d8;
  --text-dim:  #777;
  --text-faint:#555;
  --accent:    #e07800;
  --accent2:   #ff9a1f;
  --ok:        #22cc77;
  --warn:      #e07800;
  --err:       #e03333;
  --mono:      ui-monospace, 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  --sans:      system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius:    3px;
  --maxw:      880px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--accent);
  color: #000;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 200;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ── Header ──────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 9, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 28px; width: auto; display: block; }
.logo-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.logo-text span { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 20px; }

.header-nav { display: flex; gap: 18px; align-items: center; }
.header-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.1s;
}
.header-nav a:hover { color: var(--accent); text-decoration: none; }
.header-nav a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.1s, border-color 0.1s;
}
.nav-toggle:hover { color: var(--accent); border-color: var(--accent); }
.nav-toggle[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }

@media (max-width: 560px) {
  .nav-toggle { display: inline-block; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0;
    z-index: 100;
  }
  .header-nav.open { display: flex; }
  .header-nav a {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
  }
  .header-nav a:last-child { border-bottom: none; }
  .header-nav a:hover { background: var(--surface2); color: var(--accent); }
}

/* ── Mobile table overflow ────────────────────────────────── */
@media (max-width: 760px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

/* ── Section scaffolding ─────────────────────────────────── */
.section { padding: 56px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

h1, h2, h3 { font-family: var(--sans); color: var(--text); line-height: 1.2; font-weight: 600; }
h2 { font-size: 22px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }

p { color: var(--text); margin-bottom: 12px; }
p.muted { color: var(--text-dim); font-size: 13px; }

.grid { display: grid; gap: 32px; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Homepage "Stay in the loop" community section — three stacked feature
   blocks. Each is a tall side-by-side row (media + copy), alternating sides
   on desktop, stacking on mobile. */
.community-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  margin-bottom: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
.community-block:last-child { margin-bottom: 0; }
@media (min-width: 760px) {
  .community-block { grid-template-columns: 1fr 1fr; min-height: 280px; }
  .community-block-reverse .community-media { order: 2; }
  .community-block-reverse .community-body  { order: 1; }
}
.community-media {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
@media (min-width: 760px) {
  .community-media {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .community-block-reverse .community-media {
    border-right: none;
    border-left: 1px solid var(--border);
  }
}
.community-media svg { width: 80%; height: auto; max-height: 240px; }
.community-media-photo { padding: 0; }
.community-media-photo img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}
.community-media-newsletter,
.community-media-status,
.community-media-pride {
  background:
    radial-gradient(circle at 30% 20%, rgba(224,120,0,0.06), transparent 60%),
    var(--surface2);
}
.community-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.community-body .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.community-body h3 {
  font-family: var(--sans);
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text);
}
.community-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 20px;
}
.community-body .btn { align-self: flex-start; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--bg);
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: flex; flex-direction: column; gap: 16px; }
.hero-brand {
  font-family: var(--mono);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}
.hero-brand span { color: var(--accent); }
.hero-tagline {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  max-width: 56ch;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 10px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  background: var(--surface);
  align-self: flex-start;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ── Status dot ──────────────────────────────────────────── */
.dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}
.dot.ok   { background: var(--ok);   box-shadow: 0 0 8px rgba(34,204,119,0.5); }
.dot.warn { background: var(--warn); box-shadow: 0 0 8px rgba(224,120,0,0.5); }
.dot.err  { background: var(--err);  box-shadow: 0 0 8px rgba(224,51,51,0.5); }

/* ── Buttons ─────────────────────────────────────────────── */
button, .btn {
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: var(--accent); color: #000;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); text-decoration: none; }
.btn-secondary {
  background: var(--surface2); color: var(--text);
  border-color: var(--border2);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--accent); text-decoration: none; }

/* Style the native <input type="file"> picker button so it matches our
   .btn-secondary rather than the browser default. ::file-selector-button is
   well-supported (Chrome 89+, Firefox 82+, Safari 14.1+). */
input[type="file"] {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: 0;
}
input[type="file"]::file-selector-button {
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 18px;
  margin-right: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
input[type="file"]::file-selector-button:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── About section ───────────────────────────────────────── */
.about-media {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Coming soon cards ───────────────────────────────────── */
.next-card {
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.next-card::after {
  content: '';
  position: absolute;
  inset: auto -40px -40px auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at center, rgba(224, 120, 0, 0.10), transparent 70%);
  pointer-events: none;
}
@media (min-width: 760px) {
  .next-card { aspect-ratio: 1 / 1; }
}
.next-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.next-name {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.next-name span { color: var(--accent); }
.next-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  position: relative;
}

/* Shared "Notify me at launch" panel that sits below the coming-soon grid.
   One email + button signs the visitor up for every product listed above. */
.launch-form-shared {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.launch-shared-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.launch-shared-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.launch-form-shared input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}
.launch-form-shared input[type="email"]:focus { border-color: var(--accent); }
.launch-form-shared button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.launch-form-shared button:hover:not(:disabled) { background: var(--accent2); border-color: var(--accent2); }
.launch-form-shared button:disabled { opacity: 0.5; cursor: not-allowed; }
.launch-form-shared .launch-msg {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  min-height: 14px;
}
.launch-form-shared .launch-msg.ok  { color: var(--ok); }
.launch-form-shared .launch-msg.err { color: var(--err); }
.contact-msg {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  min-height: 14px;
}
.contact-msg.ok  { color: var(--ok); }
.contact-msg.err { color: var(--err); }
.next-foot {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.next-foot a { color: var(--accent2); }

/* ── Status grid (used for contact details) ──────────────── */
.status-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.status-grid .sk, .status-grid .sv {
  padding: 10px 14px;
  background: var(--surface);
}
.status-grid .sk {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-grid .sv {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.status-grid .sv a { color: var(--accent2); }
.status-grid .sv .sub { color: var(--text-dim); font-size: 11px; }

@media (max-width: 560px) {
  .status-grid { grid-template-columns: min-content 1fr; }
  .status-grid .sk {
    padding: 9px 10px;
    font-size: 10px;
    white-space: nowrap;
  }
  .status-grid .sv {
    padding: 9px 10px;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* ── Forms ───────────────────────────────────────────────── */
form.stack { display: flex; flex-direction: column; gap: 14px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

input:not([type]), input[type=text], input[type=email], input[type=number], input[type=password], input[type=tel], input[type=search], input[type=url], select, textarea {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

::placeholder { color: var(--text-dim); opacity: 0.7; }

/* ── Store wrapper (Ecwid keeps its own widget styles) ───── */
.store-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-inner a { color: var(--text-dim); }
.footer-inner a:hover { color: var(--accent); text-decoration: none; }
.footer-links { display: inline-flex; gap: 14px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
/* Trader-identity sub-footer (UK Companies Act trading disclosures). Injected
   from nav.js into every page so we don't fight footer drift across 30+ pages. */
/* Sitewide notice bar (bank-holiday dispatch delay), injected by nav.js. */
.site-banner {
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}
.site-banner strong { font-weight: 700; }
.site-banner a { color: inherit; text-decoration: underline; }

/* Supporter perks list in the homepage About section. */
.support-perks {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.support-perks li {
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}
.support-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 700;
}

/* Upcoming-closures list in the contact/hours grid, populated by nav.js. */
.closures-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.closures-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  line-height: 1.45;
}
.closures-list .c-date {
  color: var(--accent2);
  white-space: nowrap;
  min-width: 112px;
}
.closures-list .c-name {
  color: var(--text-dim);
  font-size: 12px;
}
/* Parenthetical note drops to its own line so it can't run into the next row. */
.closures-list .c-name .sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.footer-trader {
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 14px 24px 0;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
}
.footer-trader strong { color: var(--text); font-weight: 600; }
.footer-trader sup { font-size: 8px; vertical-align: super; }
