/* ==========================================================================
   GolvCity Örebro — designsystem
   Ren CSS, inga beroenden.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Yta */
  --ink:        #0C0A08;
  --ink-2:      #131010;
  --surface:    #1B1613;
  --surface-2:  #241D18;
  --line:       rgba(245, 240, 232, .12);
  --line-soft:  rgba(245, 240, 232, .07);

  /* Text */
  --cream:      #F4EFE7;
  --cream-dim:  #CBC2B5;
  --muted:      #9C9184;

  /* Accent */
  --brass:      #C9A063;
  --brass-lite: #E3C48F;
  --brass-deep: #9A7638;
  --wood:       #7C512C;

  /* Ljus sektion */
  --paper:      #F6F2EC;
  --paper-2:    #EDE7DD;
  --paper-ink:  #17130F;

  /* Typografi */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Mått */
  --wrap:   1240px;
  --wrap-n: 860px;
  --gut:    clamp(1.25rem, 4vw, 3rem);
  --header-h: 84px;

  /* Rörelse */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .55s;

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;

  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

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

/* --- 3. Typografi ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.018em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.65rem); line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.3; }

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: .85em;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--brass);
  opacity: .65;
  flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--brass);
  opacity: .65;
}

.lead {
  font-size: clamp(1.06rem, 1rem + .4vw, 1.28rem);
  line-height: 1.62;
  color: var(--cream-dim);
}
.dim { color: var(--muted); }
.serif-accent { font-family: var(--serif); font-style: italic; color: var(--brass-lite); }

/* --- 4. Layout ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: var(--wrap-n); }

.section { padding-block: clamp(4.5rem, 3rem + 7vw, 9rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--paper .lead { color: #4A423A; }
.section--paper .dim { color: #6B6157; }
.section--surface { background: var(--surface); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.35rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.stack > * + * { margin-top: 1.25rem; }

/* --- 5. Knappar --------------------------------------------------------- */
.btn {
  --btn-bg: var(--brass);
  --btn-fg: #17120A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 1.05em 2.1em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), color .3s;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--brass-lite);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
  z-index: -1;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(201,160,99,.65); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(-1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border: 1px solid rgba(244,239,231,.32);
}
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--ink); box-shadow: none; border-color: var(--cream); }

.btn--dark { --btn-bg: var(--paper-ink); --btn-fg: var(--paper); }
.btn--dark::before { background: var(--wood); }
.btn--dark:hover { color: #fff; box-shadow: 0 14px 30px -12px rgba(23,19,15,.5); }

.btn--sm { padding: .8em 1.6em; font-size: .74rem; }
.btn__arrow { transition: transform .4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* Textlänk med underline-svep */
.tlink {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass);
  padding-bottom: .35em;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left bottom;
  transition: background-size .45s var(--ease-out);
}
.tlink:hover { background-size: 100% 1px; }
.tlink svg { transition: transform .4s var(--ease-out); }
.tlink:hover svg { transform: translateX(4px); }

/* --- 6. Header ---------------------------------------------------------- */
.topbar {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
  font-size: .8rem;
  color: var(--cream-dim);
  position: relative;
  z-index: 60;
}
.topbar__in {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 1.75rem; min-height: 42px;
}
.topbar a { display: inline-flex; align-items: center; gap: .5em; transition: color .3s; }
.topbar a:hover { color: var(--brass); }
.topbar svg { width: 14px; height: 14px; opacity: .7; }
@media (max-width: 720px) { .topbar { display: none; } }

.header {
  position: sticky; top: 0; z-index: 50;
  transition: background .45s var(--ease), backdrop-filter .45s, border-color .45s, box-shadow .45s;
  border-bottom: 1px solid transparent;
}
.header__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height .45s var(--ease);
}
.header.is-stuck {
  background: rgba(12,10,8,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 40px -24px rgba(0,0,0,.9);
}
.header.is-stuck .header__in { height: 68px; }

.brand { display: flex; align-items: center; gap: .85rem; flex: none; }
.brand img { height: 52px; width: auto; transition: height .45s var(--ease); }
.header.is-stuck .brand img { height: 42px; }
.brand__sub {
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); line-height: 1.45; max-width: 21ch;
  border-left: 1px solid var(--line); padding-left: .85rem;
}
@media (max-width: 900px) { .brand__sub { display: none; } }

.nav { display: flex; align-items: center; gap: 2.2rem; }
@media (max-width: 1040px) { .nav { display: none; } }

