/*
 * Component: Footer
 * Depends on: tokens.css
 */

.footer-clean {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  padding: var(--space-10) var(--space-8) var(--space-10);
}

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

.footer-col-heading {
  color: var(--footer-heading);
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin: 0 0 var(--space-4);
}

.footer-desc {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--footer-text);
  margin: 0 0 var(--space-5);
}

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

.footer-soc-link {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.06);
  color: var(--footer-text);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-soc-link svg { width: 16px; height: 16px; fill: currentColor; }
.footer-soc-link:hover { background: var(--color-primary); color: #fff; }

.footer-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
}

.footer-links li a {
  font-size: var(--font-size-sm);
  color: var(--footer-text);
  transition: color var(--transition-fast);
}

.footer-links li a:hover { color: var(--color-primary); }

/* ── Newsletter ──────────────────────────────────────────────────── */
.footer-nl-desc {
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.6;
  margin: 0 0 14px;
}

.footer-nl-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nl-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-family-body);
  color: #222;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.footer-nl-input:focus { border-color: #cb131c; }
.footer-nl-input::placeholder { color: #bbb; }

.footer-nl-btn {
  width: 100%;
  padding: 10px 20px;
  background: #cb131c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-family-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s;
}

.footer-nl-btn:hover:not(:disabled) { background: #a51016; }
.footer-nl-btn:disabled { opacity: 0.7; cursor: default; }

.footer-nl-msg {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  min-height: 1em;
}

.footer-nl-msg.nl-ok  { color: #1a8a42; }
.footer-nl-msg.nl-err { color: #cb131c; }

/* ── Bottom bar ──────────────────────────────────────────────────── */
.footer-bottom-bar {
  border-top: 1px solid var(--footer-border);
  padding: var(--space-4) 0;
  text-align: center;
  font-size: var(--font-size-xs);
  color: #999999;
}

.footer-bottom-bar p { margin: 0; }

/* ── Back to Top ─────────────────────────────────────────────────── */
.btt-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #cb131c;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(203,19,28,0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.15s;
}

.btt-btn.btt-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btt-btn:hover { background: #a51016; }
