@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600&display=swap');

.hg-foot {
  --hg-muted: rgba(247, 244, 236, 0.75);
  --hg-line: rgba(247, 244, 236, 0.18);
  --hg-line-strong: rgba(247, 244, 236, 0.4);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 72px 24px 28px;
  background: var(--hg-bg, #2A2420);
  color: var(--hg-fg, #F7F4EC);
  font-family: 'Inter', sans-serif;
}
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .hg-foot {
    --hg-muted: color-mix(in srgb, var(--hg-fg, #F7F4EC) 75%, transparent);
    --hg-line: color-mix(in srgb, var(--hg-fg, #F7F4EC) 18%, transparent);
    --hg-line-strong: color-mix(in srgb, var(--hg-fg, #F7F4EC) 40%, transparent);
  }
}

.hg-foot__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Tre delar: varumärke, länkkolumner, nyhetsbrev längst åt höger */
.hg-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 2.25fr) minmax(0, 0.9fr);
  grid-template-areas: "brand cols news";
  gap: 56px;
  align-items: start;
}
.hg-foot__top--no-news {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
  grid-template-areas: "brand cols";
}
.hg-foot__brand { grid-area: brand; }
.hg-foot__cols  { grid-area: cols; }
.hg-news        { grid-area: news; }

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

/* Varumärke */
.hg-foot__logo {
  display: inline-block;
  line-height: 0;
}
.hg-foot__logo img {
  display: block;
  max-width: 100%;
  height: auto;
}
.hg-foot__logo img.is-light {
  filter: brightness(0) invert(1);
}
.hg-foot__wordmark {
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
.hg-foot__tagline {
  margin: 24px 0 0;
  max-width: 300px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--hg-muted);
}

.hg-foot__cta {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 32px;
  background: var(--hg-btn-bg, #10B981);
  color: var(--hg-btn-text, #2A2420);
  border-radius: var(--hg-btn-radius, 0);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: filter 0.2s ease;
}
.hg-foot__cta:hover { filter: brightness(0.92); }
.hg-foot__cta:active { filter: brightness(0.85); }

/* Länkkolumner: bredare med större avstånd mellan kolumnerna */
.hg-foot__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px 56px;
}
.hg-foot__col {
  min-width: 0;
}
.hg-foot__heading {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hg-muted);
}
.hg-foot__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Länkar: hoverfärgen avslöjas från vänster till höger */
.hg-foot__link {
  display: inline-block;
  color: var(--hg-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}
.hg-foot__label {
  position: relative;
  display: inline-block;
}
.hg-foot__label::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--hg-hover, #10B981);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.3s ease;
  pointer-events: none;
}
.hg-foot__link:hover .hg-foot__label::after,
.hg-foot__link:focus-visible .hg-foot__label::after {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.5s ease-in-out;
}
.hg-foot__link:focus-visible,
.hg-foot__cta:focus-visible,
.hg-foot__logo:focus-visible,
.hg-foot__wordmark:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 3px;
}

/* Nyhetsbrev */
.hg-news {
  min-width: 0;
}
.hg-news__form {
  position: relative;
}
.hg-news__input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hg-line-strong);
  border-radius: 0;
  color: var(--hg-fg, #F7F4EC);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hg-news__input::placeholder {
  color: var(--hg-muted);
  opacity: 0.85;
}
.hg-news__input:focus {
  border-bottom-color: var(--hg-accent, #10B981);
  box-shadow: 0 1px 0 0 var(--hg-accent, #10B981);
}
.hg-news__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.hg-news__btn {
  margin-top: 20px;
  padding: 14px 36px;
  background: transparent;
  border: 2px solid var(--hg-accent, #10B981);
  border-radius: var(--hg-btn-radius, 0);
  color: var(--hg-accent, #10B981);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.hg-news__btn:hover {
  background: var(--hg-accent, #10B981);
  color: var(--hg-btn-text, #2A2420);
}
.hg-news__btn:focus-visible {
  outline: 2px solid var(--hg-accent, #10B981);
  outline-offset: 3px;
}
.hg-news__btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.hg-news__msg {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--hg-muted);
}
.hg-news__msg.is-success { color: var(--hg-accent, #10B981); }
.hg-news__msg.is-error { color: #E58B80; }
.hg-news__note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--hg-muted);
}

/* Kontakt till vänster, sociala länkar till höger, ovanför linjen */
.hg-foot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 48px;
  margin-top: 40px;
}
.hg-foot__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 40px;
}
.hg-foot__contact .hg-foot__link,
.hg-foot__social .hg-foot__link {
  color: var(--hg-fg, #F7F4EC);
  font-size: 15px;
}
.hg-foot__org {
  font-size: 15px;
  line-height: 1.4;
  color: var(--hg-muted);
}
.hg-foot__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-left: auto;
}

/* Nedre rad */
.hg-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hg-line);
  font-size: 14px;
  line-height: 1.4;
  color: var(--hg-muted);
}
.hg-foot__copy {
  margin: 0;
}
.hg-foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hg-foot__bottom .hg-foot__link {
  font-size: 14px;
}

/* Mindre skärmar: varumärke och nyhetsbrev delar första raden, länkkolumnerna får hela raden under */
@media (max-width: 1100px) {
  .hg-foot__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand news"
      "cols cols";
    gap: 48px 48px;
  }
  .hg-foot__top--no-news {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "cols";
  }
}
@media (max-width: 900px) {
  .hg-foot { padding: 56px 24px 24px; }
  .hg-foot__top,
  .hg-foot__top--no-news {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "cols"
      "news";
    gap: 48px;
  }
  .hg-news { max-width: 360px; }
  .hg-foot__meta { margin-top: 40px; }
  .hg-foot__social { margin-left: 0; }
}
@media (max-width: 480px) {
  .hg-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .hg-foot__contact { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hg-foot__bottom { flex-direction: column; align-items: flex-start; }
  .hg-news { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-foot__cta,
  .hg-foot__label::after,
  .hg-news__input,
  .hg-news__btn {
    transition: none !important;
  }
}