/* =========================
   Footer Component Styles
   Используется на всех страницах
   ========================= */

/* Footer base */
.footer {
  color: #fff;
  padding: 40px 0 14px;
  background:
    radial-gradient(800px 400px at 12% 0%, rgba(80, 55, 48, 0.20), transparent 60%),
    var(--bg-3);
}

.footer-inner {
  padding-inline: var(--padX);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 26px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  font-family: var(--font-serif);
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.footer-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin-top: 8px;
  opacity: 0.95;
}

.footer-text {
  font-size: 16px;
  line-height: 1.35;
  opacity: 0.9;
  font-weight: 400;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.35;
  opacity: 0.9;
  margin-bottom: 6px;
  transition: opacity .2s ease, text-decoration .2s ease;
  font-weight: 500;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.1);
}

.footer-social-icon svg {
  flex-shrink: 0;
}

.footer-pill {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(146, 114, 85, 0.6);
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.95;
  transition: background-color .2s ease, transform .2s ease;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', serif;
}

.footer-pill:hover {
  background: rgba(184, 152, 117, 0.14);
  transform: translateY(-1px);
}

/* =========================
   Policy Links Section
   ========================= */
.footer-policies {
  margin-top: 30px;
  padding: 24px var(--padX);
  border-top: 1px solid rgba(122, 93, 59, 0.4);
}

.footer-policies-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.footer-policies-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-policy-link:hover {
  background: var(--bg-1);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.footer-policy-link:active {
  transform: translateY(0);
}

/* =========================
   Footer Bottom
   ========================= */
.footer-bottom {
  margin-top: 18px;
  padding: 14px var(--padX) 0;
  border-top: 1px solid rgba(122, 93, 59, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  opacity: 0.85;
  font-weight: 500;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom .dot {
  opacity: 0.6;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 0 14px;
  }

  .footer-policies {
    padding: 20px var(--padX);
  }

  .footer-policies-links {
    gap: 8px 12px;
  }

  .footer-policy-link {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .footer-social {
    gap: 8px;
  }
  
  .footer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .footer-policies-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-policy-link {
    justify-content: center;
  }
}

/* =========================
   Focus states for accessibility
   ========================= */
.footer-pill:focus-visible,
.footer-policy-link:focus-visible,
.footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
