/* ============================================
   FOYR REVAMP — FOOTER STYLES
   TODO: Complete based on Figma footer design
   ============================================ */
/* 
 * Prevents old theme from applying dark background to <body> on revamp pages.
 * Without this, closing the signup modal leaves a grey/dark page background.
 * Scoped to .revamp-page only — does not affect other pages.
 */
body.revamp-page {
  background-color: #fff !important;
}

/*
 * Signup Modal
 * Opened by #tryFreeBtn (header.php), controlled by JS in footer.php.
 * Uses custom classes — NOT Bootstrap .modal — to avoid Velocity.js conflict.
 * !important used on layout properties to override Bootstrap CSS.
 *
 * FILES INVOLVED:
 * - header.php  → #tryFreeBtn button
 * - footer.php  → modal HTML + JS logic
 */
.signup-modal {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
}

.signup-modal.open {
  display: flex !important;
}

/* Semi-transparent backdrop — clicking closes the modal */
.signup-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Centered modal box */
.signup-modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: 500px;
  max-width: 90vw;
  max-height: 90vh;
  /* Force center — overrides any inherited transforms */
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: auto !important;
  display: flex !important;
}

/* Close button */
.signup-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}

/* iframe */
.signup-modal__box iframe {
  border: none;
  display: block;
  height: 630px;
}

/* ============================================
   FOOTER MAIN
   ============================================ */
.revamp-footer {
  background: #2a1751;
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}

/* --- LOGO BACKGROUND SVG --- */
.revamp-footer__circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.revamp-footer__circle svg {
  position: absolute;
  top: auto;
  left: -40%;
  width: 915px;
  height: auto;
  max-width: none;
  bottom: 0%;
}

/* --- MAIN INNER LAYOUT --- */
.revamp-footer__inner {
  display: flex;
  align-items: stretch;
  min-height: 500px;
  justify-content: space-between;
}

/* --- LEFT: BRAND / LOGO --- */
.revamp-footer__brand {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 100px;
}

.revamp-footer__brand a {
  position: relative;
  z-index: 1;
}

/* Logo SVG — targets only the Foyr logo SVG, not the circle background SVG */
.revamp-footer__brand>a>svg {
  width: 320px;
  height: auto;
  display: block;
}

/* --- RIGHT: NAV + CTA --- */
.revamp-footer__right {
  /* flex: 1; */
  display: flex;
  flex-direction: column;
  padding: 100px 0px 100px 100px;
  gap: 50px;
}

/* --- NAV ROW --- */
.revamp-footer__nav-row {
  display: flex;
  gap: 100px;
  /* justify-content: flex-end; */
}

/* --- INDIVIDUAL COLUMN --- */
/* .revamp-footer__col {
  flex: 1;
} */

.revamp-footer__col h5 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

/* Company heading extra top spacing since it sits below Resources */
.revamp-footer__col-heading--spaced {
  margin-top: 36px !important;
}

.revamp-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.revamp-footer__col ul li a {
  font-size: 14px;
  color: var(--clr-white);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.4;
}

.revamp-footer__col ul li a:hover {
  color: var(--clr-purple);
}

/* --- PREMIUM DROPDOWN --- */
.footer-dropdown {
  position: relative;
}

.footer-dropdown details {
  position: relative;
  display: inline-block;
}

.footer-dropdown summary {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
  user-select: none;
}

.footer-dropdown summary::-webkit-details-marker {
  display: none;
}

.footer-dropdown summary::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  transition: transform 0.3s ease, border-color 0.3s ease;
  margin-bottom: 4px;
}

.footer-dropdown details[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--clr-purple);
  margin-bottom: -4px;
}

.footer-dropdown summary:hover {
  opacity: 0.8;
}

.footer-dropdown details ul {
  position: absolute !important;
  bottom: calc(100% + 15px);
  /* Open upwards */
  right: 0;
  /* Align to the right edge of the trigger */
  left: auto;
  background: #190e31;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px !important;
  list-style: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: grid !important;
  grid-template-columns: repeat(2, 200px);
  /* Slightly narrower columns */
  gap: 8px 30px !important;
  border-radius: 12px;
  animation: dropdownFadeUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: auto;
  width: max-content;
  max-height: 450px;
  overflow-y: auto;
}

/* Custom Scrollbar for the dropdown */
.footer-dropdown details ul::-webkit-scrollbar {
  width: 4px;
}

.footer-dropdown details ul::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Arrow indicator on the dropdown box */
.footer-dropdown details ul::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 40px;
  /* Align arrow with the right-aligned summary */
  border: 8px solid transparent;
  border-top-color: #190e31;
}

@keyframes dropdownFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-dropdown details ul li {
  margin: 0 !important;
}

.footer-dropdown details ul li a {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  padding: 4px 0 !important;
  display: block;
  white-space: nowrap;
  transition: all 0.2s ease !important;
}

.footer-dropdown details ul li a:hover {
  color: var(--clr-purple) !important;
  transform: translateX(5px);
  background: transparent !important;
}

@media (max-width: 991.98px) {
  .footer-dropdown details ul {
    grid-template-columns: 1fr !important;
    border: none;
    box-shadow: none;
    max-height: 200px;
    /* Expand fully in mobile accordion style */
  }

  .footer-dropdown details ul::after {
    display: none;
  }
}

/* --- BOTTOM BAR --- */
.revamp-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.revamp-footer__bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* --- SOCIAL ICONS --- */
.revamp-footer__social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.revamp-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition:
    color var(--transition),
    background var(--transition);
}

.revamp-footer__social a:hover {
  color: var(--clr-white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-white {
  align-items: center;
  padding: 8px 16px;
  height: 34px;
  background: linear-gradient(180deg, #f4f4f4 0%, #ffffff 100%);
  border-radius: 6px;
  color: #333 !important;
  line-height: normal;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1400px) {
  .revamp-footer__brand {
    padding: 100px 40px;
  }

  .revamp-footer__circle {
    top: -200px;
    right: 0;
    left: auto;
  }

  .revamp-footer__circle svg {
    left: -40%;
    width: 700px;
  }
}

@media (max-width: 1200px) {
  .revamp-footer__circle svg {
    width: 500px;
    top: 100px;
  }

  .footer-left svg {
    max-width: 200px;
  }

  .revamp-footer__right {
    padding: 100px 60px;
  }
}

@media (max-width: 1024px) {
  /* .revamp-footer__circle {
    display: none;
  } */

  .revamp-footer__brand {
    padding: 40px 30px;
  }

  .revamp-footer__brand>a>svg {
    width: 240px;
  }

  .revamp-footer__right {
    padding: 40px 24px;
    gap: 36px;
  }

  .revamp-footer__nav-row {
    gap: 30px;
  }


}

@media (max-width: 768px) {
  .revamp-footer__circle svg {
    width: 600px;
    top: 100px;
    left: -30%;
  }

  .revamp-footer__inner {
    flex-direction: column;
  }

  .revamp-footer__brand {
    width: 100%;
    padding: 50px 20px;
    min-height: 280px;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-start;
  }

  .revamp-footer__brand>a>svg {
    width: 200px;
  }

  .revamp-footer__right {
    padding: 36px 20px;
    gap: 32px;
    border-left: none;
  }

  .revamp-footer__nav-row {
    gap: 24px;
  }

  .revamp-footer__nav-row .revamp-footer__col {
    flex: 0 0 calc(50% - 12px);
  }

  .revamp-footer__bottom {
    flex-direction: column-reverse;
    gap: 16px;
    text-align: center;
    padding: 24px 20px;
  }
}