/* =========================================================
   TECHROCK — FOOTER
   Newsletter + Let's Build CTA + site footer
   ========================================================= */

.site-footer {
  width: 100%;
  padding: clamp(24px, 3vw, 42px) var(--page-padding-desktop) clamp(24px, 3vw, 42px);
  background: #fff;
  overflow: hidden;
}

.site-footer__shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  border: 1px solid #e6e8ef;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
}

/* Newsletter */
.site-footer__newsletter {
  position: relative;
  overflow: visible;
  padding: clamp(64px, 7vw, 100px) 24px clamp(38px, 4vw, 56px);
  text-align: center;
}

.site-footer__newsletter-title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: var(--font-extrabold);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--color-primary-text);
}

.site-footer__newsletter-title span {
  color: var(--color-primary-purple);
}

.site-footer__newsletter-copy {
  max-width: 690px;
  margin: 18px auto 0;
  color: #68738e;
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.45;
}

.site-footer__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: min(585px, 100%);
  margin: 30px auto 0;
}

.site-footer__email-wrap {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 60px;
  padding: 0 18px;
  border: 1px solid #dfe2e9;
  border-radius: 10px;
  background: #fff;
}

.site-footer__email-icon {
  flex: 0 0 auto;
  margin-right: 14px;
  color: #4d566a;
  font-size: 18px;
}

.site-footer__email {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-primary-text);
  font-family: var(--font-primary);
  font-size: 15px;
}

.site-footer__email-wrap:focus-within {
  border-color: var(--color-primary-purple);
  box-shadow: none;
}

.site-footer__email:focus,
.site-footer__email:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.site-footer__email::placeholder {
  color: #7b8499;
}

.site-footer__subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 0 0 auto;
  height: 60px;
  padding: 0 25px;
  border: 0;
  border-radius: 10px;
  background: #09080f;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: var(--font-bold);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.site-footer__subscribe:hover {
  transform: translateY(-2px);
  background: #16121f;
}

.site-footer__subscribe i {
  color: #fff;
  font-size: 17px;
}

.site-footer__newsletter-note {
  margin: 16px 0 0;
  color: #68738e;
  font-family: var(--font-primary);
  font-size: 14px;
}

.site-footer__newsletter-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--color-primary-purple);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-semibold);
}

/* Newsletter send animation */
.site-footer__subscribe {
  position: relative;
  min-width: 240px;
  overflow: visible;
  isolation: isolate;
}

