/* effektivisera.org | Huvudstilmall */

@font-face {
  font-family: "Cantarell";
  src: url("../fonts/cantarell-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #035394;
  --blue-800: #023e6f;
  --blue-900: #012a4c;
  --blue-100: #e4eef7;
  --yellow: #fdc900;
  --yellow-600: #d9ab00;
  --yellow-100: #fff7d9;
  --cyan: #6ac5d5;
  --ink-900: #151515;
  --ink-700: #3a3a3a;
  --ink-500: #6b6b6b;
  --grey-200: #e2e2e2;
  --grey-100: #efefef;
  --white: #fff;

  --font-display: "Cantarell", "Trebuchet MS", Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(56px, 9vw, 112px);
  --radius-card: 14px;
  --shadow-xs: 0 1px 2px rgba(1, 42, 76, .06);
  --shadow-lg: 0 16px 40px rgba(1, 42, 76, .14);
  --ease: cubic-bezier(.2, .6, .3, 1);
}

/* Bas */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.container { max-width: var(--container); margin: 0 auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--blue-900); color: var(--white);
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Varumärkesrand (cyan, gul, blå 2:2:3) */
.brand-bar { display: flex; height: 10px; }
.brand-bar span:nth-child(1) { flex: 2; background: var(--cyan); }
.brand-bar span:nth-child(2) { flex: 2; background: var(--yellow); }
.brand-bar span:nth-child(3) { flex: 3; background: var(--blue); }
.brand-bar--top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; }

/* Knappar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.005em; line-height: 1;
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease), border-color .12s var(--ease);
}
.btn--sm { font-size: .8125rem; padding: 8px 16px; min-height: 34px; }
.btn--lg { font-size: 1.125rem; padding: 15px 30px; min-height: 54px; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-800); }
.btn--accent { background: var(--yellow); color: var(--blue-900); font-size: 16px; padding: 0 24px; }
.btn--accent:hover { background: var(--yellow-600); }
.btn--inverse { background: var(--white); color: var(--blue); }
.btn--inverse:hover { background: var(--blue-100); }
.btn--secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--secondary:hover { background: var(--blue-100); }

/* Etikett ovanför rubrik */
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 12px;
}
.eyebrow--light { color: var(--cyan); }

.section { padding: var(--section-y) var(--gutter); }
.section--grey { background: var(--grey-100); }
.section--blue { background: var(--blue); color: var(--white); }
.section-title {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15;
  color: var(--ink-900); margin: 0 0 16px;
}

/* Sidhuvud */
.site-header {
  position: sticky; top: 10px; margin-top: 10px; z-index: 20;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-200);
}
.site-header-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo { display: block; margin: 0 auto 0 0; }
.site-logo img { height: 82px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav > a:not(.btn) {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--ink-700); text-decoration: none;
}
.site-nav > a:not(.btn):hover { color: var(--blue); }
.site-nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--blue); color: var(--white);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media { z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(1, 42, 76, .90) 0%, rgba(3, 83, 148, .78) 42%, rgba(3, 83, 148, .52) 100%);
}
.hero .eyebrow { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto 12px; }
.hero-grid {
  position: relative; z-index: 2; max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; height: 100%; }
.hero h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.25rem); line-height: 1.05;
  letter-spacing: -.02em; color: var(--white);
}
.hero-lead {
  font-size: 20px; line-height: 1.55; color: rgba(255, 255, 255, .86);
  max-width: 52ch; margin: 24px 0 32px; text-align: justify;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

.study-card {
  background: var(--white); color: var(--ink-700);
  border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-lg);
}
.badge {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 13px;
  padding: 4px 10px; border-radius: 4px; background: var(--yellow-100); color: var(--blue-900);
}
.study-card h2 { font-size: 22px; color: var(--ink-900); margin: 16px 0 8px; }
.study-card > p { font-size: 15px; color: var(--ink-500); margin: 0 0 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 15px; }
.steps strong { font-family: var(--font-display); }
.steps span { display: block; font-size: 13px; color: var(--ink-500); }

/* Tjänster */
.services-intro { font-size: 18px; line-height: 1.6; margin: 0 0 32px; text-align: justify; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-xs);
}
.service-card svg { margin-bottom: 16px; }
.service-card h3 { font-size: 18px; color: var(--ink-900); margin: 0 0 8px; }
.service-card p { font-size: 15px; }

/* Om oss */
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.about-copy { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.about-copy h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; color: var(--white); margin: 0 0 32px; }
.about-copy p { font-size: 20px; line-height: 1.48; color: rgba(255, 255, 255, .86); text-align: justify; }
.stats { display: grid; gap: 16px; }
.stat {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  border-top: 4px solid var(--yellow); border-radius: var(--radius-card);
  padding: 24px 26px; text-align: center;
}
.stat--cyan { border-top-color: var(--cyan); }
.stat-value {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.2vw, 2.75rem);
  color: var(--yellow); line-height: 1; letter-spacing: -.02em;
}
.stat-text {
  font-size: clamp(16px, 1.65vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .78);
  margin-top: 12px; letter-spacing: .045em;
}
.stat-label {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 14px;
}
.stat-list { font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .82); letter-spacing: .035em; }
.about-method {
  font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .78);
  margin: 34px 0 0; text-align: justify; letter-spacing: .025em;
}
.about-method-lead { display: block; margin-top: 1.6em; font-weight: 400; font-size: 20px; }

/* Kontakt */
.contact { background: var(--white); }
.contact-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.contact-lead { font-size: 18px; margin: 0 0 28px; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sidfot */
.site-footer { background: var(--blue-900); color: rgba(255, 255, 255, .78); }
.footer-grid {
  max-width: var(--container); margin: 0 auto; padding: 48px var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; font-size: 13px; line-height: 1.9;
}
.footer-grid img { height: 39px; width: auto; margin-bottom: 16px; }
.footer-title { font-family: var(--font-display); font-weight: 700; color: var(--white); margin: 0 0 8px; font-size: 13px; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--cyan); }
.footer-social {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 1.9em;
  text-decoration: none; font-family: var(--font-display); font-weight: 700;
}
.footer-keywords { margin: 0; }

/* Responsivt */
@media (min-width: 768px) {
  .hero-copy { min-height: 100%; }
}
@media (max-width: 767px) {
  .hero-copy { height: auto; }
}
@media (max-width: 860px) {
  .hero-grid, .about-grid, .service-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .site-header-inner {
    width: 100%; min-height: 78px; padding: 8px 16px;
    flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 0;
  }
  .site-logo { margin: 0; flex: 0 0 auto; }
  .site-logo img { height: 75px; }
  .site-nav-toggle {
    display: flex; position: relative; margin: 7px 0 0 auto;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
    background: rgba(1, 42, 76, .94); cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px; z-index: 20;
  }
  .site-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }
  .site-nav {
    display: none; position: absolute; top: 100%; right: 16px;
    width: min(230px, calc(100vw - 32px)); padding: 10px;
    background: var(--white); border-radius: 10px; box-shadow: 0 12px 30px rgba(1, 42, 76, .20);
    flex-direction: column; align-items: stretch; gap: 2px; z-index: 19;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav > a {
    display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: flex-start;
    padding: 0 12px; white-space: nowrap;
  }
  .site-nav > a:not(.btn) { font-size: 15px; line-height: 1.2; }
  .site-nav > .btn { justify-content: center; margin-top: 4px; }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 3.25rem); }
  .section, .hero { padding-left: 20px; padding-right: 20px; }
  .service-card { min-width: 0; }
}
