/* Footer styles for Officegoodsupply - builds on base.css */

.ogs-footer {
  background-color: #f9fafb;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  color: #111827;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.ogs-footer__brand {
  max-width: 22rem;
}

.ogs-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.ogs-footer__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #b68b5b, #e0c9a6);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.ogs-footer__logo-text {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #111827;
}

.ogs-footer__tagline {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
}

.ogs-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.ogs-footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.ogs-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.ogs-footer__link {
  font-size: 0.9rem;
  color: #4b5563;
  text-decoration: none;
  position: relative;
  padding-block: 0.1rem;
}

.ogs-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: #b68b5b;
  transition: width 150ms ease;
}

.ogs-footer__link:hover,
.ogs-footer__link:focus-visible {
  color: #111827;
}

.ogs-footer__link:hover::after,
.ogs-footer__link:focus-visible::after {
  width: 100%;
}

.ogs-footer__link:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.ogs-footer__bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding: 0.9rem 1.25rem 1.2rem;
}

.ogs-footer__copy {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Cookie banner */

.ogs-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1100;
  pointer-events: none;
}

.ogs-cookie__panel {
  max-width: 1200px;
  margin: 0.75rem auto 0.85rem;
  background-color: #111827;
  color: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.4);
  padding: 1rem 1.15rem 1.1rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 220ms ease-out, opacity 220ms ease-out;
  pointer-events: auto;
}

.ogs-cookie--visible .ogs-cookie__panel {
  transform: translateY(0);
  opacity: 1;
}

.ogs-cookie--hidden .ogs-cookie__panel {
  transform: translateY(120%);
  opacity: 0;
}

.ogs-cookie__content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.25rem;
  align-items: center;
}

.ogs-cookie__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.ogs-cookie__text {
  margin: 0;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.ogs-cookie__hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

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

.ogs-cookie__button {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 120ms ease;
}

.ogs-cookie__button--secondary {
  background-color: transparent;
  color: #e5e7eb;
  border-color: rgba(249, 250, 251, 0.34);
}

.ogs-cookie__button--secondary:hover {
  background-color: rgba(249, 250, 251, 0.08);
}

.ogs-cookie__button--primary {
  background-color: #f9fafb;
  color: #111827;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
}

.ogs-cookie__button--primary:hover {
  background-color: #e5e7eb;
}

.ogs-cookie__button:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.ogs-cookie__button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.45);
}

/* Responsive */

@media (max-width: 900px) {
  .ogs-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

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

@media (max-width: 640px) {
  .ogs-footer__inner {
    padding-inline: 1rem;
  }

  .ogs-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.5rem;
  }

  .ogs-cookie__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .ogs-cookie__panel {
    margin-inline: 0.75rem;
    padding-inline: 0.9rem;
  }

  .ogs-cookie__actions {
    justify-content: flex-start;
  }
}

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

  .ogs-cookie__panel {
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
  }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
  .ogs-footer {
    padding: var(--space-6) 0;
  }

  .ogs-footer__heading {
    font-size: var(--font-size-base);
  }

  .ogs-footer__grid {
    gap: var(--space-4);
  }

  .ogs-cookie__panel {
    padding: var(--space-3);
  }

  .ogs-cookie__title {
    font-size: var(--font-size-base);
  }
}
