/* FOOTER CSS */
footer {
  background: #0d0d0d;
  padding: 5.5rem 2rem 2.5rem;
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.f-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.f-brand p {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.9;
  max-width: 320px;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.5);
}

.f-social {
  display: flex;
  gap: 0.6rem;
}

.soc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: rgba(255,255,255,0.6);
}

.soc:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
  transform: translateY(-3px);
}

.f-col h4 {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}

.f-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.f-col ul a {
  font-size: 0.88rem;
  font-weight: 400;
  transition: color 0.2s;
  color: rgba(255,255,255,0.6);
}

.f-col ul a:hover {
  color: white;
}

.f-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.f-bot p, .f-bot a {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
}

.f-bot a {
  transition: color 0.2s;
}

.f-bot a:hover {
  color: rgba(255,255,255,0.7);
}

.f-bot-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

/* THEME TOGGLE (Global Floating Action Button) */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-white);
  border: 1px solid var(--glass-border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  color: var(--text-mid);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.theme-toggle:hover {
  transform: scale(1.08);
  color: var(--sage);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Footer & Global Elements Responsiveness */
@media(max-width: 1100px) {
  .f-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .f-brand {
    grid-column: 1 / -1;
  }
}

@media(max-width: 480px) {
  .f-top {
    grid-template-columns: 1fr;
  }
  .f-brand {
    grid-column: auto;
  }
  .f-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}