/* Footer styles for TRYHARDGG SOLUTIONS LIMITED */

.sm-footer {
  background-color: #111827;
  color: #e5e7eb;
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}

.sm-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .sm-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}

/* Brand block */
.sm-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: #f9fafb;
  text-decoration: none;
}

.sm-footer__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  color: #e5edff;
  font-weight: 700;
  font-size: 0.95rem;
}

.sm-footer__brand-text {
  display: flex;
  flex-direction: column;
}

.sm-footer__brand-name {
  font-weight: 600;
  font-size: 1rem;
}

.sm-footer__brand-tagline {
  font-size: 0.8rem;
  color: #9ca3af;
}

.sm-footer__description {
  margin-top: var(--space-3);
  max-width: 360px;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Links grid */
.sm-footer__links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

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

.sm-footer__heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d1d5db;
  margin-bottom: var(--space-3);
}

.sm-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sm-footer__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: var(--space-2);
}

.sm-footer__link:hover,
.sm-footer__link:focus-visible {
  color: #e5e7eb;
}

/* Bottom bar */
.sm-footer__bottom {
  border-top: 1px solid #1f2937;
  margin-top: var(--space-8);
  padding-top: var(--space-4);
}

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

@media (max-width: 640px) {
  .sm-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.sm-footer__copyright {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

.sm-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.sm-footer__bottom-link {
  font-size: 0.8rem;
  color: #9ca3af;
}

.sm-footer__bottom-link:hover,
.sm-footer__bottom-link:focus-visible {
  color: #e5e7eb;
}

/* Cookie banner */
.sm-cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.6);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--transition-slow),
    opacity var(--transition-slow),
    visibility var(--transition-slow);
}

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

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

.sm-cookie-banner__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-4);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0));
}

@media (max-width: 768px) {
  .sm-cookie-banner__inner {
    flex-direction: column;
  }
}

.sm-cookie-banner__title {
  font-size: 1rem;
  margin: 0 0 var(--space-2);
  color: #f9fafb;
}

.sm-cookie-banner__description {
  margin: 0 0 var(--space-2);
  font-size: 0.9rem;
  color: #d1d5db;
}

.sm-cookie-banner__link {
  font-size: 0.85rem;
  color: #bfdbfe;
  text-decoration: underline;
}

.sm-cookie-banner__link:hover,
.sm-cookie-banner__link:focus-visible {
  color: #e5e7eb;
}

.sm-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .sm-cookie-banner__actions {
    width: 100%;
    justify-content: stretch;
  }

  .sm-cookie-banner__button {
    flex: 1 1 auto;
  }
}

.sm-cookie-banner__button {
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}

.sm-cookie-banner__button--primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.sm-cookie-banner__button--primary:hover {
  background-color: #1760b8;
}

.sm-cookie-banner__button--secondary {
  background-color: transparent;
  border-color: #4b5563;
  color: #e5e7eb;
}

.sm-cookie-banner__button--secondary:hover {
  background-color: rgba(17, 24, 39, 0.9);
}

.sm-cookie-banner__button:focus-visible {
  outline: 2px solid #e5e7eb;
  outline-offset: 2px;
}
