﻿/**
 * Site footer â€” institutional craft.
 */

.mgs-footer {
  --mgs-footer-ease: cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(232, 120, 26, 0.08), transparent 50%),
    linear-gradient(165deg, #08111c 0%, #0a182c 48%, #0b1f3a 100%);
  color: #d5dee8;
  overflow: hidden;
}

.mgs-footer__glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 120, 26, 0.75) 28%, rgba(255, 255, 255, 0.2) 55%, transparent 100%);
  pointer-events: none;
}

.mgs-footer__main {
  position: relative;
  z-index: 1;
  padding: clamp(3.75rem, 8vw, 5.5rem) 0 clamp(2.75rem, 5vw, 3.5rem);
}

.mgs-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2.2fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.mgs-footer__brand .mgs-brand {
  margin-bottom: 1.25rem;
}

/* Real brand mark (full logo PNG, transparent) on dark footer */
.mgs-footer .mgs-brand {
  min-width: 0;
  display: inline-flex;
}
.mgs-footer .mgs-brand__logo {
  width: min(200px, 55vw);
  max-width: 210px;
  height: auto;
  max-height: 64px;
  padding: 0.32rem 0.5rem;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  filter: none;
}

.mgs-footer__intro {
  max-width: 32ch;
  margin: 0 0 1.65rem;
  color: rgba(190, 204, 218, 0.9);
  font-size: 0.98rem;
  line-height: 1.65;
}

.mgs-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.55rem 0.7rem 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--mgs-amber-500);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(200, 95, 10, 0.28);
  transition:
    transform 0.35s var(--mgs-footer-ease),
    background 0.3s var(--mgs-footer-ease);
}

.mgs-footer__cta i {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  font-style: normal;
  transition: transform 0.35s var(--mgs-footer-ease);
}

.mgs-footer__cta:hover {
  background: var(--mgs-amber-600);
  transform: translateY(-1px);
  color: #fff;
}

.mgs-footer__cta:hover i {
  transform: translate(2px, -1px);
}

.mgs-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.mgs-footer__heading {
  margin: 0 0 1.1rem;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mgs-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.mgs-footer__list a {
  color: rgba(200, 214, 226, 0.92);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.25s var(--mgs-footer-ease);
}

.mgs-footer__list a:hover,
.mgs-footer__list a:focus-visible {
  color: var(--mgs-amber-300);
}

.mgs-footer__list--contact {
  gap: 0.95rem;
}

.mgs-footer__meta {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(150, 168, 184, 0.9);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mgs-footer__address {
  display: block;
  max-width: 22ch;
  color: rgba(200, 214, 226, 0.92);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mgs-footer__rc-inline {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mgs-footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  padding: 1.15rem 0;
}

.mgs-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}

.mgs-footer__copy {
  margin: 0;
  color: rgba(155, 172, 188, 0.95);
  font-size: 0.82rem;
  line-height: 1.45;
}

.mgs-footer__copy-sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.mgs-footer__legal {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.mgs-footer__legal a {
  color: rgba(210, 222, 234, 0.95);
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.25s var(--mgs-footer-ease);
}

.mgs-footer__legal a:hover,
.mgs-footer__legal a:focus-visible {
  color: var(--mgs-amber-300);
}

.mgs-footer__legal-sep {
  width: 1px;
  height: 0.9rem;
  background: rgba(255, 255, 255, 0.18);
}

/* Legacy edge removed when present */
.mgs-footer__edge {
  display: none;
}

@media (max-width: 1023px) {
  .mgs-footer__top {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .mgs-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .mgs-footer__intro {
    max-width: 42ch;
  }
}

@media (max-width: 767px) {
  .mgs-footer__main {
    padding-top: 3.25rem;
  }

  .mgs-footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .mgs-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .mgs-footer__copy-sep {
    display: none;
  }

  .mgs-footer__copy span {
    display: block;
  }
}

@media (max-width: 480px) {
  .mgs-footer__nav {
    grid-template-columns: 1fr;
  }
}
