/*
 * nav-footer.css
 * Styles for the Freedom Forever header/footer on NON-custom pages.
 * Custom pages load the full styles.css instead.
 * All selectors are scoped to #ff-site-nav / #ff-site-footer to avoid
 * leaking into parent-theme (Sage/Tailwind) content.
 */

/* ============================================================================
   CSS Variables
   ============================================================================ */
:root {
  --primary: #e0e8cd40;
  --secondary: #7d7d7d;
  --three: #cdea80;
  --four: #97ae58;
  --dark: #2c5134;
  --light: #f6f6f6;
  --text-sx: clamp(14px, 0.85vw, 1.05rem);
  --text-sm: clamp(18px, 1.2vw, 1.3rem);
  --text-md: clamp(18px, 1.5vw, 1.65rem);
  --text-md2: clamp(18px, 1.35vw, 1.55rem);
  --text-lg: clamp(24px, 2vw, 2.1rem);
  --text-lg2: clamp(24px, 2.05vw, 2.26rem);
  --text-xl: clamp(36px, 6vw, 6rem);
}

/* ============================================================================
   Font faces
   ============================================================================ */
@font-face {
  font-family: "Articulat CF";
  src: url("../fonts/Articulat/ArticulatCF-Regular.otf");
}
@font-face {
  font-family: "Articulat CF Bold";
  src: url("../fonts/Articulat/ArticulatCF-Bold.otf");
}
@font-face {
  font-family: "Articulat";
  src: url("../fonts/Articulat/ArticulatCF-Thin.otf");
}

/* ============================================================================
   Scoped reset (nav + footer only)
   ============================================================================ */
#ff-site-nav,
#ff-site-nav *,
#ff-site-footer,
#ff-site-footer *,
#menu-desplegable,
#menu-desplegable *,
#modales,
#modales * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#ff-site-nav a,
#ff-site-footer a,
#menu-desplegable a {
  text-decoration: none;
  transition: all 0.5s ease;
  cursor: pointer;
}

#ff-site-nav li,
#ff-site-footer li {
  list-style: none;
}

#ff-site-nav svg,
#ff-site-footer svg {
  position: relative;
  transition: all 0.5s ease;
}


/* ============================================================================
   Responsive display helpers (scoped)
   ============================================================================ */
#ff-site-nav .no-mb,
#ff-site-footer .no-mb {
  display: flex !important;
}

#ff-site-nav .no-desk,
#ff-site-footer .no-desk,
#menu-desplegable.no-desk {
  display: none !important;
}

/* ============================================================================
   NAV
   ============================================================================ */
#ff-site-nav {
  display: flex;
  position: fixed;
  height: 6rem;
  width: 100%;
  top: 0%;
  z-index: 10;
  min-height: 70px;
  max-height: 120px;
  justify-content: center;
  align-items: center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

#ff-site-nav .content-nav {
  display: flex;
  width: 95%;
  align-items: center;
  justify-content: start;
  height: 80%;
  border-radius: 20px;
  background: rgba(44, 81, 52, 0.25);
  backdrop-filter: blur(12.5px);
}

#ff-site-nav .logotipo-img {
  width: 26%;
  height: 100%;
  position: relative;
}

#ff-site-nav .logotipo-img a {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

#ff-site-nav .logotipo-img a img {
  position: absolute;
  max-width: 250px;
  min-width: 120px;
  width: 85%;
  height: auto;
  top: 45%;
  transform: translateY(-50%);
  left: 5%;
  transition: all 0.8s ease;
}

#ff-site-nav .inactive-logo {
  opacity: 0;
  z-index: -1;
}

#ff-site-nav .active-logo {
  opacity: 1;
  z-index: 1;
}

#ff-site-nav .center-content-nav {
  flex-grow: 1;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

#ff-site-nav .end-content-nav {
  width: 30.5%;
  display: flex;
  justify-content: end;
  gap: 1.5rem;
  padding-right: 1.5%;
}

#ff-site-nav .end-content-nav a {
  border-radius: 10px;
  padding: 15px 30px;
  text-wrap: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
}

#ff-site-nav .group-text-articulat span svg {
  transition: all 0.5s ease;
}

