/*
 * GrindUp public legal site — shared brand stylesheet.
 * Static, dependency-free. Dark / premium / athletic identity:
 * near-black navy surfaces, high-contrast white headings, muted-gray body,
 * GrindUp electric-blue accent (#1E6BFF). Mobile-first, accessible.
 */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #070a12;          /* page background — near-black navy */
  --bg-elev-1: #0c111c;   /* header / footer / raised bands */
  --bg-elev-2: #111826;   /* cards */
  --border: #1b2436;      /* hairline dividers */
  --border-strong: #26314a;

  /* Text */
  --text: #f4f7fc;        /* headings, high-contrast */
  --text-body: #b7c1d4;   /* body copy (muted gray) */
  --text-muted: #7c889e;  /* meta / secondary */

  /* Accent — GrindUp electric blue */
  --accent: #1e6bff;
  --accent-bright: #5b8cff; /* AA-contrast link color on dark surfaces */

  /* Shape & rhythm */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw-read: 760px;     /* readable legal column */
  --maxw-wide: 1080px;    /* header / footer / hub */
  --pad-x: clamp(20px, 5vw, 40px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  background:
    radial-gradient(1200px 620px at 50% -260px, rgba(30, 107, 255, 0.16), transparent 68%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 { color: var(--text); line-height: 1.2; letter-spacing: -0.01em; }

/* ── Accessibility ─────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; text-decoration: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ── Shared container ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw-wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-elev-1) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
  padding-block: 14px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}
.wordmark:hover { text-decoration: none; }
.wordmark__mark { width: 26px; height: 26px; }
.wordmark__accent { color: var(--accent-bright); }

.site-nav { flex: 1 1 auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  justify-content: flex-start;
}
.site-nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.site-nav a.is-active {
  color: var(--accent-bright);
  background: rgba(30, 107, 255, 0.12);
}

/* ── Main / hero ───────────────────────────────────────────────────────── */
main { flex: 1 0 auto; }

.page {
  max-width: var(--maxw-read);
  margin-inline: auto;
  padding-block: clamp(40px, 7vw, 72px) clamp(56px, 9vw, 96px);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 800;
}
.hero__subtitle {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(16.5px, 2.4vw, 19px);
  color: var(--text-body);
}
.hero__meta {
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.hero__meta span {
  color: var(--text-body);
  font-weight: 600;
}

.divider {
  height: 1px;
  margin: clamp(28px, 5vw, 40px) 0;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  border: 0;
}

/* ── WIP placeholder card ──────────────────────────────────────────────── */
.wip {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset,
    0 24px 60px -40px rgba(0, 0, 0, 0.9);
}
.wip__badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(30, 107, 255, 0.14);
  border: 1px solid rgba(30, 107, 255, 0.35);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.wip__title {
  margin: 16px 0 8px;
  font-size: clamp(20px, 3.5vw, 24px);
  font-weight: 700;
}
.wip__text { margin: 0; color: var(--text-body); }
.wip__contact { margin: 18px 0 0; font-size: 15px; color: var(--text-muted); }

/* ── Long-form content typography (used once real copy replaces WIP) ───── */
.content h2 {
  margin: clamp(32px, 5vw, 44px) 0 12px;
  font-size: clamp(21px, 3.4vw, 26px);
  font-weight: 700;
}
.content h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.content p, .content li { color: var(--text-body); line-height: 1.75; }
.content p { margin: 0 0 16px; }
.content ul, .content ol { margin: 0 0 16px; padding-left: 22px; }
.content li { margin: 0 0 8px; }
.content a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Hub (home) card grid ──────────────────────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 5vw, 40px);
}
.hub-card {
  display: block;
  padding: 22px 22px 24px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.hub-card:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  background: #131b2c;
  transform: translateY(-2px);
}
.hub-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.hub-card p { margin: 0; font-size: 14.5px; color: var(--text-muted); }
.hub-card__arrow { color: var(--accent-bright); font-weight: 700; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--bg-elev-1);
  border-top: 1px solid var(--border);
}
.site-footer__inner { padding-block: clamp(40px, 6vw, 56px); }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer__brand .wordmark { margin-bottom: 12px; }
.site-footer__tagline {
  margin: 0;
  max-width: 34ch;
  font-size: 14.5px;
  color: var(--text-muted);
}
.footer-col h2 {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 10px; }
.footer-col a { color: var(--text-body); font-size: 15px; }
.footer-col a:hover { color: var(--text); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(32px, 5vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
}
.site-footer__bottom a { color: var(--text-muted); }
.site-footer__bottom a:hover { color: var(--text-body); }

/* ── 404 ───────────────────────────────────────────────────────────────── */
.notfound { text-align: center; }
.notfound .hero__title { font-size: clamp(40px, 10vw, 72px); }
.notfound-actions { margin-top: 28px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn:hover { background: var(--accent-bright); text-decoration: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .site-header__inner { gap: 12px; }
  .site-nav ul { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hub-card:hover { transform: none; }
}
