* {
    box-sizing: border-box;
    font-family: "apertura", sans-serif;
}

:root {
	/* Blue */
	--color-matisse-50: #f1f8fe;
	--color-matisse-100: #e3effb;
	--color-matisse-200: #c0dff7;
	--color-matisse-300: #88c6f1;
	--color-matisse-400: #49a8e7;
	--color-matisse-500: #218ed6;
	--color-matisse-600: #1370b6;
	--color-matisse-700: #1261a0;
	--color-matisse-800: #124c7a;
	--color-matisse-900: #144166;
	--color-matisse-950: #0e2943;

	/* Accent */
	--color-red: #e63946;

	/* Neutrals */
	--color-white: #ffffff;
	--color-off-white: #f5f8fa;
	--color-black: #111111;
}


body {
    margin: 0;
}


h1, h2, h3, h4, h5 {
    font-family: "din-2014", sans-serif;
}


/* footer  */

.footer {
    background-color: var(--color-matisse-950);
    padding: 80px 24px 160px 24px;
    display: flex;
    justify-content: center;
}

.footer .footer-wrapper {
    max-width: 1248px;
    width: 100%;
    display: flex;
    flex-direction: column;
}


/* top footer  */

.footer .footer-wrapper .top-footer {
    border-bottom: .5px solid #6d8a8340;
    padding: 36px 0;
    width: 100%;
    display: flex;
    gap: 48px;
    margin-bottom: 48px;
}

.footer .footer-wrapper .top-footer .emergency-call-footer {
    width: 25%;
}

.footer .footer-wrapper .top-footer .emergency-call-footer h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 32px;
    font-weight: 600;
    color: var(--color-white);
}

.footer .footer-wrapper .top-footer .emergency-call-footer p {
    margin-top: 0;
    margin-bottom: 32px;
    color: var(--color-white);
}

.footer .footer-wrapper .top-footer .emergency-call-footer .emergency-call-wrapper {

}

.footer .footer-wrapper .top-footer .emergency-call-footer .emergency-call-wrapper a {
    --clip-size: 12px;

    position: relative;
    isolation: isolate;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;
    padding: 8px 24px 8px 8px;

    background-color: var(--color-red);
    color: var(--color-white);

    text-decoration: none;
    font-weight: 600;

    clip-path: polygon(
        var(--clip-size) 0,
        100% 0,
        100% calc(100% - var(--clip-size)),
        calc(100% - var(--clip-size)) 100%,
        0 100%,
        0 var(--clip-size)
    );

    transition: .2s ease-in-out;
}


/* Outer white clipped shape */

.footer .footer-wrapper .top-footer .emergency-call-footer .emergency-call-wrapper a::before {
    content: "";
    position: absolute;
    inset: 0;

    background-color: var(--color-white);

    clip-path: polygon(
        var(--clip-size) 0,
        100% 0,
        100% calc(100% - var(--clip-size)),
        calc(100% - var(--clip-size)) 100%,
        0 100%,
        0 var(--clip-size)
    );

    opacity: 0;
    z-index: -2;

    transition: opacity .2s ease-in-out;
}


/* Inner footer-coloured shape */

.footer .footer-wrapper .top-footer .emergency-call-footer .emergency-call-wrapper a::after {
    content: "";
    position: absolute;
    inset: 1px;

    background-color: var(--color-matisse-950);

    clip-path: polygon(
        calc(var(--clip-size) - 1px) 0,
        100% 0,
        100% calc(100% - (var(--clip-size) - 1px)),
        calc(100% - (var(--clip-size) - 1px)) 100%,
        0 100%,
        0 calc(var(--clip-size) - 1px)
    );

    opacity: 0;
    z-index: -1;

    transition: opacity .2s ease-in-out;
}


/* Hover */

.footer .footer-wrapper .top-footer .emergency-call-footer .emergency-call-wrapper a:hover {
    background-color: transparent;
    color: var(--color-white);
}