#ff-site-nav .group-text-articulatas a,
#ff-site-nav .group-text-articulatas span {
  text-decoration: none;
  font-family: "Articulat CF";
  font-size: var(--text-sm);
  font-style: normal;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  width: fit-content;
  gap: 0.75rem;
  line-height: 100%;
  color: var(--light);
  transition: all 0.5s ease;
}

#ff-site-nav .group-text-articulat a,
#ff-site-nav .group-text-articulat span {
  text-decoration: none;
  font-family: "Articulat CF";
  font-size: var(--text-sm);
  font-style: normal;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  width: fit-content;
  gap: 0.75rem;
  line-height: 100%;
  transition: all 0.5s ease;
}

/* Dropdown menu */
#ff-site-nav .dropdown-menu {
  position: absolute;
  left: 0%;
  top: 3.8vw;
  overflow: hidden;
  border-radius: 10px;
  width: fit-content;
  transition: all 0.5s ease;
}

#ff-site-nav .inactive-fatherdrop {
  z-index: -4;
  height: 0px;
  opacity: 0;
}

#ff-site-nav .active-fatherdrop {
  z-index: 4;
  opacity: 1;
  height: 180px !important;
}

#ff-site-nav .inactive-drop {
  opacity: 0;
}

#ff-site-nav .active-drop {
  opacity: 1;
}

#ff-site-nav .dropdown-menu ul {
  top: 0%;
  height: 100%;
  display: flex;
  padding-inline: 2vw;
  width: fit-content;
  flex-direction: column;
  justify-content: center;
  gap: 1.5vw;
  position: relative;
  background-image: url("../assets/bg (5).svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: all 0.5s ease;
  backdrop-filter: blur(30px);
}

#ff-site-nav .dropdown-menu a {
  font-size: min(1.14vw, 20px) !important;
  color: #26422c !important;
  width: 100%;
  text-wrap: nowrap;
}

#ff-site-nav .dropdown-menu a:hover {
  color: #26422c !important;
}

/* Nav link hover effects */
#ff-site-nav .group-text-articulatas a img {
  opacity: 0;
  position: relative;
  left: -5%;
  transition: all 0.5s ease;
}

#ff-site-nav .group-text-articulat a:hover {
  transform: scale(1.1);
}

#ff-site-nav .group-text-articulatas a:hover {
  color: var(--dark);
  transform: scale(1.05);
}

#ff-site-nav .group-text-articulatas a:hover img {
  opacity: 1;
  left: 0%;
}

/* Nav buttons */
#ff-site-nav .login-btn {
  color: var(--dark);
  background-color: var(--light);
  border: 1px solid var(--light);
}

#ff-site-nav .login-btn:hover {
  color: var(--three);
  border: 1px solid var(--three);
  background-color: transparent;
}

#ff-site-nav .four {
  color: var(--four);
}

#ff-site-nav .border-four {
  border: 1px solid var(--four);
}

#ff-site-nav .text-semibold {
  font-weight: 500;
}

/* Hamburger menu icon */
#ff-site-nav .menu-hamburguesa {
  display: none;
}

/* ============================================================================
   Modal (scoped to #modales)
   ============================================================================ */
#modales {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  z-index: 8;
  background-color: #1e1e1ece;
}

#modales.inactive-video-modal {
  opacity: 0;
  scale: 0;
  z-index: -44;
  pointer-events: none;
}

#modales .video-modal {
  width: 60%;
  height: 60%;
  display: flex;
  justify-content: center;
  background-color: var(--dark);
  align-items: center;
  border-radius: 20px;
}

/* ============================================================================
   Mobile menu (scoped to #menu-desplegable)
   ============================================================================ */
#menu-desplegable {
  position: fixed;
  z-index: 20;
  background-color: #fff;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  transition: all 0.5s ease;
  justify-content: center;
}

#menu-desplegable .info-desplegable {
  width: 90%;
  height: 90%;
}

#menu-desplegable .info-desplegable-logo {
  height: 15%;
  min-height: 100px;
  display: flex;
  align-items: start;
  justify-content: space-between;
}

#menu-desplegable .info-desplegable-logo img {
  width: 150px;
  height: auto;
}