.nav__list { display: flex; align-items: center; gap: 2rem; list-style: none; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center;
  font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-dim);
  position: relative; padding-block: .4rem;
  white-space: nowrap;
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--cream); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Dropdown */
.nav__item--has-menu { position: relative; }
/* Osynlig brygga över gapet mellan länken och panelen. Utan den tappas
   :hover så fort muspekaren lämnar länken och gardinen slår igen på vägen
   ner. Den aktiveras först när menyn är öppen, så den fångar inga klick
   i övrigt. */
.nav__item--has-menu::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  width: 250px; height: 30px;
  transform: translateX(-50%);
  pointer-events: none;
}
.nav__item--has-menu:hover::after,
.nav__item--has-menu:focus-within::after { pointer-events: auto; }
.nav__panel {
  position: absolute; top: calc(100% + 18px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .55rem;
  list-style: none;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease-out), visibility .3s;
}
.nav__item--has-menu:hover .nav__panel,
.nav__item--has-menu:focus-within .nav__panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav__panel a {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .9rem; border-radius: var(--r-sm);
  font-size: .9rem; color: var(--cream-dim);
  transition: background .25s, color .25s, padding-left .3s var(--ease-out);
}
.nav__panel a:hover { background: rgba(201,160,99,.1); color: var(--cream); padding-left: 1.25rem; }
.nav__panel a::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brass); opacity: 0; transition: opacity .25s; flex: none;
}
.nav__panel a:hover::before { opacity: 1; }

.chev { width: 10px; height: 10px; flex: none; margin-left: .45em; transition: transform .35s var(--ease); }
.nav__item--has-menu:hover .chev { transform: rotate(180deg); }

/* Burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  flex: none;
  transition: border-color .3s, background .3s;
}
.burger:hover { border-color: var(--brass); }
.burger__box { width: 18px; height: 12px; position: relative; }
.burger__box span {
  position: absolute; left: 0; height: 1.5px; width: 100%;
  background: var(--cream); border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .25s, width .4s var(--ease-out);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 5px; width: 70%; }
.burger__box span:nth-child(3) { top: 10.5px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; width: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 1040px) { .burger { display: inline-flex; } }

.header__cta { flex: none; }
@media (max-width: 1040px) { .header__cta { display: none; } }

/* Mobilmeny */
.mobile-nav {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink);
  padding: calc(var(--header-h) + 2rem) var(--gut) 3rem;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 46px) 42px);
  transition: clip-path .75s var(--ease-out);
  visibility: hidden;
}
.mobile-nav.is-open { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; }
.mobile-nav__list { list-style: none; padding: 0; border-top: 1px solid var(--line-soft); }
.mobile-nav__list li { border-bottom: 1px solid var(--line-soft); }
.mobile-nav__list > li > a,
.mobile-nav__list > li > span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  padding: .7em 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .55s var(--ease-out), color .3s;
}
.mobile-nav__list > li > span { color: var(--muted); font-size: clamp(1.35rem,1.1rem+1.2vw,1.7rem); padding-bottom: .2em; }
.mobile-nav.is-open .mobile-nav__list > li > a,
.mobile-nav.is-open .mobile-nav__list > li > span { opacity: 1; transform: none; }
.mobile-nav__list > li:nth-child(1) > * { transition-delay: .18s; }
.mobile-nav__list > li:nth-child(2) > * { transition-delay: .24s; }
.mobile-nav__list > li:nth-child(3) > * { transition-delay: .30s; }
.mobile-nav__list > li:nth-child(4) > * { transition-delay: .36s; }
.mobile-nav__list > li:nth-child(5) > * { transition-delay: .42s; }
.mobile-nav__sub { list-style: none; padding: 0 0 1.4rem; display: grid; gap: .1rem; }
.mobile-nav__sub a {
  display: block; padding: .45rem 0; color: var(--cream-dim); font-size: 1.02rem;
}
.mobile-nav__sub a:hover { color: var(--brass); }
.mobile-nav__foot {
  margin-top: 2.5rem; display: grid; gap: 1rem;
  opacity: 0; transition: opacity .5s .5s var(--ease);
}
.mobile-nav.is-open .mobile-nav__foot { opacity: 1; }
.mobile-nav__foot a.contact-line { display: flex; align-items: center; gap: .75rem; color: var(--cream-dim); }
.mobile-nav__foot svg { width: 16px; height: 16px; color: var(--brass); flex: none; }
body.nav-open { overflow: hidden; }

