/* ==========================================================================
   Malmstens Måleri och Färgsättning AB
   Startsida. Marcellus för rubriker, Manrope för brödtext.
   ========================================================================== */

:root {
  --bg:            #FBF9F6;
  --ink:           #191714;
  --ink-70:        #4A443C;
  --ink-55:        #6B645B;
  --ink-40:        #8E8377;

  --red:           #E62B27;
  --red-dark:      #B81F1C;
  --red-soft:      #F2A19E;

  --sand:          #F6F2EC;
  --sand-deep:     #F1EBE2;
  --sand-edge:     #EDE5DA;
  --image-bg:      #E4DDD3;

  --line:          #E7DFD4;
  --line-warm:     #E1D8CB;
  --line-strong:   #C9BFB1;

  --serif:  'Marcellus', Georgia, 'Times New Roman', serif;
  --sans:   'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 12px;

  --shell: 1240px;
  --gutter: 40px;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, p, blockquote, figure { margin: 0; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

::selection { background: var(--red); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 0 0 var(--r-sm) 0;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Delade typografiska byggstenar
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.eyebrow-light { color: rgba(251, 249, 246, .75); }
.fargsattning .eyebrow-light { color: rgba(251, 249, 246, .6); }

.rule {
  flex: 0 0 auto;
  width: 26px;
  height: 1px;
  background: var(--red);
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.06;
  text-wrap: pretty;
}
.h2-sm { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; }

.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.1;
  text-wrap: pretty;
}

.body-lg {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-70);
  text-wrap: pretty;
}
.body-on-dark { color: rgba(251, 249, 246, .72); }

.accent-soft { color: var(--red-soft); }

/* Knappar */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn-red { background: var(--red); color: var(--bg); }
.btn-red:hover { background: var(--bg); color: var(--ink); transform: translateY(-2px); }

.btn-ink {
  background: var(--ink);
  color: var(--bg);
  padding: 15px 24px;
  font-size: 14px;
  gap: 10px;
}
.btn-ink:hover { background: var(--red); color: var(--bg); transform: translateY(-2px); }

.btn-lg { padding: 20px 32px; font-size: 16px; }

.btn-xl {
  padding: 24px 44px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  gap: 14px;
}
.btn-xl.btn-red:hover { background: var(--ink); color: var(--bg); }

/* Understruken textlänk */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color .25s ease, border-color .25s ease;
}
.link-underline:hover { color: var(--red); border-bottom-color: var(--red); }

.link-underline-light {
  color: var(--bg);
  border-bottom-color: rgba(251, 249, 246, .4);
}
.link-underline-light:hover { color: var(--red-soft); border-bottom-color: var(--red-soft); }

/* --------------------------------------------------------------------------
   Laddningsridå
   -------------------------------------------------------------------------- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: om-curtain 1.05s .6s cubic-bezier(.76, 0, .24, 1) forwards;
}
.curtain img {
  width: 250px;
  height: auto;
  display: block;
  animation: om-fade .55s ease both;
}

@keyframes om-curtain {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-101%); visibility: hidden; }
}
@keyframes om-fade {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes om-up {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(251, 249, 246, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img { height: 40px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 26px;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 0;
}
.site-nav a { color: var(--ink-70); transition: color .2s ease; }
.site-nav a:hover { color: var(--ink); }

.btn-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--red);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background .25s ease, transform .25s ease;
}
.site-nav .btn-phone { color: var(--bg); }
.btn-phone:hover { background: var(--red-dark); color: var(--bg); transform: translateY(-1px); }
.btn-phone .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg);
  display: inline-block;
  flex: 0 0 auto;
}

/* Hamburgare, syns bara på små skärmar */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color .2s ease;
  order: 3;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 17px;
  height: 11px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}
.nav-toggle-bars span:first-child { top: 0; }
.nav-toggle-bars span:last-child { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(4.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-4.75px) rotate(-45deg); }

html:not(.js) .nav-toggle { display: none !important; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  background: var(--ink);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--image-bg);
  animation: om-fade 1.4s 1.15s both;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(25, 23, 20, .40) 0%,
    rgba(25, 23, 20, .12) 30%,
    rgba(25, 23, 20, .55) 64%,
    rgba(25, 23, 20, .86) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  width: 100%;
  padding: 200px 0 64px;
  pointer-events: none;
}
.hero-body .wrap { width: 100%; }

