/* UnRewined – statisk version. Återskapar utseendet från WordPress-temat (Zephyr) med ren CSS. */

@font-face { font-family: "Celias"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/celias-light.woff") format("woff"); }
@font-face { font-family: "Celias"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/celias-bold.woff") format("woff"); }

:root {
  --teal: #00a0a0;
  --teal-dark: #005c5c;
  --ink: #2d3237;          /* rubriker, text, hero- och sidfotsbakgrund */
  --page: #e6ebed;         /* innehållsbakgrund */
  --alt: #545a60;          /* "About"-sektionen */
  --outside: #3d434a;      /* bakgrund utanför 1300 px-ramen */
  --grad-from: #c3cdd1;
  --white: #fff;
  --canvas: 1300px;
  --content: 1140px;
  --font: "Celias", "Helvetica Neue", Arial, sans-serif;
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--outside); color: var(--ink); font-family: var(--font); font-weight: 300; font-size: 18px; line-height: 26px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s, background-color .2s; }
a:hover { color: var(--teal-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; color: inherit; margin: 0 0 .8em; line-height: 1.25; }
h1 { font-size: 28px; }
h2 { font-size: 28px; margin-bottom: 1em; }
h3 { font-size: 24px; line-height: 1.2; }
p, ul, ol { margin: 0 0 .55em; }
.prose-body p, .prose-body ul, .prose p, .prose ul { margin-bottom: .9em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--teal); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* Ram: allt innehåll ligger i en 1300 px bred "canvas" mot mörk bakgrund */
.canvas { max-width: var(--canvas); margin: 0 auto; background: var(--page); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { max-width: calc(var(--content) + 80px); margin: 0 auto; padding: 0 40px; }

/* Knappar */
.btn { display: inline-block; background: var(--teal); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.2; padding: .6em 1em; border-radius: .2em; border: 0; cursor: pointer; font-family: var(--font); }
.btn:hover, .btn:focus-visible { background: var(--teal-dark); color: #fff; }
.btn-light { font-weight: 300; }
.btn-lg { font-size: 18px; padding: .6em 1em; }
.btn-round { width: 140px; height: 140px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 300; padding: 0; }

/* Sidhuvud */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); height: var(--header-h); border-bottom: 1px solid rgba(0,0,0,.06); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; max-width: 1300px; padding: 0 94px 0 94px; }
.logo img { width: 220px; height: auto; }
.nav ul { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.nav a { display: block; font-weight: 700; font-size: 18px; line-height: 50px; color: var(--ink); padding: 0 47px; }
.nav li:last-child a { padding-right: 6px; }
.nav a:hover, .nav a[aria-current="page"], .nav a.is-active { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; } .nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* Hero med bakgrundsvideo */
.hero { position: relative; overflow: hidden; background: var(--ink) url("../bilder/hero-poster.jpg") center / cover no-repeat; color: #fff; text-align: center; min-height: 522px; display: flex; align-items: center; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; width: 100%; }
.hero-logo { width: 462px; max-width: 80%; margin: 0 auto 30px; }
.hero h1, .hero .lead { font-size: 24px; line-height: 30px; font-weight: 700; max-width: 480px; margin: 0 auto 1.1rem; }
.hero .lead:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .hero video { display: none; } }

/* Process */
.process { background: var(--page) url("../bilder/process-bg.png") left center / cover no-repeat; padding: 80px 0 90px; }
.process .wrap { display: grid; grid-template-columns: minmax(0, 489fr) minmax(0, 651fr); gap: 0; }
.process .text { grid-column: 2; }
.inline-cta { display: flex; align-items: center; gap: .6em; flex-wrap: wrap; margin-top: 1.2em; }

/* About */
.about { background: var(--alt); color: #fff; padding: 80px 0; }
.about .wrap { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: center; }
.about .cta { text-align: center; }
.about .cta p { max-width: 230px; margin: 12px auto 0; }

/* Navigating the Industry Shift + senaste inlägg */
.shift { background: linear-gradient(90deg, var(--grad-from), var(--page)); padding: 80px 0; }
.shift .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.shift .more { grid-column: 1; text-align: center; margin-top: 1rem; }
.recent h2 { font-size: 21.6px; line-height: 1.2; margin: 8px 0 .9em; }
.recent ul { list-style: none; padding: 0; margin: 0; }
.recent li { margin-bottom: 8px; line-height: 25px; }

/* Kontakt */
.contact { padding: 80px 0; text-align: center; }
.contact h2 { margin-bottom: 52px; }
.person { margin: 0 0 40px; font-style: normal; line-height: 32px; }
.person:last-child { margin-bottom: 0; }

/* Sidfot */
.site-footer { background: var(--ink); color: #fff; padding: 80px 0 100px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; max-width: 1300px; padding: 0 94px; }
.site-footer .logo img { width: 220px; }
.site-footer h2 { font-size: 24px; margin: 0 0 18px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--teal); }
.footer-contact p { margin: 0; }
.footer-meta { margin-top: 24px; font-size: 14px; line-height: 22px; }
.footer-meta a { color: #c3cdd1; margin-right: 1rem; }
.footer-meta button { background: none; border: 0; padding: 0; color: #c3cdd1; font: inherit; cursor: pointer; }
.footer-meta button:hover { color: var(--teal); }

/* Insikter (blogg) */
.page { padding: 70px 0 80px; }

.post-list { list-style: none; padding: 0; margin: 50px 0 0; max-width: 1020px; }
.post-list li { margin-bottom: 52px; }
.post-list h2 { font-size: 24px; margin: 0 0 .5em; }
.post-list h2 a { color: var(--ink); }
.post-list h2 a:hover { color: var(--teal); }
.post-list p { margin-bottom: 12px; }
.post-list time { display: block; font-size: 15px; color: #6b7177; margin-bottom: 6px; }
.article h1 { margin-bottom: 1.2em; }
.article .meta { font-size: 15px; color: #5d646a; margin: -1.2em 0 2em; }
.prose-body h2 { font-size: 21px; line-height: 28px; margin: 2em 0 .6em; }
.prose-body h3 { font-size: 19px; line-height: 26px; margin: 1.6em 0 .5em; }
.article ul { padding-left: 1.2em; }
.article .back { margin-top: 3rem; }
.prose h2 { font-weight: 700; font-size: 28px; line-height: 1.25; margin: 2rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }

/* WBWE-arkivsida */
.wbwe { background: #2f3338; color: #fff; text-align: center; padding: 36px 20px 60px; }
.wbwe img { margin: 0 auto 80px; width: 100%; max-width: 1400px; }
.wbwe .logo-neg { width: 300px; margin: 0 auto 10px; }
.wbwe .note { color: #c3cdd1; font-size: 15px; margin-bottom: 20px; }

/* Cookie-/samtyckesruta */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #f0f3f4; color: var(--ink); box-shadow: 0 -2px 12px rgba(0,0,0,.15); font-size: 14px; line-height: 20px; padding: 14px 20px; }
.consent[hidden] { display: none; }
.consent .inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px 20px; flex-wrap: wrap; }
.consent p { margin: 0; }
.consent .actions { display: flex; gap: 10px; }
.consent .btn { font-size: 14px; padding: 8px 14px; }
.consent .btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #8a9196; font-weight: 300; }
.consent .btn-secondary:hover { background: #fff; color: var(--ink); }

/* Till toppen */
.to-top { position: fixed; right: 15px; bottom: 15px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; background: rgba(45,50,55,.85); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--ink); }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }

/* ——— Responsivt ——— */
@media (max-width: 1280px) {
  .nav a { padding: 0 24px; }
  .site-header .wrap, .site-footer .wrap { padding: 0 40px; }
}
@media (max-width: 1024px) {
  .process { background-image: url("../bilder/process-bg-mobile.png"); background-position: bottom right; background-size: contain; }
  .process .wrap { grid-template-columns: 1fr; }
  .process .text { grid-column: 1; }
  .shift .wrap { grid-template-columns: 1fr; }
  .shift .more { grid-column: 1; order: 2; margin-top: 0; }
  .recent { order: 3; }
}
@media (max-width: 900px) {
  :root { --header-h: 65px; }
  .logo img { width: 160px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.12); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 0; }
  .nav a, .nav li:last-child a { padding: 0 24px; line-height: 48px; }
  .site-header .wrap { padding: 0 24px; position: relative; }
}
@media (max-width: 767px) {
  body { font-size: 16px; line-height: 24px; }
  .wrap { padding: 0 24px; }
  .hero { min-height: 420px; }
  .hero .wrap { padding-top: 50px; padding-bottom: 50px; }
  .hero-logo { width: 215px; margin-bottom: 20px; }
  .hero h1, .hero .lead { font-size: 20px; line-height: 25px; max-width: 240px; }
  .process { background-image: none; padding: 30px 0 40px; }
  .inline-cta { flex-direction: column; text-align: center; }
  .about { padding: 30px 0 40px; }
  .about .wrap { grid-template-columns: 1fr; }
  .shift, .contact, .page { padding: 40px 0; }
  h1, h2 { font-size: 26px; }
  .site-footer { padding: 50px 0 60px; }
  .site-footer .wrap { padding: 0 24px; flex-direction: column; }
}
@media print {
  .site-header, .consent, .to-top, .hero video { display: none !important; }
  body, .canvas { background: #fff; }
}
