.footer {
  background: var(--color-neutral-600);
  color: var(--color-white);
  padding-top: var(--spacing-xxxlarge);
}

.footer a {
  color: var(--color-white);
}

/* Footer bottom with logos. */
.slimline-footer__bottom {
  padding-block: var(--spacing-large);
  margin-bottom: var(--spacing-large);
  border-top: 1px solid var(--color-neutral-400);
}

.slimline-footer__logos {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: var(--spacing-xlarge);
  align-items: center;
}

@media screen and (min-width:48em) {
  .slimline-footer__logos {
    grid-template-columns: 1fr 450px;
    gap: var(--spacing-xxlarge);
  }
}

.slimline-footer__logos__secondary {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxlarge);
  align-items: center;
}

@media screen and (min-width: 32em) {
  .slimline-footer__logos__secondary {
    flex-direction: row;
    align-items: end;
  }
}

@media screen and (min-width: 48em) {
  .slimline-footer__logos__secondary {
    margin-top: -1.5em;
  }
}

.slimline-footer__logos__secondary .slimline-footer__logos__logo {
  opacity: 60%;
  width: 60%;
  display: block;

  &:hover {
    opacity: 100%;
  }
}

@media screen and (min-width: 32em) {
  .slimline-footer__logos__secondary .slimline-footer__logos__logo {
    width: auto;
  }
}

.slimline-footer__logos__secondary .slimline-footer__logos__logo svg path {
  fill: var(--color-white);
}

.slimline-footer__logos__logo svg {
  max-height: 80px;
  width: 100%;
  margin: 0 auto;
}

.slimline-footer__logos__logo-1 {
  grid-column: 1 / -1;
  margin-inline: auto;
  width: 80%;
  max-width: 400px;

  &:hover {
    opacity: 60%;
  }
}

.slimline-footer__logos__logo-1 svg {
  max-height: fit-content;
}

@media screen and (min-width:48em) {
  .slimline-footer__logos__logo-1 {
    max-height: 100px;
    grid-column: 1 / span 1;
    margin-left: 0;
    width: auto;
  }

  .slimline-footer__logos__logo-2 svg {
    max-height: 40px;
  }

  .slimline-footer__logos__logo-3 svg {
    max-height: 60px;
  }

  .slimline-footer__logos__logo-4 svg {
    max-height: 60px;
  }
}

/* Logo colours */
.slimline-footer__logos__logo-1 .gov-ie__text {
  fill: var(--color-white);
}

/* Footer content – middle part */
.slimline-footer__content {
  margin-bottom: var(--spacing-xxlarge);
  display: grid;
  gap: var(--spacing-xlarge);
}

@media screen and (min-width: 64em) {
  .slimline-footer__content {
    grid-template-columns: 3fr 2fr;
  }
}

/* Menu footer */
.menu--footer .menu-item {
  width: 100%;
}

@media screen and (min-width: 32em) {
  .menu--footer {
    justify-content: space-between;
  }

  .menu--footer .menu-item {
    width: auto;
  }
}

@media screen and (min-width: 64em) {
  .navigation--footer  {
    grid-column: 1 / 2;
  }
  .menu--footer .menu-item {
    width: calc(100% / 3 - var(--spacing));
  }
}

/* Menu Main */
.menu--main .menu-item {
  width: 100%;
}

@media screen and (min-width: 32em) {
  .menu--main {
    justify-content: space-between;
  }

  .menu--main .menu-item {
    width: auto;
  }
}

@media screen and (min-width: 64em) {
  .navigation--main {
    grid-column: 1 / 2;
  }
}

/* Footer content – social */
@media screen and (min-width: 48em) {
  .slimline-footer__content .social-share {
    grid-row: 1 / 2;
    grid-column: 2/3;
    justify-self: end;
  }
}

/* Footer header */
.slimline-footer__header {
  margin-bottom: var(--spacing-xxxxlarge);
  display: grid;
  gap: var(--spacing-xlarge);
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
}

@media screen and (min-width: 32em) {
  .slimline-footer__header {
    grid-template-columns: 2fr auto auto;
  }
}

.slimline-footer__header .branding__logo {
  grid-column: 1 / -1;
}

@media screen and (min-width: 32em) {
  .slimline-footer__header .branding__logo {
    grid-column: 1 / 2;
    max-width: 400px;
  }
}

.slimline-footer__header .branding__logo svg {
  fill: var(--color-white);
}
