/* ============================================
   Noor — Footer component (premium editorial band)
   Background always uses var(--accent-current)
   ============================================ */

/* --- Scroll lock when overlay is open --- */

html.is-footer-open {
  overflow: hidden;
}

/* --- Footer shell --- */

.site-footer {
  position: relative;
  width: 100vw;
  overflow: hidden;
}

/* --- Surface: accent band, static 280px --- */

.site-footer__surface {
  position: relative;
  background: var(--work-color, var(--accent-current));
  height: 222px;
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  display: block;
}

/* Drag-handle hint — subtle pill at top-center */
.site-footer__surface::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.35s ease, width 0.35s ease;
}

.site-footer__surface:hover::before {
  background: rgba(255, 255, 255, 0.5);
  width: 48px;
}

/* --- Absolute layer spans the full surface --- */

.site-footer__inner {
  position: absolute;
  inset: 0;
}

/* --- Left meta — viewport edge, pinned to bottom --- */

.site-footer__left {
  position: absolute;
  bottom: var(--edge-margin);
  left: var(--edge-margin);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__meta-sep {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.site-footer__meta--link {
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.site-footer__meta--link:hover {
  color: color-mix(in srgb, var(--accent-current) 55%, black);
  /* Matches overlay link hover */
}

/* --- Right meta — viewport edge, pinned to bottom --- */

.site-footer__right {
  position: absolute;
  bottom: var(--edge-margin);
  right: var(--edge-margin);
}

/* --- Center brand --- */

.site-footer__center {
  position: absolute;
  top: clamp(45px, 10vh, 65px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

/* --- Meta labels --- */

.site-footer__meta {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  display: inline-block;
}

/* --- Brand mark --- */

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  will-change: transform;
}

.site-footer__mark {
  display: block;
  width: 32px;
  height: auto;
}

.site-footer__mark img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Footer Overlay — full-screen editorial menu
   ============================================ */

.site-footer__overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--work-color, var(--accent-current));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  overflow-y: auto;
}

.site-footer__overlay.is-open {
  transform: translateY(0);
  pointer-events: auto;
}

/* Close button — top right */

.site-footer__overlay-close {
  position: absolute;
  top: var(--edge-margin);
  right: var(--edge-margin);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px;
  line-height: 0;
  transition: opacity 0.25s ease, transform 0.4s ease;
}

.site-footer__overlay-close:hover {
  opacity: 1;
  color: rgba(255, 255, 255, 1);
  transform: rotate(90deg);
}

/* Logo — top center */

.site-footer__overlay-logo {
  position: absolute;
  top: clamp(40px, 7vh, 80px);
  left: 50%;
  transform: translateX(-50%);
}

.site-footer__overlay-logo img {
  width: 48px;
  height: auto;
  display: block;
}

/* Nav links — centered, large editorial */

.site-footer__overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(var(--space-xs), 2vh, var(--space-md));
  text-align: center;
}

.site-footer__overlay-link {
  font-family: var(--font-display-current);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: block;
  padding: 0.08em 0;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer__overlay-link:hover {
  color: color-mix(in srgb, var(--accent-current) 55%, black);
  opacity: 1;
  transform: translateX(12px);
}

/* Bottom meta strip */

.site-footer__overlay-bottom {
  position: absolute;
  bottom: var(--edge-margin);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding-inline: var(--edge-margin);
}

.site-footer__overlay-meta {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__overlay-meta--link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__overlay-meta--link:hover {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
  .site-footer__surface {
    height: auto;
    padding-block: var(--space-xl) var(--space-lg);
  }

  .site-footer__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .site-footer__left,
  .site-footer__center,
  .site-footer__right {
    position: static;
    transform: none;
    text-align: center;
  }

  .site-footer__center {
    order: -1;
    /* Brand first on mobile */
  }

  .site-footer__overlay-bottom {
    position: relative;
    bottom: auto;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-bottom: var(--edge-margin);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-footer__overlay {
    transition: none;
  }

  .site-footer__overlay-link {
    transition: none;
  }

  .site-footer__surface::before {
    transition: none;
  }
}