/* --- 7. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex; align-items: flex-end;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,10,8,.82) 0%, rgba(12,10,8,.34) 32%, rgba(12,10,8,.72) 74%, var(--ink) 100%),
    linear-gradient(96deg, rgba(12,10,8,.78) 0%, rgba(12,10,8,.18) 62%);
}
.hero__in { width: 100%; }
.hero__title { max-width: 17ch; }
.hero__sub { max-width: 48ch; margin-top: 1.9rem; }
.hero .btn-row { margin-top: 2.6rem; }

/* Roterande ord */
.rotator {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  max-width: 100%;
  height: 1.06em;
}
.rotator__word {
  grid-area: 1 / 1;
  color: var(--brass-lite);
  font-style: italic;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .28s var(--ease) .12s, transform .62s var(--ease-out);
  white-space: nowrap;
}
.rotator__word.is-in  { opacity: 1; transform: translateY(0); }
.rotator__word.is-out { opacity: 0; transform: translateY(-100%); transition-delay: 0s; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .7rem;
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); z-index: 2;
}
.scroll-hint__line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--brass), transparent);
  position: relative; overflow: hidden;
}
.scroll-hint__line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--brass);
  animation: hintRun 2.4s var(--ease) infinite;
}
@keyframes hintRun { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }
@media (max-width: 720px) { .scroll-hint { display: none; } }

/* Sidhuvud för undersidor */
.pagehead {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(5rem, 9vw, 9rem));
  padding-bottom: clamp(3.5rem, 6vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}
.pagehead__media { position: absolute; inset: 0; z-index: -2; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.pagehead__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,10,8,.88) 0%, rgba(12,10,8,.58) 45%, rgba(12,10,8,.9) 82%, var(--ink) 100%),
    linear-gradient(100deg, rgba(12,10,8,.8), rgba(12,10,8,.2));
}
.pagehead h1 { max-width: 16ch; }
.pagehead p { max-width: 54ch; margin-top: 1.5rem; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.6rem;
}
.crumbs a:hover { color: var(--brass); }
.crumbs span[aria-hidden] { opacity: .45; }
.crumbs [aria-current] { color: var(--brass); }

/* --- 8. Trustrad -------------------------------------------------------- */
.trust {
  background: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(2rem, 3.5vw, 3.2rem);
}
.trust__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.trust__claim {
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.35;
  max-width: 22ch; color: var(--cream-dim); flex: none;
}
.trust__claim b { color: var(--brass-lite); font-weight: 400; font-style: italic; }
.trust__logos {
  display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.4rem);
  flex-wrap: wrap; flex: 1; justify-content: flex-end;
}
.cert {
  display: flex; align-items: center; justify-content: center;
  height: 74px; min-width: 108px;
  padding: .7rem 1.1rem;
  background: #fff;
  border-radius: var(--r);
  opacity: .9;
  flex: none;
  transition: opacity .4s var(--ease), transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.cert img {
  max-height: 100%; max-width: 128px;
  width: auto; height: auto;
  object-fit: contain;
}
.cert:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0,0,0,.9); }
.trust__logos .cert { flex: none; }
@media (max-width: 760px) {
  .trust__in { flex-direction: column; text-align: center; }
  .trust__claim { max-width: none; }
  .trust__logos { justify-content: center; gap: 1rem; }
  .cert { height: 58px; min-width: 84px; padding: .5rem .8rem; }
  .cert img { max-width: 96px; }
}

/* --- 9. Tjänstekort ----------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); }

.card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 400px;
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .6s;
}
.card__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out), filter .7s var(--ease);
  filter: saturate(.82) brightness(.86);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,10,8,.15) 0%, rgba(12,10,8,.6) 52%, rgba(12,10,8,.93) 100%);
  transition: opacity .6s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -30px rgba(0,0,0,.85); border-color: rgba(201,160,99,.4); }
.card:hover .card__img { transform: scale(1.09); filter: saturate(1) brightness(.92); }

.card__no {
  position: absolute; top: clamp(1.4rem, 2.2vw, 2rem); right: clamp(1.4rem, 2.2vw, 2rem);
  font-family: var(--serif); font-size: .95rem; letter-spacing: .1em;
  color: var(--brass); opacity: .85;
}
.card h3 { margin-bottom: .7rem; }
.card p { font-size: .95rem; color: var(--cream-dim); max-width: 34ch; }
.card__more {
  margin-top: 1.4rem;
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass);
}
.card__more svg { transition: transform .45s var(--ease-out); }
.card:hover .card__more svg { transform: translateX(5px); }
.card__link { position: absolute; inset: 0; z-index: 3; }

/* Stort första kort på desktop */
@media (min-width: 1000px) {
  .services--feature { grid-template-columns: repeat(12, 1fr); }
  .services--feature > .card { grid-column: span 3; }
  .services--feature > .card:nth-child(1),
  .services--feature > .card:nth-child(2) { grid-column: span 6; min-height: 470px; }
}
@media (min-width: 1000px) and (max-width: 1200px) {
  .services--feature > .card { grid-column: span 4; }
}

