/* ==========================================================================
   MJ VVS & Bygg AB – gemensam stilmall (designsystem)
   ========================================================================== */

/* ---- Designvariabler ---------------------------------------------------- */
:root {
  /* Färgpalett: blå = huvudaccent (knappar, ikoner, länkar), röd = typografiska detaljer */
  --bla: #1E4DB7;
  --bla-dark: #163C93;
  --bla-soft: #E7EDFA;
  --rod: #D42B2F;
  --rod-dark: #B4222A;
  --rod-soft: #FBE7E7;
  --accent: var(--bla);
  --accent-dark: var(--bla-dark);
  --accent-soft: var(--bla-soft);
  --accent-2: var(--rod);
  --accent-2-soft: var(--rod-soft);
  --ink: #141415;
  --ink-2: #2B2B2E;
  --grey: #6E6E74;
  --grey-2: #8B8B91;
  --line: #ECECEE;
  --card: #F6F6F7;
  --dark: #1C1C1E;
  --dark-text: #C9C9CF;
  --white: #FFFFFF;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;                       /* innehållskolumn */
  --wide: 1376px;                      /* hero + CTA-ram */
  --gutter: clamp(16px, 3.4vw, 48px);
  --gutter-wide: clamp(12px, 1.7vw, 32px);

  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 20px;
  --r-pill: 999px;

  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .35s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, p, ul, figure, blockquote, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---- Hjälpklasser ------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.container-wide {
  width: min(100% - 2 * var(--gutter-wide), var(--wide));
  margin-inline: auto;
}
.u-accent { color: var(--accent-2); }
.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.hoppa {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-weight: 600;
  transition: top .2s;
}
.hoppa:focus { top: 16px; }

.section { margin-top: var(--section); }
.section__title {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

/* ---- Knappar ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30, 77, 183, .25); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn__arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--sm { height: 36px; padding: 0 18px; font-size: 13px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn--light { background: #fff; border-color: #E2E2E5; color: var(--ink); }
.icon-btn--light:hover { background: var(--card); border-color: #D2D2D6; }
.icon-btn--accent { background: var(--accent); color: #fff; }
.icon-btn--accent:hover { background: var(--accent-dark); }
.icon-btn[aria-disabled="true"] { opacity: .35; cursor: default; pointer-events: none; }
.icon-btn--accent[aria-disabled="true"] { opacity: .45; }

/* ---- Sidhuvud ----------------------------------------------------------- */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding-top: calc(var(--gutter-wide) + 22px);
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__icon { width: 34px; height: 34px; flex: 0 0 auto; }
.logo__word { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.logo__amp { color: var(--accent-2); }
.header .logo {
  padding: 6px 16px 6px 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.logo--lg .logo__icon { width: 56px; height: 56px; }
.logo--lg .logo__word { font-size: 26px; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.nav__link {
  display: block;
  height: 38px;
  line-height: 38px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--card); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__call { display: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone { display: none; }

.menu-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  cursor: pointer;
}
.menu-toggle__bar {
  position: absolute;
  left: 14px; right: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease);
}
.menu-toggle__bar:nth-child(1) { top: 16px; }
.menu-toggle__bar:nth-child(2) { top: 22px; }
.menu-toggle__bar:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding-top: var(--gutter-wide); }
.hero__media {
  position: relative;
  aspect-ratio: 2.2 / 1;
  min-height: 380px;
  max-height: 680px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #D9DEE3;
}
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(100%, 300px);
  gap: 32px 48px;
  align-items: start;
  padding-top: 36px;
}
.headline__title {
  font-family: var(--font-head);
  font-size: clamp(40px, 4.7vw, 66px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.035em;
}
.headline__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey);
  padding-top: 6px;
}

/* ---- Intro -------------------------------------------------------------- */
.intro { margin-top: clamp(64px, 7.5vw, 104px); }
.intro__text {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(22px, 2.6vw, 37px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--grey);
}
.intro__text strong { font-weight: 500; color: var(--ink); }

/* ---- Tjänster + dragspel ----------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: start;
}
.services__text {
  max-width: 340px;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey);
}

.acc { display: flex; flex-direction: column; gap: 14px; }
.acc__item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--ink);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.acc__item.is-open {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.acc__heading { margin: 0; font-size: inherit; font-weight: inherit; }
.acc__trigger {
  display: block;
  width: 100%;
  padding: 35px 92px 35px 32px;
  border: 0;
  border-radius: inherit;
  background: none;
  text-align: left;
  font-family: var(--font-head);
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: inherit;
  cursor: pointer;
}
.acc__item:not(.is-open) .acc__trigger:hover { background: #F0F0F2; }
.acc__trigger:focus-visible { outline-offset: -4px; border-radius: var(--r-lg); }
.is-open .acc__trigger { padding-bottom: 14px; cursor: default; }
.is-open .acc__trigger:focus-visible { outline-color: var(--accent); }

.acc__link {
  position: absolute;
  top: 35px; right: 30px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.acc__link[hidden] { display: none; }
.acc__link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.acc__link:hover { background: var(--accent-dark); transform: scale(1.08); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel-inner { min-height: 0; overflow: hidden; }
.acc__body {
  max-width: 560px;
  padding: 0 32px 18px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--dark-text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease) .1s, transform .35s var(--ease) .1s;
}
.is-open .acc__body { opacity: 1; transform: none; }

/* ---- Statistik ---------------------------------------------------------- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  min-height: clamp(210px, 20vw, 290px);
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.stat__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.stat__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stat__num {
  margin-top: auto;
  padding-top: 40px;
  font-family: var(--font-head);
  font-size: clamp(36px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label { margin-top: 10px; font-size: 15px; color: var(--grey); }

/* ---- Våra arbeten ------------------------------------------------------- */
.works__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.work {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #E4E6E9;
  isolation: isolate;
}
.work:nth-child(-n + 2) { grid-column: span 3; aspect-ratio: 4 / 3; }
.work:nth-child(n + 3) { grid-column: span 2; aspect-ratio: 7 / 6; }
.work img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.work:hover img, .work:focus-visible img { transform: scale(1.04); }
.work:focus-visible { outline-offset: 4px; }
.work__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 72px 32px 28px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.work--featured .work__cap, .work:hover .work__cap, .work:focus-visible .work__cap { opacity: 1; transform: none; }
.work__title {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.work__meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; opacity: .92; }
.work__meta span + span::before {
  content: "";
  display: inline-block;
  width: 1px; height: 11px;
  margin-right: 10px;
  vertical-align: -1px;
  background: currentColor;
  opacity: .6;
}

/* ---- Kundberättelser (löpande band över hela sidan, utan rutor) --------- */
.stories__nav { display: flex; gap: 8px; }
.stories__band {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.stories__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* samma indrag som innehållskolumnen, så att bandet linjerar med rubriken när det står stilla */
  padding: 6px max(var(--gutter), calc((100% - var(--max)) / 2)) 10px;
  -webkit-overflow-scrolling: touch;
}
.stories__track::-webkit-scrollbar { display: none; }
.stories__track:focus-visible { outline-offset: -2px; border-radius: 0; }
.story {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(440px, 80vw);
  padding: 4px 44px 4px 40px;
  border-left: 1px solid var(--line);
}
.story__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-2-soft);
  color: var(--accent-2);
}
.story__mark svg { width: 16px; height: 16px; fill: currentColor; }
.story__quote p {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.story__foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.story__avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
}
.story__who { display: grid; gap: 1px; }
.story__name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.story__place { font-size: 13px; color: var(--grey); }
@media (max-width: 720px) {
  .story { width: min(360px, 82vw); padding: 4px 28px 4px 24px; }
}
/* ---- CTA ---------------------------------------------------------------- */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  min-height: clamp(360px, 30vw, 440px);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(100deg, #EDF3F8 0%, #E6EEF5 60%, #E9F0F5 100%);
  isolation: isolate;
}
.cta__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 5vw, 72px) 24px clamp(40px, 5vw, 72px) clamp(28px, 4.6vw, 64px);
}
.cta__title {
  font-family: var(--font-head);
  font-size: clamp(34px, 3.9vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.cta__text {
  max-width: 400px;
  margin: 22px 0 36px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey);
}
.cta__media { position: absolute; inset: 0 0 0 auto; width: 64%; z-index: 1; }
.cta__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%);
  mask-image: linear-gradient(to right, transparent 0, #000 26%);
}

