/* Footer styles for FAST FINISH USLUGI BUDOWLANE */

.ff-site-footer {
  background-color: #020617;
  color: #e5e7eb;
  margin-top: var(--space-12);
}

.ff-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-8);
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .ff-footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Brand block */
.ff-footer-brand {
  max-width: 420px;
}

.ff-footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.ff-footer-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.ff-footer-logo-text {
  display: flex;
  flex-direction: column;
}

.ff-footer-logo-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ff-footer-logo-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
}

.ff-footer-copy {
  font-size: 0.9rem;
  color: #9ca3af;
}

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

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

@media (max-width: 520px) {
  .ff-footer-links {
    grid-template-columns: 1fr;
  }
}

.ff-footer-heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5e7eb;
  margin-bottom: var(--space-3);
}

.ff-footer-nav-list,
.ff-footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ff-footer-nav-list li + li,
.ff-footer-contact-list li + li {
  margin-top: var(--space-2);
}

.ff-footer-nav-list a {
  font-size: 0.9rem;
  color: #9ca3af;
}

.ff-footer-nav-list a:hover,
.ff-footer-nav-list a:focus-visible {
  color: #e5e7eb;
}

.ff-footer-contact-list {
  font-size: 0.85rem;
  color: #9ca3af;
}

.ff-footer-contact-list a {
  color: #e5e7eb;
}

/* Base bar */
.ff-footer-base {
  border-top: 1px solid #1f2937;
  padding-top: var(--space-3);
  padding-bottom: var(--space-4);
}

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

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

.ff-footer-base-copy {
  font-size: 0.8rem;
  color: #6b7280;
}

.ff-footer-legal-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
}

.ff-footer-legal-nav a {
  font-size: 0.8rem;
  color: #9ca3af;
}

.ff-footer-legal-nav a:hover,
.ff-footer-legal-nav a:focus-visible {
  color: #e5e7eb;
}

/* Cookie banner */
.ff-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #e5e7eb;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.65);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-slow), opacity var(--transition-slow), visibility var(--transition-fast);
}

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

.ff-cookie-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .ff-cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.ff-cookie-text {
  max-width: 720px;
}

.ff-cookie-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: #e5e7eb;
}

.ff-cookie-description {
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 0;
}

.ff-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ff-cookie-btn {
  font-size: 0.8rem;
}

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

.ff-cookie-btn-secondary:hover {
  background-color: rgba(31, 41, 55, 0.8);
}