#menu-desplegable .info-desplegable-logo button {
  height: 25px;
  width: 40px;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: end;
}

#menu-desplegable .info-desplegable-lista {
  height: 70%;
  gap: 2rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

#menu-desplegable .info-desplegable-lista a {
  color: #2c5134;
  text-align: center;
  gap: 1rem;
  align-items: center;
  font-family: "Articulat CF";
  font-size: 42px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: -1.26px;
}

#menu-desplegable .info-desplegable-lista .subnav-item a {
  font-size: 24px;
}

#menu-desplegable .info-desplegable-lista-footer {
  height: 10%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#menu-desplegable .info-desplegable-lista-footer a {
  width: 45%;
  height: 40px;
  display: flex;
  max-width: 200px;
  align-items: center;
  justify-content: center;
  border-radius: 9.327px;
  font-family: "Articulat CF";
  font-size: 20.52px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.616px;
}

#menu-desplegable .info-desplegable-lista-footer a:nth-child(1) {
  width: 50%;
}

#menu-desplegable .info-desplegable-lista a svg {
  width: 30px;
  height: auto;
}

#menu-desplegable .info-desplegable-logo button svg {
  width: 100%;
  height: 100%;
}

#menu-desplegable.inactive-menu {
  left: 100vw;
}

#menu-desplegable.active-menu {
  left: 0vw;
}

/* Mobile menu + footer color utilities */
#menu-desplegable .border-dark,
#ff-site-footer .border-dark {
  border: 1px solid var(--dark);
}

#menu-desplegable .bg-dark,
#ff-site-footer .bg-dark {
  background-color: var(--dark);
}

#menu-desplegable .dark,
#ff-site-footer .dark {
  color: var(--dark) !important;
}

#menu-desplegable .light,
#ff-site-footer .light {
  color: var(--light);
}

/* ============================================================================
   FOOTER — simple direct styles, no utility class duplication
   ============================================================================ */
#ff-site-footer {
  width: 100%;
}

#ff-site-footer .content-footer {
  width: 100%;
  padding: 8% 5%;
  border-top-left-radius: 52px;
  border-top-right-radius: 52px;
  background-color: var(--dark);
}

#ff-site-footer .footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding-bottom: 6%;
  border-bottom: 1px solid #FFFFFF40;
}

/* Footer typography */
#ff-site-footer h5,
#ff-site-footer h6 {
  color: #fff;
  font-family: "Articulat CF";
  font-size: var(--text-md);
  line-height: 100%;
}

#ff-site-footer h6 {
  margin-bottom: 5%;
}

#ff-site-footer p,
#ff-site-footer a {
  color: #fff;
  font-family: "Articulat";
  font-size: clamp(12px, 0.8vw, 1.3rem);
  line-height: 110%;
}

#ff-site-footer a {
  text-decoration: none;
  text-transform: capitalize;
  cursor: pointer;
}

#ff-site-footer img {
  display: inline-block;
}

/* Logo */
#ff-site-footer .logo-footer img {
  width: 60%;
  height: auto;
}

/* Link columns */
#ff-site-footer .footer-links-col h6 {
  text-align: left;
  margin-bottom: 1.5rem;
}

#ff-site-footer .footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#ff-site-footer .footer-li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  list-style: none;
}

#ff-site-footer .footer-li a {
  text-align: left;
}

#ff-site-footer .footer-li:hover a {
  color: var(--three);
}

#ff-site-footer .footer-li img {
  left: -20px;
  position: absolute;
  opacity: 0;
  transition: all 0.5s ease;
}

#ff-site-footer .footer-li:hover img {
  left: -25%;
  opacity: 1;
}

/* Social media icons */
#ff-site-footer .redes-footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

#ff-site-footer .redes-footer ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

#ff-site-footer .redes-footer li {
  list-style: none;
  display: flex;
  flex-shrink: 0;
}

#ff-site-footer .redes-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 100%;
  border: 1px solid var(--light);
}

#ff-site-footer .redes-footer a:hover {
  scale: 1.1;
}

#ff-site-footer .redes-footer img {
  width: clamp(14px, 1vw, 1vw);
  height: clamp(14px, 1vw, 1vw);
}