.footer .footer-wrapper .top-footer .emergency-call-footer .emergency-call-wrapper a:hover::before,
.footer .footer-wrapper .top-footer .emergency-call-footer .emergency-call-wrapper a:hover::after {
    opacity: 1;
}

.footer .footer-wrapper .top-footer .emergency-call-footer .emergency-call-wrapper .icon-wrapper {
    --icon-clip-size: 8px;

    width: 40px;
    height: 40px;
    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    background-color: var(--color-white);

    clip-path: polygon(
        var(--icon-clip-size) 0,
        100% 0,
        100% calc(100% - var(--icon-clip-size)),
        calc(100% - var(--icon-clip-size)) 100%,
        0 100%,
        0 var(--icon-clip-size)
    );
}

.footer .footer-wrapper .top-footer .emergency-call-footer .emergency-call-wrapper .icon-wrapper svg {
    width: 100%;
    height: auto;

    fill: var(--color-red);

    transition: fill .2s ease-in-out;
}

.footer .footer-wrapper .top-footer .emergency-call-footer .emergency-call-wrapper a:hover .icon-wrapper svg {
    fill: var(--color-matisse-950);
}

.footer .footer-wrapper .top-footer .emergency-call-footer .emergency-call-wrapper a span {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
}


.footer .footer-wrapper .top-footer .links-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .footer .footer-wrapper .top-footer {
        flex-direction: column;
    }
    .footer .footer-wrapper .top-footer .emergency-call-footer {
        width: 100%!important;
    }
    .footer .footer-wrapper .bottom-footer {
        flex-direction: column;
        justify-content: start!important;
        align-items: start!important;
    }
}

@media (max-width: 767px) {
    .footer .footer-wrapper .top-footer {
        padding: 0!important;
    }
    .footer .footer-wrapper .top-footer .links-grid {
        grid-template-columns: repeat(1,1fr)!important;
    }
    .footer .footer-wrapper .top-footer .links-grid .link-column {
        padding-bottom: 24px;
    }
    .footer .footer-wrapper .top-footer .links-grid .link-column:not(:last-child) {
        border-bottom: .5px solid #6d8a8340;
    }
    .footer .footer-wrapper .bottom-footer .legal-list {
        flex-direction: column;
        align-items: start!important;
        gap: 24px!important;
    }
    .footer {
        padding: 40px 24px 120px 24px!important;
    }
}

.footer .footer-wrapper .top-footer .links-grid .link-column {
    width: 100%;
}

.footer .footer-wrapper .top-footer .links-grid .link-column .title {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--color-white);
    font-weight: 600;
}

.footer .footer-wrapper .top-footer .links-grid .link-column .link-column-list {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style-type: none;
}

.footer .footer-wrapper .top-footer .links-grid .link-column .link-column-list li {

}

.footer .footer-wrapper .top-footer .links-grid .link-column .link-column-list li a {
    display: flex;
    text-decoration: none;
    font-weight: 500;
    color: var(--color-white);
}

.footer .footer-wrapper .top-footer .links-grid .link-column .link-column-list li a:hover {
    text-decoration: underline;
}


/* end of top footer  */


/* bottom footer  */

.footer .footer-wrapper .bottom-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
}

.footer .footer-wrapper .bottom-footer .logo-wrapper {
    width: fit-content;
}

.footer .footer-wrapper .bottom-footer .logo-wrapper a {
    display: block;
    height: 40px;
}

.footer .footer-wrapper .bottom-footer .logo-wrapper a img {
    height: 100%;
    width: auto;
    /* max-width: 100%; */
}

.footer .footer-wrapper .bottom-footer .legal-list {
    display: flex;
    gap: 20px;
    align-items: center;
    color: var(--color-white);
    padding: 0;
    list-style-type: none;
    margin: 0;
}

.footer .footer-wrapper .bottom-footer .legal-list li {

}

.footer .footer-wrapper .bottom-footer .legal-list li a {
    display: flex;
    color: var(--color-white);
    text-decoration: none;
}

.footer .footer-wrapper .bottom-footer .legal-list li a:hover {
    text-decoration: underline;
}

/* end of bottom footer  */

/* end of footer  */