/*
|--------------------------------------------------------------------------
| Gillingham Storage Sitewide Footer
|--------------------------------------------------------------------------
| Sitewide editable footer controlled from the Gillingham admin dashboard.
|--------------------------------------------------------------------------
*/

.site-footer {
  display: none !important;
}

.gillingham-footer {
  --gillingham-footer-upper-bg: #123e6d;
  --gillingham-footer-lower-bg: #0d2b4b;
  --gillingham-footer-text: #ffffff;
  --gillingham-footer-muted: #c9d6e5;
  --gillingham-footer-accent: #ffd93d;
  --gillingham-footer-accent-text: #123e6d;
  --gillingham-footer-border: #285889;
  --gillingham-footer-logo-width: 220px;
  margin-top: clamp(72px, 8vw, 112px);
  font-family: "Nunito", Arial, sans-serif;
  color: var(--gillingham-footer-text);
}

.gillingham-footer *,
.gillingham-footer *::before,
.gillingham-footer *::after {
  box-sizing: border-box;
}

.gillingham-footer__upper {
  background: var(--gillingham-footer-upper-bg);
}

.gillingham-footer__lower {
  background: var(--gillingham-footer-lower-bg);
  border-top: 1px solid var(--gillingham-footer-border);
}

.gillingham-footer__inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(44px, 5vw, 72px) 0;
}

.gillingham-footer__inner--lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.gillingham-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.gillingham-footer__brand {
  padding-right: clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--gillingham-footer-border);
}

.gillingham-footer__brand-link {
  display: inline-flex;
  margin-bottom: 18px;
  text-decoration: none;
}

.gillingham-footer__logo {
  width: min(100%, var(--gillingham-footer-logo-width));
  height: auto;
  display: block;
}

.gillingham-footer__site-name {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gillingham-footer-text);
}

.gillingham-footer__tagline {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--gillingham-footer-muted);
}

.gillingham-footer__contact-list,
.gillingham-footer__links,
.gillingham-footer__legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gillingham-footer__contact-list {
  display: grid;
  gap: 12px;
}

.gillingham-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--gillingham-footer-muted);
  font-size: 15px;
  line-height: 1.55;
}

.gillingham-footer__contact-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--gillingham-footer-accent);
}

.gillingham-footer__contact-icon svg,
.gillingham-footer__social-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gillingham-footer__contact-item a,
.gillingham-footer__link {
  color: var(--gillingham-footer-text);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.gillingham-footer__contact-item a:hover,
.gillingham-footer__contact-item a:focus-visible,
.gillingham-footer__link:hover,
.gillingham-footer__link:focus-visible,
.gillingham-footer__legal-link:hover,
.gillingham-footer__legal-link:focus-visible {
  color: var(--gillingham-footer-accent);
}

.gillingham-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.gillingham-footer__social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--gillingham-footer-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gillingham-footer-text);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.gillingham-footer__social-link:hover,
.gillingham-footer__social-link:focus-visible {
  transform: translateY(-1px);
  background: var(--gillingham-footer-accent);
  color: var(--gillingham-footer-accent-text);
  border-color: var(--gillingham-footer-accent);
}

.gillingham-footer__social-link.is-placeholder,
.gillingham-footer__link.is-placeholder {
  opacity: 0.7;
  cursor: default;
}

.gillingham-footer__column-title {
  margin: 0 0 16px;
  color: var(--gillingham-footer-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.gillingham-footer__links {
  display: grid;
  gap: 12px;
}

.gillingham-footer__links-item,
.gillingham-footer__legal-item {
  margin: 0;
}

.gillingham-footer__link,
.gillingham-footer__legal-link {
  color: var(--gillingham-footer-muted);
  font-size: 15px;
  line-height: 1.5;
}

.gillingham-footer__bottom-text {
  margin: 0 0 10px;
  color: var(--gillingham-footer-text);
  font-size: 14px;
  line-height: 1.5;
}

.gillingham-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.gillingham-footer__badge-wrap {
  flex: 0 0 auto;
}

.gillingham-footer__badge {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1200px) {
  .gillingham-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }

  .gillingham-footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--gillingham-footer-border);
  }
}

@media (max-width: 767px) {
  .gillingham-footer {
    margin-top: 56px;
  }

  .gillingham-footer__inner {
    width: min(100%, calc(100% - 24px));
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .gillingham-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gillingham-footer__brand {
    padding-bottom: 20px;
  }

  .gillingham-footer__column-title {
    margin-bottom: 12px;
  }

  .gillingham-footer__inner--lower {
    align-items: flex-start;
    flex-direction: column;
  }

  .gillingham-footer__badge {
    max-width: 140px;
  }
}
