/* The Local Online: shared styles for the agency pages and tools
   Brand: cobalt blue on white, deep ink text, Plus Jakarta Sans for headings.
   The full rules are in 07-brand/Brand-Guide.html. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --paper: #FFFFFF;      /* page background */
  --paper-2: #F4F6FB;    /* alternate bands */
  --card: #FFFFFF;
  --ink: #0B1033;        /* text and dark buttons */
  --green: #0B1033;      /* kept for older pages: dark brand colour */
  --green-2: #2D5BFF;    /* kept for older pages: focus rings, links */
  --accent: #2D5BFF;     /* cobalt: the brand colour and the one action colour */
  --accent-ink: #1C3FD1; /* hover and small labels */
  --tint: #EEF2FF;       /* light cobalt panels */
  --sun: #DCE4FF;        /* highlighter behind a word */
  --muted: #4A5372;
  --line: #E3E7F0;
  --line-2: #C3CBDB;
  --radius: 8px;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 42px); }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 36em; }
.label { font-size: 15px; font-weight: 600; color: var(--muted); }
.muted { color: var(--muted); }
mark { background: linear-gradient(transparent 56%, var(--sun) 56%, var(--sun) 94%, transparent 94%); color: inherit; padding: 0 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 6px; border: 1.5px solid var(--ink); font: 700 16px/1.1 var(--body); text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wordmark .dot { width: 28px; height: 28px; flex: none; display: inline-block; background: url("brand/mark-colour.svg") center / contain no-repeat; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 0; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { min-height: 42px; padding: 9px 16px; font-size: 15px; color: #fff; }
.nav .btn { white-space: nowrap; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 420px) { .wordmark { font-size: 18px; } .wordmark .dot { width: 24px; height: 24px; } .nav .btn { font-size: 14px; padding: 8px 12px; min-height: 40px; } }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.band { background: var(--paper-2); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 720px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Forms */
.field { display: grid; gap: 6px; }
.field > label, .field .flabel { font-size: 15px; font-weight: 600; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; font: 400 16px/1.4 var(--body); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,91,255,.2); }
.field textarea { min-height: 96px; resize: vertical; }
.field .err { color: #B42318; font-size: 14px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #B42318; border-width: 2px; }
.opt { font-weight: 400; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
