/* ==========================================================================
   footer.css — site footer (global). Built on global.css tokens.
   ========================================================================== */

.ry-footer {
  background: var(--ry-ink);
  color: var(--ry-text-muted-dark);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.ry-footer__cta {
  position: relative;
  border-bottom: 1px solid var(--ry-ink-line);
  padding-block: clamp(var(--ry-space-7), 8vw, var(--ry-space-9));
  overflow: hidden;
}

.ry-footer__cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--ry-space-4);
}

.ry-footer__logo-wrap {
  position: relative;
  display: inline-flex;
}

.ry-footer__logo-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
              rgba(37, 99, 235, 0.22) 0%,
              rgba(37, 99, 235, 0.10) 38%,
              transparent 72%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.ry-footer__logo {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  filter: brightness(1.25) saturate(1.15)
          drop-shadow(0 0 6px rgba(96, 165, 250, 0.7));
  opacity: .8;
}

.ry-footer__cta-head {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-2xl);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  max-width: 900px;
}

.ry-footer__form {
  display: flex;
  gap: var(--ry-space-2);
  width: 100%;
  max-width: 480px;
  margin-top: var(--ry-space-2);
}

.ry-footer__input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 var(--ry-space-4);
  color: #fff;
  background: var(--ry-ink-soft);
  border: 1px solid var(--ry-ink-line);
  border-radius: var(--ry-radius-md);
  transition: border-color var(--ry-dur-fast) var(--ry-ease);
}

.ry-footer__input::placeholder {
  color: var(--ry-slate-400);
}

.ry-footer__input:focus {
  outline: none;
  border-color: var(--ry-blue-500);
}

.ry-footer__form .ry-btn {
  flex-shrink: 0;
  height: 46px;
}

.ry-footer__nocc {
  font-size: var(--ry-text-sm);
  color: #0EAC78;
}

/* --------------------------------------------------------------------------
   Link columns
   -------------------------------------------------------------------------- */
.ry-footer__main {
  padding-block: var(--ry-space-8);
}

.ry-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ry-space-6);
}

.ry-footer__head {
  font-size: var(--ry-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--ry-space-4);
}

.ry-footer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--ry-text-sm);
  color: var(--ry-slate-300);
  padding: var(--ry-space-2) 0;
  transition: color var(--ry-dur-fast) var(--ry-ease);
}

.ry-footer__link:hover {
  color: #fff;
}

.ry-footer__link i {
  font-size: 18px;
  width: 20px;
  color: var(--ry-primary);
}

.ry-footer__link--ai i {
  color: var(--ry-purple-400);
}

.ry-footer__link--text {
  padding-left: 0;
}

/* --------------------------------------------------------------------------
   Bottom bar
   -------------------------------------------------------------------------- */
.ry-footer__bottom {
  border-top: 1px solid var(--ry-ink-line);
  padding-block: var(--ry-space-5);
}

.ry-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ry-space-4);
  flex-wrap: wrap;
}

.ry-footer__copy {
  font-size: 12px;
  color: var(--ry-slate-400);
}

.ry-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ry-space-5);
}

.ry-footer__legal a {
  font-size: 12px;
  color: var(--ry-slate-300);
}

.ry-footer__legal a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  .ry-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: var(--ry-space-6) var(--ry-space-4);
  }

  .ry-footer__form {
    flex-direction: column;
  }

  .ry-footer__form .ry-btn {
    width: 100%;
  }

  .ry-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: var(--ry-space-3);
  }
}