/*--------------------------------------------------------------
  Footer — columns, newsletter, socials, bottom bar, back-to-top
--------------------------------------------------------------*/

.footer {
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.75);
  padding-top: var(--space-24);
  position: relative;
}

[data-theme="dark"] .footer {
  background: #060F1D;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-bottom: var(--space-16);
}

.footer h4 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.footer .footer-about .logo {
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.footer .footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-small);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--t);
}

.footer-links a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--color-primary);
  transition: transform var(--t);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-small);
}

.footer-contact li i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.15);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.newsletter-form {
  position: relative;
  margin-top: var(--space-4);
}

.newsletter-form input {
  width: 100%;
  padding: 0.875rem 3.5rem 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-small);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--t);
}

.newsletter-form button:hover {
  background: var(--color-primary-hover);
}

.footer-bottom {
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-small);
}

.footer-bottom ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--t);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-hover);
  transform: translateY(-4px);
}
