/* ==========================================================
   1. RESET
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==========================================================
   2. PAGE WIDTH LIMITS (min 380px, max 2100px)
   ========================================================== */
body {
  min-width: 380px;
}

.page {
  width: 100%;
  min-width: 380px;
  max-width: 2100px;
  margin: 0 auto;
}

.img {
  width: 100%;
  height: auto;
}

/* ==========================================================
   3. MOBILE STYLES (default: 380px – 767px)
   ========================================================== */
.img--desktop {
  display: none;
}

.img--mobile {
  display: block;
}

/* ==========================================================
   4. DESKTOP STYLES (768px and up)
   ========================================================== */
@media (min-width: 768px) {
  .img--mobile {
    display: none;
  }

  .img--desktop {
    display: block;
  }
}

/* ==========================================================
   5. FOOTER
   Colours: dark #3c3c3c | light grey #7c7a7b | red #db3110
   ========================================================== */

/* ---- Mobile (default): stacked blocks ---- */
.footer {
  width: 100%;
  min-width: 380px;
  max-width: 2100px;
  margin: 0 auto;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #fff;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  order: -1;
  display: flex;
  justify-content: center;
  padding: 24px 0 16px;
  background: #fff;
}

.footer__logo svg {
  width: 72px;
  height: auto;
}

.footer__group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px;
}

.footer__group--left {
  background: #3c3c3c;
}

.footer__group--right {
  background: #7c7a7b;
}

.footer__col {
  font-style: normal;
}

.footer__name {
  color: #db3110;
}

.footer__label {
  display: inline-block;
  min-width: 1.4em;
}

/* ---- Desktop (768px and up): diagonal panels with centred logo ---- */
@media (min-width: 768px) {
  .footer {
    position: relative;
    padding-top: 24px;
    background: #fff;
  }

  .footer::before,
  .footer::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .footer::before {
    background: #3c3c3c;
    clip-path: polygon(0 0, 40% 0, 44.5% 100%, 0 100%);
  }

  .footer::after {
    background: #7c7a7b;
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 55.5% 100%);
  }

  .footer__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr clamp(96px, 10vw, 210px) 1fr;
    min-height: 200px;
  }

  .footer__logo {
    order: 0;
    align-items: flex-start;
    padding: 0;
    background: none;
  }

  .footer__logo svg {
    width: 100%;
  }

  .footer__group {
    flex-direction: row;
    gap: 5%;
    padding: 48px 0 32px;
    background: none;
    justify-content: space-around;
  }

  .footer__group--left {
    padding-left: 8%;
    padding-right: 4%;
  }

  .footer__group--right {
    padding-left: 12%;
    padding-right: 4%;
  }

  .footer__group--right .footer__col:last-child {
    margin-top: 0;
  }
}
