/* KOS Capital (AU) Pty Ltd - shared stylesheet for every page.
   Change colours and fonts in the :root block below; they apply site-wide. */
:root {
  --page-bg: #212326;      /* dark page background */
  --footer-bg: #141617;    /* footer */
  --header-bg: #112027;    /* top bar */
  --text: #f2f3f5;         /* body text */
  --heading-blue: #198fd9; /* headings, links, primary button */
  --green: #65bd7d;        /* Proceed button */
  --white: #ffffff;
  --max-width: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--heading-blue); }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 6px 10px; z-index: 100; }

/* Header and menu */
.site-header { background: var(--header-bg); }
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.logo img { display: block; width: auto; height: 68px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.site-nav a { color: var(--white); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--heading-blue); }
.site-nav li { position: relative; }
.site-nav .submenu { display: none; position: absolute; right: 0; top: 100%; min-width: 180px; background: var(--header-bg); padding: 10px 16px; z-index: 50; flex-direction: column; gap: 6px; }
.site-nav li:hover > .submenu, .site-nav li:focus-within > .submenu { display: flex; }

/* Sections */
section { padding: 70px 0; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.three-col-text { column-gap: 40px; }
h1, h2 { color: var(--white); font-size: clamp(34px, 5vw, 58px); line-height: 1.15; font-weight: 600; margin: 0 0 24px; }
h1 .accent { color: var(--heading-blue); display: block; }
section h2 { color: var(--heading-blue); }
h3 { color: var(--heading-blue); font-size: 24px; font-weight: 600; margin: 28px 0 8px; }
.subtitle { font-size: 20px; margin: 0 0 32px; }
p { margin: 0 0 16px; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 4px; border: 1px solid transparent;
  font: 500 16px Inter, Arial, sans-serif; text-decoration: none; cursor: pointer; color: var(--white);
}
.btn-blue { background: var(--heading-blue); }
.btn-outline { border-color: var(--heading-blue); color: var(--heading-blue); background: transparent; }
.btn-green { background: var(--green); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Forms */
form label { display: block; margin-bottom: 6px; }
form input[type=text], form input[type=email], form input[type=tel], form textarea {
  width: 100%; padding: 12px 14px; height: 50px; border: 1px solid var(--text); background: #fff; color: #141617;
  font: 16px Inter, Arial, sans-serif; margin-bottom: 16px;
}
form textarea { height: 140px; resize: vertical; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.check input { margin-top: 6px; }

/* Identifier panel */
.identifier h5 { color: var(--heading-blue); font-size: 18px; margin: 20px 0 6px; }
.identifier ul { list-style: none; margin: 0; padding: 0; }
.identifier li { padding: 3px 0; }

.legal-links { margin-top: 24px; }
.note-box { margin-top: 24px; }

/* Footer */
.site-footer { background: var(--footer-bg); padding: 20px 30px; text-align: center; }
.site-footer p { margin: 0; font-size: 14px; }

/* Simple content pages (Privacy Policy, Financial Services Guide) */
.page-content { padding: 60px 0 80px; }
.page-content h1 { font-size: clamp(30px, 4vw, 44px); }
.page-content h2 { font-size: 24px; color: var(--heading-blue); margin: 28px 0 8px; }

@media (max-width: 800px) {
  .two-col, .name-row { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}

/* Bulleted list of authorised product categories (What We Do) */
.product-list { margin: 0 0 20px; padding-left: 24px; }
.product-list li { margin-bottom: 4px; }

/* ---------- Dynamic pages: access requests, login, staff area ---------- */
.muted { color: #5a6472; font-size: .92em; }
.alert { padding: 12px 16px; border-radius: 4px; margin: 16px 0; border: 1px solid; }
.alert-error { background: #fdecea; border-color: #c0392b; color: #7a1d12; }
.alert-ok { background: #e8f5e9; border-color: #2e7d32; color: #1b4d1f; }
.alert-warn { background: #fff8e1; border-color: #b8860b; color: #5c4400; }
.stack label { display: block; margin: 14px 0 4px; font-weight: 600; }
.stack input[type=text], .stack input[type=email], .stack input[type=password], .stack input[type=date], .stack input[type=number], .stack select, .stack textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.narrow { max-width: 640px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.route-help { margin: 12px 0; padding: 12px 16px; background: #f3f6fa; border-left: 4px solid #2a5d9f; }
.route-help-item { margin: 6px 0; }
table.data { width: 100%; border-collapse: collapse; margin: 16px 0; }
table.data th, table.data td { border-bottom: 1px solid #d5dbe3; padding: 8px 10px; text-align: left; vertical-align: top; }
table.data.small { font-size: .85em; }
form.inline, .inline-form { display: inline; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.btn.small { padding: 4px 10px; font-size: .85em; }
.linkbox { display: inline-block; word-break: break-all; font-family: monospace; background: #fff; padding: 6px 8px; border: 1px solid #ccc; margin: 6px 0; }
.pre { background: #f3f6fa; padding: 12px; overflow: auto; }
.card { border: 1px solid #d5dbe3; border-radius: 4px; padding: 12px 16px; margin: 16px 0; }
