/* ─── FOOTER ─── */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--neutral-900);
  color: var(--neutral-300);
  margin-top: 2rem;
}

.footer-top {
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
}
.footer-logo {
  font-family: "DM Serif Display", serif;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--neutral-400);
  max-width: 26ch;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-700);
  background: var(--neutral-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-100);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}
.social-link svg {
  width: 16px;
  height: 16px;
}
.social-link:hover {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.footer-col {
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-200);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-link {
  font-size: 0.84rem;
  color: var(--neutral-200);
  text-decoration: none;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}
.footer-link:hover {
  color: #fff;
}
.footer-link-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-mid {
  border-top: 1px solid var(--neutral-800);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-newsletter input {
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.84rem;
  color: #fff;
  outline: none;
  min-width: 220px;
  transition: border-color var(--transition);
}
.footer-newsletter input::placeholder {
  color: var(--neutral-500);
}
.footer-newsletter input:focus {
  border-color: var(--primary);
}
.footer-newsletter .btn-primary {
  background: var(--primary);
}

.footer-mid-right {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-mid-link {
  font-size: 0.78rem;
  color: var(--neutral-100);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-mid-link:hover {
  color: var(--neutral-300);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--neutral-100);
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--neutral-100);
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.kbd {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 4px;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  color: var(--neutral-100);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--neutral-900);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-right a,
  .nav-right .btn-primary {
    display: none;
  }
}
@media (max-width: 640px) {
  .masthead {
    padding: 0 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem 1rem 2rem;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-mid {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem;
  }
}

/* Divider util */
.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--neutral-800);
}

.nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  opacity: 0.65;
}

.nav-chevron svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  transform-origin: 50% 50%;
}

.nav-link.open .nav-chevron svg {
  transform: rotate(180deg);
}

.nav-link:hover .nav-chevron {
  opacity: 1;
}

.logo-icon,
.footer-logo-icon {
  color: #fff;
}

/* Nav icon sizing */
.nav-link svg:not(.nav-chevron svg) {
  width: 15px;
  height: 15px;
}
/* Sections */
.sections-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.link-container {
  animation: fadeUp 0.4s ease both;
}
.link-container:nth-child(1) {
  animation-delay: 0.05s;
}
.link-container:nth-child(2) {
  animation-delay: 0.1s;
}
.link-container:nth-child(3) {
  animation-delay: 0.15s;
}
.link-container:nth-child(4) {
  animation-delay: 0.2s;
}
.link-container:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-right .menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  #mainNav {
    display: none;
  }

  #mainNav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--masthead-offset, 64px);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1rem;
    border-bottom: 1px solid var(--border-soft);
    z-index: 199;
    box-shadow: var(--shadow-lg);
  }
  .nav-right .menu-toggle {
    display: flex;
  }
}
