/* ===========================
   Footer — Desktop
   =========================== */

.footer {
  display: grid;
  grid-template-columns: 745fr 709fr;
  grid-template-rows: 1fr auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--surface-primary);
  border-top: 1px solid var(--border-primary);
}

/* ----- Left Column ----- */

.footer__left {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 2px solid white;
  padding: 40px 40px;
  box-sizing: border-box;
  background-color: var(--surface-secondary);
  color: var(--text-primary);
}

.footer__left-inner {
  display: flex;
  flex-direction: column;
  gap: 50px;
  border-radius: 0;
  color: var(--text-inverted);
}

.footer__top-group {
  display: flex;
  flex-direction: column;
  gap:80px;
}

.footer__logo-img {
  width: 100%;
  max-width: 704px;
  height: auto;
  display: block;
}

/* Navigation links row */
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 33px;
}

.footer__nav-link {
  font-family: var(--main-fontfamily);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-);
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.35em;
}

.footer__nav-link .slide-text {
  display: block;
  flex-shrink: 0;
  height: 1.8em;
  line-height: 1.35;
  color: var(--text-primary);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 20px;
}

.footer__nav-link:hover .slide-text {
  transform: translateY(-100%);
}

.footer__nav-link .slide-text:last-child {
  color: var(--text-accent2);
}

/* Contact info */
.footer__contact {
  display: flex;
  flex-direction: column;
}

.footer__contact-item {
  font-family: var(--main-fontfamily);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__contact-item:hover {
  color: var(--surface-accent);
}

/* Copyright row */
.footer__copyright {
  display: flex;
  gap: 6px;
  align-items: center;
}

.footer__copyright-logo {
  font-family: var(--main-fontfamily);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.footer__copyright-year {
  font-family: var(--sec-fontfamily);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-primary);
}

.footer__copyright-text {
  font-family: var(--sec-fontfamily);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
}

/* ----- Right Column ----- */

.footer__right {
  background-color: var(--surface-brand);
  grid-row: 1 / 3;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 39px;
  border: none;
  box-sizing: border-box;
}

.footer__right-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 0 50px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.footer__tagline {
  font-family: var(--main-fontfamily);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1.68px;
  line-height: 1.05;
  color: var(--text-inverted  );
  text-align: left;
}

/* Logo icon */
.footer__logo-icon {
  width: 100px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-icon svg {
  width: 100px;
  height: 20px;
}

.footer__logo-icon-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Mobile contact (hidden on desktop) */
.footer__mobile-contact {
  display: none;
}

.footer__logo-img--mobile {
  display: none;
}

/* CTA Button */
.footer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 631px;
  height: 164px;
  background: var(--surface-accent);
  font-family: var(--main-fontfamily);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 0.95;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Reveal layers */
.footer__cta .cta-card-reveal {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  z-index: 1;
  pointer-events: none;
}

/* First layer to reveal: brand/dark (slides up first, hidden beneath) */
.footer__cta .cta-card-reveal--brand {
  background: var(--surface-brand, #182439);
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Second layer to reveal (on top): white (slides up second, final visible) */
.footer__cta .cta-card-reveal--white {
  background: var(--surface-primary, #ffffff);
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

/* Hover-in: both layers slide up */
.footer__cta:hover .cta-card-reveal--brand {
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer__cta:hover .cta-card-reveal--white {
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

/* Hover-out: white leaves first, then brand */
.footer__cta:not(:hover) .cta-card-reveal--white {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer__cta:not(:hover) .cta-card-reveal--brand {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.08s;
}

/* Text stays above reveal layers */
.footer__cta-text {
  position: relative;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  transition: color 0.15s ease 0.25s;
}

.footer__cta:hover .footer__cta-text {
  color: var(--text-primary);
  animation: footerCtaTextColorSweep 0.5s ease forwards;
}

@keyframes footerCtaTextColorSweep {
  0%   { color: var(--text-primary); }
  35%  { color: var(--text-inverted); }
  65%  { color: var(--text-primary); }
  100% { color: var(--text-primary); }
}

.footer__cta-text .hover-reveal-text {
  display: block;
  flex-shrink: 0;
  height: 1em;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer__cta:hover .footer__cta-text .hover-reveal-text {
  transform: translateY(-100%);
}

/* ----- Signature (under left column only) ----- */

.footer__signature {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 47px;
  border-top: 0.8px solid var(--border-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  background-color: var(--surface-secondary);
  color: var(--text-primary);
}

/* ===========================
   Mobile Footer (max-width: 900px)
   =========================== */

@media (max-width: 900px) {
  .footer {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--text-primary);
  }

  .footer__left {
    align-items: center;
    padding: 48px 20px;
  }

  .footer__left-inner {
    gap: 0;
    align-items: center;
  }

  .footer__top-group {
    gap: 0;
    align-items: center;
    background-color: transparent;
    color: var(--text-primary);
  }

  .footer__logo {
    margin-bottom: 24px;
  }

  .footer__logo-img {
    max-width: 280px;
  }

  .footer__logo-img--desktop {
    display: none;
  }

  .footer__logo-img--mobile {
    display: block;
  }

  .footer__nav {
    flex-direction: column;
    align-items: center;
    gap: 26px;
    width: 100%;
  }

  .footer__nav-link {
    font-size: 24px;
    letter-spacing: -0.72px;
    border-bottom: none;
    min-width: auto !important;
    padding-bottom: 0;
    padding: 8px 16px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .footer__nav-link:active {
    opacity: 0.7;
  }

  .footer__contact,
  .footer__copyright {
    display: none;
  }

  .footer__right {
    border: none;
    border-top: 1px solid var(--text-inverted);
    background: var(--surface-brand);
    padding: 14px 0;
    min-height: auto;
  }

  .footer__right-inner {
    gap: 19px;
    padding: 0;
    align-items: center;
  }

  .footer__tagline,
  .footer__logo-icon,
  .footer__cta {
    display: none;
  }

  .footer__mobile-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
  }

  .footer__mobile-contact-item {
    font-family: var(--main-fontfamily);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-inverted);
    text-decoration: none;
  }

  .footer__signature {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    width: 100%;
  }
  
  .footer__signature a {
    text-align: center;
    display: block;
    width: 100%;
  }
}
