/* KyberSek OÜ — site styles (dark theme) */

/* Self-hosted IBM Plex (Latin subset, SIL OFL 1.1; licences in assets/fonts/) */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #0D1110;
  --bg-soft: #121816;
  --surface: #151C19;
  --heading: #F1F5F2;
  --text: #DDE5E0;
  --muted: #A9B6AF;
  --muted-2: #8E9B94;
  --line: #24302B;
  --field: #34423B;
  --accent: #3FBF7F;
  --rule: #3FBF7F;
  --btn-bg: #3FBF7F;
  --btn-text: #07130D;
  --btn-hover: #62D498;
  --panel-bg: #121916;
  --panel-border: #24302B;
  --panel-line: #2A3832;
  --panel-label: #3FBF7F;
  --panel-text: #F1F5F2;
  --panel-note: #A9B6AF;
  --band-bg: #0F1A15;
  --band-heading: #F1F5F2;
  --band-text: #A9B6AF;
  --band-btn-bg: #3FBF7F;
  --band-btn-text: #07130D;
  --footer-bg: #080B0A;
  --footer-text: #A9B6AF;
  --footer-link: #F1F5F2;
  --mark-bg: #3FBF7F;
  --mark-fg: #07130D;
  --mark-red: #E0313F;
  color-scheme: dark;
}


:root {
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: var(--heading); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1160px; margin: 0 auto; padding-inline: 32px; }

/* Logo */
.mark { flex: none; }
.brand .sek { color: var(--accent); }
.brand .ou { color: var(--muted); font-weight: 500; }

/* Header */
.site-header { border-top: 3px solid var(--mark-red); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--heading); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); padding: 10px 0; }
.nav a:hover { color: var(--accent); }
.nav a.nav-cta { color: var(--btn-text); background: var(--btn-bg); padding: 11px 20px; border-radius: 6px; font-weight: 500; }
.nav a.nav-cta:hover { background: var(--btn-hover); color: var(--btn-text); }

/* Shared */
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section { padding-block: 96px; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 48px; }
h1, h2, h3 { color: var(--heading); margin: 0; font-weight: 600; }
h2 { font-size: 36px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }

.btn { display: inline-block; text-decoration: none; padding: 14px 26px; border-radius: 6px; font-size: 16px; font-weight: 500; border: 1px solid transparent; font-family: inherit; cursor: pointer; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-text); }
.btn-secondary { background: transparent; color: var(--heading); border-color: var(--field); }
.btn-secondary:hover { border-color: var(--accent); color: var(--heading); }
.btn-light { background: var(--band-btn-bg); color: var(--band-btn-text); }
.btn-light:hover { opacity: 0.9; color: var(--band-btn-text); }

/* Hero */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero .container { padding-block: 96px 104px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.panel { background: var(--panel-bg); border: 1px solid var(--panel-border); color: var(--panel-text); border-radius: 10px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.panel .eyebrow { color: var(--panel-label); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1px solid var(--panel-line); border-radius: 6px; padding: 16px; font-size: 16px; font-weight: 500; }
.panel-note { font-size: 15px; line-height: 1.6; color: var(--panel-note); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.card-num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.card h3 { font-size: 22px; }
.card p, .principle p { font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Approach */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.principle { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--rule); padding-top: 24px; }
.principle h3 { font-size: 20px; }

/* Background */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; }
.two-col .section-head { margin-bottom: 0; }
.body-lg { font-size: 17px; line-height: 1.65; color: var(--muted); }
.creds { margin: 0; padding: 0; list-style: none; }
.creds li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: var(--text); }
.creds li:last-child { border-bottom: 1px solid var(--line); }
.creds li::before { content: "—"; font-family: var(--mono); font-size: 14px; color: var(--accent); min-width: 28px; padding-top: 2px; }

/* CTA band */
.cta-band { background: var(--band-bg); border-top: 1px solid var(--line); }
.cta-band .container { padding-block: 80px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--band-heading); font-size: 32px; line-height: 1.25; margin-bottom: 12px; }
.cta-band p { font-size: 17px; line-height: 1.6; color: var(--band-text); max-width: 640px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.site-footer .container { padding-block: 48px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; font-size: 14px; line-height: 1.7; }
.site-footer .col { display: flex; flex-direction: column; gap: 4px; }
.site-footer strong { color: var(--footer-link); font-weight: 600; font-size: 15px; }
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: var(--accent); }

/* Contact page */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head .container { padding-block: 72px 64px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.02em; }
.page-head p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 620px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; align-items: start; padding-block: 72px 96px; }
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; color: var(--heading); }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid var(--field); border-radius: 6px; color: var(--text); background: var(--surface); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.form-note { font-size: 14px; line-height: 1.6; color: var(--muted-2); }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.info > div { padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; }
.info > div + div { border-top: 1px solid var(--line); }
.info a { font-size: 18px; font-weight: 500; }
.info address { font-style: normal; font-size: 16px; line-height: 1.7; color: var(--text); }

@media (max-width: 600px) {
  .container { padding-inline: 20px; }
  .section { padding-block: 64px; }
  .hero .container { padding-block: 56px 64px; }
  .panel, .card { padding: 28px; }
  .chips { grid-template-columns: 1fr; }
}

/* Hero: faint attitude-indicator graphic */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 600px; height: 600px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: url("hero-instrument.svg") no-repeat center / contain; opacity: .07; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
@media (max-width: 900px) { .hero::before { width: min(88vw, 520px); height: min(88vw, 520px); top: 38%; opacity: .06; } }

/* Service card icons */
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.card-icon { width: 40px; height: 40px; color: var(--accent); flex: none; }

/* Contact page head: small attitude-indicator graphic */
.page-head { position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; width: 260px; height: 260px; right: calc(max(0px, (100% - 1160px) / 2) + 48px); top: 50%; transform: translateY(-50%); background: url("hero-instrument.svg") no-repeat center / contain; opacity: .12; pointer-events: none; }
.page-head .container { position: relative; z-index: 1; }
@media (max-width: 760px) { .page-head::before { display: none; } }

/* Contact details panel icons */
.info-label { display: flex; align-items: center; gap: 10px; }
.info-icon { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* Page-head eyebrow (overrides ".page-head p") */
.page-head p.eyebrow { font-size: 13px; color: var(--accent); }

/* Anchor links land below the sticky header (fallback values; exact value set by script in index.html) */
html { scroll-padding-top: 85px; }
@media (max-width: 660px) { html { scroll-padding-top: 109px; } }

/* Compact header on phones: menu on one full-width row under the logo */
@media (max-width: 660px) {
  .site-header .container { padding-block: 12px; gap: 8px; }
  .nav { width: 100%; justify-content: flex-start; gap: 8px clamp(10px, 4vw, 28px); flex-wrap: nowrap; }
  .nav a.nav-cta { margin-left: auto; padding: 9px 14px; }
}
@media (max-width: 370px) { .nav { font-size: 14px; column-gap: 8px; } .nav a.nav-cta { padding: 8px 9px; } }
