/* ============================================================
   Morelyte – footer
   Mörk yta med rundade övre hörn som lägger sig över Våra kunder.
   Överst logotypen vänsterställd (stor, symbolens kil i bakgrundsfärgen), därunder fyra kolumner
   (bolaget, kontakt, information, tjänster) och en bottenrad. Kolumnerna
   tonas in staggrat när footern kommer i bild (footer.js).
   ============================================================ */

.footer {
  position: relative;
  z-index: 6;
  background: #1b2120;
  color: #ffffff;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -40px 80px -40px rgba(27, 33, 32, 0.6);
  padding: clamp(72px, 10vh, 120px) 0 32px;
  --f-mute: rgba(255, 255, 255, 0.55);
  --f-soft: rgba(255, 255, 255, 0.74);
  --f-line: rgba(255, 255, 255, 0.14);
}

.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
}

.footer a { color: inherit; text-decoration: none; }

/* Överst: bara logotypen ------------------------------------- */
.footer__top {
  display: flex;
  justify-content: flex-start;
  padding-bottom: clamp(24px, 4vh, 48px);
}

.footer__logo {
  display: block;
  width: clamp(240px, 30vw, 420px);
  height: auto;
}

/* Kolumnerna -------------------------------------------------- */
.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.9fr 1.2fr;
  gap: 40px;
  padding: clamp(48px, 7vh, 80px) 0;
}

.footer__col-title {
  margin: 0 0 20px;
  color: var(--f-mute);
  font-size: 15px;
  font-weight: 400;
}

.footer__links,
.footer__people,
.footer__meta {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links > li { margin: 0 0 10px; }

/* Länkar: understrykning som växer från vänster */
.footer__links a,
.footer__people a,
.footer__address a,
.footer__meta a {
  position: relative;
  display: inline-block;
  font-size: 16px;
  line-height: 1.4;
}

.footer__links a::after,
.footer__people a::after,
.footer__address a::after,
.footer__meta a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ml-ease);
}

@media (hover: hover) {
  .footer__links a:hover::after,
  .footer__people a:hover::after,
  .footer__address a:hover::after,
  .footer__meta a:hover::after { transform: scaleX(1); }
}

/* Personer */
.footer__people > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0 0 22px;
}

.footer__name { font-size: 16px; font-weight: 500; }
.footer__role { font-size: 14px; color: var(--f-mute); margin-bottom: 4px; }
.footer__people a { color: var(--f-soft); font-size: 15px; }

/* Bolaget */
.footer__address {
  margin: 0 0 18px;
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
}
.footer__address span { display: block; color: var(--f-soft); }

/* Bottenraden -------------------------------------------------- */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--f-line);
  color: var(--f-mute);
  font-size: 14px;
}

.footer__meta { display: flex; gap: 24px; }
.footer__meta a { font-size: 14px; }

/* Inflygning ---------------------------------------------------- */
.footer__top,
.footer__col,
.footer__bottom {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 1s var(--ml-ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.footer.is-in .footer__top,
.footer.is-in .footer__col,
.footer.is-in .footer__bottom { opacity: 1; transform: none; }

/* Mobil --------------------------------------------------------- */
@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .footer { border-radius: 28px 28px 0 0; padding-top: 64px; padding-bottom: 24px; }
  .footer__logo { width: min(260px, 80vw); }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer__top, .footer__col, .footer__bottom { opacity: 1; transform: none; transition: none; }
  .footer__links a::after, .footer__people a::after, .footer__address a::after, .footer__meta a::after { transition: none; }
}
