/* NORDVIK MÄKLERI v2 · FIND-inspirerad ljus stil · himmel / moln / svart grotesk */

:root {
  color-scheme: light;
  --bg: #F2F6FA;
  --bg-warm: #F7F3EC;
  --ink: #101418;
  --gray: #A6AEB8;
  --gray-soft: #C6CCD4;
  --line: rgba(16, 20, 24, 0.1);
  --sans: "Archivo", "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.12vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

::selection { background: var(--ink); color: #fff; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.dot { color: var(--gray-soft); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--pad);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s;
}
.nav.scrolled {
  background: rgba(245, 248, 252, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 8px;
}
.nav-logo span {
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
}
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  font-size: 0.92rem; font-weight: 500;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans);
  font-size: 0.95rem; font-weight: 500;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.35s, color 0.35s, transform 0.45s var(--ease), box-shadow 0.45s;
}
.btn-dark { background: var(--ink); color: #F4F7FB; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16, 20, 24, 0.18); }
.btn i { font-style: normal; transition: transform 0.35s var(--ease); }
.btn:hover i { transform: translateX(4px); }

/* ---------- hero-scrub ---------- */
.scrub { position: relative; height: 420vh; background: var(--bg); }
.scrub-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.scrub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(242, 246, 250, 0.94) 0%,
    rgba(242, 246, 250, 0.72) 30%,
    rgba(242, 246, 250, 0.3) 50%,
    rgba(242, 246, 250, 0) 66%);
  will-change: opacity;
}
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: clamp(96px, 16vh, 170px) var(--pad) 0;
  will-change: transform, opacity;
}
.hero-title {
  font-weight: 700;
  font-size: clamp(2.7rem, 8.2vw, 7.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 58%, rgba(16, 20, 24, 0.28) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title .dot { -webkit-text-fill-color: rgba(16, 20, 24, 0.28); }
.hero-sub {
  margin-top: clamp(16px, 2.6vh, 28px);
  font-size: clamp(1.02rem, 1.7vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-shadow:
    0 0 14px rgba(242, 246, 250, 0.95),
    0 0 34px rgba(242, 246, 250, 0.85),
    0 2px 50px rgba(242, 246, 250, 0.7);
}
.hero-sub b { font-weight: 600; color: var(--ink); }
.hero-sub span { color: #7C8590; }
.hero-cta { margin-top: clamp(22px, 3.6vh, 40px); }

/* ---------- knockout ---------- */
.brand {
  position: relative;
  min-height: 92vh;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse 120% 60% at 50% 110%, rgba(244, 214, 178, 0.55) 0%, rgba(244, 214, 178, 0) 55%),
    linear-gradient(180deg, #DEE9F2 0%, #EFF4F9 45%, #F6F1E8 100%);
  overflow: hidden;
}
.brand-inner { text-align: center; padding: 0 var(--pad); }
.knockout {
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 15rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  background-image: url("assets/img/street.jpg");
  background-size: cover;
  background-position: center 62%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 30px rgba(16, 20, 24, 0.08));
}
.knockout-sub {
  font-size: clamp(1.6rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: clamp(6px, 1.4vh, 18px);
  background-position: center 30%;
}

/* ---------- varför · highlight-text ---------- */
.why { background: var(--bg); padding: clamp(120px, 18vh, 220px) 0; }
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: start;
}
.kicker {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.hl-text {
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.32;
}
.hl-text .w { color: var(--gray-soft); transition: color 0.25s linear; }
.hl-text .w.lit { color: var(--ink); }

/* ---------- film ---------- */
.film { background: var(--bg); padding: 0 0 clamp(100px, 15vh, 200px); }
.film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(16, 20, 24, 0.16);
}

/* ---------- identitet · chevrons ---------- */
.identitet {
  background: #fff;
  padding: clamp(120px, 17vh, 210px) 0;
  text-align: center;
}
.ident-title {
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: clamp(48px, 8vh, 90px);
}
.ident-title span { color: var(--gray-soft); }
.chev-strip {
  display: flex;
  justify-content: center;
  gap: clamp(4px, 0.9vw, 14px);
  height: clamp(200px, 38vw, 420px);
  margin-bottom: clamp(48px, 8vh, 90px);
}
.chev {
  flex: 0 1 clamp(120px, 22vw, 300px);
  background-size: cover;
  background-position: center;
  clip-path: polygon(0% 0%, 62% 0%, 100% 50%, 62% 100%, 0% 100%, 38% 50%);
  will-change: transform;
}
.ident-text {
  max-width: 46ch;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.ident-text b { font-weight: 600; color: var(--ink); }
.ident-text span { color: var(--gray); }

/* ---------- sektionshuvuden ---------- */
.sec-head { margin-bottom: clamp(48px, 8vh, 90px); }
.sec-head h2 {
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

/* ---------- objekt ---------- */
.objekt { background: var(--bg); padding: clamp(110px, 16vh, 200px) 0; }
.obj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3.4vw, 56px) clamp(24px, 3vw, 48px);
}
.obj-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: #E2E8EF;
}
.obj-media img {
  width: 100%; height: 112%;
  object-fit: cover;
  transform: translateY(-4%);
  scale: 1.001;
  transition: scale 1.2s var(--ease);
  will-change: transform;
}
.obj:hover .obj-media img { scale: 1.05; }
.obj-info { padding: 20px 6px 0; }
.obj-area {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}
.obj-name {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  transition: opacity 0.3s;
}
.obj:hover .obj-name { opacity: 0.65; }
.obj-facts { color: var(--ink); margin-bottom: 14px; }
.obj-facts b { font-weight: 600; }
.obj-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.92rem; font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s;
}
.obj-link i { font-style: normal; transition: transform 0.3s var(--ease); }
.obj-link:hover { border-color: var(--ink); }
.obj-link:hover i { transform: translateX(4px); }
.obj-note { margin-top: clamp(40px, 6vh, 70px); color: var(--gray); }
.obj-note a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }

/* ---------- process ---------- */
.process {
  background: #fff;
  padding: clamp(110px, 16vh, 200px) 0;
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3.4vw, 56px);
}
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step-nr {
  display: block;
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--gray-soft);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-weight: 600; font-size: 1.28rem; letter-spacing: -0.015em; margin-bottom: 10px; }
.step p { color: #5B636D; font-size: 0.97rem; }

/* ---------- om ---------- */
.om { background: var(--bg); padding: clamp(110px, 16vh, 200px) 0; }
.om-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.om-quote blockquote p {
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.9rem);
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.om-quote figcaption {
  margin-top: 26px;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray);
}
.om-text p:not(.kicker) { color: #5B636D; margin-bottom: 30px; }
.om-facts { list-style: none; border-top: 1px solid var(--line); }
.om-facts li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.om-facts span { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.om-facts strong { font-weight: 600; font-size: 1.12rem; white-space: nowrap; }

/* ---------- kontakt ---------- */
.kontakt {
  background:
    radial-gradient(ellipse 100% 80% at 80% 110%, rgba(244, 214, 178, 0.5) 0%, rgba(244, 214, 178, 0) 60%),
    linear-gradient(180deg, #fff 0%, #EDF3F9 100%);
  padding: clamp(110px, 16vh, 200px) 0;
}
.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.kontakt h2 {
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.kontakt-lead { color: #5B636D; max-width: 44ch; margin-bottom: 36px; }
.kontakt address {
  font-style: normal;
  color: #5B636D;
  line-height: 2;
  border-left: 2px solid var(--ink);
  padding-left: 20px;
}
.kontakt address a:hover { color: var(--ink); }

.vform {
  display: flex; flex-direction: column; gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 24px 60px rgba(16, 20, 24, 0.08);
}
.vform label span {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.vform input {
  width: 100%;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.vform input::placeholder { color: var(--gray-soft); }
.vform input:focus { border-color: var(--ink); background: #fff; }
.vform .btn { margin-top: 8px; align-self: flex-start; }
.vform-done { color: #2E7D4F; font-size: 0.95rem; }

/* ---------- röster · karusell ---------- */
.roster { background: var(--bg); padding: clamp(110px, 16vh, 200px) 0; }
.tst-wrap { position: relative; }
.tst-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}
.tst-track::-webkit-scrollbar { display: none; }
.tst {
  flex: 0 0 min(440px, 82vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
}
.tst blockquote {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.42;
}
.tst blockquote::before { content: "\00BB"; color: var(--gray-soft); margin-right: 2px; }
.tst blockquote::after { content: "\00AB"; color: var(--gray-soft); margin-left: 2px; }
.tst figcaption {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray);
}
.tst-nav { display: flex; gap: 10px; margin-top: 26px; }
.tst-nav button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, opacity 0.3s;
}
.tst-nav button:hover { background: var(--ink); color: #fff; }
.tst-nav button:disabled { opacity: 0.25; pointer-events: none; }

/* ---------- tjänster ---------- */
.tjanster { background: #fff; padding: clamp(110px, 16vh, 200px) 0; }
.tj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.tj-media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: #E2E8EF;
  margin-bottom: 20px;
}
.tj-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  scale: 1.001;
  transition: scale 1.2s var(--ease);
}
.tj:hover .tj-media img { scale: 1.05; }
.tj h3 { font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.tj p { color: #5B636D; margin-bottom: 16px; }

/* ---------- kunskapsbanken ---------- */
.kunskap { background: var(--bg); padding: clamp(110px, 16vh, 200px) 0; }
.blogg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.blogg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.blogg:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(16, 20, 24, 0.1); }
.blogg-media { aspect-ratio: 16 / 9; overflow: hidden; background: #E2E8EF; }
.blogg-media img { width: 100%; height: 100%; object-fit: cover; }
.blogg-date {
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray);
  padding: 20px 22px 6px;
}
.blogg h3 {
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  padding: 0 22px 8px;
}
.blogg p:not(.blogg-date) { color: #5B636D; font-size: 0.93rem; padding: 0 22px 24px; }

/* ---------- cta-band ---------- */
.ctaband {
  position: relative;
  min-height: 68vh;
  display: grid; place-items: center;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(16, 20, 24, 0.34) 0%, rgba(16, 20, 24, 0.5) 100%),
    url("assets/img/sky.jpg");
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}
.ctaband-inner { padding: clamp(80px, 12vh, 140px) var(--pad); }
.ctaband h2 {
  font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #F4F7FB;
  text-shadow: 0 2px 30px rgba(16, 20, 24, 0.35);
  margin-bottom: clamp(24px, 4vh, 40px);
}
.ctaband h2 .dot { color: rgba(244, 247, 251, 0.45); }
.btn-light { background: #F4F7FB; color: var(--ink); border-color: #F4F7FB; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16, 20, 24, 0.3); }

/* ---------- footer ---------- */
.footer { background: #EDF3F9; border-top: 1px solid var(--line); padding: clamp(52px, 7vh, 84px) 0 clamp(32px, 4vh, 48px); }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(32px, 5vh, 56px);
  border-bottom: 1px solid var(--line);
}
.footer-logo { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.footer-logo span { font-weight: 500; font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gray); }
.footer-tag { color: #5B636D; font-size: 0.92rem; max-width: 30ch; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.3s, color 0.3s;
}
.soc:hover { background: var(--ink); color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 0.92rem; color: #5B636D; }
.footer-head {
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.footer-col a { color: #5B636D; transition: color 0.3s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-top: 24px;
  font-size: 0.82rem; color: #5B636D;
}
.footer-demo { color: var(--gray); font-size: 0.78rem; max-width: 70ch; }

/* ---------- reveals ---------- */
.rev {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.rev.on { opacity: 1; transform: none; }

/* ---------- responsivt ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why-grid, .om-grid, .kontakt-grid { grid-template-columns: 1fr; }
  .obj-grid { grid-template-columns: 1fr; }
  .chev-strip { height: clamp(150px, 44vw, 300px); }
  .tj-grid, .blogg-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .nav-cta { padding: 10px 16px; font-size: 0.82rem; }
  .scrub { height: 360vh; }
  .chev { flex-basis: 24vw; }
}

@media (prefers-reduced-motion: reduce) {
  .rev { transition: none; opacity: 1; transform: none; }
}
