/* Urgent Trades AU — prototype directory styles (mobile-first) */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5a6a7e;
  --border: #d8e0ea;
  --brand: #0b5cab;
  --brand-dark: #084a8a;
  --accent: #e85d04;
  --accent-soft: #fff4ec;
  --ok: #0f7a3a;
  --warn-bg: #fff8e6;
  --warn-border: #e6c35c;
  --ph-bg: #eef2f7;
  --ph-border: #b8c5d6;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(26, 35, 50, 0.08);
  --max: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1rem;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #7eb6ef;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

/* Header / nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}
.logo span.mark { color: var(--brand); font-size: 1.15rem; }
.logo span.tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.site-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
}
.site-nav.open { display: flex; }
.site-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--ph-bg);
  color: var(--brand-dark);
}
.site-nav a.cta-nav {
  background: var(--brand);
  color: #fff;
  text-align: center;
}
.site-nav a.cta-nav:hover { background: var(--brand-dark); color: #fff; }

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    align-items: center;
    padding-bottom: 0;
    flex-wrap: wrap;
    gap: 0.15rem;
  }
  .site-nav a { padding: 0.4rem 0.65rem; font-size: 0.9rem; }
}

/* Banner */
.proto-banner {
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-border);
  padding: 0.65rem 0;
  font-size: 0.9rem;
  color: #5c4a12;
}
.proto-banner strong { font-weight: 700; }

/* Hero */
.hero {
  padding: 2.25rem 0 1.75rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.2;
}
.hero .lead {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 42rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand);
}
.btn-secondary:hover { background: var(--ph-bg); color: var(--brand-dark); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #c44d03; color: #fff; }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Sections */
.section { padding: 2rem 0; }
.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}
.section p { margin: 0 0 1rem; color: var(--muted); }
.section p.plain { color: var(--text); }

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.card a.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

/* Placeholder listings */
.placeholder-card {
  background: var(--ph-bg);
  border: 2px dashed var(--ph-border);
  border-radius: var(--radius);
  padding: 1.15rem;
  position: relative;
}
.placeholder-card .badge {
  display: inline-block;
  background: #5a6a7e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.placeholder-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--muted);
}
.placeholder-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.placeholder-card .fake-meta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #7a8a9c;
  font-style: italic;
}

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.steps li h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.steps li p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 36rem;
}
.form-note {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #5c4a12;
  margin-bottom: 1.25rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.field textarea { min-height: 100px; resize: vertical; }
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok {
  background: #e8f6ee;
  border: 1px solid #8fd4a8;
  color: var(--ok);
}
.form-status.err {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #a12828;
}

/* Tables / lists */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.checklist li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--muted);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  background: #152033;
  color: #c8d4e4;
  padding: 2rem 0 1.5rem;
}
.site-footer a { color: #9ec5f0; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h2 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a9bb0;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 0.35rem; }
.site-footer p { margin: 0; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid #2a3a52;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #8a9bb0;
}

/* Utility */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span { margin: 0 0.35rem; color: #9aa8b8; }

.page-intro {
  padding: 1.75rem 0 0.5rem;
}
.page-intro h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
.page-intro .lead {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

.legal h2 { margin-top: 1.75rem; }
.legal ul { color: var(--muted); }
