/* wireless.org.au — main stylesheet */
:root {
  --bg:          #0f1117;
  --surface:     #1a1d27;
  --surface-2:   #20243a;
  --border:      #2a2e3d;
  --accent:      #00c8a0;
  --accent-dim:  rgba(0,200,160,0.12);
  --blue:        #4a9eff;
  --blue-dim:    rgba(74,158,255,0.12);
  --warning:     #f0a500;
  --warning-dim: rgba(240,165,0,0.12);
  --red:         #ff5c5c;
  --text:        #e8eaf0;
  --muted:       #7a7f96;
  --font:        system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:        ui-monospace, "Cascadia Code", "Fira Code", monospace;
  --radius:      6px;
  --radius-lg:   12px;
  --max-w:       1100px;
  --gap:         1.5rem;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.section { padding: 3.5rem 0; }
.section--alt { background: var(--surface); }
.section--alt + .section--alt { border-top: 1px solid var(--border); }

/* ── Nav ─────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.nav-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand .accent { color: var(--accent); }
.nav-brand svg { flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.06); color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent); background: var(--accent-dim); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

@media (max-width: 740px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem var(--gap) 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.55rem 0.75rem; font-size: 0.95rem; }
  .site-header { position: relative; }
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 5rem var(--gap) 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,200,160,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(74,158,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0,200,160,0.25);
  padding: 0.25rem 0.9rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  position: relative;
}
.hero h1 .highlight { color: var(--accent); }
.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.hero-inner { position: relative; z-index: 1; }

/* ── Page header (non-hero pages) ────────────────────── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3rem var(--gap) 2.5rem;
}
.page-hero .container {}
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #051a15; }
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 4px 14px rgba(0,200,160,0.3); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--blue); border: 1px solid var(--border); background: transparent; }
.btn-ghost:hover { background: var(--blue-dim); border-color: var(--blue); }

/* ── Cards ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card--blue:hover { border-color: var(--blue); }
.card--warn:hover { border-color: var(--warning); }

.card-icon { font-size: 2rem; margin-bottom: 0.85rem; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.card-cta::after { content: '→'; }
.card--blue .card-cta { color: var(--blue); }
.card--warn .card-cta { color: var(--warning); }
.card-cta:hover { text-decoration: underline; }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-active  { background: var(--accent-dim);   color: var(--accent);  border: 1px solid rgba(0,200,160,0.3); }
.badge-legacy  { background: var(--warning-dim);  color: var(--warning); border: 1px solid rgba(240,165,0,0.3); }
.badge-dormant { background: rgba(122,127,150,.15); color: var(--muted); border: 1px solid var(--border); }
.badge-new     { background: var(--blue-dim);     color: var(--blue);    border: 1px solid rgba(74,158,255,0.3); }
.badge-national{ background: rgba(180,100,255,.12); color: #b464ff;      border: 1px solid rgba(180,100,255,0.3); }

/* ── Sections & typography ───────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.section h2 + p { color: var(--muted); margin-bottom: 2rem; max-width: 640px; }

/* ── Prose ───────────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.prose h3 { font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 0.5rem; color: var(--text); }
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { color: var(--muted); margin: 0.5rem 0 1rem 1.75rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--blue); }

.callout {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.callout strong { color: var(--text); }
.callout p { margin: 0; color: var(--muted); }
.callout--blue { background: var(--blue-dim); border-color: var(--blue); }
.callout--warn { background: var(--warning-dim); border-color: var(--warning); }

/* ── Steps ───────────────────────────────────────────── */
.steps { list-style: none; counter-reset: steps; }
.steps li {
  counter-increment: steps;
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.steps li::before {
  content: counter(steps);
  min-width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #051a15;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.steps li > div h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.steps li > div p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ── Tables ──────────────────────────────────────────── */
.network-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.network-table th {
  background: var(--surface-2);
  color: var(--muted);
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.network-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.network-table td:first-child { color: var(--text); font-weight: 500; }
.network-table tr:last-child td { border-bottom: none; }
.network-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Community directory ─────────────────────────────── */
.state-block { margin-bottom: 1.5rem; }
.state-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.5rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: 0;
}
.state-block ul {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.state-block li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--surface);
  transition: background 0.1s;
}
.state-block li:last-child { border-bottom: none; }
.state-block li:hover { background: var(--surface-2); }
.group-name { font-weight: 600; font-size: 0.9rem; }
.group-city { color: var(--muted); font-size: 0.85rem; }
.group-note { color: var(--muted); font-size: 0.8rem; font-style: italic; margin-left: auto; }

/* ── Hardware cards ──────────────────────────────────── */
.hw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.15s;
}
.hw-card:hover { border-color: var(--accent); }
.hw-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.hw-card .price { color: var(--warning); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.6rem; }
.hw-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin: 0; }
.hw-card .rec { display: inline-block; margin-bottom: 0.4rem; }

/* ── Comparison table ────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table th {
  background: var(--surface-2);
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.compare-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted); }
.compare-table td:first-child { color: var(--text); font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--accent); font-weight: 700; }
.compare-table .no  { color: var(--muted); }
.compare-table .partial { color: var(--warning); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding: 3rem var(--gap) 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.footer-brand .logo .accent { color: var(--accent); }
.footer-brand p { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.6; }
.footer-brand .since {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: #3a3f52;
  border: 1px solid var(--border);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--muted); font-size: 0.875rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: #3a3f52;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Utility ─────────────────────────────────────────── */
.text-accent  { color: var(--accent); }
.text-blue    { color: var(--blue); }
.text-muted   { color: var(--muted); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.gap-sm { gap: 1rem; }
