/* Scroll-triggered Footer Styles */

.scroll-footer-wrapper {
  position: relative;
  width: 100vw;
  max-width: 100vw;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100vw;
  height: auto;

  background-color: #f8f9fa;
  border-top: 1px solid #e7e7e7;
  padding: 32px 24px 24px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-auto-rows: auto;
  row-gap: 14px;
  justify-content: flex-start;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  overflow: visible !important;
  /* Initial state - hidden off-screen */
  transform: translateY(100%);
  transition: transform 0.2s ease-out;
  will-change: transform;
  box-sizing: border-box;
}

/* Class added via JavaScript when footer should be visible */
.footer-visible {
  transform: translateY(0);
}

/* Logo and tooltip styles */
.footer-logo-link {
  position: relative;
  display: inline-block;
  transition: transform 0.2s ease;
  padding-left: 16px;
  /* Add left padding for spacing */
  overflow: visible !important;
}

.footer-logo-link:hover {
  transform: scale(1.05);
}

.footer-logo {
  height: 52px;
  width: auto;
}

/* Custom tooltip styles */
.custom-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 110%;
  /* Move up a bit */
  left: 2.7%;
  /* Move left */
  transform: translateX(-10%);
  background-color: #333;
  color: white;
  text-align: center;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1001;
  box-shadow: none;
  border: none;
}

.custom-tooltip::after {
  display: none;
}

.footer-logo-link:hover .custom-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Footer links styles */
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 1rem;
  width: 100%;
  flex-wrap: nowrap;
  min-width: 0;
}

.footer-logo-link {
  grid-column: 1;
  grid-row: 1;
}

.footer-links {
  grid-column: 2;
  grid-row: 1;
}

.footer-separator {
  grid-column: 1 / -1;
  grid-row: 2;
}

.footer-bottom {
  grid-column: 1 / -1;
  grid-row: 3;
}

/* Separator between rows */
.footer-separator {
  width: 100%;
  height: 1px;
  background-color: #d9d9d9;
  margin: 10px 0;
}

/* Bottom row layout */
.footer-bottom {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 24px 10px 24px;
}

.footer-cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  color: #FFAF66;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
}

.footer-cta:hover {
  background-color: transparent;
  color: #FFAF66;
}

.footer-cta i {
  font-size: 1em;
  font-weight: 900;
}

.footer-cta::after {
  content: '';
}

.footer-cta:hover::after {
  transform: none;
}

.footer-copy {
  justify-self: center;
  color: #212222;
  font-size: 15px;
}

.footer-social {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 80px;
}

.footer-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: #FFAF66;
  border: 1px solid #FFAF66;
  text-decoration: none !important;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social .social-icon:hover {
  transform: translateY(-1px);
  background: #FFAF66;
  color: #ffffff;
  border-color: #FFAF66;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
}

.footer-social .social-icon svg,
.footer-social .social-icon i {
  color: #FFAF66 !important;
  font-size: 1.5rem;
}

.footer-social .social-icon:hover svg,
.footer-social .social-icon:hover i {
  color: #ffffff !important;
}

.footer-social .social-instagram svg,
.footer-social .social-instagram i {
  transform: scale(0.9);
}

/* App download badges on the right */
.footer-app-downloads {
  margin-left: auto;
  margin-right: 12px;
  /* nudge from right edge */
  display: grid;
  grid-template-columns: auto auto;
  grid-auto-rows: auto;
  column-gap: 20px;
  row-gap: 12px;
  align-items: center;
}

.footer-app-downloads .footer-app-label {
  font-size: 13px;
  font-weight: 600;
  color: #313131;
  margin-right: 0;
  font-family: Open Sans;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  grid-column: 1 / -1;
  grid-row: 1;
}

.footer-store-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

.footer-app-downloads .footer-store-badge.play {
  grid-column: 1;
  grid-row: 2;
}

.footer-app-downloads .footer-store-badge.appstore {
  grid-column: 2;
  grid-row: 2;
}

.footer-store-badge img {
  height: 40px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.content-wrapper>*:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Hide app badges on mobile and tablet */
@media (max-width: 768px) {
  .footer-app-downloads {
    display: none !important;
  }
}

.nav-footer ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-footer-item {
  margin: 0 15px;
}

.nav-footer-item a {
  color: #0075b4;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.2s;
}

.nav-footer-item a:hover {
  color: #00537d;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer {
    flex-direction: row;
    align-items: center;
    padding: 27px 24px 24px 16px;
    height: auto;
    min-height: 50px;
  }

  .footer-logo-link {
    margin-left: 0;
    margin-right: 12px;
    margin-bottom: 0;
  }

  .footer-logo {
    height: 32px;
    width: auto;
  }

  .footer-links {
    flex-wrap: wrap;
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-footer ol {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: auto;
  }

  .nav-footer-item {
    margin: 5px 10px;
  }

  .nav-footer-item a {
    font-size: 0.95rem;
    padding: 2px 6px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 10px 0 0 0;
  }

  .footer-cta {
    justify-self: center;
  }

  .footer-copy {
    justify-self: center;
  }

  .footer-social {
    justify-self: center;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 1.2rem 0.5rem 0.5rem 0.5rem;
    min-height: 40px;
    justify-content: flex-start;
    gap: 10px;
  }

  .footer-logo-link {
    margin-right: 0;
  }

  .footer-logo {
    height: 32px;
  }

  .footer-links {
    margin-left: 0;
    flex-direction: row;
    align-items: center;
    flex: 1;
  }

  .nav-footer ol {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    justify-content: flex-end;
  }

  .nav-footer-item {
    margin: 0 4px;
  }

  .nav-footer-item a {
    font-size: 0.85rem;
    padding: 1px 2px;
    white-space: nowrap;
  }

  .footer-social {
    margin-right: 0;
  }

  .footer-social .social-icon {
    width: 20px;
    height: 20px;
  }

  .footer-social .social-icon svg,
  .footer-social .social-icon i {
    font-size: 0.8rem;
  }

  .footer-cta {
    font-size: 10px;
    padding: 7px 12px;
  }

  .footer-copy {
    font-size: 10px;
  }
}