/* Footer component for Buildmaterialpl */

.bm-footer {
  background: #020617;
  color: #e5e7eb;
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  padding-top: 2.5rem;
}

.bm-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
}

.bm-footer__brand {
  max-width: 420px;
}

.bm-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.75rem;
}

.bm-footer__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e293b, #334155);
  position: relative;
  overflow: hidden;
}

.bm-footer__logo-mark::before {
  content: "";
  position: absolute;
  inset: 20% 15% 30% 15%;
  border-radius: 3px;
  border: 2px solid rgba(148, 163, 184, 0.7);
}

.bm-footer__logo-text {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.bm-footer__tagline {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Footer navigation */

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

.bm-footer__nav-column {
  min-width: 0;
}

.bm-footer__nav-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5f5;
}

.bm-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.bm-footer__nav-list a {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  color: #9ca3af;
}

.bm-footer__nav-list a:hover,
.bm-footer__nav-list a:focus-visible {
  color: #e5e7eb;
}

.bm-footer__nav-list a:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Bottom line */

.bm-footer__bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.85rem 1.25rem 1.25rem;
  margin-top: 0.75rem;
}

.bm-footer__copyright {
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Cookie banner */

.bm-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1100;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0.75rem 1rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out, visibility 0.25s ease-out;
}

.bm-cookie--visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.bm-cookie--hidden {
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
}

.bm-cookie__inner {
  max-width: 1100px;
  width: 100%;
  background: #020617;
  border-radius: 0.75rem;
  border: 1px solid rgba(30, 64, 175, 0.8);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.85);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: center;
}

.bm-cookie__content {
  flex: 1 1 260px;
}

.bm-cookie__title {
  margin: 0 0 0.25rem;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #e5e7eb;
}

.bm-cookie__text {
  margin: 0 0 0.35rem;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: #d1d5db;
}

.bm-cookie__link {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: #93c5fd;
  text-decoration: underline;
}

.bm-cookie__link:hover,
.bm-cookie__link:focus-visible {
  color: #bfdbfe;
}

.bm-cookie__link:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  border-radius: 3px;
}

.bm-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.bm-cookie__button {
  min-width: 150px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.bm-cookie__button--primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #22c55e;
  color: #f9fafb;
}

.bm-cookie__button--secondary {
  background: transparent;
  border-color: #64748b;
  color: #e5e7eb;
}

.bm-cookie__button--primary:hover {
  filter: brightness(1.05);
}

.bm-cookie__button--secondary:hover {
  background: rgba(15, 23, 42, 0.75);
}

.bm-cookie__button:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .bm-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .bm-cookie__inner {
    padding: 0.85rem 0.9rem;
  }

  .bm-cookie__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .bm-cookie__button {
    flex: 1 1 48%;
    min-width: 0;
  }
}

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

  .bm-cookie__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bm-cookie {
    transition: none;
  }
}
