/* Footer styles – build on base.css */

.cm-footer {
  background: radial-gradient(circle at top, #020617, #020617 40%, #020617 100%);
  color: #e5e7eb;
  border-top: 1px solid rgba(148,163,184,0.25);
  margin-top: 3rem;
  position: relative;
  z-index: 10;
}

.cm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.75rem;
}

.cm-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.cm-footer-brand {
  max-width: 360px;
}

.cm-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.cm-footer-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 0.85rem;
  background: radial-gradient(circle at 30% 20%, #38bdf8, #0ea5e9 40%, #1d4ed8 80%);
  box-shadow: 0 0 0 1px rgba(15,23,42,0.9), 0 10px 25px rgba(56,189,248,0.4);
}

.cm-footer-logo-text {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f9fafb;
}

.cm-footer-tagline {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.5;
}

.cm-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.cm-footer-heading {
  margin: 0 0 0.7rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cbd5f5;
}

.cm-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.cm-footer-links a {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #9ca3af;
  text-decoration: none;
}

.cm-footer-links a:hover,
.cm-footer-links a:focus-visible {
  color: #e5e7eb;
  text-decoration: underline;
}

.cm-footer-links a:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.cm-footer-bottom {
  border-top: 1px solid rgba(148,163,184,0.25);
  margin-top: 2rem;
  padding-top: 1rem;
}

.cm-footer-copy {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Cookie banner */

.cm-cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cm-cookie-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 1rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top left, rgba(30,64,175,0.95), rgba(15,23,42,0.97));
  border: 1px solid rgba(96,165,250,0.8);
  box-shadow: 0 22px 50px rgba(15,23,42,0.85);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(120%);
  opacity: 0;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.cm-cookie-banner.is-visible .cm-cookie-inner {
  transform: translateY(0);
  opacity: 1;
}

.cm-cookie-banner.is-hiding .cm-cookie-inner {
  transform: translateY(120%);
  opacity: 0;
}

.cm-cookie-text {
  flex: 1;
}

.cm-cookie-title {
  margin: 0 0 0.15rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f9fafb;
}

.cm-cookie-desc {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.cm-cookie-desc a {
  color: #bfdbfe;
}

.cm-cookie-desc a:hover,
.cm-cookie-desc a:focus-visible {
  color: #e0f2fe;
}

.cm-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cm-cookie-btn {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.cm-cookie-btn--secondary {
  background: transparent;
  border-color: rgba(191,219,254,0.7);
  color: #e5e7eb;
}

.cm-cookie-btn--secondary:hover {
  background: rgba(15,23,42,0.7);
}

.cm-cookie-btn--primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #020617;
  border-color: transparent;
}

.cm-cookie-btn--primary:hover {
  filter: brightness(1.05);
}

.cm-cookie-btn:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

/* Responsive footer */

@media (max-width: 900px) {
  .cm-footer-main {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 2.2fr);
    gap: 2rem;
  }

  .cm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cm-footer-inner {
    padding-inline: 1rem;
  }

  .cm-footer-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .cm-footer-brand {
    max-width: none;
  }

  .cm-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cm-cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cm-cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .cm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-cookie-inner {
    margin-inline: 0.75rem;
  }
}

@media (max-width: 480px) {
  .cm-footer-inner {
    padding-inline: 0.9rem;
  }

  .cm-footer-grid {
    grid-template-columns: 1fr;
  }

  .cm-cookie-desc {
    font-size: 0.78rem;
  }

  .cm-cookie-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .cm-cookie-btn {
    width: 100%;
    text-align: center;
  }
}