.hero-eyebrow { animation: om-up .8s 1.25s both; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.6vw, 96px);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--bg);
  margin-top: 22px;
  max-width: 15ch;
  text-wrap: pretty;
  animation: om-up .9s 1.35s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 26px;
  margin-top: 40px;
  pointer-events: auto;
  animation: om-up .9s 1.5s both;
}
.hero-note {
  font-size: 13px;
  color: rgba(251, 249, 246, .6);
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   Presentation och meriter
   -------------------------------------------------------------------------- */

.intro { padding-top: 88px; }

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 32px 72px;
  align-items: start;
}

.intro-statement {
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.34;
  text-wrap: pretty;
}

.intro-grid .link-underline { margin-top: 20px; }

.merits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.merit {
  background: var(--bg);
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background .3s ease;
}
.merit:hover { background: var(--sand); }

.merit-label {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
}
.merit-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-55);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Färgsättning
   -------------------------------------------------------------------------- */

.fargsattning {
  margin-top: 104px;
  background: var(--ink);
  color: var(--bg);
  padding: 100px 0;
}

.fargsattning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 64px 80px;
  align-items: center;
}

.fargsattning .h2 { margin-top: 22px; }
.fargsattning .body-lg { margin-top: 24px; max-width: 430px; }
.fargsattning .link-underline {
  margin-top: 32px;
  padding-bottom: 4px;
  border-bottom-color: rgba(251, 249, 246, .35);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(46%, 120px), 1fr));
  gap: 14px;
}

.swatch-chip {
  display: block;
  height: 128px;
  border-radius: var(--r-sm);
}
.swatch-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(251, 249, 246, .55);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Sektionsrubriker som delas av tjänster och referenser
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 60px;
  margin-bottom: 44px;
}
.section-head-note {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-55);
  max-width: 330px;
}
.section-head-note-sm {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-40);
  max-width: 280px;
}
.projects .section-head .h2 { margin-top: 20px; }
.services .section-head .h2 { max-width: 560px; }

/* --------------------------------------------------------------------------
   Tjänster
   -------------------------------------------------------------------------- */

.services { padding-top: 104px; }

.service-list { border-bottom: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 24px 40px;
  align-items: start;
  padding: 32px 8px;
  border-top: 1px solid var(--line);
  transition: padding-left .3s ease;
}
.service:hover { padding-left: 24px; }

.service-num {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--red);
}
.service-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.12;
}
.service-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-55);
  max-width: 520px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Referensprojekt, utfällbara
   -------------------------------------------------------------------------- */

.projects { padding-top: 104px; }

.project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project {
  background: var(--sand);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: background .35s ease;
}
.project[data-open] { background: var(--sand-deep); }

.project-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: stretch;
}
.js .project-head { cursor: pointer; }

.project-image {
  position: relative;
  min-height: 340px;
  background: var(--image-bg);
}
.project-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-text {
  padding: 48px 52px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.project-place {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.project-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}
.project-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-55);
  text-wrap: pretty;
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
}
.project-meta { font-size: 13px; color: var(--ink-40); }

.project-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
/* Hela kortets överdel blir klickbar utan att bryta mot semantiken. */
.js .project-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
html:not(.js) .project-toggle { display: none; }

.project-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.project-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: border-color .3s ease, color .3s ease;
}
.project-icon .bar-h,
.project-icon .bar-v {
  position: absolute;
  width: 11px;
  height: 1px;
  background: currentColor;
  display: block;
}
.project-icon .bar-v {
  transform: rotate(90deg);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.project[data-open] .project-icon { border-color: var(--red); color: var(--red); }
.project[data-open] .project-icon .bar-v { transform: rotate(0deg); }

.project-toggle:focus-visible { outline: none; }
.project-head:has(.project-toggle:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: -3px;
  border-radius: var(--r-lg);
}

/* Utfällbar panel. Utan JS ligger den öppen så innehållet aldrig går förlorat. */
.js .project-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .55s cubic-bezier(.4, 0, .2, 1), visibility .55s;
}
.js .project[data-open] .project-panel {
  grid-template-rows: 1fr;
  visibility: visible;
}
.js .project-panel-clip { overflow: hidden; min-height: 0; }

