/* Read the Room UF
   Färger och typsnitt ändras här uppe. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --vin-mork: #3B1715;
  --vin: #641C20;
  --sand: #D9C4A3;
  --beige: #EEE3D0;
  --ljus: #F6F0E5;
  --text: #2E1412;
  --text-mjuk: #5E4340;
  --linje: 2px;
  --bredd: 1180px;
  --kant: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ljus);
  color: var(--text);
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: -0.012em;
}

h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.5rem; line-height: 1.1; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--vin); outline-offset: 3px; }
.top :focus-visible, .hero :focus-visible, .support :focus-visible,
.contact :focus-visible, .foot :focus-visible { outline-color: var(--sand); }

.wrap { max-width: var(--bredd); margin: 0 auto; padding: 0 var(--kant); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ljus); color: var(--vin-mork); padding: 10px 14px;
}
.skip:focus { top: 12px; }

/* Knappar: raka hörn, som ramen i loggan */
.btn {
  display: inline-block;
  padding: 0.8em 1.25em;
  border: var(--linje) solid currentColor;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.btn--light { background: var(--ljus); color: var(--vin-mork); border-color: var(--ljus); }
.btn--light:hover { background: transparent; color: var(--ljus); }
.btn--ghost { color: var(--ljus); }
.btn--ghost:hover { background: var(--ljus); color: var(--vin-mork); }
.btn--dark { background: var(--vin); color: var(--ljus); border-color: var(--vin); }
.btn--dark:hover { background: transparent; color: var(--vin); }

/* Sidhuvud */
.top {
  position: sticky; top: 0; z-index: 50;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
  background: var(--vin-mork);
  color: var(--ljus);
}
.top.is-hidden { transform: translateY(-100%); }
.top__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.top__logo img { width: 92px; height: auto; }
.top__nav { display: flex; align-items: center; gap: 28px; }
.top__nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.top__nav a:not(.btn):hover { text-decoration: underline; }
.top__nav .btn { padding: 0.55em 1em; }
.top__toggle {
  display: none;
  font: inherit; font-weight: 700;
  color: var(--ljus); background: none;
  border: var(--linje) solid var(--ljus);
  padding: 0.45em 0.9em; cursor: pointer;
}

/* Hero */
.hero {
  background: var(--vin-mork);
  color: var(--ljus);
  padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 104px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 0.98;
  text-wrap: balance;
}
.hero__lead {
  margin: 1.5em 0 0;
  max-width: 34em;
  font-size: 1.2rem;
  color: var(--beige);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }
.hero__photo {
  margin: 0;
  position: relative;
}
.hero__frame {
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 3px solid var(--sand);
}
.hero__img { position: relative; overflow: hidden; }
.hero__photo img { aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 50% 30%; width: 100%; }

/* Ordbandet: två rader som rör sig åt var sitt håll och följer scrollhastigheten */
.band {
  background: var(--vin);
  color: var(--beige);
  overflow: hidden;
  padding: 14px 0 16px;
}
.band__row { overflow: hidden; }
.band__track {
  display: flex; align-items: center; gap: 30px;
  width: max-content;
  padding-right: 30px;
  will-change: transform;
}
.band span {
  font-weight: 800; font-stretch: 75%;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.1; letter-spacing: -0.01em;
}
.band span.o {
  color: transparent;
  -webkit-text-stroke: 1.25px var(--beige);
}
.band i {
  flex: none; width: 0.55rem; height: 0.55rem;
  border: 2px solid var(--sand);
}

/* Siffror */
.reach { background: var(--beige); padding: clamp(48px, 7vw, 88px) 0; }
.reach__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 28px; }
.reach__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border: 3px solid var(--vin-mork);
}
.reach__item { padding: 24px 28px 26px; border-right: 3px solid var(--vin-mork); }
.reach__item:last-child { border-right: 0; }
.reach dd {
  margin: 0;
  font-weight: 800; font-stretch: 75%;
  font-size: clamp(3rem, 6.6vw, 5.6rem);
  line-height: 1; letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.reach dt { margin-top: 6px; font-size: 1.1rem; font-weight: 500; }
.reach__grid > div { display: flex; flex-direction: column; }
.reach__note { margin-top: 18px; color: var(--vin-mork); }

/* Sektioner */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--beige { background: var(--beige); }
.section--sand { background: var(--beige); }

.lead-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.lead-row p { max-width: 32em; font-size: 1.15rem; }

/* Det här pratar vi om */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px clamp(40px, 7vw, 104px);
}
.split__head h2 { margin-bottom: 0.6em; }
.split__head p { max-width: 30em; }
.topics { list-style: none; margin: 0; padding: 0; border-top: var(--linje) solid var(--vin-mork); }
.topics li {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 28px; align-items: baseline;
  padding: 22px 0 24px;
  border-bottom: var(--linje) solid var(--vin-mork);
}
.topics h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--vin); }
.topics p { color: var(--text); }

