/* ========================================================================== 
   Meridian Edge Global — global footer
   Component root: .meg-footer
   ========================================================================== */

.site-footer.meg-footer {
  --meg-footer-bg: #0c1533;
  --meg-footer-panel: #121f45;
  --meg-footer-line: rgba(255, 255, 255, 0.12);
  --meg-footer-text: rgba(255, 255, 255, 0.76);
  --meg-footer-muted: rgba(255, 255, 255, 0.58);
  position: relative;
  width: 100%;
  clear: both;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(54, 184, 244, 0.12), transparent 25rem),
    linear-gradient(135deg, var(--meg-footer-bg) 0%, #172b61 100%);
  color: var(--meg-footer-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}

.site-footer.meg-footer,
.site-footer.meg-footer * {
  box-sizing: border-box;
}

.site-footer.meg-footer::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  pointer-events: none;
}

.meg-footer__accent {
  position: relative;
  z-index: 1;
  height: 4px;
  background: linear-gradient(90deg, var(--meg-sky-500, #36b8f4), var(--meg-blue-600, #3158b5) 62%, #6fe0bd);
}

.meg-footer__container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--meg-container, 1200px));
  margin-inline: auto;
}

.site-footer.meg-footer p,
.site-footer.meg-footer h2,
.site-footer.meg-footer ul {
  margin-top: 0;
}

.site-footer.meg-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer.meg-footer nav,
.site-footer.meg-footer nav a {
  margin: 0;
}

/* Final call to action */
.meg-footer__cta {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--meg-footer-line);
  background: rgba(255, 255, 255, 0.035);
}

.meg-footer__cta-inner {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-block: 42px;
}

.meg-footer__cta-copy {
  max-width: 680px;
}

