/* Kings-Hub website: the app's own colours (app/lib/core/design/board_theme.dart). */
:root {
  --royal: #1b7fb8;
  --royal-ink: #13648f;
  --royal-soft: #e1f0f9;
  --gold: #9a7a38;
  --text: #14212b;
  --text-2: #4a5a66;
  --line: #dde6ec;
  --surface: #ffffff;
  --page: #f5f8fa;
  --danger: #b42318;
  --ok: #157a46;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --royal: #6db9df;
    --royal-ink: #93cdec;
    --royal-soft: #17323f;
    --gold: #c8a65e;
    --text: #e9f2f7;
    --text-2: #a9bac6;
    --line: #2a3b47;
    --surface: #182630;
    --page: #0f1a21;
    --danger: #ff8a7a;
    --ok: #5fd39a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--royal-ink); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* Header and footer */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: auto; }
.nav { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--text-2); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--royal-ink); }
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 40px; color: var(--text-2); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
footer a { color: var(--text-2); }

/* Home */
.hero { padding: 56px 0 32px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 14px; }
.hero p { font-size: 18px; color: var(--text-2); margin: 0 0 24px; }
.hero .art { text-align: center; }
.hero .art img { width: min(260px, 70%); filter: drop-shadow(0 18px 30px rgba(20, 33, 43, 0.18)); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--royal); color: #fff; text-decoration: none; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; border: 0; font-size: 16px; cursor: pointer;
}
.button:hover { background: var(--royal-ink); }
.button.light { background: var(--royal-soft); color: var(--royal-ink); }
.button svg { width: 20px; height: 20px; }
.note { font-size: 14px; color: var(--text-2); margin-top: 10px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 28px; }
.band h2 { margin-top: 0; }

/* Documents */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px clamp(18px, 4vw, 40px); margin-top: 28px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; }
.doc .meta { color: var(--text-2); font-size: 14px; margin: 0 0 18px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.callout { background: var(--royal-soft); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }

/* Contact form */
form.contact { display: grid; gap: 14px; margin-top: 8px; }
label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--page);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--royal); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { border-radius: 10px; padding: 12px 14px; display: none; }
.status.ok { display: block; background: rgba(21, 122, 70, 0.12); color: var(--ok); }
.status.error { display: block; background: rgba(180, 35, 24, 0.10); color: var(--danger); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; text-align: center; }
  .hero .art { order: -1; }
  .features { grid-template-columns: 1fr; }
}
