/* Østfyns El-Teknik: tokens, fonts and text styles. Linked on the frontend (header.php, before style.css)
   and loaded in the TinyMCE editors (add_editor_style), so editor content looks like the site. */

/* ---------- Font: Bricolage Grotesque (variable, self-hosted: no Google Fonts requests) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url('_fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url('_fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens (from the handoff) ---------- */
:root {
  --navy: #08478a;
  --blue: #157cd6;
  --blue-light: #8cc4f5;
  --ink: #0f1b2d;
  --muted: #4a5866;
  --subtle: #5b6b7c;
  --cream: #f7f4ee;
  --white: #ffffff;
  --line: #e6e1d6;
  --line-2: #eee9df;
  --line-cool: #cdd5df;
  --field-line: #e2e6ec;
  --field-bg: #fafbfc;
  --shadow-card: 0 24px 60px -24px rgba(15,27,45,.35);
  --radius-card: 20px;
  --radius-hero: 28px;
  --radius-form: 24px;
  --radius-thumb: 12px;
  --radius-input: 12px;
  --font: 'Bricolage Grotesque', system-ui, sans-serif;
}

/* ---------- Text ---------- */
html, body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); }
body { font-optical-sizing: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--blue); }

h1, h2, h3, h4 { font-weight: 700; margin: 0 0 .5em; text-wrap: pretty; color: var(--ink); }
h1 { font-size: 72px; line-height: .98; letter-spacing: -.03em; }
h2 { font-size: 44px; line-height: 1.08; letter-spacing: -.025em; }
h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
h4 { font-size: 19px; line-height: 1.3; }
p { margin: 0 0 1.2em; color: var(--muted); }
.lead, p.lead { font-size: 20px; line-height: 1.5; color: var(--muted); }
small, .small { font-size: 14px; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
strong, b { font-weight: 700; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
blockquote { margin: 0 0 1.2em; padding: 20px 24px; border-left: 3px solid var(--blue); background: #fff; border-radius: 0 16px 16px 0; color: var(--ink); font-weight: 600; font-size: 19px; line-height: 1.4; }
blockquote p { margin: 0; color: inherit; }

/* Editor content (page.php / single) */
.content > *:first-child { margin-top: 0; }
.content h2 { font-size: 34px; margin-top: 1.4em; }
.content h3 { font-size: 24px; margin-top: 1.3em; }
.content h4 { margin-top: 1.2em; }
.content p, .content li { font-size: 17px; line-height: 1.65; }
.content p.lead { font-size: 20px; }
.content ul, .content ol { margin: 0 0 1.2em; padding-left: 22px; color: var(--muted); }
.content li { margin-bottom: .35em; }
.content ul li::marker { color: var(--blue); }
.content a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--blue-light); }
.content a:hover { text-decoration-color: var(--blue); }
.content table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.content th, .content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.content th { font-weight: 700; color: var(--ink); }
.content p:has(> .btn) { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons (also as TinyMCE styles via the Formats menu) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.2; padding: 15px 26px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; text-decoration: none !important; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: #063a72; color: #fff; }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: #116ab8; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); font-size: 15px; padding: 13px 22px; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-cool); font-size: 14px; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.textlink { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; font-size: 16px; padding: 15px 8px; }
.textlink:hover { color: var(--blue); }
.textlink svg { transition: transform .15s ease; }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Form fields ---------- */
label { font-size: 13px; font-weight: 600; color: var(--subtle); }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); padding: 15px 16px; border: 1.5px solid var(--field-line); border-radius: var(--radius-input); background: var(--field-bg); outline: none; -webkit-appearance: none; appearance: none; transition: border-color .15s ease, box-shadow .15s ease; }
input::placeholder, textarea::placeholder { color: #8a95a3; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,124,214,.15); }
textarea { resize: vertical; min-height: 120px; }

/* TinyMCE body */
body.mce-content-body { padding: 16px 20px; background: #fff; max-width: 800px; }
body.mce-content-body h1 { font-size: 40px; }
body.mce-content-body h2 { font-size: 30px; }