/* ---- Sidfot ------------------------------------------------------------- */
.footer { padding: var(--section) 0 40px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.9fr 1.15fr 1fr auto;
  gap: 40px;
  padding-bottom: 80px;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.footer__contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--grey); }
.footer__contact a:hover { color: var(--ink); }
.footer__list { display: grid; gap: 12px; align-content: start; padding-top: 6px; }
.footer__list li, .footer__list a { font-size: 15px; color: #4E4E54; }
.footer__list a { transition: color var(--dur) var(--ease); }
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--grey-2);
}
.footer__legal {
  display: flex;
  flex: 0 0 52%;
  justify-content: space-between;
  gap: 24px;
}
.footer__legal a { color: var(--grey-2); transition: color var(--dur) var(--ease); }
.footer__legal a:hover { color: var(--ink); }

/* ==========================================================================
   Responsivt
   ========================================================================== */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr auto; gap: 32px; }
  .headline { grid-template-columns: minmax(0, 1fr) min(100%, 280px); }
}

@media (max-width: 960px) {
  /* Meny -> hamburgare */
  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    margin: 0;
    padding: 10px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--dur);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 0; box-shadow: none; border-radius: 0; }
  .nav__link { height: 52px; line-height: 52px; padding: 0 16px; font-size: 17px; border-radius: 14px; }
  .nav__call { display: inline-flex; margin: 8px 6px 6px; justify-content: center; }
  .header__call { display: none; }
  .header__phone { display: inline-grid; width: 46px; height: 46px; }
  .header__phone svg { width: 20px; height: 20px; stroke-width: 1.8; }
  .menu-toggle { display: block; }
  .header__actions { margin-left: auto; }

  .services__grid { grid-template-columns: 1fr; gap: 32px; }
  .services__text { max-width: 520px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 220px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 32px; padding-bottom: 56px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { flex: 0 0 auto; width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 16px 28px; }
}

