/* footer.css — Minimal Footer (no “Apple” wording) */

:root{
  --footer-bg:#F5F5F7;
  --footer-text:#1D1D1F;
  --footer-text-secondary:#86868B;
  --footer-border:rgba(0,0,0,0.08);

  /* New: small interactive accent */
  --footer-accent:#007AFF;

  /* Back to top */
  --btt-bg: rgba(0, 0, 0, 0.08);
  --btt-bg-hover: rgba(0, 122, 255, 0.12);
}

.footer{
  background:var(--footer-bg);
  padding:24px 0;
  border-top:1px solid var(--footer-border);
}

.footer .container{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

/* Keep paragraphs visually consistent */
.footer-bottom p{
  margin:0;
  color:var(--footer-text-secondary);
  font-size:0.9rem;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.footer-company strong{
  color: rgba(29, 29, 31, 0.9);
  font-weight: 800;
}

/* Back to top */
.back-to-top{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:12px;
  text-decoration:none;
  color: var(--footer-text);
  background: var(--btt-bg);
  border: 1px solid rgba(0,0,0,0.06);
  opacity:0;
  visibility:hidden;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}

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

.back-to-top:hover{
  background: var(--btt-bg-hover);
}

.back-to-top:focus{ outline:none; }
.back-to-top:focus-visible{
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
}

/* Accessibility helpers */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);
  white-space:nowrap;border:0;
}

/* Keyboard nav highlight for footer links if you add them later */
.keyboard-navigation .footer a:focus{
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width:768px){
  .footer .container{ padding:0 16px; }
  .footer-bottom{
    flex-direction:column;
    text-align:center;
  }
}

/* Optional dark mode */
@media (prefers-color-scheme:dark){
  :root{
    --footer-bg:#1C1C1E;
    --footer-text:#F2F2F7;
    --footer-text-secondary:#8E8E93;
    --footer-border:rgba(255,255,255,0.12);

    --btt-bg: rgba(255, 255, 255, 0.10);
    --btt-bg-hover: rgba(0, 122, 255, 0.22);
  }

  .footer-company strong{
    color: rgba(242, 242, 247, 0.92);
  }

  .back-to-top{
    border-color: rgba(255,255,255,0.10);
    color: var(--footer-text);
  }
}
