.site-footer {
  padding-block: clamp(.5rem, 1vw, 1rem) 1rem;
}

.footer-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #163f63;
  border-radius: clamp(1.35rem, 2.3vw, 2rem);
  color: #fff;
  background: radial-gradient(ellipse at 100% 0, #154e7a 0, transparent 62%), #102d49;
}

.footer-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -17rem;
  right: -12rem;
  width: 36rem;
  aspect-ratio: 1;
  border: 1px solid #ffffff0a;
  border-radius: 50%;
  box-shadow: 0 0 0 4rem #ffffff03, 0 0 0 8rem #ffffff03;
  pointer-events: none;
}

.footer-panel a:focus-visible {
  outline-color: #b7dfff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
}

.footer-intro { min-width: 0; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .6rem;
  border-radius: .7rem;
  background: #fff;
}

.footer-logo img { width: 5.5rem; height: auto; }

.footer-intro h2 {
  margin-block: 1.25rem .75rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.footer-intro h2 span { color: #a8d9ff; }
.footer-intro > p { max-width: 24ch; color: #ccdae7; line-height: 1.65; }

.footer-cta {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.4rem;
  padding: .65rem 1.1rem;
  border: 1px solid #fff;
  border-radius: 2rem;
  background: #fff;
  color: #102d49;
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.footer-nav, .footer-contact { min-width: 0; padding-top: .5rem; }

.footer-main h3 {
  margin-bottom: 1.05rem;
  color: #a8d9ff;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.footer-nav ul { display: grid; gap: .125rem; margin: 0; padding: 0; list-style: none; }

.footer-nav a, .footer-contact a {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 2.75rem;
  align-items: center;
  padding-block: .4rem;
  border-radius: .2rem;
  color: #eef5fb;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: .3em;
  overflow-wrap: anywhere;
}

.footer-contact-item { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .7rem; }
.footer-contact-item + .footer-contact-item { margin-top: 1.35rem; }
.footer-contact-item > svg { width: 1.25rem; height: 1.25rem; margin-top: .15rem; color: #a8d9ff; }
.footer-contact-label { color: #ccdae7; font-size: .875rem; line-height: 1.6; }

.footer-training {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-inline: clamp(1.5rem, 3.5vw, 3.25rem);
  padding-block: 1.75rem;
  border-top: 1px solid #ffffff26;
}

.footer-hrd-badge {
  display: inline-flex;
  width: 13.5rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: .6rem;
  border: 1px solid #dbe9f4;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .25rem 1rem #04182820;
}

.footer-hrd-badge img { width: 100%; height: auto; }
.footer-training-copy { min-width: 0; }
.footer-training-copy h3 { color: #fff; font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 800; line-height: 1.25; letter-spacing: -.035em; }
.footer-training-copy p { max-width: 39ch; margin-top: .5rem; color: #ccdae7; font-size: 1rem; line-height: 1.6; }

.footer-training-link {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid #8bb7d9;
  border-radius: 2rem;
  color: #d2ebff;
  background: #ffffff08;
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.footer-location {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-inline: clamp(1.5rem, 3.5vw, 3.25rem);
  padding-block: 1.5rem;
  border-top: 1px solid #ffffff26;
  color: #ccdae7;
}

.footer-location-heading { display: flex; align-items: center; gap: .6rem; color: #fff; font-size: .9375rem; font-weight: 750; }
.footer-location-heading svg { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; color: #a8d9ff; }
.footer-location address { font-size: 1rem; font-style: normal; line-height: 1.7; }
.footer-map { display: inline-flex; min-height: 2.75rem; align-items: center; justify-self: end; color: #fff; font-size: .875rem; font-weight: 750; text-underline-offset: .3em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.75rem;
  padding: 1rem clamp(.35rem, 1vw, 1rem) 0;
  color: var(--body);
  font-size: .8125rem;
  line-height: 1.6;
}

.footer-bottom > p:first-child { color: var(--ink); font-weight: 750; }
.footer-registration { white-space: nowrap; }
.footer-top { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--mist); color: var(--ink); font-size: .875rem; font-weight: 750; text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
  .footer-cta:hover { border-color: #c4e4ff; background: #dcefff; }
  .footer-map:hover { color: #a8d9ff; }
  .footer-hrd-badge:hover { border-color: #a8d9ff; background: #f4faff; }
  .footer-training-link:hover { border-color: #d2ebff; background: #ffffff16; color: #fff; }
  .footer-top:hover { border-color: #a4c4df; background: var(--ice); }
}

@media (prefers-reduced-motion: no-preference) {
  .footer-cta, .footer-top, .footer-hrd-badge, .footer-training-link { transition: background-color .18s ease, border-color .18s ease; }

  .footer-panel.footer-reveal::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 15% 100%, #298ac455, transparent 65%);
    opacity: 0;
    pointer-events: none;
    animation: footer-ambient-glow 1.8s ease-in-out;
  }
  .footer-panel.footer-reveal::after {
    animation: footer-rings-in 1.4s cubic-bezier(.22, 1, .36, 1) backwards;
  }
  .footer-main > .footer-reveal {
    transform-origin: center top;
    animation: footer-column-unfold .75s cubic-bezier(.22, 1, .36, 1) var(--footer-delay, 0ms) backwards;
  }
  .footer-location.footer-reveal,
  .footer-bottom.footer-reveal {
    animation: footer-details-in .65s ease-out var(--footer-delay, 0ms) backwards;
  }
  .site-footer .footer-reveal:focus-within { animation: none; }

  @keyframes footer-ambient-glow {
    from, to { opacity: 0; }
    45% { opacity: 1; }
  }
  @keyframes footer-rings-in {
    from { opacity: 0; scale: .75; translate: 2rem -1rem; }
    to { opacity: 1; scale: 1; translate: 0 0; }
  }
  @keyframes footer-column-unfold {
    from { opacity: 0; transform: perspective(40rem) rotateX(-8deg); }
    to { opacity: 1; transform: perspective(40rem) rotateX(0deg); }
  }
  @keyframes footer-details-in {
    from { opacity: 0; translate: -.5rem 0; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (max-width: 74rem) {
  .footer-main { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem 3rem; }
  .footer-intro { grid-row: span 2; }
  .footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 3rem; padding-top: 1.5rem; border-top: 1px solid #ffffff26; }
  .footer-contact h3 { grid-column: 1 / -1; }
  .footer-contact-item + .footer-contact-item { margin-top: 0; }
  .footer-training { grid-template-columns: auto minmax(0, 1fr); gap: .85rem 1.5rem; }
  .footer-hrd-badge { grid-row: span 2; }
  .footer-training-copy { align-self: end; }
  .footer-training-link { justify-self: start; align-self: start; }
  .footer-location { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: .5rem 3rem; }
  .footer-location-heading { grid-column: 1 / -1; }
  .footer-location address { font-size: 1rem; }
  .footer-address-break { display: none; }
}

@media (max-width: 40rem) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .footer-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; grid-column: 1 / -1; grid-row: auto; padding-bottom: 1.75rem; border-bottom: 1px solid #ffffff26; }
  .footer-intro h2 { margin: 0; font-size: 1.5rem; }
  .footer-intro > p { grid-column: 1 / -1; max-width: 35ch; }
  .footer-cta { grid-column: 1 / -1; justify-self: start; margin-top: .25rem; }
  .footer-nav, .footer-contact { padding-top: 0; }
  .footer-main h3 { margin-bottom: .75rem; }
  .footer-nav a { padding-block: .55rem; }
  .footer-contact { gap: .65rem; padding-top: 1.5rem; }
  .footer-contact-item { grid-column: 1 / -1; }
  .footer-contact-item + .footer-contact-item { margin-top: .75rem; }
  .footer-contact-item:last-child > div { display: flex; flex-wrap: wrap; gap: 0 1rem; }
  .footer-contact-item:last-child .footer-contact-label { flex-basis: 100%; }
  .footer-training { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-block: 1.5rem; }
  .footer-hrd-badge { grid-row: auto; width: 12rem; }
  .footer-training-copy h3 { font-size: 1.35rem; }
  .footer-training-copy p { max-width: 32ch; }
  .footer-training-link { margin-top: .1rem; }
  .footer-location { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .footer-location-heading { grid-column: auto; }
  .footer-map { justify-self: start; }
  .footer-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; padding-top: 1.25rem; }
  .footer-bottom > p:first-child { grid-column: 1 / -1; }
  .footer-copyright { max-width: 27ch; }
  .footer-top { align-self: end; padding-inline: .75rem; }
}

@media (max-width: 22rem) {
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-intro, .footer-contact { grid-column: auto; }
  .footer-intro h2 { font-size: 1.25rem; }
  .footer-bottom { grid-template-columns: minmax(0, 1fr); }
  .footer-top { justify-self: start; margin-top: .5rem; }
}
