/* Luma sticky footer — capabilities + “Let’s talk” CTA + legal strip (site-wide).
   Expects --cream, --olive, --red, --black, --mid, --divider, --F, --D, --B, --radius-lg */

.page-cream {
  background: var(--cream);
}

.page-wrapper {
  position: relative;
  z-index: 10;
  background: transparent;
}

/* ---------------------------------------------------------------------------
   Capabilities (“stop guessing / START GROWING”) — shared with video.html.
   Olive bleed sits behind the black card so bottom corner radii reveal it.
--------------------------------------------------------------------------- */
.luma-cap-bleed {
  background: var(--olive, #484843);
  padding-left: max(clamp(12px, 3vw, 52px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(12px, 3vw, 52px), env(safe-area-inset-right, 0px));
  /* Space below the rounded .cap-section so olive shows through the corner curve */
  padding-bottom: 2.5rem;
}

.cap-section {
  position: relative;
  z-index: 10;
  margin: 0;
  box-sizing: border-box;
  background: var(--black, #111111);
  padding: clamp(72px, 10vw, 120px) clamp(20px, 4vw, 52px);
  text-align: center;
  border: 0;
  border-bottom: none;
  border-bottom-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
}

.cap-centered {
  max-width: 800px;
  margin: 0 auto;
}

.cap-big-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 36px;
}

.cap-big-plain {
  font-family: var(--D);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  color: var(--cream, #efece5);
  letter-spacing: -0.03em;
  line-height: 0.88;
  text-transform: uppercase;
  white-space: nowrap;
}

.cap-big-script {
  font-family: var(--F);
  font-size: clamp(30px, 4vw, 46px);
  color: var(--red);
  line-height: 1;
}

.cap-big-desc {
  font-family: var(--B);
  font-size: 15px;
  color: rgba(239, 236, 229, 0.5);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 52px;
}

.cap-big-btn {
  display: inline-block;
  font-family: var(--B);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream, #efece5);
  background: var(--red);
  padding: 22px 60px;
  text-decoration: none;
  border-radius: var(--radius-pill, 9999px);
  transition: background 0.2s;
}

.cap-big-btn:hover {
  background: #8b3020;
}

.cap-right {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: padding-left 0.5s cubic-bezier(0.22, 0.68, 0, 1.1);
  opacity: 0;
  transform: translateY(20px);
}

.cap-row:first-child {
  border-top: none;
}

.cap-row:hover {
  padding-left: 20px;
}

.cap-row:hover .cap-row-text {
  color: var(--red);
}

.cap-row:hover .cap-icon {
  stroke: var(--red);
}

.cap-row-text {
  font-family: var(--D);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 500;
  color: rgba(239, 236, 229, 0.55);
  transition: color 0.4s;
}

.cap-icon {
  stroke: rgba(255, 255, 255, 0.15);
  transition: stroke 0.4s;
  flex-shrink: 0;
}

.cap-section.in .cap-row {
  animation: capIn 0.75s cubic-bezier(0.22, 0.68, 0, 1.1) forwards;
}

.cap-section.in .cap-row:nth-child(1) {
  animation-delay: 0.05s;
}

.cap-section.in .cap-row:nth-child(2) {
  animation-delay: 0.13s;
}

.cap-section.in .cap-row:nth-child(3) {
  animation-delay: 0.21s;
}

.cap-section.in .cap-row:nth-child(4) {
  animation-delay: 0.29s;
}

.cap-section.in .cap-row:nth-child(5) {
  animation-delay: 0.37s;
}

@keyframes capIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .cap-section {
    padding: 72px clamp(16px, 5vw, 24px);
  }
}

/* Fixed layer matches main footer tone */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  background: var(--olive, #484843);
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Dark “Let’s talk” block — olive + depth (same treatment on every page) */
.footer-reveal {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(72px, 11vw, 120px) 52px 56px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.45) 100%),
    var(--olive, #484843);
  isolation: isolate;
}

.footer-reveal__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-reveal__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(239, 236, 229, 0.12);
  background: rgba(239, 236, 229, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: clamp(36px, 6vw, 56px);
}

.footer-reveal__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: frPulse 2.2s ease-in-out infinite;
}

@keyframes frPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

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

.footer-reveal__pill-text {
  font-family: var(--B);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(239, 236, 229, 0.75);
}

.footer-reveal__cta {
  display: inline-block;
  text-decoration: none;
  color: var(--cream, #efece5);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: clamp(12px, 2vw, 20px) clamp(16px, 3vw, 28px);
  transition: background 0.25s ease;
}

.footer-reveal__cta:hover {
  background: rgba(239, 236, 229, 0.06);
}

.footer-reveal__cta-script {
  font-family: var(--F);
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.1;
  color: rgba(239, 236, 229, 0.55);
  margin-bottom: 4px;
}

.footer-reveal__cta-main {
  font-family: var(--D);
  font-size: clamp(52px, 12vw, min(11rem, 22vw));
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-transform: uppercase;
  transition: color 0.55s ease;
  display: block;
  color: rgba(250, 250, 248, 0.96);
}

.footer-reveal__cta:hover .footer-reveal__cta-main {
  color: var(--red);
}

.footer-reveal__cta-rule {
  height: 1px;
  width: 0;
  margin: clamp(28px, 4vw, 44px) auto 0;
  background: var(--red);
  transition: width 0.95s cubic-bezier(0.22, 0.68, 0, 1);
}

.footer-reveal__cta:hover .footer-reveal__cta-rule {
  width: min(100%, 420px);
}

.footer-reveal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  margin-top: clamp(56px, 10vw, 100px);
  padding-top: clamp(40px, 6vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.footer-reveal__col-label {
  font-family: var(--B);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}

.footer-reveal__grid p,
.footer-reveal__links a {
  font-family: var(--B);
  font-size: 13px;
  color: rgba(239, 236, 229, 0.55);
  line-height: 1.65;
  text-decoration: none;
  display: block;
}

.footer-reveal__links a {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.footer-reveal__links a:hover {
  color: var(--cream, #efece5);
}

.footer-reveal__grid p {
  margin: 0;
}

.footer-reveal__col--brand {
  display: flex;
  align-items: flex-start;
}

.footer-reveal__logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.footer-reveal__logo-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-reveal__mark {
  display: block;
  height: clamp(44px, 7vw, 72px);
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .footer-reveal__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .footer-reveal {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Legal strip — flat olive, matches footer-reveal stack */
.luma-footer-legal {
  background: var(--olive, #484843);
  padding: 24px 52px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #3a3a34;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.luma-footer-legal__left,
.luma-footer-legal__right {
  font-family: var(--B);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #55554e;
  margin: 0;
}

.luma-footer-legal__right a {
  color: #55554e;
  text-decoration: none;
}

.luma-footer-legal__right a:hover {
  color: var(--cream, #efece5);
}

@media (max-width: 768px) {
  .luma-footer-legal {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 24px;
    padding-right: 24px;
  }
}