.project-panel-inner {
  border-top: 1px solid var(--line-warm);
  margin: 0 52px;
  padding: 40px 0 48px;
}

.project-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 40px 56px;
  align-items: start;
}

.facts {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
}
.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.fact dd {
  font-family: var(--serif);
  font-size: 19px;
  text-align: right;
  margin: 0;
}

.kulorer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.kulor {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-70);
}
.kulor-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
}
.detail-image {
  position: relative;
  height: 240px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--image-bg);
}
.detail-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 32px;
}
.project-cta-note { font-size: 13px; color: var(--ink-40); }

/* --------------------------------------------------------------------------
   Instagramflöde
   Sektionen ligger dold tills main.js hittat inlägg i data/instagram.json.
   -------------------------------------------------------------------------- */

.feed { padding-top: 104px; }
.feed[hidden] { display: none; }

.feed-follow { flex: 0 0 auto; }

/* Fasta kolumnantal i stället för auto-fit, så att tolv inlägg alltid
   går jämnt ut och sista raden aldrig blir stympad. */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.feed-item { display: block; }

.feed-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--image-bg);
}
.feed-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.feed-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(25, 23, 20, 0);
  transition: background .35s ease;
}
.feed-link:hover img { transform: scale(1.04); }
.feed-link:hover::after { background: rgba(25, 23, 20, .14); }

/* Videor och karuseller får en liten markör, som på Instagram. */
.feed-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(25, 23, 20, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FBF9F6;
}
.feed-badge svg { width: 13px; height: 13px; display: block; fill: currentColor; }

/* --------------------------------------------------------------------------
   Om oss
   -------------------------------------------------------------------------- */

.about {
  margin-top: 104px;
  background: var(--sand);
  border-top: 1px solid var(--sand-edge);
  border-bottom: 1px solid var(--sand-edge);
}

.about-grid {
  padding-block: 84px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px 72px;
  align-items: stretch;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-70);
  max-width: 420px;
  text-wrap: pretty;
}
.about-image {
  position: relative;
  flex: 1 1 auto;
  min-height: 300px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--image-bg);
}
.about-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 4px 20px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line-warm);
}
.step-num {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--red);
}
.step-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
}
.step-body {
  grid-column: 2;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-55);
  max-width: 460px;
  text-wrap: pretty;
}

.steps-foot {
  border-top: 1px solid var(--line-warm);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.steps-foot .btn-ink { padding: 16px 26px; font-size: 15px; }
.steps-foot-note { font-size: 14px; color: var(--ink-40); }

/* --------------------------------------------------------------------------
   Omdöme
   -------------------------------------------------------------------------- */

.quote {
  max-width: 1000px;
  margin-inline: auto;
  padding: 104px var(--gutter) 0;
  text-align: center;
}
.quote blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.3;
  text-wrap: pretty;
}
.quote figcaption {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   ROT
   -------------------------------------------------------------------------- */

.rot { margin-top: 104px; }

.rot-card {
  background: var(--sand);
  border-radius: var(--r-lg);
  padding: 52px 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px 60px;
  align-items: center;
}
.rot-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-55);
  margin-top: 16px;
  text-wrap: pretty;
}
.rot-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
}
.rot-number {
  display: block;
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  color: var(--red);
}
.rot-label {
  display: block;
  font-size: 13px;
  color: var(--ink-55);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Slutlig uppmaning
   -------------------------------------------------------------------------- */

.final {
  padding-top: 112px;
  padding-bottom: 104px;
  text-align: center;
}
.final-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  text-wrap: pretty;
}
.final-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-55);
  margin: 20px auto 0;
  max-width: 480px;
}
.final .btn-xl { margin-top: 38px; }
.final-note {
  font-size: 13px;
  color: var(--ink-40);
  margin-top: 18px;
}
.final-note a { color: inherit; border-bottom: 1px solid var(--line-strong); }
.final-note a:hover { color: var(--red); border-bottom-color: var(--red); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(251, 249, 246, .7);
  padding: 68px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 44px 50px;
}

.footer-logo {
  display: inline-flex;
  background: var(--bg);
  padding: 14px 18px;
  border-radius: var(--r-sm);
}
.footer-logo img { height: 38px; width: auto; display: block; }

