/* Victor Consulting — Direction 2 Modern saklig.
   IBM Plex throughout, calm grayscale + cool blue accent. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Serif:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f3;
  --ink: #0e1116;
  --ink-soft: #3a3f47;
  --ink-mute: #6b7079;
  --rule: #e3e3df;
  --rule-soft: #ededea;
  --accent: #1f3a5f;
  --accent-soft: #2e5388;
  --accent-tint: #eaf0f8;

  --sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --serif: 'IBM Plex Serif', Georgia, serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--sans); font-weight: 500; color: var(--ink); margin: 0;
  line-height: 1.2; letter-spacing: -0.015em;
}
h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 500; }
h2 { font-size: clamp(28px, 3vw, 38px); }
h3 { font-size: clamp(20px, 2vw, 24px); }

p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

main { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.site-header .brand {
  font-family: var(--sans); font-weight: 500; font-size: 17px;
  color: var(--ink); letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 10px;
}
.site-header .brand .mark {
  width: 28px; height: 28px; border-radius: 4px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 500;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic;
}
.site-header nav { display: flex; gap: 4px; }
.site-header nav a {
  color: var(--ink-soft); padding: 8px 14px; border-radius: 6px;
  font-size: 15px; font-weight: 400;
}
.site-header nav a:hover { background: var(--bg-alt); color: var(--ink); }
.site-header nav a[aria-current="page"],
.site-header nav .current-menu-item > a,
.site-header nav .current_page_item > a {
  color: var(--accent); background: var(--accent-tint);
}
.site-header .phone {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  font-feature-settings: "tnum";
}
.site-header .phone::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #2a9d5e; margin-right: 8px;
  vertical-align: middle;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 6px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #fff; }
.btn.ghost { border-color: var(--rule); color: var(--ink); }
.btn.ghost:hover { background: var(--bg-alt); color: var(--ink); }

.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px; display: inline-block;
}
.eyebrow .dot { display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 36px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--bg-alt);
  margin-top: 0;
}
.site-footer .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; }
.site-footer h5 {
  font-family: var(--sans); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-mute); margin: 0 0 12px;
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.site-footer .copy { text-align: right; }

/* ===========================================================
   PAGE: HEM (template-home)
   =========================================================== */

.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-family: var(--serif); font-weight: 400; }
.hero .ingress {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.hero-meta .stat .num {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 36px);
  font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
  font-feature-settings: "lnum"; display: block;
}
.hero-meta .stat .lab {
  font-size: 13px; color: var(--ink-mute); margin-top: 2px;
}

.services { padding: 96px 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500; letter-spacing: -0.02em;
}
.section-head p { color: var(--ink-soft); font-size: 17px; max-width: 56ch; margin: 0; }