/* --- 10. Split ---------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(2.2rem, 5vw, 5rem);
  align-items: center;
}
.split--top { align-items: start; }
.split__media { position: relative; isolation: isolate; }
.split__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-lg);
}
.split__media--wide img { aspect-ratio: 5 / 4; }
.split__media::after {
  content: ""; position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(201,160,99,.45);
  border-radius: var(--r-lg);
  z-index: -1;
}
.split__badge {
  position: absolute; left: -22px; bottom: 28px;
  background: var(--brass); color: #17120A;
  padding: 1.1rem 1.35rem; border-radius: var(--r);
  display: grid; gap: .1rem; box-shadow: var(--shadow);
  max-width: 200px;
}
.split__badge b { font-family: var(--serif); font-size: 2.1rem; line-height: 1; font-weight: 400; }
.split__badge span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 560px) { .split__badge { left: 12px; bottom: 12px; } .split__media::after { display: none; } }

/* Räknare */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; margin-top: 2.6rem; }
.stat { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.section--paper .stat { border-top-color: rgba(23,19,15,.16); }
.stat b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.1rem); line-height: 1;
  color: var(--brass);
}
.section--paper .stat b { color: var(--wood); }
.stat span { display: block; margin-top: .5rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* --- 11. Process -------------------------------------------------------- */
.process { position: relative; }
.process__track {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}
.process__rail {
  position: absolute; top: 27px; left: 0; right: 0; height: 1px;
  background: rgba(23,19,15,.14);
}
.process__rail i {
  display: block; height: 100%; width: 0; background: var(--wood);
  transition: width 1.6s var(--ease-out);
}
.process.is-drawn .process__rail i { width: 100%; }
@media (max-width: 700px) { .process__rail { display: none; } }

.step { position: relative; }
.step__dot {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid rgba(23,19,15,.16);
  color: var(--wood);
  margin-bottom: 1.4rem;
  position: relative; z-index: 1;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s, transform .5s var(--ease-out);
}
.step__dot svg { width: 22px; height: 22px; }
.step:hover .step__dot { background: var(--wood); color: var(--paper); border-color: var(--wood); transform: translateY(-3px); }
.step__no {
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--wood); opacity: .7; margin-bottom: .55rem; display: block;
}
.step h3 { margin-bottom: .55rem; }
.step p { font-size: .95rem; color: #5A5148; }

/* --- 12. Partners ------------------------------------------------------- */
.partners {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden;
}
.partner {
  background: var(--ink);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: background .45s var(--ease);
}
.partner:hover { background: var(--surface); }
.partner b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin-bottom: .5rem; }
.partner span { font-size: .88rem; color: var(--muted); }

/* --- 13. Innehållsblock ------------------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 { margin-top: 2.8rem; }
.prose h3 { margin-top: 2.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .5rem; }

.ticks { list-style: none; padding: 0; display: grid; gap: .9rem; }
.ticks li {
  display: grid; grid-template-columns: 22px 1fr; gap: .95rem; align-items: start;
  font-size: 1rem;
}
.ticks li::before {
  content: "";
  width: 20px; height: 20px; margin-top: .28em;
  border-radius: 50%;
  background: rgba(201,160,99,.15);
  border: 1px solid rgba(201,160,99,.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A063' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.section--paper .ticks li::before {
  background-color: rgba(124,81,44,.1); border-color: rgba(124,81,44,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C512C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden;
}
.tile { background: var(--ink); padding: clamp(1.5rem, 2.5vw, 2.2rem); transition: background .4s var(--ease); }
.tile:hover { background: var(--surface); }
.tile__ico {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: rgba(201,160,99,.12); color: var(--brass);
}
.tile__ico svg { width: 18px; height: 18px; }
.tile h4 { margin-bottom: .5rem; }
.tile p { font-size: .93rem; color: var(--muted); }

/* Galleri */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(.6rem, 1.2vw, 1rem); }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--r); margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .9s var(--ease-out), filter .6s;
  filter: saturate(.88);
}
.gallery figure:hover img { transform: scale(1.07); filter: saturate(1); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.1rem .95rem;
  font-size: .8rem; letter-spacing: .06em; color: var(--cream);
  background: linear-gradient(transparent, rgba(12,10,8,.88));
}
@media (min-width: 760px) {
  .gallery--tall { grid-template-columns: 1.3fr 1fr; grid-auto-rows: clamp(200px, 20vw, 265px); }
  .gallery--tall figure { grid-column: 2; }
  .gallery--tall figure:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .gallery--tall figure img { height: 100%; aspect-ratio: auto; }
}

