/* ===============================
   Championship Networks – Shared Styles
   File: /assets/css/site.css
   =============================== */

/* ---------- CSS Variables ---------- */
:root {
  --fg: #111;
  --bg: #fff;
  --muted: #555;
  --line: #e5e5e5;
  --link: #1a73e8;
  --link-visited: #5e35b1;
  --accent: #1a73e8;
  --card: #fafafa;
  --radius: 12px;
}

/* Dark mode (optional, graceful) */
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #eaeaea;
    --bg: #0e0e0e;
    --muted: #a1a1a1;
    --line: #2a2a2a;
    --link: #8ab4f8;
    --link-visited: #b39ddb;
    --card: #121212;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* Containers used across pages */
.wrap, .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
}

/* Typography */
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; margin-top: 1.25rem; }
h3 { font-size: 1.15rem; margin-top: 1rem; }

p { margin: 0 0 .85rem; }
ul, ol { padding-left: 1.25rem; margin: .25rem 0 1rem; }

.small { font-size: .95rem; }
.muted { color: var(--muted); }
.tag {
  display: inline-block;
  font-size: .8rem;
  padding: .18rem .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  margin-left: .4rem;
}

/* Rules & Cards */
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

/* Links */
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:visited { color: var(--link-visited); }

/* Accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Focus styles (keyboard friendly) */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header/Footer spacing */
header[role="banner"] .muted.small,
footer[role="contentinfo"] .small { color: var(--muted); }

/* ---------- Forms (used by contact-us-simple) ---------- */
form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--card);
}

fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; margin-bottom: .5rem; }

label { display: block; font-weight: 600; margin-top: 14px; }
input[type=text],
input[type=email],
input[type=tel],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  color: var(--fg);
}
textarea { min-height: 140px; resize: vertical; }

.help { font-size: .92rem; color: var(--muted); margin-top: 6px; }

/* Layout rows/columns (stack on small screens) */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1 1 260px; }

/* Checkbox consent block */
.checkbox { margin-top: 16px; display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { margin-top: 5px; }
.disclosure {
  font-size: .92rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

/* Actions */
.actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; }
button {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
button:hover { filter: brightness(0.95); }
button:active { filter: brightness(0.9); }

/* ---------- Tables (if ever needed) ---------- */
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
thead th { background: var(--card); }

/* ---------- Print tweaks ---------- */
@media print {
  a { text-decoration: underline; }
  .actions button { display: none; }
  .divider { margin: 16px 0; }
}
