/* ── Footer ────────────────────────────────────────────── */

.footer {
  background: var(--panel-gradient);
  box-shadow: var(--shadow-s);
  border-top: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 60px 24px 30px;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 50px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-heading {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 6px 0;
  font-family: 'Georgia', 'Libre Baskerville', serif;
}

.footer-link {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  font-family: 'Georgia', 'Libre Baskerville', serif;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* ── Socials ── */

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}

.footer-social-link {
  font-size: 18px;
  color: var(--text-2);
  opacity: 0.8;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.footer-social-link iconify-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.1em;
}

.footer-social-link:hover {
  opacity: 1;
  color: var(--text-primary);
  transform: translateY(-3px);
}

/* ── Newsletter ── */

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.footer-newsletter-label {
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
  font-family: 'Georgia', 'Libre Baskerville', serif;
}

.footer-newsletter-row {
  display: flex;
  gap: 8px;
}

.footer-newsletter-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  font-size: 13px;
  font-family: 'Georgia', 'Libre Baskerville', serif;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-newsletter-row input[type="email"]:focus {
  border-color: var(--text-2);
}

.footer-newsletter-row input[type="email"].input-error {
  border-color: #e05252;
}

.footer-newsletter-row button[type="submit"] {
  padding: 7px 14px;
  font-size: 12px;
  font-family: 'Georgia', 'Libre Baskerville', serif;
  background: var(--muted-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-newsletter-row button[type="submit"]:hover:not(:disabled) {
  background: var(--muted);
  color: var(--ink);
}

.footer-newsletter-row button.is-subscribed {
  background: transparent;
  border-color: transparent;
  color: #4caf82;
  cursor: default;
}

.footer-newsletter-feedback {
  font-size: 12px;
  min-height: 16px;
  font-family: 'Georgia', 'Libre Baskerville', serif;
}

.footer-newsletter-feedback.feedback-error {
  color: #e05252;
}

.footer-newsletter-feedback.feedback-success {
  color: var(--text-3);
}

/* ── Bottom row ── */

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .hacker-text {
  font-size: 13px;
  margin: 0;
  color: var(--text-3);
  font-family: 'Georgia', 'Libre Baskerville', serif;
  cursor: default;
  transition: color 0.3s ease;
}

.footer-bottom .hacker-text:hover {
  color: var(--text);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .footer {
    padding: 50px 20px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

.newsletter-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-2);
  transition: all 0.3s ease;
}

.newsletter-footer-link .fa-envelope {
  font-size: 1.2rem;
  line-height: 1;
}

.newsletter-footer-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}