/* ===============================
   FOOTER LAYOUT
================================ */
.footer {
  width: 100%;
  min-height: 100vh;
  /* safer than height */
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

/* ===============================
   TOP SECTION
================================ */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6vw;
  padding-bottom: 4rem;
}

.footer-heading {
  font-size: clamp(120px, 20vw, 170px);
  font-weight: 400;
  line-height: 0.9;
}

/* 🔥 MASK WRAPPER */
.footer-line-wrapper {
  overflow: hidden;
  display: block;
}

/* smooth rendering */
.footer-heading .line {
   display: block; /* ❗ THIS WAS MISSING */
  will-change: transform;
}

.arrow-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
}

/* Text Animation */
.btn-text {
  transition: transform 0.4s cubic-bezier(.76, 0, .24, 1);
}

.arrow-btn:hover .btn-text {
  transform: translateX(-8px);
}

/* Icon Container */
.btn-icon {
  position: relative;
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(.76, 0, .24, 1);
}

.arrow-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Optional smooth feel */
.arrow-btn i {
  font-size: 18px;
}



/* ===============================
   RIGHT MENUS
================================ */
.footer-right-top {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 5rem;
  padding: 2rem 0 0 0;
}

.footer-col,
.footer-col2 {
  display: flex;
  flex-direction: column;
}

.footer-col {
  gap: 15px;
}

.footer-col2 {
  margin-top: 20px;
}

/* ===============================
   HEADINGS
================================ */
.footer-col h4,
.footer-col2 h4 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 1;
}

/* ===============================
   LINK TYPOGRAPHY
================================ */
.footer-col>a span,
.footer-col2>a span {
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
}

/* ===============================
   SLIDE TEXT HOVER EFFECT
================================ */
.footer-link {
  position: relative;
  display: inline-block;
  height: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.footer-link span {
  display: block;
  font-size: 18px;
  line-height: 18px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link span:nth-child(2) {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}

.footer-link:hover span:first-child {
  transform: translateY(-100%);
}

.footer-link:hover span:last-child {
  transform: translateY(0);
}

/* SMALL LINKS */
.footer-link.small span {
  font-size: 13px;
}

/* ===============================
   BIG LOGO
================================ */
.footer-logo-anim {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 0 2rem;
  overflow: hidden;
}

#dzignzFooterLogo svg {
  width: 1860px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-col2 {
  order: 2;
  margin-top: 1.25rem;
}


/* ===============================
   TEXT ARROW BUTTON Footer
================================ */

.button-footer {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  margin-top: 1rem;
  margin-left: 13px;
}

/* Arrow icon */
.button-footer .icon {
  display: inline-block;
  animation-duration: 0.55s;
  animation-fill-mode: both;
}

/* Icon itself */
.button-footer .icon i {
  font-size: 22px;
}

/* Hover animation */
.button-footer:hover .icon {
  animation-name: arrowLRReenter;
}

/* ===============================
   LOGO ANIMATION STATES
================================ */
.footer-logo-anim .letter {
  opacity: 0;
  transform: translateY(100px);
  transition:
    opacity 0.9s ease-out,
    transform 1.8s cubic-bezier(0.12, 0.95, 0.25, 1);
  will-change: transform, opacity;
}

.footer-logo-anim .letter.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   BOTTOM BAR
================================ */
.footer-bottom {
  margin-top: auto;
  /* bottom-aligned */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.6;
}

.footer-bottom-left {
  display: flex;
  gap: 38px;
}

/* ===============================
   EMAIL LINK
================================ */
.email {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.2;
  padding-bottom: 2px;
}

/* underline */
.email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46.8%;
  height: 1px;
  background: #fff;

  transform: scaleX(0);
  transform-origin: bottom right;

  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

/* hover */
.email:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* small variant if needed */
.email.small {
  font-size: 15px;
}

/* ===============================
   MOBILE FOOTER — AGENCY STRUCTURE
================================ */
@media (max-width: 768px) {

  /* Base cleanup */
  .footer {
    min-height: auto;
    padding: 2.5rem 1.25rem 1.5rem;
  }

  /* Stack top cleanly */
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }

  /* BIG HEADLINE */
  .footer-left h1 {
    font-size: clamp(44px, 12vw, 64px);
    line-height: 1.05;
    max-width: 14ch;
  }

  /* HELLO = NEW BUSINESS */
  .footer-col2 {
    margin-top: 0.5rem;
  }

  .footer-col2 h4 {
    font-size: 13px;
    letter-spacing: 0.06em;
    opacity: 0.7;
  }

  .email {
    font-size: 15px;
  }

  /* NAVIGATION BLOCK */
  .footer-right-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
  }

  .footer-col {
    align-items: flex-start;
    text-align: left;
    gap: 14px;
  }

  .footer-col h4 {
    font-size: 13px;
    letter-spacing: 0.06em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
  }

  .footer-link span {
    font-size: 14px;
  }

  /* BIG LOGO */
  .footer-logo-anim {
    padding: 4rem 0 2rem;
  }

  #dzignzFooterLogo svg {
    width: 100%;
  }

  /* META INFO (BOTTOM) */
  .footer-bottom {
    margin-top: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 13px;
    opacity: 0.6;
  }

  .footer-bottom-left {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}