/* --- 14. FAQ ------------------------------------------------------------ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.55rem 0;
  font-family: var(--serif); font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); line-height: 1.35;
  color: var(--cream);
  transition: color .3s;
}
.faq__q:hover { color: var(--brass-lite); }
.faq__sign {
  flex: none; width: 26px; height: 26px; margin-top: .2em;
  position: relative;
}
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 1.5px; background: var(--brass);
  transform: translate(-50%, -50%);
  transition: transform .45s var(--ease-out), opacity .3s;
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 1.7rem; max-width: 68ch; color: var(--cream-dim); font-size: .98rem; }

/* --- 15. Offertformulär ------------------------------------------------- */
.quote {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(124,81,44,.28), transparent 62%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  position: relative;
  overflow: hidden;
}
.quote__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 940px) { .quote__grid { grid-template-columns: 1fr; } }

.contact-lines { display: grid; gap: 1.1rem; margin-top: 2.4rem; list-style: none; padding: 0; }
.contact-lines li a, .contact-lines li > div {
  display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: center;
  transition: color .3s;
}
.contact-lines li a:hover { color: var(--brass-lite); }
.contact-lines .ico {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--brass);
  transition: background .35s, border-color .35s;
}
.contact-lines li a:hover .ico { background: rgba(201,160,99,.12); border-color: rgba(201,160,99,.45); }
.contact-lines .ico svg { width: 17px; height: 17px; }
.contact-lines small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; }

.form-card {
  background: rgba(244,239,231,.035);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.progress { margin-bottom: 2.2rem; }
.progress__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .8rem;
}
.progress__meta b { color: var(--brass); font-weight: 600; }
.progress__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brass-deep), var(--brass-lite)); width: 20%; transition: width .55s var(--ease-out); }

.steps { position: relative; }
.step-panel {
  display: none;
  border: 0; padding: 0; margin: 0; min-width: 0;
}
.step-panel.is-active { display: block; animation: stepIn .5s var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step-panel > legend, .step-panel__title {
  display: block; float: left; width: 100%;
  font-family: var(--serif); font-size: clamp(1.3rem, 1.15rem + .7vw, 1.75rem);
  line-height: 1.2; margin-bottom: .5rem; padding: 0;
}
.step-panel > legend + * { clear: both; }
.step-panel__hint { font-size: .92rem; color: var(--muted); margin-bottom: 1.6rem; }
.step-panel fieldset { border: 0; padding: 0; margin: 0; }

.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: .6rem; clear: both; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: flex; align-items: center; gap: .6rem;
  padding: .9rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: .92rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease-out), color .3s;
}
.chip span::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid rgba(244,239,231,.35); flex: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.chip:hover span { border-color: rgba(201,160,99,.45); background: rgba(201,160,99,.05); }
.chip input:checked + span {
  border-color: var(--brass); background: rgba(201,160,99,.12); color: var(--cream);
}
.chip input:checked + span::before { background: var(--brass); border-color: var(--brass); box-shadow: inset 0 0 0 3px var(--surface); }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }

