/* ----------------------------------------------------------------------------
 * Footer — editorial Scandinavian, ink-dark with brass accents.
 * Mirrors the homepage hero so the page reads as a single composition:
 *   dark hero  ▷  cream paper body  ▷  dark footer
 * ------------------------------------------------------------------------- */

.footer {
  --ft-ink: #0E1014;
  --ft-cream: #F2EBDD;
  --ft-cream-soft: #C8C5BC;
  --ft-slate: #6E727A;
  --ft-rule: rgba(242, 235, 221, 0.12);
  --ft-brass: #B98A4A;
  --ft-brass-bright: #D4A361;

  position: relative;
  background: var(--ft-ink);
  color: var(--ft-cream-soft);
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  padding: clamp(64px, 8vw, 104px) 0 32px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle grid texture matching the hero */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 235, 221, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 235, 221, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 80%, transparent 100%);
}

.footer__container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* ============================================================
 * Main grid: brand  |  Tjänster  |  Övrigt  |  Kontakt
 * ============================================================ */
.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(36px, 4vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* — Brand block — */
.footer__brand {
  max-width: 36ch;
}

.footer__logo {
  width: 56px;
  height: auto;
  margin-bottom: 24px;
  opacity: 0.95;
}

.footer__brand-name {
  margin: 0 0 14px;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ft-cream);
  font-variation-settings: "opsz" 72, "SOFT" 50, "WONK" 0;
}

.footer__tagline {
  margin: 0 0 24px;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ft-cream-soft);
  max-width: 32ch;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ft-cream);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--ft-brass);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, gap 0.25s ease, border-color 0.25s ease;
}

.footer__cta:hover {
  background: var(--ft-brass);
  border-color: var(--ft-brass);
  color: var(--ft-ink);
  gap: 14px;
}

.footer__cta i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.footer__cta:hover i {
  transform: translateX(3px);
}

/* — Column titles — */
.footer__col-title {
  margin: 0 0 22px;
  padding-bottom: 14px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ft-brass-bright);
  border-bottom: 1px solid var(--ft-rule);
}

/* — Link lists — */
.footer__links,
.footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin: 10px 0;
}

.footer__links a {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ft-cream-soft);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.25s ease;
}

.footer__links a:visited {
  color: var(--ft-cream-soft);
}

.footer__links a:hover {
  color: var(--ft-brass-bright);
  transform: translateX(3px);
}

/* — Contact column — */
.footer__contact li {
  margin: 0 0 18px;
}

.footer__contact-label {
  margin: 0 0 4px;
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ft-slate);
}

.footer__contact a {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  color: var(--ft-cream);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__contact a:visited { color: var(--ft-cream); }

.footer__contact a:hover {
  color: var(--ft-brass-bright);
}

.footer__address {
  margin: 0;
  font-style: normal;
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ft-cream);
}

/* ============================================================
 * Bottom strip: copyright + partner badge
 * ============================================================ */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--ft-rule);
}

.footer__legal {
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ft-slate);
  letter-spacing: 0.01em;
}

.footer__partners {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__partners a {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer__partners a:hover {
  opacity: 1;
}

.footer__partner-logo {
  display: block;
  width: auto;
  height: 28px;
}

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 980px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .footer__brand {
    grid-column: 1 / -1;
    max-width: 56ch;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 56px 0 28px;
  }
  .footer__main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