.site-footer__subscribe-label,
.site-footer__subscribe-success {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-footer__subscribe-success {
  opacity: 0;
  font-size: 13px;
  transform: translateY(5px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__subscribe-arrow {
  position: relative;
  z-index: 2;
  transition: opacity 180ms ease, transform 180ms ease;
}

/* Newsletter flight animation: the plane emerges from behind the button,
   then travels slowly on a straight diagonal path toward the top-right corner. */
.site-footer__subscribe-plane {
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  color: #0a0a0e;
  font-size: 25px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, -50%);
  will-change: left, top, transform, opacity;
}

.site-footer__subscribe.is-sending {
  position: relative;
  z-index: 10000;
}

.site-footer__subscribe:disabled {
  cursor: default;
}

.site-footer__subscribe:disabled:hover {
  transform: none;
}

.site-footer__subscribe-label,
.site-footer__subscribe-success {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-footer__subscribe-success {
  opacity: 0;
  font-size: 13px;
  transform: translateY(5px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__subscribe-arrow {
  position: relative;
  z-index: 2;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-footer__subscribe.is-sending .site-footer__subscribe-label,
.site-footer__subscribe.is-sending .site-footer__subscribe-arrow {
  opacity: 0;
  transform: translateX(-8px);
}

.site-footer__subscribe-plane--flight {
  visibility: visible;
}

/* Small dots are emitted progressively behind the flying plane and remain anchored
   to the newsletter section, so they scroll naturally with this section. */
.site-footer__subscribe-flight-dot {
  position: absolute;
  z-index: 4;
  color: #0a0a0e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 0.85;
  user-select: none;
}

.site-footer__subscribe.is-subscribed .site-footer__subscribe-label,
.site-footer__subscribe.is-subscribed .site-footer__subscribe-arrow {
  opacity: 0;
  transform: translateY(-5px);
}

.site-footer__subscribe.is-subscribed .site-footer__subscribe-success {
  opacity: 1;
  transform: translateY(0);
}


/* The plane remains available on all devices, but its decorative flight trail
   is intentionally limited to larger laptop/desktop screens. */
@media (max-width: 1199px) {
  .site-footer__subscribe-flight-dot {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__subscribe-plane--flight {
    transition: opacity 120ms ease;
  }
}

/* CTA image panel */
.site-footer__cta {
  position: relative;
  z-index: 3;
  min-height: clamp(300px, 25vw, 390px);
  margin: 0 clamp(38px, 4.2vw, 70px);
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background-color: #080611;
  background-image: url('../assets/images/footer/lets-build-whats-next-bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  isolation: isolate;
}

.site-footer__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 6, 14, .12), rgba(7, 6, 14, 0) 62%);
}

.site-footer__cta-content {
  position: relative;
  z-index: 2;
  width: min(520px, 48%);
  padding: clamp(42px, 4.3vw, 64px) 0 clamp(42px, 4.3vw, 64px) clamp(28px, 4.1vw, 58px);
}

.site-footer__cta-title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(42px, 4.2vw, 62px);
  font-weight: var(--font-extrabold);
  line-height: .98;
  letter-spacing: -0.05em;
  color: #fff;
}

.site-footer__cta-title > span {
  display: block;
  color: #fff;
  white-space: nowrap;
}

.site-footer__cta-title .site-footer__cta-accent {
  display: inline-flex;
  align-items: baseline;
  gap: .08em;
  margin-left: .08em;
  color: var(--color-primary-purple);
  white-space: nowrap;
}

.site-footer__cta-accent-letter {
  color: var(--color-primary-purple);
}

.site-footer__cta-accent-dot {
  display: inline-block;
  width: .22em;
  height: .22em;
  flex: 0 0 .22em;
  margin-bottom: .04em;
  border-radius: 50%;
  background: var(--color-primary-purple);
}

.site-footer__cta-copy {
  max-width: 430px;
  margin: 18px 0 0;
  color: #d8d5e3;
  font-family: var(--font-primary);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.45;
}

.site-footer__cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 20px;
  border-radius: 9px;
  background: #fff;
  color: #11121a;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-bold);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.site-footer__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.site-footer__cta-button i {
  color: #11121a;
}

/* Black footer body */
.site-footer__body {
  position: relative;
  z-index: 1;
  margin: -34px 10px 10px;
  padding: clamp(60px, 5.5vw, 82px) clamp(28px, 4vw, 58px) 30px;
  border-radius: 20px;
  background: #080808;
  color: #fff;
}

.site-footer__body-grid {
  display: grid;
  grid-template-columns: minmax(270px, 1.55fr) repeat(3, minmax(150px, .72fr));
  gap: clamp(32px, 4vw, 70px);
}

.site-footer__brand-logo {
  display: block;
  width: auto;
  height: 28px;
}

.site-footer__tagline {
  margin: 18px 0 0;
  color: #ddd9e5;
  font-family: var(--font-primary);
  font-size: 12px;
  letter-spacing: .19em;
  text-transform: none;
}

.site-footer__brand-copy {
  max-width: 380px;
  margin: 20px 0 0;
  color: #bcb9c5;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer__contact-list {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.site-footer__contact-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #d6d3dc;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.site-footer__contact-link i {
  flex: 0 0 22px;
  width: 22px;
  color: var(--color-primary-purple);
  font-size: 18px;
  text-align: center;
  padding-top: 1px;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid #343238;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  animation: site-footer-social-float 2.8s ease-in-out infinite;
  will-change: transform;
}

.site-footer__social:nth-child(2) { animation-delay: -.7s; }
.site-footer__social:nth-child(3) { animation-delay: -1.4s; }
.site-footer__social:nth-child(4) { animation-delay: -2.1s; }

@keyframes site-footer-social-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.site-footer__social:hover {
  border-color: var(--color-primary-purple);
  color: var(--color-primary-purple);
  transform: translateY(-2px);
}

.site-footer__social i {
  font-size: 20px;
}

.site-footer__column-title {
  margin: 2px 0 18px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: var(--font-bold);
}

.site-footer__links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  color: #bcb9c5;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #303035;
}

.site-footer__copyright,
.site-footer__bottom-note {
  margin: 0;
  color: #85828d;
  font-family: var(--font-primary);
  font-size: 13px;
}

.site-footer__bottom-note {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  letter-spacing: .14em;
}


@media (min-width: 768px) {
  .site-footer__bottom {
    margin-top: 88px;
  }
}

@media (max-width: 1000px) {
  .site-footer__body-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .site-footer__brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 20px;
  }

  .site-footer__shell {
    border-radius: 20px;
  }

  .site-footer__newsletter {
    padding: 52px 18px 34px;
  }

  .site-footer__newsletter-title {
    font-size: clamp(36px, 10.5vw, 50px);
  }

  .site-footer__newsletter-copy {
    font-size: 15px;
  }

  .site-footer__newsletter-form {
    flex-direction: column;
  }

  .site-footer__email-wrap,
  .site-footer__subscribe {
    width: 100%;
    box-sizing: border-box;
  }

  .site-footer__cta {
    min-height: 420px;
    margin: 0 18px;
    background-image: url('../assets/images/footer/lets-build-whats-next-mobile-bg.png');
    background-position: center bottom;
    background-size: cover;
  }

  .site-footer__cta-content {
    width: auto;
    max-width: 330px;
    padding: 40px 26px;
  }

  .site-footer__cta-title {
    font-size: clamp(40px, 11vw, 52px);
  }

  .site-footer__cta-copy {
    max-width: 300px;
  }

  .site-footer__body {
    margin: -28px 6px 6px;
    padding: 48px 24px 24px;
    border-radius: 18px;
  }

  .site-footer__brand-logo {
    width: auto;
    height: 28px;
  }

  .site-footer__body-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 28px;
  }

  .site-footer__brand-block {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 38px;
    text-align: center;
  }

  .site-footer__copyright {
    width: 100%;
    text-align: center;
  }

  .site-footer__bottom-note {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-footer__body-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__brand-block {
    grid-column: auto;
  }

  .site-footer__social {
    width: 46px;
    height: 46px;
  }

  .site-footer__cta {
    min-height: 460px;
    background-position: center bottom;
    background-size: cover;
  }
}

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