.footer-blurb {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 18px;
  max-width: 280px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}
.footer-heading {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(251, 249, 246, .45);
  margin-bottom: 4px;
}
.footer-col a { color: rgba(251, 249, 246, .7); transition: color .2s ease; }
.footer-col a:hover { color: var(--bg); }
.footer-phone { color: var(--bg) !important; font-weight: 600; }
.footer-phone:hover { color: var(--red-soft) !important; }
.footer-place { color: rgba(251, 249, 246, .7); }

.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(251, 249, 246, .14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  font-size: 12px;
  color: rgba(251, 249, 246, .45);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: rgba(251, 249, 246, .45); transition: color .2s ease; }
.footer-legal a:hover { color: var(--bg); }

/* --------------------------------------------------------------------------
   Scrollanimationer
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .merit[data-reveal],
.js .step[data-reveal] {
  transform: translateY(12px);
  transition-duration: .6s;
}
.js .intro-statement[data-reveal] { transition-duration: .8s; }
.js .project[data-reveal] {
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease, background .35s ease;
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.js [data-paint] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(.65, 0, .35, 1);
}
.js .quote [data-paint] { transition-duration: 1.4s; }
.js [data-paint].is-revealed { clip-path: inset(0 0 0 0); }

/* --------------------------------------------------------------------------
   Responsivt
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .service {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px 24px;
  }
  .service-body { grid-column: 2; }

  .feed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav[data-open] { display: flex; }
  .site-nav a {
    padding: 15px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .btn-phone {
    justify-content: center;
    margin-top: 20px;
    padding: 17px 24px;
    font-size: 16px;
    border-bottom: 0;
  }

  /* Utan JS finns ingen knapp att trycka på, så menyn ligger kvar synlig. */
  html:not(.js) .site-nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; background: none; border: 0; padding: 14px 0; }
  html:not(.js) .site-nav a { font-size: 14px; padding: 0; border: 0; }
  html:not(.js) .site-nav .btn-phone { margin-top: 0; padding: 12px 20px; font-size: 14px; }

  .hero { min-height: 620px; }
  .hero-body { padding: 150px 0 52px; }

  .project-text { padding: 36px 32px; }
  .project-panel-inner { margin: 0 32px; }
  .rot-card { padding: 40px 32px; }
  .about-grid { padding-block: 64px; }
}

@media (max-width: 620px) {
  .intro { padding-top: 64px; }
  .fargsattning { margin-top: 80px; padding: 72px 0; }
  .services, .projects, .feed { padding-top: 80px; }
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { margin-top: 80px; }
  .quote { padding-top: 80px; }
  .rot { margin-top: 80px; }
  .final { padding-top: 88px; padding-bottom: 80px; }

  .merits { margin-top: 40px; }
  .section-head { margin-bottom: 32px; }

  .hero-actions { gap: 18px; }
  .hero-actions .btn-lg { width: 100%; justify-content: center; }
  .hero-note { margin-left: 0; }

  .project-image { min-height: 240px; }
  .project-text { padding: 28px 24px; }
  .project-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .project-panel-inner { margin: 0 24px; padding: 28px 0 32px; }

  .service { padding: 26px 4px; }
  .service:hover { padding-left: 12px; }

  .step { grid-template-columns: 46px minmax(0, 1fr); }
  .step-body { grid-column: 2; }

  .btn-xl { padding: 20px 30px; font-size: 24px; }
  .final .btn-xl { width: 100%; justify-content: center; }

  .footer-bottom { margin-top: 40px; }
}

/* --------------------------------------------------------------------------
   Reducerad rörelse
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .curtain { display: none; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
  }

  .js [data-reveal],
  .js [data-paint] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  .js .project-panel { transition: none; }
  .project-icon .bar-v,
  .nav-toggle-bars span,
  .feed-link img { transition: none; }
  .feed-link:hover img { transform: none; }
}

/* Utskrift */
@media print {
  .curtain, .site-header, .nav-toggle { display: none !important; }
  .js .project-panel { grid-template-rows: 1fr !important; visibility: visible !important; }
  .js [data-reveal], .js [data-paint] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero { min-height: auto; }
}