/* Upplägg */
.timeline { margin-bottom: 44px; }
.timeline__bar {
  display: grid; grid-template-columns: 15fr 30fr 10fr 5fr;
  height: 44px;
  border: 3px solid var(--vin-mork);
}
.timeline__bar span + span { border-left: 3px solid var(--vin-mork); }
.t1 { background: var(--vin); }
.t2 { background: #96524E; }
.t3 { background: #C59D92; }
.t4 { background: var(--ljus); }
.timeline__ticks { position: relative; height: 1.8em; margin-top: 8px; font-weight: 600; font-size: 0.95rem; }
.timeline__ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.timeline__ticks span:first-child { transform: none; }
.timeline__ticks span:last-child { transform: translateX(-100%); }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
}
.steps li { border-top: 10px solid; padding-top: 16px; }
.steps .s1 { border-color: var(--vin); }
.steps .s2 { border-color: #96524E; }
.steps .s3 { border-color: #C59D92; }
.steps .s4 { border-color: var(--ljus); }
.steps__time { margin: 0 0 8px; font-weight: 700; color: var(--vin); }
.steps h3 { margin-bottom: 10px; }

/* Om oss */
.about {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 40px clamp(40px, 7vw, 96px);
  align-items: start;
}
.about h2 { margin-bottom: 0.6em; }
.about__text p { max-width: 36em; }
.about__intro { font-size: 1.3rem; line-height: 1.45; font-weight: 500; }
.about__img { overflow: hidden; aspect-ratio: 4 / 4.6; }
.about__img img { width: 100%; height: 116%; object-fit: cover; object-position: 60% 50%; }
/* Vision */
.vision { position: relative; overflow: hidden; background: var(--vin); color: var(--ljus); padding: clamp(72px, 11vw, 160px) 0; }
.vision__bg {
  position: absolute; inset: 0;
  background: url("../img/samtal.jpg") center / cover no-repeat;
  opacity: 0.24; mix-blend-mode: luminosity;
}
.vision .wrap { position: relative; }
.vision__label { margin: 0 0 18px; font-weight: 600; color: var(--sand); }
.vision__text {
  margin: 0;
  font-weight: 800; font-stretch: 75%;
  font-size: clamp(2.1rem, 5.6vw, 4.6rem);
  line-height: 1.04; letter-spacing: -0.012em;
  max-width: 17em;
}

/* Marknadsundersökning */
.survey {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 36px clamp(40px, 7vw, 96px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: var(--linje) solid var(--vin-mork);
}
.survey__chart { margin: 0; max-width: 360px; width: 100%; justify-self: center; }
.donut { display: block; width: 100%; height: auto; overflow: visible; }
.donut__seg { transition: opacity 0.2s; }
.donut__num { font-weight: 800; font-stretch: 75%; font-size: 7px; fill: var(--text); }
.donut__cap { font-weight: 500; font-size: 2.6px; fill: var(--text-mjuk); }
.survey h3 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.survey__q { font-size: 1.2rem; font-weight: 500; line-height: 1.4; max-width: 30em; }
.survey__legend { list-style: none; margin: 22px 0; padding: 0; max-width: 26em; border-top: var(--linje) solid var(--vin-mork); }
.survey__legend li {
  display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid rgba(59, 23, 21, 0.3);
}
.survey__sw { width: 18px; height: 18px; }
.survey__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.survey__note { max-width: 36em; color: var(--text-mjuk); }
.survey.has-active .donut__seg:not(.is-active), .survey.has-active .survey__legend li:not(.is-active) { opacity: 0.3; }

/* Teamet */
.team {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 20px;
}
.team__img { overflow: hidden; border: 3px solid var(--vin-mork); }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.team li:hover img { transform: scale(1.04); }
.team h3 { margin-top: 14px; font-size: 1.35rem; }
.team p { margin-top: 4px; color: var(--vin); font-weight: 600; }

/* Samarbetspartners */
.partners__title { max-width: 16em; text-wrap: balance; margin-bottom: clamp(32px, 5vw, 56px); }
.partners {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 7vw, 104px);
  align-items: start;
}
.partners__body p { max-width: 36em; }
.partners__body h3 { margin: 1.6em 0 0.6em; }
.partners__btn { margin-top: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: var(--linje) solid var(--vin-mork); }
.ticks li { padding: 14px 0; border-bottom: var(--linje) solid var(--vin-mork); }
.partners__logos h3 { margin-bottom: 16px; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.logos li { border: var(--linje) solid var(--vin-mork); background: #fff; }
.logos a {
  display: grid; place-items: center;
  min-height: 104px; padding: 18px 24px;
  color: var(--text-mjuk); font-weight: 500; text-decoration: none;
}
.logos a:hover { color: var(--vin); text-decoration: underline; }
.logos img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }

/* Frågor */
.faq {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 7vw, 104px);
  align-items: start;
}
.faq__head h2 { margin-bottom: 0.6em; }
.faq__list { border-top: var(--linje) solid var(--vin-mork); }
.faq details { border-bottom: var(--linje) solid var(--vin-mork); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 0;
  font-weight: 700; font-size: 1.2rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: var(--linje) solid var(--vin-mork);
  font-weight: 500; font-size: 1.3rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; background: var(--vin-mork); color: var(--ljus); }
.faq__a { overflow: hidden; }
.faq details p { padding: 0 50px 22px 0; max-width: 40em; }

/* Stöd */
.support { background: var(--vin-mork); color: var(--ljus); padding: clamp(64px, 9vw, 112px) 0; }
.support__lead { max-width: 36em; margin: 1.2em 0 0; font-size: 1.15rem; color: var(--beige); }
.support__grid {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 3px solid var(--sand);
}
.support__grid li { padding: 24px 24px 28px; border-right: 3px solid var(--sand); }
.support__grid li:last-child { border-right: 0; }
.support__grid h3 { margin-bottom: 10px; color: var(--sand); }
.support__grid a { font-weight: 700; }

/* Kontakt */
.contact { background: var(--vin); color: var(--ljus); padding: clamp(64px, 9vw, 120px) 0; }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 18em; }
.contact__mail {
  display: inline-block;
  margin: 0.35em 0 0.4em;
  font-weight: 800; font-stretch: 75%;
  font-size: clamp(1.9rem, 7.2vw, 6rem);
  line-height: 1.05; letter-spacing: -0.015em;
  text-decoration-thickness: 0.06em;
  overflow-wrap: anywhere;
}
.contact__mail:hover { text-decoration-thickness: 0.1em; }
.contact p { max-width: 34em; color: var(--beige); }

/* Sidfot */
.foot { background: var(--vin-mork); color: var(--beige); padding: 36px 0; font-size: 0.98rem; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.foot__inner img { width: 84px; }
.foot__inner p { margin: 0; }
.foot__inner p:last-child { margin-left: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.contact .contact__social { margin-top: 1.4em; color: var(--ljus); font-weight: 600; }

/* Surfplatta */
@media (max-width: 980px) {
  .hero__grid, .split, .about, .partners, .faq, .lead-row, .survey { grid-template-columns: minmax(0, 1fr); }
  .survey__chart { max-width: 300px; justify-self: start; }
  .hero__photo { margin: 14px 0 0 14px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support__grid li:nth-child(2) { border-right: 0; }
  .support__grid li:nth-child(-n+2) { border-bottom: 3px solid var(--sand); }

  .top__toggle { display: block; }
  .top__nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--vin-mork);
    padding: 8px var(--kant) 24px;
    border-top: var(--linje) solid var(--vin);
  }
  .top__nav.is-open { display: flex; }
  .top__nav a:not(.btn) { width: 100%; padding: 13px 0; font-size: 1.15rem; border-bottom: 1px solid var(--vin); }
  .top__nav .btn { margin-top: 18px; }
}

/* Mobil */
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .reach__grid { grid-template-columns: minmax(0, 1fr); }
  .reach__item { border-right: 0; border-bottom: 3px solid var(--vin-mork); padding: 18px 20px 20px; }
  .reach__item:last-child { border-bottom: 0; }
  .topics li { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .support__grid { grid-template-columns: minmax(0, 1fr); }
  .support__grid li { border-right: 0; border-bottom: 3px solid var(--sand); }
  .support__grid li:last-child { border-bottom: 0; }
  .faq details p { padding-right: 0; }
  .timeline__ticks { font-size: 0.8rem; }
  .timeline__ticks span:nth-child(4) { display: none; }
  .foot__inner p:last-child { margin-left: 0; }
  .band span.o { -webkit-text-stroke-width: 1px; }
  .about__img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .team img { transition: none; }
}
