/* Cliqq / RNW Solutions - shared stylesheet
   No JS anywhere on this site, which lets staticwebapp.config.json ship
   script-src 'none'. Keep it that way unless there's a real need. */

:root {
  color-scheme: light dark;
  /* Gradient stops for the wordmark. The bright brand teals measure ~2.2:1 on
     white -- under the 3:1 WCAG 1.4.3 floor for large text -- so light mode uses
     darkened stops (~3.7-4.0:1) and dark mode keeps the bright originals. */
  --grad-a: #1b8ca8;
  --grad-b: #12977f;
  --focus-ring: #0e7490;
  --teal: #2b9fba;
  --teal-bright: #4CBED9;
  --teal2: #4DD9C7;
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #ecfeff;
  --accent-line: #a5f3fc;
  --focus: #0e7490;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grad-a: #4CBED9;
    --grad-b: #4DD9C7;
    --focus-ring: #4CBED9;
    --teal: #4CBED9;
    --ink: #f1f5f9;
    --body: #cbd5e1;
    --muted: #94a3b8;
    --line: #1e293b;
    --bg: #0b1220;
    --surface: #111a2b;
    --surface-2: #10222b;
    --accent-line: #164e63;
    --focus: #67e8f9;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.2em; }
h3 { font-size: 1.12rem; font-weight: 700; margin-top: 1.6em; }
p { margin: 0 0 1.1em; }
a { color: var(--focus); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

.wrap {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  /* viewport-fit=cover is set on every page, so respect the notch in landscape */
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* ---------- header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 18px 0;
}
.brand {
  font-weight: 800; font-size: 26px; letter-spacing: -1px; text-decoration: none;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--body); font-weight: 600; font-size: 15px;
}
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--surface-2); color: var(--focus); }

/* ---------- layout ---------- */
main { flex: 1 0 auto; }
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.prose { max-width: 68ch; }
.lede { font-size: 1.16rem; color: var(--body); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .logo {
  margin: 0;
  font-weight: 800; font-size: clamp(3rem, 10vw, 4.5rem); letter-spacing: -2.5px; line-height: 1;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tag { margin-top: 14px; font-size: clamp(1.1rem, 2.6vw, 1.4rem); font-weight: 700; color: var(--ink); }
.hero .blurb { margin: 18px auto 0; max-width: 60ch; color: var(--muted); }
.pill {
  display: inline-block; margin-top: 26px; padding: 9px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--focus);
  background: var(--surface-2); border: 1px solid var(--accent-line);
}

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); margin-top: 30px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.card h3 { margin-top: 0; color: var(--ink); }
.card p { margin-bottom: 0; color: var(--muted); font-size: .97rem; }

/* ---------- company strip ---------- */
.company-strip { background: var(--surface-2); border-top: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line); }
.company-strip .wrap { padding-top: 34px; padding-bottom: 34px; text-align: center; }
.company-strip p { margin: 0; color: var(--ink); font-weight: 600; }
.company-strip .sub { margin-top: 8px; font-weight: 400; color: var(--muted); font-size: .96rem; }

/* ---------- contact ---------- */
.contact-block { margin: 26px 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact-block .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.contact-block .value { font-size: 1.2rem; font-weight: 700; margin: 0; }
.contact-block .value a { color: var(--focus); }

dl.meta { margin: 0; }
dl.meta dt { font-weight: 700; color: var(--ink); margin-top: 1.1em; }
dl.meta dd { margin: .25em 0 0; color: var(--body); }

ul.plain { padding-left: 1.15em; }
ul.plain li { margin-bottom: .5em; }

.updated { font-size: .9rem; color: var(--muted); font-style: italic; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.site-footer .wrap { padding-top: 34px; padding-bottom: 34px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 600; }
.footer-links a:hover { color: var(--focus); text-decoration: underline; }
.legal { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.legal strong { color: var(--ink); }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 42px 0; }
  .nav { justify-content: center; }
}


/* Skip link - six nav links precede <main> on every page (WCAG 2.4.1) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 12px 20px; background: var(--surface-2); color: var(--focus);
  font-weight: 700; border: 1px solid var(--accent-line); border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; z-index: 100; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
