/* =============================================================
   phase7b.css — Polish Layer Part 2
   Scope: footer, global button tactile, entry animations, Lenis
   Extracted from phase7.css per code-refactoring rule (>300 lines)
   ============================================================= */

   /* 4. FOOTER — Simplified 3-col, monospace copyright, amber dot
   ============================================================= */

.p7-footer {
  background: var(--surface);
  padding: 72px 5vw 32px;
  border-top: 1px solid var(--outline-variant);
}

.p7-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.p7-footer-brand p {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--outline);
  max-width: 260px;
  font-weight: 300;
}

.p7-footer-col h4 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 20px;
  font-weight: 600;
}

.p7-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p7-footer-col li a {
  text-decoration: none;
  font-size: 13px;
  color: var(--outline);
  transition: color 0.2s ease;
}

.p7-footer-col li a:hover {
  color: var(--on-surface);
}

/* Monospace copyright bar — amber dot separator */
.p7-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--outline);
  flex-wrap: wrap;
  gap: 12px;
}

.p7-footer-sep {
  color: #f59e0b;                       /* amber dot separator — per spec */
  margin: 0 6px;
}

.p7-footer-bottom a {
  color: var(--outline);
  text-decoration: none;
  transition: color 0.2s ease;
}

.p7-footer-bottom a:hover {
  color: var(--on-surface);
}


/* =============================================================
   5. GLOBAL BUTTON TACTILE PRESS + GROUP-HOVER DIAGONAL ICON
   Applies to: .btn-primary, .btn-outline, .cta-banner-btn,
               .zac-cta, nav-cta, .nav-logo
   ============================================================= */

/* Tactile press scale */
.btn-primary:active,
.btn-outline:active,
.cta-banner-btn:active,
.zac-cta:active,
.nav-cta:active,
.p7-cta-btn-primary:active,
.p7-cta-btn-outline:active {
  transform: scale(0.98) !important;
  transition-duration: 0.1s !important;
}

/* Diagonal icon translate on hover — any btn svg or arrow */
.btn-primary:hover svg,
.cta-banner-btn:hover svg {
  transform: translateX(3px) translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}


/* =============================================================
   6. ENTRY ANIMATION CASCADE
   IntersectionObserver adds .p7-visible to .p7-reveal elements
   Each child with --p7-i CSS var gets staggered delay
   ============================================================= */

.p7-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.75s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.75s cubic-bezier(0.32, 0.72, 0, 1);
  transition-delay: calc(var(--p7-i, 0) * 90ms);
}

.p7-reveal.p7-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Convenience stagger index helpers */
.p7-reveal:nth-child(1)  { --p7-i: 0; }
.p7-reveal:nth-child(2)  { --p7-i: 1; }
.p7-reveal:nth-child(3)  { --p7-i: 2; }
.p7-reveal:nth-child(4)  { --p7-i: 3; }
.p7-reveal:nth-child(5)  { --p7-i: 4; }
.p7-reveal:nth-child(6)  { --p7-i: 5; }


/* =============================================================
   7. LENIS SMOOTH SCROLL — html class applied by JS
   ============================================================= */

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important; /* Lenis overrides native; prevent conflict */
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 900px) {
  .p7-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .p7-footer-brand {
    grid-column: 1 / -1;
  }

  .p7-faq-row {
    grid-template-columns: 1fr;
  }

  .p7-faq-q-cell {
    border-right: none;
    border-bottom: 1px solid var(--outline-variant);
  }
}

@media (max-width: 768px) {
  .p7-testimonial {
    padding: 72px 5vw;
  }

  .p7-faq-section {
    padding: 64px 5vw;
  }

  .p7-cta {
    padding: 80px 5vw;
  }

  .p7-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .p7-faq-q-cell,
  .p7-faq-a-cell {
    padding: 24px 20px;
  }

  .p7-cta-actions {
    flex-direction: column;
    align-items: center;
  }
}


/* =============================================================
   REDUCED MOTION
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  .p7-blob {
    animation: none;
  }

  .p7-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .p7-cta-btn-primary:hover,
  .p7-cta-btn-outline:hover {
    transform: none;
  }
}