@media (max-width: 720px) {
  .hero__media { aspect-ratio: 3 / 2; min-height: 0; }
  .headline { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .headline__text { max-width: 480px; padding-top: 0; }
  .works__grid { grid-template-columns: 1fr; gap: 16px; }
  .work:nth-child(-n + 2), .work:nth-child(n + 3) { grid-column: auto; aspect-ratio: 4 / 3; }
  .work__cap { padding: 60px 24px 22px; }
  .section__head { margin-bottom: 28px; }
  .cta { grid-template-columns: 1fr; min-height: 0; }
  .cta__body { padding: 36px 28px 40px; }
  .cta__text { margin: 18px 0 28px; }
  .cta__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    order: 2;
  }
  .cta__media img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); margin-top: -12%; height: calc(100% + 12%); }
}

@media (max-width: 480px) {
  .hero__media { aspect-ratio: 4 / 5; }
  .logo__word { font-size: 17px; }
  .logo__icon { width: 32px; height: 32px; }
  .header__inner { gap: 12px; }
  .stats__grid { grid-template-columns: 1fr; gap: 12px; }
  .stat { min-height: 0; padding: 22px 24px 24px; }
  .stat__num { padding-top: 26px; }
  .works__grid { gap: 14px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__list { gap: 10px; }
  .btn--sm { height: 34px; padding: 0 16px; }
}

/* Hero: mellanstora skärmar – undvik att min-height tvingar upp bredden via aspect-ratio */
@media (min-width: 721px) and (max-width: 960px) {
  .hero__media { aspect-ratio: 16 / 10; min-height: 0; }
}

/* ---- Sidhuvud på startsidan: ovanför hero-bilden på vit bakgrund --------- */
.header--fristaende {
  position: relative;
  top: auto;
  padding: 22px 0 8px;
  background: var(--white);
}
.header--fristaende .logo {
  padding: 6px 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.header--fristaende .nav__list,
.header--fristaende .menu-toggle {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: none;
}
.header--fristaende .nav__link:hover { background: #fff; }

/* ---- Tjänster: uppmaning att klicka + "Läs mer"-länk i öppet kort -------- */
.services__hint {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  margin-top: 26px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-2);
}
.services__hint-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.services__hint-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 32px 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease) .15s, transform .35s var(--ease) .15s, color var(--dur) var(--ease);
}
.acc__more:hover { color: #fff; }
.acc__more:hover .btn__arrow { transform: translate(2px, -2px); }
.acc__more .btn__arrow { transition: transform var(--dur) var(--ease); }
.is-open .acc__more { opacity: 1; transform: none; }
.acc__item:not(.is-open) .acc__more { pointer-events: none; }

/* ---- Intoning vid scroll (tjänstekort + statistikkort) ------------------ */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: none; }
.acc__item.reveal {
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              opacity .55s var(--ease), transform .55s var(--ease);
}
.stat.reveal { transition: opacity .55s var(--ease), transform .55s var(--ease); }

/* Pilen i klick-uppmaningen pekar mot tjänstekorten: åt höger på desktop, nedåt när korten ligger under */
@keyframes hint-nick { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes hint-nick-ned { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(4px); } }
.services__hint-icon svg { stroke-width: 2; animation: hint-nick 1.6s var(--ease) infinite; }
@media (max-width: 960px) {
  .services__hint-icon svg { transform: rotate(90deg); animation-name: hint-nick-ned; }
}

/* Scrollstyrt kortbyte på mobil: ingen höjdanimering (scrollpositionen kompenseras i JS) */
.acc--direkt .acc__panel { transition: none; }

/* ---- Riktig logotyp (bild från mjvvsbygg.se) ----------------------------- */
.logo__img { display: block; width: auto; height: 62px; }
.logo--lg .logo__img { height: 96px; }
.header .logo { padding: 5px 12px 5px 8px; }
.header--fristaende .logo { padding: 4px 0; }
@media (max-width: 720px) {
  .logo__img { height: 46px; }
  .logo--lg .logo__img { height: 80px; }
}