.svc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.svc {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  min-height: 380px;
  transition: border-color 0.2s ease;
}
.svc:hover { border-color: var(--ink-mute); }
.svc.featured {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.svc.featured:hover { border-color: var(--accent); }
.svc .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(255,255,255,0.18); color: #fff;
  margin-bottom: 24px; align-self: flex-start;
}
.svc:not(.featured) .pill {
  background: var(--bg-alt); color: var(--ink-mute);
}
.svc h3 {
  font-size: 22px; font-weight: 500;
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.svc.featured h3 { color: #fff; }
.svc p {
  font-size: 16px; line-height: 1.6;
  color: var(--ink-soft); flex: 1; margin: 0;
}
.svc.featured p { color: rgba(255,255,255,0.85); }
.svc .price {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.svc.featured .price { border-top-color: rgba(255,255,255,0.2); }
.svc .price .lab {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.svc.featured .price .lab { color: rgba(255,255,255,0.7); }
.svc .price .amount {
  display: block; margin-top: 4px;
  font-family: var(--serif);
  font-size: 26px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.svc.featured .price .amount { color: #fff; }
.svc .price .qual { font-size: 13px; color: var(--ink-mute); margin-top: 6px; display: block; }
.svc.featured .price .qual { color: rgba(255,255,255,0.65); }
.svc .terms { margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--ink-mute); }

.notice {
  padding: 32px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.notice .row {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
}
.notice .ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
  display: grid; place-items: center; font-family: var(--serif); font-style: italic;
  font-size: 16px; font-weight: 500;
  margin-top: 4px;
}
.notice p { font-size: 16px; color: var(--ink-soft); margin: 0; max-width: 80ch; }
.notice strong { color: var(--ink); font-weight: 500; }

.exp { padding: 96px 0; }
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.exp h2 { font-size: clamp(36px, 4.4vw, 56px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 28px; }
.exp p { font-size: 17px; color: var(--ink-soft); line-height: 1.65; }
.exp .companies {
  margin: 32px 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
}
.exp .companies li { background: var(--bg); padding: 16px 14px; }
.exp .companies li .y {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-mute); margin-bottom: 4px;
}
.exp .companies li .nm { font-size: 15px; font-weight: 500; color: var(--ink); }

.tl {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
}
.tl h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-mute); margin-bottom: 22px; font-weight: 500;
}
.tl-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.tl-row:last-child { border-bottom: 0; }
.tl-row .yrs {
  font-family: var(--serif); font-feature-settings: "lnum";
  font-size: 14px; color: var(--ink-mute);
}
.tl-row .what { font-size: 16px; font-weight: 500; color: var(--ink); }
.tl-row .what em { display: block; font-style: normal; font-weight: 400; font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.tl-row.now .yrs { color: var(--accent); font-weight: 500; }
.tl-row.now .what::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: #2a9d5e; border-radius: 50%; margin-right: 8px; vertical-align: middle;
}

.cband {
  padding: 96px 0;
  background: var(--ink);
  color: #fff;
}
.cband h2 {
  color: #fff; font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 500; letter-spacing: -0.02em; margin-bottom: 24px;
  max-width: 18ch;
}
.cband p { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 56ch; }
.cband .grid {
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.cband .row .lab {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5); margin-bottom: 8px; display: block;
}
.cband .row a {
  font-family: var(--sans); font-size: clamp(28px, 3vw, 38px);
  color: #fff; font-weight: 400; letter-spacing: -0.015em;
  display: inline-block; padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.cband .row a:hover { border-bottom-color: #fff; color: #fff; }

/* ===========================================================
   PAGE: ERFARENHET (template-experience)
   =========================================================== */

.cv-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.cv-hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.025em; max-width: 16ch;
  margin-bottom: 24px;
}
.cv-hero h1 em { font-style: italic; color: var(--accent); font-family: var(--serif); font-weight: 400; }
.cv-hero .lede {
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--ink-soft); line-height: 1.6; max-width: 60ch;
}
.cv-meta {
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.cv-meta .stat .num {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  display: block; letter-spacing: -0.01em;
}
.cv-meta .stat .lab { font-size: 13px; color: var(--ink-mute); }

.tabs {
  position: sticky; top: 64px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  z-index: 40;
}
.tabs .row { display: flex; gap: 4px; padding: 12px 0; overflow-x: auto; }
.tabs a {
  padding: 8px 14px; border-radius: 6px;
  font-size: 14px; color: var(--ink-soft); white-space: nowrap;
  font-weight: 400;
}
.tabs a:hover { background: var(--bg-alt); color: var(--ink); }
.tabs a .n {
  font-family: var(--serif); font-style: italic; color: var(--accent);
  margin-right: 6px; font-size: 12px;
}

.cv-main { padding: 64px 0 96px; }
.cv-section { padding: 0 0 64px; margin-bottom: 56px; border-bottom: 1px solid var(--rule); scroll-margin-top: 130px; }
.cv-section:last-child { border-bottom: 0; margin-bottom: 0; }
.cv-section h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500; letter-spacing: -0.02em;
  margin-bottom: 32px;
  display: flex; align-items: baseline; gap: 16px;
}
.cv-section h2 .n {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent); font-size: 0.55em;
}

.entries { display: grid; grid-template-columns: 1fr; }
.entry {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.entry .y {
  font-feature-settings: "lnum"; font-size: 14px;
  color: var(--ink-mute); font-weight: 500;
}
.entry .what { font-size: 17px; color: var(--ink); font-weight: 500; }
.entry .what em { display: block; font-style: normal; font-weight: 400; font-size: 14px; color: var(--ink-mute); margin-top: 2px; line-height: 1.5; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }

.proj-group { margin-bottom: 32px; }
.proj-group .ghead {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-mute); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.proj {
  display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.proj .y { font-size: 14px; color: var(--ink-mute); font-feature-settings: "lnum"; font-weight: 500; }
.proj h4 { font-size: 19px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.005em; }
.proj p { font-size: 15px; color: var(--ink-soft); margin: 0; max-width: 70ch; line-height: 1.55; }
.proj.major {
  background: var(--accent-tint);
  padding: 22px 24px; margin: 6px -24px;
  border-radius: 6px;
  border-bottom: 0;
}
.proj.major .y { color: var(--accent); }
.proj.major h4 { color: var(--accent); }

/* ===========================================================
   PAGE: KONTAKT (template-contact)
   =========================================================== */

.k-hero { padding: 96px 0 48px; }
.k-hero h1 {
  font-size: clamp(48px, 6.4vw, 80px);
  font-weight: 500; line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.k-hero h1 em { font-style: italic; color: var(--accent); font-family: var(--serif); font-weight: 400; }
.k-hero .lede { margin-top: 24px; max-width: 60ch; color: var(--ink-soft); font-size: 19px; }

.k-main { padding: 24px 0 96px; }
.k-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  border-top: 1px solid var(--rule); padding-top: 56px;
}
.k-row {
  padding: 24px 0; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: baseline;
}
.k-row .lab {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-mute); padding-top: 4px; font-weight: 500;
}
.k-row a {
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--ink); font-weight: 500; letter-spacing: -0.02em;
  display: inline-block; padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.k-row a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.k-row .geo { font-size: 22px; color: var(--ink); font-weight: 500; }
.k-row .geo em { font-style: normal; font-weight: 400; color: var(--ink-soft); display: block; font-size: 16px; margin-top: 4px; }

.k-aside {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
}
.k-aside h3 { font-size: 22px; font-weight: 500; margin-bottom: 14px; letter-spacing: -0.01em; }
.k-aside p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: none; }
.k-aside ul { padding-left: 0; margin: 14px 0 0; list-style: none; }
.k-aside ul li {
  padding: 10px 0; border-bottom: 1px dotted var(--rule);
  font-size: 15px; color: var(--ink); display: flex; gap: 10px; align-items: baseline;
}
.k-aside ul li::before {
  content: "→"; color: var(--accent); font-weight: 500;
}
.k-aside .firma {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.k-aside .firma .lab {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-mute); margin-bottom: 6px; font-weight: 500;
}

.k-resp {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 56ch;
}
.k-resp strong { color: var(--accent); font-weight: 500; display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 6px; }

/* ===========================================================
   FALLBACK: standard sidor (page.php / index.php)
   =========================================================== */

.page-default { padding: 80px 0 96px; }
.page-default h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 32px;
}
.page-default .entry-content { max-width: 64ch; }
.page-default .entry-content p { font-size: 17px; color: var(--ink-soft); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 900px) {
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .svc-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; gap: 32px; }
  .exp .companies { grid-template-columns: 1fr 1fr; }
  .cband .grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 800px) {
  .cv-meta { grid-template-columns: 1fr 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .entry, .proj { grid-template-columns: 80px 1fr; gap: 14px; }
  .k-grid { grid-template-columns: 1fr; gap: 32px; }
  .k-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 780px) {
  .site-header nav { display: none; }
  .site-footer .row { grid-template-columns: 1fr; gap: 22px; }
  .site-footer .copy { text-align: left; }
  body { font-size: 17px; }
  .hero { padding: 64px 0 56px; }
  .services, .exp, .cband { padding: 64px 0; }
}