/* Footer bottom: address, disclaimers, legal links */
#ff-site-footer .footer-bottom {
  margin-top: 40px;
}

#ff-site-footer .direction-footer {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

#ff-site-footer .direction-footer p {
  text-align: center;
}

#ff-site-footer .texts-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 40px;
}

#ff-site-footer .texts-footer p {
  text-align: center;
}

#ff-site-footer .links-legal {
  display: flex;
  justify-content: center;
}

#ff-site-footer .links-legal ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

#ff-site-footer .links-legal li {
  list-style: none;
}

#ff-site-footer .text-legal-footer {
  text-decoration: underline;
  text-decoration-color: var(--primary);
}

/* ============================================================================
   RESPONSIVE: < 1024px (tablet/mobile)
   ============================================================================ */
@media (width < 1024px) {
  #ff-site-footer .footer-top {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  #ff-site-footer h6 {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 1023px) {
  #ff-site-nav .no-mb,
  #ff-site-footer .no-mb {
    display: none !important;
  }
  #ff-site-nav .no-desk,
  #ff-site-footer .no-desk,
  #menu-desplegable.no-desk {
    display: flex !important;
  }

  #modales .video-modal {
    width: 95%;
    height: auto;
  }

  #ff-site-footer .content-footer {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    gap: 1.5rem;
    padding: 5rem 2rem;
  }

  #ff-site-footer .links-footer {
    width: 100%;
    height: fit-content;
  }

  #ff-site-footer {
    height: fit-content;
    min-height: auto;
  }

  #ff-site-footer .anchors-mobile {
    height: fit-content;
    flex-wrap: wrap;
    gap: 3rem;
  }

  #ff-site-footer .anchors-mobile div {
    width: fit-content;
    height: fit-content;
  }

  #ff-site-footer .footer-logo-links {
    height: fit-content;
    padding-top: 1.5rem;
    gap: 2rem;
  }

  #ff-site-footer .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  #ff-site-footer .texts-footer {
    width: 95%;
    height: fit-content;
  }

  #ff-site-footer .texts-footer p {
    width: 100%;
  }

  #ff-site-footer .direction-footer {
    width: 100%;
    margin-bottom: 20px;
  }

  #ff-site-footer .direction-footer p {
    max-width: 400px;
    width: 80%;
    min-width: 320px;
  }

  #ff-site-footer .links-legal ul {
    flex-wrap: wrap;
  }

  #ff-site-footer .redes-footer ul {
    justify-content: center;
    margin-bottom: 20px;
  }

  #ff-site-footer .redes-footer img {
    width: 20px;
    height: 20px;
  }

  #ff-site-footer h5 {
    font-size: 14px;
  }

  #ff-site-footer .logo-footer {
    width: 100%;
  }

  #ff-site-footer .logo-footer img {
    max-width: 350px;
    width: 60%;
    min-width: 220px;
  }

  /* Nav mobile styles */
  #ff-site-nav .content-nav {
    background-color: transparent;
    padding-inline: 20px;
  }

  #ff-site-nav .logotipo-img {
    width: 45%;
  }

  #ff-site-nav .logotipo-img a img {
    width: 100px;
    min-width: 20px;
    left: 0px;
  }

  #ff-site-nav .menu-hamburguesa {
    display: flex;
    flex-grow: 1;
    height: 100%;
    position: relative;
    z-index: 10;
    align-items: center;
    justify-content: end;
    padding-right: 25px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  #ff-site-nav .menu {
    position: absolute;
    right: 0px;
    cursor: pointer;
    touch-action: manipulation;
  }

  #ff-site-nav .menu-active {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
  }

  #ff-site-nav .menu-inactive {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
  }
}

/* ============================================================================
   RESPONSIVE: 1024–1279px
   ============================================================================ */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  #ff-site-nav .logotipo-img {
    width: 25%;
    height: 100%;
    position: relative;
  }

  #ff-site-nav .group-text-articulat span {
    gap: 5px;
  }
}

/* ============================================================================
   RESPONSIVE: 2150px+
   ============================================================================ */
@media screen and (min-width: 2150px) {
  #ff-site-nav .content-nav {
    max-width: 1920px;
  }
}