.field { display: grid; gap: .55rem; }
.field + .field { margin-top: 1.15rem; }
.field label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(12,10,8,.5);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .95rem 1.05rem;
  font-size: 1rem;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(156,145,132,.75); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(201,160,99,.14);
  background: rgba(12,10,8,.72);
}
.field.has-error input, .field.has-error textarea { border-color: #D8654F; }
.field__err { font-size: .82rem; color: #E58876; display: none; }
.field.has-error .field__err { display: block; }
.chips.has-error { outline: 1px solid #D8654F; outline-offset: 8px; border-radius: var(--r); }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.form-nav .btn--ghost { border-color: var(--line); }
.btn-back {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: .6em 0; transition: color .3s;
}
.btn-back:hover { color: var(--cream); }
.btn-back[hidden] { visibility: hidden; display: inline-flex !important; }

.form-done { display: none; text-align: center; padding: 1.5rem 0 .5rem; }
.form-done.is-active { display: block; animation: stepIn .55s var(--ease-out) both; }
.form-done__mark {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 1.6rem;
  display: grid; place-items: center;
  background: rgba(201,160,99,.14); border: 1px solid rgba(201,160,99,.5); color: var(--brass);
}
.form-done__mark svg { width: 28px; height: 28px; }
.form-done h3 { margin-bottom: .8rem; }
.form-done p { color: var(--cream-dim); max-width: 44ch; margin-inline: auto; }
.form-done .btn-row { justify-content: center; margin-top: 1.9rem; }

.form-summary {
  margin-top: 1.9rem; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.2rem 1.35rem;
  display: grid; gap: .6rem;
  font-size: .92rem;
}
.form-summary div { display: grid; grid-template-columns: 42% 1fr; gap: 1rem; }
.form-summary dt, .form-summary b { color: var(--muted); font-weight: 500; font-size: .84rem; }

/* --- 16. CTA-band ------------------------------------------------------- */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(3.5rem, 6vw, 6rem);
  text-align: center;
}
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,10,8,.92), rgba(12,10,8,.82)), rgba(12,10,8,.3);
}
.band h2 { max-width: 20ch; margin-inline: auto; }
.band p { max-width: 50ch; margin: 1.3rem auto 0; }
.band .btn-row { justify-content: center; margin-top: 2.2rem; }

/* --- 17. Footer --------------------------------------------------------- */
.footer { background: var(--ink-2); border-top: 1px solid var(--line-soft); padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.footer__logos { display: flex; align-items: flex-end; gap: 1.3rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.footer__logos img:first-child { height: 62px; }
.footer__logos img:last-child { height: 42px; opacity: .9; }
.footer p { font-size: .94rem; color: var(--muted); max-width: 40ch; }
.footer h4 {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 1.3rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer ul a, .footer address a {
  font-size: .94rem; color: var(--cream-dim);
  transition: color .3s, padding-left .35s var(--ease-out);
}
.footer ul a:hover { color: var(--brass); padding-left: .3rem; }
.footer address { font-style: normal; display: grid; gap: .7rem; font-size: .94rem; color: var(--cream-dim); }
.footer address a:hover { color: var(--brass); }
.footer__certs { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-top: 1.9rem; }
.footer__certs .cert { height: 50px; min-width: 62px; padding: .4rem .6rem; opacity: .75; }
.footer__certs .cert img { max-width: 72px; }

.social { display: flex; gap: .7rem; margin-top: 1.7rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--cream-dim);
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease-out);
}
.social a:hover { background: var(--brass); color: #17120A; border-color: var(--brass); transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; }

.footer__bar {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--muted);
}
.footer__bar a:hover { color: var(--brass); }

/* Tillbaka upp */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brass); color: #17120A;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(14px) scale(.85); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease-out), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brass-lite); }
.to-top svg { width: 18px; height: 18px; }

/* Mobil ring-fält */
.callbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  background: rgba(12,10,8,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-soft);
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  gap: .6rem;
}
.callbar a { flex: 1; text-align: center; padding: .85em 1em; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.callbar a:first-child { background: var(--brass); color: #17120A; }
.callbar a:last-child { border: 1px solid var(--line); color: var(--cream); }
@media (max-width: 640px) {
  .callbar { display: flex; }
  .to-top { bottom: 84px; }
  body { padding-bottom: 70px; }
}

/* --- 18. Karta ---------------------------------------------------------- */
.map {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10; min-height: 320px;
  background: var(--surface);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.55) contrast(1.05) brightness(.88); }

/* --- 19. Scroll-reveal -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(.965); }

/* Sidövergång */
.page-fade {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  pointer-events: none;
  opacity: 1;
  transition: opacity .5s var(--ease);
}
.page-fade.is-hidden { opacity: 0; }
body.is-leaving .page-fade { opacity: 1; pointer-events: all; }

/* --- 20. Tillgänglighet ------------------------------------------------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brass); color: #17120A;
  padding: .75rem 1.2rem; border-radius: var(--r-sm);
  font-size: .85rem; font-weight: 600;
  transition: top .3s var(--ease);
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .mobile-nav { transition: none; }
}
