/**
 * Footer styles
 */

.site-footer {
  background-color: #000000;
  color: white;

  @media (max-width: 992px) {
    text-align: center;
    padding: var(--spacing-md) 0;
  }
  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
    
    @media (max-width: 992px) {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--spacing-md);
    }
    
    .footer-logo {
      img {
        max-height: 60px;
        width: auto;
      }
      
      @media (max-width: 992px) {
        margin: 0px auto var(--spacing-md);
      }
    }
    
    .footer-menus {
      display: flex;
      align-items: center;
      gap: var(--spacing-md);
      
      @media (max-width: 992px) {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: var(--spacing-md);
      }
      
      .footer-menu {
        @media (max-width: 992px) {
          width: 100%;
          margin-bottom: var(--spacing-sm);
        }
        .current-menu-item:not(.nav-btn-yellow) {
          a {
            border-bottom: 1px solid white;
            padding-bottom: 2px;
          }
        }
      }
      
      .social-menu {
        @media (max-width: 992px) {
          margin: var(--spacing-xs) auto 0px;
        }
      }
    }
  }
  
  .footer-divider {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: var(--spacing-md) 0;
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-family: var(--font-body-primary);
    font-size: 1rem;
    
    p {
      font-size: 1rem;
    }

    @media (max-width: 992px) {
      /*flex-direction: column;
      align-items: center;*/
      display: block;
    }
    
    .footer-bottom-left {
      width: 80%;
      display: flex;
      flex-direction: column;
      gap: var(--spacing-sm);
      position: relative;
      
      @media (max-width: 992px) {
        width: 100%;
        display: block;
      }
      
      .footer-logo-secondary {
        margin-bottom: var(--spacing-xs);
        
        img {
          max-height: 50px;
          width: auto;
        }
      }
      
      a.external-link-white {
        margin-bottom: var(--spacing-xs);
      }
      
      p {
        color: white;
        margin: 0;
      }
    }
    
    .footer-bottom-right {
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      
      @media (max-width: 992px) {
        width: 100%;
        display: block;
        margin-top: var(--spacing-md);
      }
      
      p {
        color: white;
        margin: 0;
      }
    }
  }
  
  /* Primary menu in footer */
  #primary-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
    
    li {
      display: inline-block;
      margin-right: var(--spacing-xs);
    }
    
    a {
      color: white;
      text-decoration: none;
      transition: color 0.2s ease;
      text-transform: uppercase;
      font-family: var(--font-body-primary);
      font-weight: 100;
      &:hover {
        color: var(--color-yellow);
        text-decoration: none;
      }
    }
    
    /* Yellow button styling for footer */
    li.nav-btn-yellow a {
      background-color: var(--color-yellow);
      color: #000000;
      border-radius: var(--border-radius-primary);
      padding: 7px;
      font-family: var(--font-heading-primary);
      letter-spacing: 0.05em;
      font-weight: bold;
    }
    
    li.nav-btn-yellow a:hover {
      background-color: #ffffff;
      color: #000000;
      border-color: #ffffff;
    }
    
    /* Responsive styling for footer menu */
    @media(max-width:992px) {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--spacing-xs);
      
      li {
        display: block;
        width: 100%;
        margin-bottom: var(--spacing-xs);
        margin-right: 0;
      }
      
      a {
        display: inline-block;
        margin: 5px 0;
        padding-bottom: 0px;
      }
      
      /* Adjust yellow button styling on mobile */
      li.nav-btn-yellow a {
        display: inline-block;
        padding: 5px 7px;
      }
    }
  }
  
  #social-menu-footer {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    
    li a {
      font-size: 0;  /* Hide text */
      display: block;
      width: 24px;
      height: 24px;
      position: relative;
      transition: opacity 0.2s ease;
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      
      &:hover {
        opacity: 0.8;
      }
    }
    
    /* Individual social icons */
    .isntagram-icon a {
      background-image: url('../../../assets/svg/instagram-icon.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      margin-right: var(--spacing-md);

      @media (max-width: 992px) {
          margin-right: var(--spacing-xs);
      }
    }
    
    .facebook-icon a {
      background-image: url('../../../assets/svg/facebook-icon.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      margin-right: var(--spacing-md);

      @media (max-width: 992px) {
          margin-right: var(--spacing-xs);
      }
    }

    .x-icon a {
      background-image: url('../../../assets/svg/x-icon.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }
  }
}

/* External link styling */
.external-link-white {
  color: white;
  text-decoration: none;
  position: relative;
  
  &:hover {
    color: var(--color-yellow);
    text-decoration: none;
  }
}