.meg-footer__eyebrow {
  margin-bottom: 10px;
  color: var(--meg-sky-500, #36b8f4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.meg-footer__cta h2 {
  margin-bottom: 12px;
  color: var(--meg-white, #ffffff);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.meg-footer__cta-copy > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--meg-footer-text);
  font-size: 16px;
  line-height: 1.65;
}

.meg-footer__cta-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.site-footer.meg-footer .meg-footer__button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-footer.meg-footer .meg-footer__button--primary {
  background: var(--meg-white, #ffffff);
  color: var(--meg-navy-950, #101a3a);
}

.site-footer.meg-footer .meg-footer__button--secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
  color: var(--meg-white, #ffffff);
}

.site-footer.meg-footer .meg-footer__button:hover {
  border-color: var(--meg-sky-500, #36b8f4);
  background: var(--meg-sky-500, #36b8f4);
  color: var(--meg-navy-950, #101a3a);
  transform: translateY(-1px);
}

/* Main footer directory */
.meg-footer__main {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(130px, 0.8fr)) minmax(210px, 1.1fr);
  gap: 42px 34px;
  padding-block: 58px 52px;
}

.meg-footer__brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.meg-footer__logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.meg-footer__logo .custom-logo-link {
  display: flex;
  padding: 0;
}

.site-footer.meg-footer .meg-footer__logo img {
  display: block;
  width: auto;
  max-width: 58px;
  max-height: 54px;
  margin: 0;
  object-fit: contain;
}

.meg-footer__logo-fallback {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--meg-white, #ffffff);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.site-footer.meg-footer .meg-footer__company-name {
  max-width: 195px;
  color: var(--meg-white, #ffffff);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.site-footer.meg-footer .meg-footer__company-name:hover {
  color: var(--meg-sky-500, #36b8f4);
}

.meg-footer__summary {
  max-width: 330px;
  margin-bottom: 24px;
  color: var(--meg-footer-text);
}

.meg-footer__delivery-facts,
.meg-footer__column ul {
  padding: 0;
  list-style: none;
}

.meg-footer__delivery-facts {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
}

.meg-footer__delivery-facts li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: baseline;
  gap: 9px;
  color: var(--meg-footer-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.meg-footer__delivery-facts li span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fe0bd;
  box-shadow: 0 0 0 4px rgba(111, 224, 189, 0.1);
}

.meg-footer__column-title {
  margin-bottom: 18px;
  color: var(--meg-white, #ffffff);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.meg-footer__column ul {
  display: grid;
  gap: 4px;
  margin-bottom: 0;
}

.site-footer.meg-footer .meg-footer__column a {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  padding-block: 5px;
  color: var(--meg-footer-text);
  font-size: 13.5px;
  line-height: 1.4;
}

.site-footer.meg-footer .meg-footer__column a:hover {
  color: var(--meg-sky-500, #36b8f4);
  transform: translateX(2px);
}

.meg-footer__contact-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--meg-footer-line);
  margin-bottom: 16px;
}

.meg-footer__contact-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--meg-footer-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer.meg-footer .meg-footer__contact-item a {
  display: inline-block;
  overflow-wrap: anywhere;
  color: var(--meg-white, #ffffff);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.site-footer.meg-footer .meg-footer__contact-item a:hover {
  color: var(--meg-sky-500, #36b8f4);
}

.meg-footer__availability {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--meg-footer-text);
  font-size: 12.5px;
  line-height: 1.5;
}

.meg-footer__status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #6fe0bd;
  box-shadow: 0 0 0 5px rgba(111, 224, 189, 0.1);
}

/* Registration and operating-model disclosure */
.meg-footer__company-details {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  padding-block: 25px;
  border-top: 1px solid var(--meg-footer-line);
  color: var(--meg-footer-muted);
  font-size: 12px;
  line-height: 1.55;
}

.meg-footer__company-details p {
  margin-bottom: 5px;
}

.meg-footer__company-details strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 720;
}

.meg-footer__registered-office span {
  color: #ffd580;
  font-weight: 720;
}

/* Copyright and legal links */
.meg-footer__legal {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--meg-footer-line);
  background: rgba(3, 9, 25, 0.34);
}

.meg-footer__legal-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 18px;
  color: var(--meg-footer-muted);
  font-size: 12px;
}

.meg-footer__legal-inner p {
  margin-bottom: 0;
}

.meg-footer__legal-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.site-footer.meg-footer .meg-footer__legal-inner a {
  color: var(--meg-footer-text);
}

.site-footer.meg-footer .meg-footer__legal-inner a:hover {
  color: var(--meg-sky-500, #36b8f4);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer.meg-footer a:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(54, 184, 244, 0.6);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .meg-footer__main {
    grid-template-columns: minmax(260px, 1.35fr) repeat(2, minmax(160px, 1fr));
  }

  .meg-footer__brand {
    grid-row: span 2;
  }
}

@media (max-width: 820px) {
  .meg-footer__cta-inner {
    display: grid;
    min-height: 0;
    gap: 26px;
  }

  .meg-footer__cta-actions {
    justify-content: flex-start;
  }

  .meg-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 46px 42px;
  }

  .meg-footer__brand,
  .meg-footer__contact {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .meg-footer__summary {
    max-width: 580px;
  }

  .meg-footer__company-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .meg-footer__legal-inner {
    display: grid;
    justify-items: start;
  }

  .meg-footer__legal-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .meg-footer__container {
    width: min(calc(100% - 28px), var(--meg-container, 1200px));
  }

  .meg-footer__cta-inner {
    padding-block: 36px;
  }

  .meg-footer__cta h2 {
    font-size: 30px;
  }

  .meg-footer__cta-copy > p:last-child {
    font-size: 14px;
  }

  .meg-footer__cta-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer.meg-footer .meg-footer__button {
    width: 100%;
  }

  .meg-footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .meg-footer__brand,
  .meg-footer__contact {
    grid-column: auto;
  }

  .site-footer.meg-footer .meg-footer__logo img {
    max-width: 50px;
    max-height: 47px;
  }

  .site-footer.meg-footer .meg-footer__company-name {
    max-width: 180px;
    font-size: 18px;
  }

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

  .meg-footer__company-details {
    padding-block: 22px;
  }

  .meg-footer__legal-inner nav {
    display: grid;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer.meg-footer a {
    transition-duration: 0.01ms !important;
  }
}
