/* Footer — lighter thisaivi-style close, keep sapphire weight option */
.cad-footer {
  margin-top: 0;
  background: var(--color-secondary);
  color: var(--color-on-primary);
  padding-top: 2.5rem;
  padding-bottom: calc(var(--mobile-cta-height) + 1.5rem);
  border-top: 1px solid transparent;
}

@media (min-width: 768px) {
  .cad-footer {
    padding-bottom: 2.5rem;
  }
}

.cad-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .cad-footer__grid {
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 3rem;
  }
}

.cad-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cad-footer__brand .cad-logo {
  color: var(--color-on-primary);
}

.cad-footer__brand .cad-logo__mark {
  color: var(--color-tertiary);
}

/* Footer logo lock — page plugins reset all body images (height:auto) */
.cad-footer .cad-logo__mark {
  width: 36px;
  height: 36px;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.cad-footer .cad-logo__mark--full {
  width: auto;
  height: 46px;
  max-width: min(190px, 46vw);
}

.cad-footer .cad-logo__mark--with-name {
  height: 42px;
  max-width: min(132px, 34vw);
}

.cad-footer__brand p {
  color: rgba(216, 236, 249, 0.85);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}

.cad-footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-tertiary);
  margin-bottom: 0.75rem;
}

.cad-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cad-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.cad-footer__links a:hover {
  color: var(--color-tertiary);
}

.cad-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cad-footer__contact-item {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.cad-footer__contact-item a {
  color: inherit;
}

.cad-footer__contact-item a:hover {
  color: var(--color-tertiary);
}

.cad-footer__map {
  margin-top: 0.25rem;
}

.cad-footer__map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(216, 236, 249, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(216, 236, 249, 0.08);
}

.cad-footer__map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cad-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(216, 236, 249, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cad-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cad-footer__social {
  display: flex;
  gap: 0.5rem;
}

.cad-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 236, 249, 0.3);
  border-radius: 50%;
  color: var(--color-on-primary);
  transition: border-color 150ms ease, color 150ms ease;
}

.cad-footer__social a:hover {
  border-color: var(--color-tertiary);
  color: var(--color-tertiary);
}

.cad-footer__legal {
  font-size: 0.75rem;
  color: rgba(216, 236, 249, 0.75);
}

/* Override old section padding utility when nested in main */
.cad-section {
  padding-block: 0;
}

body {
  padding-bottom: var(--mobile-cta-height);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Hide unused route decorations from v1 */
.cad-hero__route,
.cad-universities__divider,
.cad-process__route {
  display: none;
}
